summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@computergmbh.de>2008-01-23 12:47:48 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-01-28 13:19:04 +0900
commit773c7bd69434a356af4363a61889ef975b256e32 (patch)
tree05afe468f6bd424bed073f61a6c37ba726919f60
parent1b1e037a8974801cb3e1da3281ca3a88cbec3de8 (diff)
downloadblackbird-op-linux-773c7bd69434a356af4363a61889ef975b256e32.tar.gz
blackbird-op-linux-773c7bd69434a356af4363a61889ef975b256e32.zip
sh: constify function pointer tables
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r--arch/sh/boards/landisk/gio.c2
-rw-r--r--arch/sh/kernel/setup.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/boards/landisk/gio.c b/arch/sh/boards/landisk/gio.c
index a37643d002b2..17025080db35 100644
--- a/arch/sh/boards/landisk/gio.c
+++ b/arch/sh/boards/landisk/gio.c
@@ -121,7 +121,7 @@ static int gio_ioctl(struct inode *inode, struct file *filp,
return 0;
}
-static struct file_operations gio_fops = {
+static const struct file_operations gio_fops = {
.owner = THIS_MODULE,
.open = gio_open, /* open */
.release = gio_close, /* release */
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c
index 9cf1d2e998bf..855cdf9d85b1 100644
--- a/arch/sh/kernel/setup.c
+++ b/arch/sh/kernel/setup.c
@@ -427,7 +427,7 @@ static void *c_next(struct seq_file *m, void *v, loff_t *pos)
static void c_stop(struct seq_file *m, void *v)
{
}
-struct seq_operations cpuinfo_op = {
+const struct seq_operations cpuinfo_op = {
.start = c_start,
.next = c_next,
.stop = c_stop,
OpenPOWER on IntegriCloud