Skip to contentSkip to conversation

kernel/edac: constify function

PATCH New Hanno Böck 1 participant 1 message Apr 7, 2011 EDAC-core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/edac: constify function

Attached patch will const-ify a function in the edac code.

Patch is an extract from grsecurity. Please apply.

---

drivers/edac/edac_mc_sysfs.c +1 -1
@@ -761,7 +761,7 @@
 }
 
 /* Intermediate show/store table */
-static struct sysfs_ops inst_grp_ops = {
+static const struct sysfs_ops inst_grp_ops = {
 	.show = inst_grp_show,
 	.store = inst_grp_store
 };