wifi: brcmsmac: fix gnu_printf warnings
authorKalle Valo <kvalo@kernel.org>
Tue, 13 Jun 2023 14:09:16 +0000 (17:09 +0300)
committerKalle Valo <kvalo@kernel.org>
Fri, 16 Jun 2023 09:24:15 +0000 (12:24 +0300)
commit4b6ec74ec476c775b44d49ecd8cd48334db8e798
tree157b42f11da3defe52db6e719292065d6c7d2f95
parent56714e5f1255fc318b65b6b338a0d8ebc44c920c
wifi: brcmsmac: fix gnu_printf warnings

With GCC 13.1 and W=1 brcmsmac has warnings like this:

./include/trace/stages/stage5_get_offsets.h:23:31: warning: function 'trace_event_get_offsets_brcms_dbg' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]

Add a workaround which disables -Wsuggest-attribute=format in
brcms_trace_brcmsmac_msg.h. I see similar workarounds in other drivers as well.

Compile tested only.

Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230613140918.389690-3-kvalo@kernel.org
drivers/net/wireless/broadcom/brcm80211/brcmsmac/brcms_trace_brcmsmac_msg.h