Re: [PATCH v2 1/2] wifi: ath12k: annotate skb of struct ath12k_ce_ring with __counted_by

2024-10-24 Thread Jeff Johnson
Please use get_maintainer.pl to make sure all the affected lists are notified. Your ath11k/ath12k patches aren't hitting the ath11k/ath12k lists so they aren't on my immediate radar. Also note I'm not taking any of these __counted_by() changes without actually either 1) testing with running code o

Re: [PATCH v2][next] mips: sgi-ip22: Replace "s[n]?printf" with sysfs_emit in sysfs callbacks

2024-10-24 Thread Maciej W. Rozycki
On Thu, 17 Oct 2024, Paulo Miguel Almeida wrote: > Replace open-coded pieces with sysfs_emit() helper in sysfs .show() > callbacks. > > Signed-off-by: Paulo Miguel Almeida > --- > Changelog: > - v2: amend commit message (Req: Maciej W. Rozycki) > - v1: https://lore.kernel.org/lkml/zw2grqkbx8z8d.

[PATCH v2 0/4][next] net: Avoid thousands of -Wflex-array-member-not-at-end warnings

2024-10-24 Thread Gustavo A. R. Silva
This series aims to resolve thousands of -Wflex-array-member-not-at-end warnings by introducing `struct sockaddr_legacy`. The intention is to use it to replace the type of several struct members in the middle of composite structures, currently of type `struct sockaddr`. These middle struct members

[PATCH v2 4/4][next] uapi: net: Avoid -Wflex-array-member-not-at-end warnings

2024-10-24 Thread Gustavo A. R. Silva
-Wflex-array-member-not-at-end was introduced in GCC-14, and we are getting ready to enable it, globally. Address the following warnings by changing the type of the middle struct members in a couple of composite structs, which are currently causing trouble, from `struct sockaddr` to `struct __kern

[PATCH v2 3/4][next] uapi: net: arp: Avoid -Wflex-array-member-not-at-end warnings

2024-10-24 Thread Gustavo A. R. Silva
-Wflex-array-member-not-at-end was introduced in GCC-14, and we are getting ready to enable it, globally. Address the following warnings by changing the type of the middle struct members in a couple of composite structs, which are currently causing trouble, from `struct sockaddr` to `struct __kern

[PATCH v2 1/4][next] uapi: socket: Introduce struct sockaddr_legacy

2024-10-24 Thread Gustavo A. R. Silva
We are currently working on enabling the -Wflex-array-member-not-at-end compiler option. This option has helped us detect several objects of the type `struct sockaddr` that appear in the middle of composite structures like `struct rtentry`, `struct compat_rtentry`, and others: include/uapi/linux/w

[PATCH v2 2/2] wifi: ath12k: annotate channel of struct ath12k_wmi_scan_chan_list_arg with __counted_by

2024-10-24 Thread Dmitry Antipov
According to 'ath12k_reg_update_chan_list()', annotate flexible array member 'channel' of 'struct ath12k_wmi_scan_chan_list_arg' with '__counted_by()' attribute to improve runtime bounds checking when CONFIG_UBSAN_BOUNDS is enabled. Compile tested only. Signed-off-by: Dmitry Antipov --- v2: fix t

[PATCH v2 1/3] wifi: ath11k: annotate skb of struct ath11k_ce_ring with __counted_by

2024-10-24 Thread Dmitry Antipov
According to 'ath11k_ce_alloc_ring()', annotate flexible array member 'skb' of 'struct ath11k_ce_ring' with '__counted_by()' to improve runtime bounds checking when CONFIG_UBSAN_BOUNDS is enabled. Compile tested only. Signed-off-by: Dmitry Antipov --- v2: add related comment in ath11k_ce_alloc_ri

[PATCH v2 2/3] wifi: ath11k: annotate ch_param of struct scan_chan_list_params with __counted_by

2024-10-24 Thread Dmitry Antipov
According to 'ath11k_reg_update_chan_list()', annotate flexible array member 'ch_param' of 'struct scan_chan_list_params' with '__counted_by()' attribute to improve runtime bounds checking when CONFIG_UBSAN_BOUNDS is enabled. Compile tested only. Signed-off-by: Dmitry Antipov --- v2: add related

[PATCH v2 3/3] wifi: ath11k: miscellaneous spelling fixes

2024-10-24 Thread Dmitry Antipov
Correct spelling here and there as suggested by codespell. Signed-off-by: Dmitry Antipov --- v2: join the series --- drivers/net/wireless/ath/ath11k/hal.h | 6 +++--- drivers/net/wireless/ath/ath11k/mac.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/wirele