[PATCH] hwmon: struct x86_cpu_id arrays can be __initconst

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



... as being referenced from __init code only.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

---
 drivers/hwmon/coretemp.c    |    2 +-
 drivers/hwmon/via-cputemp.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- 3.5-rc3/drivers/hwmon/coretemp.c
+++ 3.5-rc3-x86-hwmon-sections/drivers/hwmon/coretemp.c
@@ -764,7 +764,7 @@ static struct notifier_block coretemp_cp
 	.notifier_call = coretemp_cpu_callback,
 };
 
-static const struct x86_cpu_id coretemp_ids[] = {
+static const struct x86_cpu_id __initconst coretemp_ids[] = {
 	{ X86_VENDOR_INTEL, X86_FAMILY_ANY, X86_MODEL_ANY, X86_FEATURE_DTS },
 	{}
 };
--- 3.5-rc3/drivers/hwmon/via-cputemp.c
+++ 3.5-rc3-x86-hwmon-sections/drivers/hwmon/via-cputemp.c
@@ -309,7 +309,7 @@ static struct notifier_block via_cputemp
 	.notifier_call = via_cputemp_cpu_callback,
 };
 
-static const struct x86_cpu_id cputemp_ids[] = {
+static const struct x86_cpu_id __initconst cputemp_ids[] = {
 	{ X86_VENDOR_CENTAUR, 6, 0xa, }, /* C7 A */
 	{ X86_VENDOR_CENTAUR, 6, 0xd, }, /* C7 D */
 	{ X86_VENDOR_CENTAUR, 6, 0xf, }, /* Nano */




_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux