aboutsummaryrefslogtreecommitdiffstats
path: root/net/atm/mpoa_caches.c
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2015-11-21 18:28:05 +0100
committerDavid S. Miller <davem@davemloft.net>2015-11-23 15:49:29 -0500
commit4dd191bb6195641edbc527a8495b7b1b816a41e6 (patch)
tree9c98b580c14a6395bec2f75b81887a7a42755e3a /net/atm/mpoa_caches.c
parentMerge branch 'ipmr-cleanups' (diff)
downloadlinux-dev-4dd191bb6195641edbc527a8495b7b1b816a41e6.tar.xz
linux-dev-4dd191bb6195641edbc527a8495b7b1b816a41e6.zip
net: atm: constify in_cache_ops and eg_cache_ops structures
The in_cache_ops and eg_cache_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/atm/mpoa_caches.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/atm/mpoa_caches.c b/net/atm/mpoa_caches.c
index d1b2d9a03144..9e60e74c807d 100644
--- a/net/atm/mpoa_caches.c
+++ b/net/atm/mpoa_caches.c
@@ -534,7 +534,7 @@ static void eg_destroy_cache(struct mpoa_client *mpc)
}
-static struct in_cache_ops ingress_ops = {
+static const struct in_cache_ops ingress_ops = {
in_cache_add_entry, /* add_entry */
in_cache_get, /* get */
in_cache_get_with_mask, /* get_with_mask */
@@ -548,7 +548,7 @@ static struct in_cache_ops ingress_ops = {
in_destroy_cache /* destroy_cache */
};
-static struct eg_cache_ops egress_ops = {
+static const struct eg_cache_ops egress_ops = {
eg_cache_add_entry, /* add_entry */
eg_cache_get_by_cache_id, /* get_by_cache_id */
eg_cache_get_by_tag, /* get_by_tag */