]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: rtl8723bs: use standard offsetof in cfg80211 operations
authorNavaneeth K <knavaneeth786@gmail.com>
Tue, 25 Nov 2025 11:20:56 +0000 (11:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2025 13:21:02 +0000 (14:21 +0100)
commit6ddb173fcf34f4b9351a20f29e31aa2bc3f90574
tree8cc51d09d52abf2d9376776807f33d3c74ad5aa0
parente09748f874422f71b21cc1c0628743d445b2b2c6
staging: rtl8723bs: use standard offsetof in cfg80211 operations

Replace usage of the custom FIELD_OFFSET macro with the standard
offsetof() macro in ioctl_cfg80211.c. This improves code readability
and uses the kernel's standard mechanism.

Also include <linux/stddef.h> in basic_types.h to ensure offsetof()
is available for this and future conversions.

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