From 9001de25dc9fa78436d19a6fc1714548d38c57e8 Mon Sep 17 00:00:00 2001 From: Chia-Hao Chiu Date: Sat, 6 Sep 2025 19:11:46 +0800 Subject: [PATCH] Drop .owner for kernel >= 6.4 Kernel 6.4+ sets .owner automatically. Remove manual assignment to avoid build issues and keep compatibility with older versions. Signed-off-by: Chia-Hao Chiu --- vwifi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vwifi.c b/vwifi.c index d57a4f3..4163762 100644 --- a/vwifi.c +++ b/vwifi.c @@ -3341,7 +3341,9 @@ static struct virtio_driver virtio_vwifi = { .feature_table = features, .feature_table_size = ARRAY_SIZE(features), .driver.name = KBUILD_MODNAME, +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0) .driver.owner = THIS_MODULE, +#endif .id_table = id_table, .probe = vwifi_virtio_probe, .remove = vwifi_virtio_remove,