diff options
author | Julia Lawall <julia.lawall@lip6.fr> | 2015-11-21 18:28:05 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-23 15:49:29 -0500 |
commit | 4dd191bb6195641edbc527a8495b7b1b816a41e6 (patch) | |
tree | 9c98b580c14a6395bec2f75b81887a7a42755e3a /net/atm/mpc.h | |
parent | 901fb38d5a06fa391ec38f2d673a436b7b6b4e36 (diff) | |
download | blackbird-op-linux-4dd191bb6195641edbc527a8495b7b1b816a41e6.tar.gz blackbird-op-linux-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 'net/atm/mpc.h')
-rw-r--r-- | net/atm/mpc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/atm/mpc.h b/net/atm/mpc.h index 0919a88bbc70..cfc7b745aa91 100644 --- a/net/atm/mpc.h +++ b/net/atm/mpc.h @@ -21,11 +21,11 @@ struct mpoa_client { uint8_t our_ctrl_addr[ATM_ESA_LEN]; /* MPC's control ATM address */ rwlock_t ingress_lock; - struct in_cache_ops *in_ops; /* ingress cache operations */ + const struct in_cache_ops *in_ops; /* ingress cache operations */ in_cache_entry *in_cache; /* the ingress cache of this MPC */ rwlock_t egress_lock; - struct eg_cache_ops *eg_ops; /* egress cache operations */ + const struct eg_cache_ops *eg_ops; /* egress cache operations */ eg_cache_entry *eg_cache; /* the egress cache of this MPC */ uint8_t *mps_macs; /* array of MPS MAC addresses, >=1 */ |