dmi: Mark all struct dmi_system_id instances const
authorChristoph Hellwig <hch@lst.de>
Thu, 14 Sep 2017 09:59:30 +0000 (11:59 +0200)
committerJean Delvare <jdelvare@suse.de>
Thu, 14 Sep 2017 09:59:30 +0000 (11:59 +0200)
commit6faadbbb7f9da70ce484f98f72223c20125a1009
treee6a72014b25bd4b68588772a5630f49ee5526ae7
parent46c1e79fee417f151547aa46fae04ab06cb666f4
dmi: Mark all struct dmi_system_id instances const

... and __initconst if applicable.

Based on similar work for an older kernel in the Grsecurity patch.

[JD: fix toshiba-wmi build]
[JD: add htcpen]
[JD: move __initconst where checkscript wants it]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
48 files changed:
arch/x86/kernel/acpi/boot.c
arch/x86/kernel/apm_32.c
arch/x86/kernel/io_delay.c
arch/x86/kernel/reboot.c
arch/x86/pci/irq.c
arch/x86/power/cpu.c
drivers/acpi/acpi_video.c
drivers/acpi/blacklist.c
drivers/acpi/bus.c
drivers/acpi/ec.c
drivers/acpi/osi.c
drivers/acpi/pci_slot.c
drivers/acpi/processor_pdc.c
drivers/acpi/sleep.c
drivers/acpi/thermal.c
drivers/char/sonypi.c
drivers/cpufreq/powernow-k7.c
drivers/firmware/google/gsmi.c
drivers/firmware/google/memconsole-x86-legacy.c
drivers/gpu/drm/nouveau/nvkm/subdev/gpio/base.c
drivers/hwmon/acpi_power_meter.c
drivers/hwmon/applesmc.c
drivers/hwmon/dell-smm-hwmon.c
drivers/input/touchscreen/htcpen.c
drivers/leds/leds-clevo-mail.c
drivers/leds/leds-ss4200.c
drivers/mfd/kempld-core.c
drivers/net/ethernet/marvell/skge.c
drivers/net/ethernet/via/via-rhine.c
drivers/pci/pcie/portdrv_pci.c
drivers/pci/quirks.c
drivers/platform/chrome/chromeos_laptop.c
drivers/platform/chrome/chromeos_pstore.c
drivers/platform/chrome/cros_ec_lpc.c
drivers/platform/x86/compal-laptop.c
drivers/platform/x86/hdaps.c
drivers/platform/x86/ibm_rtl.c
drivers/platform/x86/intel_oaktrail.c
drivers/platform/x86/mlx-platform.c
drivers/platform/x86/msi-laptop.c
drivers/platform/x86/samsung-laptop.c
drivers/platform/x86/samsung-q10.c
drivers/platform/x86/sony-laptop.c
drivers/platform/x86/toshiba-wmi.c
drivers/pnp/pnpbios/core.c
drivers/tty/serial/pch_uart.c
drivers/video/backlight/kb3886_bl.c
sound/soc/codecs/rt5645.c