[PATCH] kernel/edac: constify function

From: Hanno Böck
Date: Thu Apr 07 2011 - 18:52:58 EST


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

Patch is an extract from grsecurity. Please apply.

Signed-off-by: Hanno Boeck <hanno@xxxxxxxxx>
---
--- 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
};

Attachment: signature.asc
Description: PGP signature