]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Constify attribute_group structures
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 20 Jul 2017 11:30:32 +0000 (17:00 +0530)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 18 Aug 2017 09:30:35 +0000 (11:30 +0200)
commit40ca6c0aab18836ff6778b5743c8db51fb866c60
tree714db6b5a427f26ac62018479a9019216930c4a7
parent3156983b6113f651a90454cd9821a3575b43b9d8
x86: Constify attribute_group structures

attribute_groups are not supposed to change at runtime and none of the
groups is modified.

Mark the non-const structs as const.

[ tglx: Folded into one big patch ]

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: tony.luck@intel.com
Cc: bp@alien8.de
Link: http://lkml.kernel.org/r/1500550238-15655-2-git-send-email-arvind.yadav.cs@gmail.com
arch/x86/events/intel/uncore.c
arch/x86/events/intel/uncore_nhmex.c
arch/x86/events/intel/uncore_snb.c
arch/x86/events/intel/uncore_snbep.c
arch/x86/kernel/cpu/mcheck/therm_throt.c
arch/x86/kernel/cpu/microcode/core.c
arch/x86/kernel/ksysfs.c