* [PATCH] kernel/edac: constify function
@ 2011-04-07 22:52 Hanno Böck
0 siblings, 0 replies; only message in thread
From: Hanno Böck @ 2011-04-07 22:52 UTC (permalink / raw)
To: dougthompson, bluesmoke-devel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 551 bytes --]
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@hboeck.de>
---
--- 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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-07 22:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-07 22:52 [PATCH] kernel/edac: constify function Hanno Böck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox