nfc: trf7970a: mark OF related data as maybe unused
Subsystems (4)
PATCH 1/1 nfc: trf7970a: mark OF related data as maybe unused
The driver can be compile tested with !CONFIG_OF making certain data unused:
drivers/nfc/trf7970a.c:2232:34: error: ‘trf7970a_of_match’ defined but not used [-Werror=unused-const-variable=]
--- drivers/nfc/trf7970a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nfc/trf7970a.c +1 -1
@@ -2229,7 +2229,7 @@ static const struct dev_pm_ops trf7970a_pm_ops = { trf7970a_pm_runtime_resume, NULL) }; -static const struct of_device_id trf7970a_of_match[] = { +static const struct of_device_id trf7970a_of_match[]__maybe_unused = { {.compatible ="ti,trf7970a" ,}, {}, };
Signature · 1 line
2.34.1
Quoted 6 lines · Krzysztof Kozlowski
The driver can be compile tested with !CONFIG_OF making certain data unused:
drivers/nfc/trf7970a.c:2232:34: error: ‘trf7970a_of_match’ defined but not used [-Werror=unused-const-variable=]Signed-off-by Krzysztof Kozlowski <[email protected]>
Quoted 25 lines · Krzysztof Kozlowski
The driver can be compile tested with !CONFIG_OF making certain data unused:
drivers/nfc/trf7970a.c:2232:34: error: ‘trf7970a_of_match’ defined but not used [-Werror=unused-const-variable=]Signed-off-by Krzysztof Kozlowski <[email protected]>--- drivers/nfc/trf7970a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/nfc/trf7970a.c +1
-1@@ -2229,7 +2229,7 @@ static const struct dev_pm_ops trf7970a_pm_ops = { trf7970a_pm_runtime_resume, NULL) }; -static const struct of_device_id trf7970a_of_match[] = { +static const struct of_device_id trf7970a_of_match[]__maybe_unused = { {.compatible ="ti,trf7970a" ,}, {}, };Signature · 1 line
2.34.1
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Quoted 8 lines · On Sat, 11 Mar 2023 12:13:28 +0100 you wrote:
The driver can be compile tested with !CONFIG_OF making certain data unused:
drivers/nfc/trf7970a.c:2232:34: error: ‘trf7970a_of_match’ defined but not used [-Werror=unused-const-variable=]Signed-off-by Krzysztof Kozlowski <[email protected]>[...]
Here is the summary with links:
- nfc: trf7970a: mark OF related data as maybe unused
https://git.kernel.org/netdev/net-next/c/a52ed50a04de
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html