* [PATCH] scsi: hisi: remove incorrect ACPI_PTR annotations
@ 2025-02-25 16:36 Arnd Bergmann
2025-02-26 2:13 ` Damien Le Moal
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Arnd Bergmann @ 2025-02-25 16:36 UTC (permalink / raw)
To: Yihang Li, James E.J. Bottomley, Martin K. Petersen
Cc: Arnd Bergmann, Damien Le Moal, John Garry, Bart Van Assche,
Uwe Kleine-König, Jason Yan, Igor Pylypiv, linux-scsi,
linux-kernel
From: Arnd Bergmann <arnd@arndb.de>
Building with W=1 shows a warning about sas_v2_acpi_match being unused when
CONFIG_OF is disabled:
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c:3635:36: error: unused variable 'sas_v2_acpi_match' [-Werror,-Wunused-const-variable]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 2 +-
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
index bb78e53c66e2..6621d633b2cc 100644
--- a/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
+++ b/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c
@@ -1806,7 +1806,7 @@ static struct platform_driver hisi_sas_v1_driver = {
.driver = {
.name = DRV_NAME,
.of_match_table = sas_v1_of_match,
- .acpi_match_table = ACPI_PTR(sas_v1_acpi_match),
+ .acpi_match_table = sas_v1_acpi_match,
},
};
diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
index 71cd5b4450c2..3cc4cddcb655 100644
--- a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
+++ b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
@@ -3653,7 +3653,7 @@ static struct platform_driver hisi_sas_v2_driver = {
.driver = {
.name = DRV_NAME,
.of_match_table = sas_v2_of_match,
- .acpi_match_table = ACPI_PTR(sas_v2_acpi_match),
+ .acpi_match_table = sas_v2_acpi_match,
},
};
--
2.39.5
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH] scsi: hisi: remove incorrect ACPI_PTR annotations
2025-02-25 16:36 [PATCH] scsi: hisi: remove incorrect ACPI_PTR annotations Arnd Bergmann
@ 2025-02-26 2:13 ` Damien Le Moal
2025-02-26 3:23 ` Yihang Li
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Damien Le Moal @ 2025-02-26 2:13 UTC (permalink / raw)
To: Arnd Bergmann, Yihang Li, James E.J. Bottomley,
Martin K. Petersen
Cc: Arnd Bergmann, John Garry, Bart Van Assche, Uwe Kleine-König,
Jason Yan, Igor Pylypiv, linux-scsi, linux-kernel
On 2/26/25 1:36 AM, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> Building with W=1 shows a warning about sas_v2_acpi_match being unused when
> CONFIG_OF is disabled:
>
> drivers/scsi/hisi_sas/hisi_sas_v2_hw.c:3635:36: error: unused variable 'sas_v2_acpi_match' [-Werror,-Wunused-const-variable]
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Looks OK to me.
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
--
Damien Le Moal
Western Digital Research
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH] scsi: hisi: remove incorrect ACPI_PTR annotations
2025-02-25 16:36 [PATCH] scsi: hisi: remove incorrect ACPI_PTR annotations Arnd Bergmann
2025-02-26 2:13 ` Damien Le Moal
@ 2025-02-26 3:23 ` Yihang Li
2025-03-04 5:12 ` Uwe Kleine-König
2025-03-04 2:04 ` Martin K. Petersen
2025-03-11 1:19 ` Martin K. Petersen
3 siblings, 1 reply; 7+ messages in thread
From: Yihang Li @ 2025-02-26 3:23 UTC (permalink / raw)
To: Arnd Bergmann, James E.J. Bottomley, Martin K. Petersen
Cc: Arnd Bergmann, Damien Le Moal, John Garry, Bart Van Assche,
Uwe Kleine-König, Jason Yan, Igor Pylypiv, linux-scsi,
linux-kernel, liyihang9
On 2025/2/26 0:36, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> Building with W=1 shows a warning about sas_v2_acpi_match being unused when
> CONFIG_OF is disabled:
>
> drivers/scsi/hisi_sas/hisi_sas_v2_hw.c:3635:36: error: unused variable 'sas_v2_acpi_match' [-Werror,-Wunused-const-variable]
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Looks good. So Reviewed-by: Yihang Li <liyihang9@huawei.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] scsi: hisi: remove incorrect ACPI_PTR annotations
2025-02-26 3:23 ` Yihang Li
@ 2025-03-04 5:12 ` Uwe Kleine-König
2025-03-05 1:36 ` Yihang Li
0 siblings, 1 reply; 7+ messages in thread
From: Uwe Kleine-König @ 2025-03-04 5:12 UTC (permalink / raw)
To: Yihang Li
Cc: Arnd Bergmann, James E.J. Bottomley, Martin K. Petersen,
Arnd Bergmann, Damien Le Moal, John Garry, Bart Van Assche,
Jason Yan, Igor Pylypiv, linux-scsi, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 874 bytes --]
Hello,
On Wed, Feb 26, 2025 at 11:23:18AM +0800, Yihang Li wrote:
> On 2025/2/26 0:36, Arnd Bergmann wrote:
> > From: Arnd Bergmann <arnd@arndb.de>
> >
> > Building with W=1 shows a warning about sas_v2_acpi_match being unused when
> > CONFIG_OF is disabled:
> >
> > drivers/scsi/hisi_sas/hisi_sas_v2_hw.c:3635:36: error: unused variable 'sas_v2_acpi_match' [-Werror,-Wunused-const-variable]
> >
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>
> Looks good. So Reviewed-by: Yihang Li <liyihang9@huawei.com>
If you put your Reviewed-by tag in a separate line, the tooling that
most maintainers use pick it up automatically. Martin applied your patch
(currently as commit 7a9c0476d4073e742f474e71feeef4f54add4bc9 in
https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git 6.15/scsi-staging
) indeed without your tag.
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] scsi: hisi: remove incorrect ACPI_PTR annotations
2025-03-04 5:12 ` Uwe Kleine-König
@ 2025-03-05 1:36 ` Yihang Li
0 siblings, 0 replies; 7+ messages in thread
From: Yihang Li @ 2025-03-05 1:36 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Arnd Bergmann, James E.J. Bottomley, Martin K. Petersen,
Arnd Bergmann, Damien Le Moal, John Garry, Bart Van Assche,
Jason Yan, Igor Pylypiv, linux-scsi, linux-kernel, liyihang9
On 2025/3/4 13:12, Uwe Kleine-König wrote:
> Hello,
>
> On Wed, Feb 26, 2025 at 11:23:18AM +0800, Yihang Li wrote:
>> On 2025/2/26 0:36, Arnd Bergmann wrote:
>>> From: Arnd Bergmann <arnd@arndb.de>
>>>
>>> Building with W=1 shows a warning about sas_v2_acpi_match being unused when
>>> CONFIG_OF is disabled:
>>>
>>> drivers/scsi/hisi_sas/hisi_sas_v2_hw.c:3635:36: error: unused variable 'sas_v2_acpi_match' [-Werror,-Wunused-const-variable]
>>>
>>> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>>
>> Looks good. So Reviewed-by: Yihang Li <liyihang9@huawei.com>
>
> If you put your Reviewed-by tag in a separate line, the tooling that
> most maintainers use pick it up automatically. Martin applied your patch
> (currently as commit 7a9c0476d4073e742f474e71feeef4f54add4bc9 in
> https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git 6.15/scsi-staging
> ) indeed without your tag.
>
Ok, thanks for the reminder. I'll pay attention next time.
Thanks
Yihang
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] scsi: hisi: remove incorrect ACPI_PTR annotations
2025-02-25 16:36 [PATCH] scsi: hisi: remove incorrect ACPI_PTR annotations Arnd Bergmann
2025-02-26 2:13 ` Damien Le Moal
2025-02-26 3:23 ` Yihang Li
@ 2025-03-04 2:04 ` Martin K. Petersen
2025-03-11 1:19 ` Martin K. Petersen
3 siblings, 0 replies; 7+ messages in thread
From: Martin K. Petersen @ 2025-03-04 2:04 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Yihang Li, James E.J. Bottomley, Martin K. Petersen,
Arnd Bergmann, Damien Le Moal, John Garry, Bart Van Assche,
Uwe Kleine-König, Jason Yan, Igor Pylypiv, linux-scsi,
linux-kernel
Arnd,
> Building with W=1 shows a warning about sas_v2_acpi_match being unused
> when CONFIG_OF is disabled:
Applied to 6.15/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] scsi: hisi: remove incorrect ACPI_PTR annotations
2025-02-25 16:36 [PATCH] scsi: hisi: remove incorrect ACPI_PTR annotations Arnd Bergmann
` (2 preceding siblings ...)
2025-03-04 2:04 ` Martin K. Petersen
@ 2025-03-11 1:19 ` Martin K. Petersen
3 siblings, 0 replies; 7+ messages in thread
From: Martin K. Petersen @ 2025-03-11 1:19 UTC (permalink / raw)
To: Yihang Li, James E.J. Bottomley, Arnd Bergmann
Cc: Martin K . Petersen, Arnd Bergmann, Damien Le Moal, John Garry,
Bart Van Assche, Uwe Kleine-König, Jason Yan, Igor Pylypiv,
linux-scsi, linux-kernel
On Tue, 25 Feb 2025 17:36:27 +0100, Arnd Bergmann wrote:
> Building with W=1 shows a warning about sas_v2_acpi_match being unused when
> CONFIG_OF is disabled:
>
> drivers/scsi/hisi_sas/hisi_sas_v2_hw.c:3635:36: error: unused variable 'sas_v2_acpi_match' [-Werror,-Wunused-const-variable]
>
>
Applied to 6.15/scsi-queue, thanks!
[1/1] scsi: hisi: remove incorrect ACPI_PTR annotations
https://git.kernel.org/mkp/scsi/c/7a9c0476d407
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-03-11 1:20 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-25 16:36 [PATCH] scsi: hisi: remove incorrect ACPI_PTR annotations Arnd Bergmann
2025-02-26 2:13 ` Damien Le Moal
2025-02-26 3:23 ` Yihang Li
2025-03-04 5:12 ` Uwe Kleine-König
2025-03-05 1:36 ` Yihang Li
2025-03-04 2:04 ` Martin K. Petersen
2025-03-11 1:19 ` Martin K. Petersen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox