[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200901090318.3F875C433CA@smtp.codeaurora.org>
Date: Tue, 1 Sep 2020 09:03:18 +0000 (UTC)
From: Kalle Valo <kvalo@...eaurora.org>
To: Lee Jones <lee.jones@...aro.org>
Cc: davem@...emloft.net, kuba@...nel.org, linux-kernel@...r.kernel.org,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
Lee Jones <lee.jones@...aro.org>, Jouni Malinen <j@...fi>
Subject: Re: [01/28] hostap: Mark 'freq_list' as __maybe_unused
Lee Jones <lee.jones@...aro.org> wrote:
> 'freq_list' is used in some source files which include hostap.h, but
> not all. The compiler complains about the times it's not used. Mark
> it as __maybe_used to tell the compiler that this is not only okay,
> it's expected.
>
> Fixes the following W=1 kernel build warning(s):
>
> In file included from drivers/net/wireless/intersil/hostap/hostap_80211_tx.c:9:
> drivers/net/wireless/intersil/hostap/hostap.h:11:19: warning: ‘freq_list’ defined but not used [-Wunused-const-variable=]
> In file included from drivers/net/wireless/intersil/hostap/hostap_main.c:31:
> drivers/net/wireless/intersil/hostap/hostap.h:11:19: warning: ‘freq_list’ defined but not used [-Wunused-const-variable=]
> In file included from drivers/net/wireless/intersil/hostap/hostap_proc.c:10:
> drivers/net/wireless/intersil/hostap/hostap.h:11:19: warning: ‘freq_list’ defined but not used [-Wunused-const-variable=]
> In file included from drivers/net/wireless/intersil/hostap/hostap_hw.c:50,
> from drivers/net/wireless/intersil/hostap/hostap_cs.c:196:
> At top level:
> drivers/net/wireless/intersil/hostap/hostap.h:11:19: warning: ‘freq_list’ defined but not used [-Wunused-const-variable=]
> In file included from drivers/net/wireless/intersil/hostap/hostap_hw.c:50,
> from drivers/net/wireless/intersil/hostap/hostap_pci.c:221:
> At top level:
> drivers/net/wireless/intersil/hostap/hostap.h:11:19: warning: ‘freq_list’ defined but not used [-Wunused-const-variable=]
> In file included from drivers/net/wireless/intersil/hostap/hostap_hw.c:50,
> from drivers/net/wireless/intersil/hostap/hostap_plx.c:264:
> At top level:
> drivers/net/wireless/intersil/hostap/hostap.h:11:19: warning: ‘freq_list’ defined but not used [-Wunused-const-variable=]
>
> Cc: Jouni Malinen <j@...fi>
> Cc: Kalle Valo <kvalo@...eaurora.org>
> Cc: "David S. Miller" <davem@...emloft.net>
> Cc: Jakub Kicinski <kuba@...nel.org>
> Cc: linux-wireless@...r.kernel.org
> Cc: netdev@...r.kernel.org
> Signed-off-by: Lee Jones <lee.jones@...aro.org>
10 patches applied to wireless-drivers-next.git, thanks.
34537d4924ba hostap: Mark 'freq_list' as __maybe_unused
470d48c1c4c6 rsi: Fix some kernel-doc issues
2fc4c9ff1606 rsi: File header should not be kernel-doc
9833f5034597 libertas_tf: Demote non-conformant kernel-doc headers
25ced81e288d wlcore: cmd: Fix some parameter description disparities
9554663b8c57 libertas_tf: Fix a bunch of function doc formatting issues
6182abd858f7 iwlegacy: debug: Demote seemingly unintentional kerneldoc header
debdbb0c1b20 hostap: hostap_ap: Mark 'txt' as __always_unused
e2eb189e7660 cw1200: wsm: Remove 'dummy' variables
f696d724358c libertas: Fix 'timer_list' stored private data related dot-rot
--
https://patchwork.kernel.org/patch/11723193/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists