* [PATCH v3 1/2] net: phonet: mark header_ops as const
@ 2017-10-05 17:37 Lin Zhang
2017-10-07 22:15 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Lin Zhang @ 2017-10-05 17:37 UTC (permalink / raw)
To: courmisch, davem; +Cc: netdev, Lin Zhang
Signed-off-by: Lin Zhang <xiaolou4617@gmail.com>
---
changelog:
v2 -> v3:
* fix phonet_header_ops type mismatch error
---
include/linux/if_phonet.h | 2 +-
net/phonet/af_phonet.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/if_phonet.h b/include/linux/if_phonet.h
index bbcdb0a..a118ee4 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 f925753..b12142e 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,
};
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v3 1/2] net: phonet: mark header_ops as const
2017-10-05 17:37 [PATCH v3 1/2] net: phonet: mark header_ops as const Lin Zhang
@ 2017-10-07 22:15 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-10-07 22:15 UTC (permalink / raw)
To: xiaolou4617; +Cc: courmisch, netdev
From: Lin Zhang <xiaolou4617@gmail.com>
Date: Fri, 6 Oct 2017 01:37:29 +0800
> Signed-off-by: Lin Zhang <xiaolou4617@gmail.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-07 22:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-05 17:37 [PATCH v3 1/2] net: phonet: mark header_ops as const Lin Zhang
2017-10-07 22:15 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.