diff mbox series

scsi: hisi: remove incorrect ACPI_PTR annotations

Message ID 20250225163637.4169300-1-arnd@kernel.org (mailing list archive)
State Accepted
Headers show
Series scsi: hisi: remove incorrect ACPI_PTR annotations | expand

Commit Message

Arnd Bergmann Feb. 25, 2025, 4:36 p.m. UTC
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(-)

Comments

Damien Le Moal Feb. 26, 2025, 2:13 a.m. UTC | #1
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>
Yihang Li Feb. 26, 2025, 3:23 a.m. UTC | #2
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>
Martin K. Petersen March 4, 2025, 2:04 a.m. UTC | #3
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!
Uwe Kleine-König March 4, 2025, 5:12 a.m. UTC | #4
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
Yihang Li March 5, 2025, 1:36 a.m. UTC | #5
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
Martin K. Petersen March 11, 2025, 1:19 a.m. UTC | #6
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
diff mbox series

Patch

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,
 	},
 };