Re: wifi: mwifiex: mark OF related data as maybe unused
From: Kalle Valo
Date: Wed Mar 15 2023 - 06:05:36 EST
Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx> wrote:
> The driver can be compile tested with !CONFIG_OF making certain data
> unused:
>
> drivers/net/wireless/marvell/mwifiex/sdio.c:498:34: error: ‘mwifiex_sdio_of_match_table’ defined but not used [-Werror=unused-const-variable=]
> drivers/net/wireless/marvell/mwifiex/pcie.c:175:34: error: ‘mwifiex_pcie_of_match_table’ defined but not used [-Werror=unused-const-variable=]
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>
> Reviewed-by: Simon Horman <simon.horman@xxxxxxxxxxxx>
Patch applied to wireless.git, thanks.
139f6973bf14 wifi: mwifiex: mark OF related data as maybe unused
--
https://patchwork.kernel.org/project/linux-wireless/patch/20230312132523.352182-1-krzysztof.kozlowski@xxxxxxxxxx/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches