2011-04-07 22:52:55

by Hanno Böck

[permalink] [raw]
Subject: [PATCH] kernel/edac: constify function

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

Patch is an extract from grsecurity. Please apply.

Signed-off-by: Hanno Boeck <[email protected]>
---
--- linux-2.6.38/drivers/edac/edac_mc_sysfs.c 2011-03-15 02:20:32.000000000 +0100
+++ linux-2.6.38-1/drivers/edac/edac_mc_sysfs.c 2011-04-08 00:48:58.368416726 +0200
@@ -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
};


Attachments:
signature.asc (836.00 B)