mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Signed-off-by: Jean Delvare <[email protected]>
This commit is contained in:
parent
46c1e79fee
commit
6faadbbb7f
48 changed files with 52 additions and 52 deletions
|
|
@ -418,7 +418,7 @@ static int video_set_report_key_events(const struct dmi_system_id *id)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct dmi_system_id video_dmi_table[] = {
|
||||
static const struct dmi_system_id video_dmi_table[] = {
|
||||
/*
|
||||
* Broken _BQC workaround http://bugzilla.kernel.org/show_bug.cgi?id=13121
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "internal.h"
|
||||
|
||||
static struct dmi_system_id acpi_rev_dmi_table[] __initdata;
|
||||
static const struct dmi_system_id acpi_rev_dmi_table[] __initconst;
|
||||
|
||||
/*
|
||||
* POLICY: If *anything* doesn't work, put it on the blacklist.
|
||||
|
|
@ -89,7 +89,7 @@ static int __init dmi_enable_rev_override(const struct dmi_system_id *d)
|
|||
}
|
||||
#endif
|
||||
|
||||
static struct dmi_system_id acpi_rev_dmi_table[] __initdata = {
|
||||
static const struct dmi_system_id acpi_rev_dmi_table[] __initconst = {
|
||||
#ifdef CONFIG_ACPI_REV_OVERRIDE_POSSIBLE
|
||||
/*
|
||||
* DELL XPS 13 (2015) switches sound between HDA and I2S
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ static int set_copy_dsdt(const struct dmi_system_id *id)
|
|||
}
|
||||
#endif
|
||||
|
||||
static struct dmi_system_id dsdt_dmi_table[] __initdata = {
|
||||
static const struct dmi_system_id dsdt_dmi_table[] __initconst = {
|
||||
/*
|
||||
* Invoke DSDT corruption work-around on all Toshiba Satellite.
|
||||
* https://bugzilla.kernel.org/show_bug.cgi?id=14679
|
||||
|
|
@ -83,7 +83,7 @@ static struct dmi_system_id dsdt_dmi_table[] __initdata = {
|
|||
{}
|
||||
};
|
||||
#else
|
||||
static struct dmi_system_id dsdt_dmi_table[] __initdata = {
|
||||
static const struct dmi_system_id dsdt_dmi_table[] __initconst = {
|
||||
{}
|
||||
};
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1809,7 +1809,7 @@ static int ec_honor_ecdt_gpe(const struct dmi_system_id *id)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct dmi_system_id ec_dmi_table[] __initdata = {
|
||||
static const struct dmi_system_id ec_dmi_table[] __initconst = {
|
||||
{
|
||||
ec_correct_ecdt, "MSI MS-171F", {
|
||||
DMI_MATCH(DMI_SYS_VENDOR, "Micro-Star"),
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ static int do_sta_before_sun(const struct dmi_system_id *d)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct dmi_system_id acpi_pci_slot_dmi_table[] __initdata = {
|
||||
static const struct dmi_system_id acpi_pci_slot_dmi_table[] __initconst = {
|
||||
/*
|
||||
* Fujitsu Primequest machines will return 1023 to indicate an
|
||||
* error if the _SUN method is evaluated on SxFy objects that
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ static int __init set_no_mwait(const struct dmi_system_id *id)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct dmi_system_id processor_idle_dmi_table[] __initdata = {
|
||||
static const struct dmi_system_id processor_idle_dmi_table[] __initconst = {
|
||||
{
|
||||
set_no_mwait, "Extensa 5220", {
|
||||
DMI_MATCH(DMI_BIOS_VENDOR, "Phoenix Technologies LTD"),
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ static int __init init_nvs_nosave(const struct dmi_system_id *d)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct dmi_system_id acpisleep_dmi_table[] __initdata = {
|
||||
static const struct dmi_system_id acpisleep_dmi_table[] __initconst = {
|
||||
{
|
||||
.callback = init_old_suspend_ordering,
|
||||
.ident = "Abit KN9 (nForce4 variant)",
|
||||
|
|
|
|||
|
|
@ -1209,7 +1209,7 @@ static int thermal_psv(const struct dmi_system_id *d) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct dmi_system_id thermal_dmi_table[] __initdata = {
|
||||
static const struct dmi_system_id thermal_dmi_table[] __initconst = {
|
||||
/*
|
||||
* Award BIOS on this AOpen makes thermal control almost worthless.
|
||||
* http://bugzilla.kernel.org/show_bug.cgi?id=8842
|
||||
|
|
|
|||
Loading…
Reference in a new issue