summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Zhang <xiaolou4617@gmail.com>2017-10-05 20:37:29 +0300
committerDavid S. Miller <davem@davemloft.net>2017-10-08 01:15:08 +0300
commit64237470ddf97b63155fbd272c9e743e01d5f514 (patch)
tree8ac0775eec99ff470baf6e6092da73707ffd4f16
parenta1d753d29066e9b568884b0f12c029b0b811f0c8 (diff)
downloadlinux-64237470ddf97b63155fbd272c9e743e01d5f514.tar.xz
net: phonet: mark header_ops as const
Signed-off-by: Lin Zhang <xiaolou4617@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/linux/if_phonet.h2
-rw-r--r--net/phonet/af_phonet.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/if_phonet.h b/include/linux/if_phonet.h
index bbcdb0a767d8..a118ee4a8428 100644
--- a/include/linux/if_phonet.h
+++ b/include/linux/if_phonet.h
@@ -10,5 +10,5 @@
#include <uapi/linux/if_phonet.h>
-extern struct header_ops phonet_header_ops;
+extern const struct header_ops phonet_header_ops;
#endif
diff --git a/net/phonet/af_phonet.c b/net/phonet/af_phonet.c
index f925753668a7..b12142e55d19 100644
--- a/net/phonet/af_phonet.c
+++ b/net/phonet/af_phonet.c
@@ -149,7 +149,7 @@ static int pn_header_parse(const struct sk_buff *skb, unsigned char *haddr)
return 1;
}
-struct header_ops phonet_header_ops = {
+const struct header_ops phonet_header_ops = {
.create = pn_header_create,
.parse = pn_header_parse,
};