diff options
author | Christoph Hellwig <hch@lst.de> | 2017-09-14 11:59:30 +0200 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2017-09-14 11:59:30 +0200 |
commit | 6faadbbb7f9da70ce484f98f72223c20125a1009 (patch) | |
tree | e6a72014b25bd4b68588772a5630f49ee5526ae7 /drivers/acpi/osi.c | |
parent | 46c1e79fee417f151547aa46fae04ab06cb666f4 (diff) | |
download | talos-obmc-linux-6faadbbb7f9da70ce484f98f72223c20125a1009.tar.gz talos-obmc-linux-6faadbbb7f9da70ce484f98f72223c20125a1009.zip |
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>
Diffstat (limited to 'drivers/acpi/osi.c')
-rw-r--r-- | drivers/acpi/osi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/osi.c b/drivers/acpi/osi.c index 19cdd8a783a9..76998a51bf99 100644 --- a/drivers/acpi/osi.c +++ b/drivers/acpi/osi.c @@ -312,7 +312,7 @@ static int __init dmi_disable_osi_win8(const struct dmi_system_id *d) * Note that _OSI("Linux")/_OSI("Darwin") determined here can be overridden * by acpi_osi=!Linux/acpi_osi=!Darwin command line options. */ -static struct dmi_system_id acpi_osi_dmi_table[] __initdata = { +static const struct dmi_system_id acpi_osi_dmi_table[] __initconst = { { .callback = dmi_disable_osi_vista, .ident = "Fujitsu Siemens", |