net: make neigh_ops constant
These tables are never modified at runtime. Move to read-only section. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
dcbfef820b
commit
89d69d2b75
@@ -59,7 +59,7 @@ static int dn_phase3_output(struct sk_buff *);
|
||||
/*
|
||||
* For talking to broadcast devices: Ethernet & PPP
|
||||
*/
|
||||
static struct neigh_ops dn_long_ops = {
|
||||
static const struct neigh_ops dn_long_ops = {
|
||||
.family = AF_DECnet,
|
||||
.error_report = dn_long_error_report,
|
||||
.output = dn_long_output,
|
||||
@@ -71,7 +71,7 @@ static struct neigh_ops dn_long_ops = {
|
||||
/*
|
||||
* For talking to pointopoint and multidrop devices: DDCMP and X.25
|
||||
*/
|
||||
static struct neigh_ops dn_short_ops = {
|
||||
static const struct neigh_ops dn_short_ops = {
|
||||
.family = AF_DECnet,
|
||||
.error_report = dn_short_error_report,
|
||||
.output = dn_short_output,
|
||||
@@ -83,7 +83,7 @@ static struct neigh_ops dn_short_ops = {
|
||||
/*
|
||||
* For talking to DECnet phase III nodes
|
||||
*/
|
||||
static struct neigh_ops dn_phase3_ops = {
|
||||
static const struct neigh_ops dn_phase3_ops = {
|
||||
.family = AF_DECnet,
|
||||
.error_report = dn_short_error_report, /* Can use short version here */
|
||||
.output = dn_phase3_output,
|
||||
|
Reference in New Issue
Block a user