Skip to content

Commit 7a9c047

Browse files
arndbmartinkpetersen
authored andcommitted
scsi: hisi_sas: Remove incorrect ACPI_PTR annotations
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Damien Le Moal <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 3d82569 commit 7a9c047

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/scsi/hisi_sas/hisi_sas_v1_hw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@ static struct platform_driver hisi_sas_v1_driver = {
18061806
.driver = {
18071807
.name = DRV_NAME,
18081808
.of_match_table = sas_v1_of_match,
1809-
.acpi_match_table = ACPI_PTR(sas_v1_acpi_match),
1809+
.acpi_match_table = sas_v1_acpi_match,
18101810
},
18111811
};
18121812

drivers/scsi/hisi_sas/hisi_sas_v2_hw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3653,7 +3653,7 @@ static struct platform_driver hisi_sas_v2_driver = {
36533653
.driver = {
36543654
.name = DRV_NAME,
36553655
.of_match_table = sas_v2_of_match,
3656-
.acpi_match_table = ACPI_PTR(sas_v2_acpi_match),
3656+
.acpi_match_table = sas_v2_acpi_match,
36573657
},
36583658
};
36593659

0 commit comments

Comments
 (0)