Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: hda: acpi: Make driver's match data const static

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: 4b214c9bbe26 ("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>

+1 -1
+1 -1
sound/pci/hda/hda_acpi.c
··· 296 296 SYSTEM_SLEEP_PM_OPS(hda_acpi_suspend, hda_acpi_resume) 297 297 }; 298 298 299 - struct hda_data nvidia_hda_data = { 299 + static const struct hda_data nvidia_hda_data = { 300 300 .short_name = "NVIDIA", 301 301 .long_name = "NVIDIA HDA Controller", 302 302 .flags = AZX_DCAPS_CORBRP_SELF_CLEAR,