[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1502462575-13814-1-git-send-email-bhumirks@gmail.com>
Date: Fri, 11 Aug 2017 20:12:55 +0530
From: Bhumika Goyal <bhumirks@...il.com>
To: julia.lawall@...6.fr, cpw@....com, robinmholt@...il.com,
linux-kernel@...r.kernel.org
Cc: Bhumika Goyal <bhumirks@...il.com>
Subject: [PATCH] sgi-xp: make xpc_arch_operations const
Make these const as they are only used during a copy operation.
Done using Coccinelle.
Cross-compiled sgi-xp/xpc_sn2.o for ia64 architecture.
Signed-off-by: Bhumika Goyal <bhumirks@...il.com>
---
drivers/misc/sgi-xp/xpc_sn2.c | 2 +-
drivers/misc/sgi-xp/xpc_uv.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/misc/sgi-xp/xpc_sn2.c b/drivers/misc/sgi-xp/xpc_sn2.c
index 7d71c04..055bbe2a 100644
--- a/drivers/misc/sgi-xp/xpc_sn2.c
+++ b/drivers/misc/sgi-xp/xpc_sn2.c
@@ -2351,7 +2351,7 @@
xpc_acknowledge_msgs_sn2(ch, get, msg->flags);
}
-static struct xpc_arch_operations xpc_arch_ops_sn2 = {
+static const struct xpc_arch_operations xpc_arch_ops_sn2 = {
.setup_partitions = xpc_setup_partitions_sn2,
.teardown_partitions = xpc_teardown_partitions_sn2,
.process_activate_IRQ_rcvd = xpc_process_activate_IRQ_rcvd_sn2,
diff --git a/drivers/misc/sgi-xp/xpc_uv.c b/drivers/misc/sgi-xp/xpc_uv.c
index 340b44d..f5fae21 100644
--- a/drivers/misc/sgi-xp/xpc_uv.c
+++ b/drivers/misc/sgi-xp/xpc_uv.c
@@ -1676,7 +1676,7 @@ struct uv_IO_APIC_route_entry {
XPC_DEACTIVATE_PARTITION(&xpc_partitions[ch->partid], ret);
}
-static struct xpc_arch_operations xpc_arch_ops_uv = {
+static const struct xpc_arch_operations xpc_arch_ops_uv = {
.setup_partitions = xpc_setup_partitions_uv,
.teardown_partitions = xpc_teardown_partitions_uv,
.process_activate_IRQ_rcvd = xpc_process_activate_IRQ_rcvd_uv,
--
1.9.1
Powered by blists - more mailing lists