]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8723bs: remove custom FIELD_OFFSET macro
authorNavaneeth K <knavaneeth786@gmail.com>
Tue, 25 Nov 2025 11:20:59 +0000 (11:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2025 13:21:02 +0000 (14:21 +0100)
The custom FIELD_OFFSET macro is no longer used in the driver (replaced
by standard offsetof). Remove the definition.

Signed-off-by: Navaneeth K <knavaneeth786@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/20251125112059.16913-6-knavaneeth786@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/include/basic_types.h

index 16b270fe0203db60cbeed1f2f283747a98867e35..8adb95f9f1e5825bfd02a0fa7a56583ab9446d79 100644 (file)
@@ -14,8 +14,6 @@
 #include <linux/types.h>
 #include <linux/stddef.h>
 
-#define FIELD_OFFSET(s, field) ((__kernel_ssize_t)&((s *)(0))->field)
-
 #define SIZE_PTR __kernel_size_t
 #define SSIZE_PTR __kernel_ssize_t