* [PATCH] tpm: ftpm_tee: remove incorrect of_match_ptr annotation
@ 2025-02-25 16:37 Arnd Bergmann
2025-02-27 10:08 ` Sumit Garg
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Arnd Bergmann @ 2025-02-25 16:37 UTC (permalink / raw)
To: Peter Huewe, Jarkko Sakkinen
Cc: Arnd Bergmann, Jason Gunthorpe, Randy Dunlap, linux-integrity,
linux-kernel
From: Arnd Bergmann <arnd@arndb.de>
Building with W=1 shows a warning about of_ftpm_tee_ids being unused when
CONFIG_OF is disabled:
drivers/char/tpm/tpm_ftpm_tee.c:356:34: error: unused variable 'of_ftpm_tee_ids' [-Werror,-Wunused-const-variable]
Drop the unnecessary of_match_ptr().
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
An earlier version had this combined with other changes, I made it
a separate patch now
---
drivers/char/tpm/tpm_ftpm_tee.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/char/tpm/tpm_ftpm_tee.c b/drivers/char/tpm/tpm_ftpm_tee.c
index 139556b21cc6..8d9209dfc384 100644
--- a/drivers/char/tpm/tpm_ftpm_tee.c
+++ b/drivers/char/tpm/tpm_ftpm_tee.c
@@ -362,7 +362,7 @@ MODULE_DEVICE_TABLE(of, of_ftpm_tee_ids);
static struct platform_driver ftpm_tee_plat_driver = {
.driver = {
.name = "ftpm-tee",
- .of_match_table = of_match_ptr(of_ftpm_tee_ids),
+ .of_match_table = of_ftpm_tee_ids,
},
.shutdown = ftpm_plat_tee_shutdown,
.probe = ftpm_plat_tee_probe,
--
2.39.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] tpm: ftpm_tee: remove incorrect of_match_ptr annotation
2025-02-25 16:37 [PATCH] tpm: ftpm_tee: remove incorrect of_match_ptr annotation Arnd Bergmann
@ 2025-02-27 10:08 ` Sumit Garg
2025-03-01 1:58 ` Jarkko Sakkinen
2025-03-02 19:11 ` Jarkko Sakkinen
2 siblings, 0 replies; 4+ messages in thread
From: Sumit Garg @ 2025-02-27 10:08 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Peter Huewe, Jarkko Sakkinen, Arnd Bergmann, Jason Gunthorpe,
Randy Dunlap, linux-integrity, linux-kernel
On Tue, Feb 25, 2025 at 05:37:15PM +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> Building with W=1 shows a warning about of_ftpm_tee_ids being unused when
> CONFIG_OF is disabled:
>
> drivers/char/tpm/tpm_ftpm_tee.c:356:34: error: unused variable 'of_ftpm_tee_ids' [-Werror,-Wunused-const-variable]
>
> Drop the unnecessary of_match_ptr().
>
> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> An earlier version had this combined with other changes, I made it
> a separate patch now
> ---
> drivers/char/tpm/tpm_ftpm_tee.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Reviewed-by: Sumit Garg <sumit.garg@kernel.org>
-Sumit
> diff --git a/drivers/char/tpm/tpm_ftpm_tee.c b/drivers/char/tpm/tpm_ftpm_tee.c
> index 139556b21cc6..8d9209dfc384 100644
> --- a/drivers/char/tpm/tpm_ftpm_tee.c
> +++ b/drivers/char/tpm/tpm_ftpm_tee.c
> @@ -362,7 +362,7 @@ MODULE_DEVICE_TABLE(of, of_ftpm_tee_ids);
> static struct platform_driver ftpm_tee_plat_driver = {
> .driver = {
> .name = "ftpm-tee",
> - .of_match_table = of_match_ptr(of_ftpm_tee_ids),
> + .of_match_table = of_ftpm_tee_ids,
> },
> .shutdown = ftpm_plat_tee_shutdown,
> .probe = ftpm_plat_tee_probe,
> --
> 2.39.5
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] tpm: ftpm_tee: remove incorrect of_match_ptr annotation
2025-02-25 16:37 [PATCH] tpm: ftpm_tee: remove incorrect of_match_ptr annotation Arnd Bergmann
2025-02-27 10:08 ` Sumit Garg
@ 2025-03-01 1:58 ` Jarkko Sakkinen
2025-03-02 19:11 ` Jarkko Sakkinen
2 siblings, 0 replies; 4+ messages in thread
From: Jarkko Sakkinen @ 2025-03-01 1:58 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Peter Huewe, Arnd Bergmann, Jason Gunthorpe, Randy Dunlap,
linux-integrity, linux-kernel
On Tue, Feb 25, 2025 at 05:37:15PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de>
>
> Building with W=1 shows a warning about of_ftpm_tee_ids being unused when
> CONFIG_OF is disabled:
>
> drivers/char/tpm/tpm_ftpm_tee.c:356:34: error: unused variable 'of_ftpm_tee_ids' [-Werror,-Wunused-const-variable]
>
> Drop the unnecessary of_match_ptr().
>
> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
I've been on holiday (back at work on Monday).
Moving to my TODO folder, thanks.
> ---
> An earlier version had this combined with other changes, I made it
> a separate patch now
> ---
> drivers/char/tpm/tpm_ftpm_tee.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/char/tpm/tpm_ftpm_tee.c b/drivers/char/tpm/tpm_ftpm_tee.c
> index 139556b21cc6..8d9209dfc384 100644
> --- a/drivers/char/tpm/tpm_ftpm_tee.c
> +++ b/drivers/char/tpm/tpm_ftpm_tee.c
> @@ -362,7 +362,7 @@ MODULE_DEVICE_TABLE(of, of_ftpm_tee_ids);
> static struct platform_driver ftpm_tee_plat_driver = {
> .driver = {
> .name = "ftpm-tee",
> - .of_match_table = of_match_ptr(of_ftpm_tee_ids),
> + .of_match_table = of_ftpm_tee_ids,
> },
> .shutdown = ftpm_plat_tee_shutdown,
> .probe = ftpm_plat_tee_probe,
> --
> 2.39.5
>
BR, Jarkko
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] tpm: ftpm_tee: remove incorrect of_match_ptr annotation
2025-02-25 16:37 [PATCH] tpm: ftpm_tee: remove incorrect of_match_ptr annotation Arnd Bergmann
2025-02-27 10:08 ` Sumit Garg
2025-03-01 1:58 ` Jarkko Sakkinen
@ 2025-03-02 19:11 ` Jarkko Sakkinen
2 siblings, 0 replies; 4+ messages in thread
From: Jarkko Sakkinen @ 2025-03-02 19:11 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Peter Huewe, Arnd Bergmann, Jason Gunthorpe, Randy Dunlap,
linux-integrity, linux-kernel
On Tue, Feb 25, 2025 at 05:37:15PM +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> Building with W=1 shows a warning about of_ftpm_tee_ids being unused when
> CONFIG_OF is disabled:
>
> drivers/char/tpm/tpm_ftpm_tee.c:356:34: error: unused variable 'of_ftpm_tee_ids' [-Werror,-Wunused-const-variable]
>
> Drop the unnecessary of_match_ptr().
>
> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> An earlier version had this combined with other changes, I made it
> a separate patch now
> ---
> drivers/char/tpm/tpm_ftpm_tee.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/char/tpm/tpm_ftpm_tee.c b/drivers/char/tpm/tpm_ftpm_tee.c
> index 139556b21cc6..8d9209dfc384 100644
> --- a/drivers/char/tpm/tpm_ftpm_tee.c
> +++ b/drivers/char/tpm/tpm_ftpm_tee.c
> @@ -362,7 +362,7 @@ MODULE_DEVICE_TABLE(of, of_ftpm_tee_ids);
> static struct platform_driver ftpm_tee_plat_driver = {
> .driver = {
> .name = "ftpm-tee",
> - .of_match_table = of_match_ptr(of_ftpm_tee_ids),
> + .of_match_table = of_ftpm_tee_ids,
> },
> .shutdown = ftpm_plat_tee_shutdown,
> .probe = ftpm_plat_tee_probe,
> --
> 2.39.5
>
It's now in my master (back from holidays)
BR, Jarkko
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-03-02 19:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-25 16:37 [PATCH] tpm: ftpm_tee: remove incorrect of_match_ptr annotation Arnd Bergmann
2025-02-27 10:08 ` Sumit Garg
2025-03-01 1:58 ` Jarkko Sakkinen
2025-03-02 19:11 ` Jarkko Sakkinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox