Skip to content

Commit 6e477eb

Browse files
committed
ALSA: hda: acpi: Make driver's match data const static
JIRA: https://issues.redhat.com/browse/RHEL-102695 commit aca89f1 From: Takashi Iwai <tiwai@suse.de> The driver's match data, nvidia_hda_data, is referred only locally, and should be static. Also, as it's a read-only data, it can be gracefully const, too. Fixes: 4b214c9 ("ALSA: hda - Add new driver for HDA controllers listed via ACPI") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202505230426.k8ruTgnr-lkp@intel.com/ Link: https://patch.msgid.link/20250522205252.4056-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
1 parent bb28da9 commit 6e477eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/pci/hda/hda_acpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ static const struct dev_pm_ops hda_acpi_pm = {
297297
SYSTEM_SLEEP_PM_OPS(hda_acpi_suspend, hda_acpi_resume)
298298
};
299299

300-
struct hda_data nvidia_hda_data = {
300+
static const struct hda_data nvidia_hda_data = {
301301
.short_name = "NVIDIA",
302302
.long_name = "NVIDIA HDA Controller",
303303
.flags = AZX_DCAPS_CORBRP_SELF_CLEAR,

0 commit comments

Comments
 (0)