net: phonet: mark header_ops as const
Subsystems (3)
PATCH v2 1/2 net: phonet: mark header_ops as const
Signed-off-by Lin Zhang <[email protected]>
--- net/phonet/af_phonet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/phonet/af_phonet.c +1 -1
@@ -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, };
Signature · 1 line
1.8.3.1
Quoted 10 lines · On samedi 30 septembre 2017 17:39:36 EEST Lin Zhang wrote:
Signed-off-by Lin Zhang <[email protected]>--- net/phonet/af_phonet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/phonet/af_phonet.c +0
-0
net/phonet/af_phonet.c static int pn_header_parse(const struct sk_buff *skb, · line 155
Quoted 8 lines
net/phonet/af_phonet.c +1
-1@@ -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, };
Signature · 1 line
Rémi Denis-Courmont