* [PATCH] fpga: versal: remove incorrect of_match_ptr annotation
@ 2025-02-25 16:35 Arnd Bergmann
2025-03-01 9:38 ` Xu Yilun
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2025-02-25 16:35 UTC (permalink / raw)
To: Moritz Fischer, Wu Hao, Xu Yilun
Cc: Arnd Bergmann, Tom Rix, linux-fpga, linux-kernel
From: Arnd Bergmann <arnd@arndb.de>
Building with W=1 shows a warning about versal_fpga_of_match being unused when
CONFIG_OF is disabled:
drivers/fpga/versal-fpga.c:62:34: error: unused variable 'versal_fpga_of_match' [-Werror,-Wunused-const-variable]
Acked-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/fpga/versal-fpga.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/fpga/versal-fpga.c b/drivers/fpga/versal-fpga.c
index 3710e8f01be2..e6189106c468 100644
--- a/drivers/fpga/versal-fpga.c
+++ b/drivers/fpga/versal-fpga.c
@@ -69,7 +69,7 @@ static struct platform_driver versal_fpga_driver = {
.probe = versal_fpga_probe,
.driver = {
.name = "versal_fpga_manager",
- .of_match_table = of_match_ptr(versal_fpga_of_match),
+ .of_match_table = versal_fpga_of_match,
},
};
module_platform_driver(versal_fpga_driver);
--
2.39.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fpga: versal: remove incorrect of_match_ptr annotation
2025-02-25 16:35 [PATCH] fpga: versal: remove incorrect of_match_ptr annotation Arnd Bergmann
@ 2025-03-01 9:38 ` Xu Yilun
0 siblings, 0 replies; 2+ messages in thread
From: Xu Yilun @ 2025-03-01 9:38 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Moritz Fischer, Wu Hao, Xu Yilun, Arnd Bergmann, Tom Rix,
linux-fpga, linux-kernel
On Tue, Feb 25, 2025 at 05:35:07PM +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> Building with W=1 shows a warning about versal_fpga_of_match being unused when
> CONFIG_OF is disabled:
>
> drivers/fpga/versal-fpga.c:62:34: error: unused variable 'versal_fpga_of_match' [-Werror,-Wunused-const-variable]
>
> Acked-by: Xu Yilun <yilun.xu@intel.com>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Sorry, I thought someone would take the whole series.
Applied to for-next.
Thanks,
Yilun
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-01 9:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-25 16:35 [PATCH] fpga: versal: remove incorrect of_match_ptr annotation Arnd Bergmann
2025-03-01 9:38 ` Xu Yilun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).