mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-19 07:49:02 -05:00
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 <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250225163637.4169300-1-arnd@kernel.org
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
3d82569039
commit
7a9c0476d4
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user