* [PATCH v2 1/2] net: phonet: mark header_ops as const
@ 2017-09-30 9:39 Lin Zhang
2017-09-30 11:49 ` Rémi Denis-Courmont
0 siblings, 1 reply; 2+ messages in thread
From: Lin Zhang @ 2017-09-30 9:39 UTC (permalink / raw)
To: davem; +Cc: netdev, courmisch, Lin Zhang
Signed-off-by: Lin Zhang <xiaolou4617@gmail.com>
---
net/phonet/af_phonet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 v2 1/2] net: phonet: mark header_ops as const
2017-09-30 9:39 [PATCH v2 1/2] net: phonet: mark header_ops as const Lin Zhang
@ 2017-09-30 11:49 ` Rémi Denis-Courmont
0 siblings, 0 replies; 2+ messages in thread
From: Rémi Denis-Courmont @ 2017-09-30 11:49 UTC (permalink / raw)
To: Lin Zhang; +Cc: davem, netdev, courmisch
On samedi 30 septembre 2017 17:39:36 EEST Lin Zhang wrote:
> Signed-off-by: Lin Zhang <xiaolou4617@gmail.com>
> ---
> net/phonet/af_phonet.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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,
> };
Acked-by: Rémi Denis-Courmont <remi@remlab.net>
--
Rémi Denis-Courmont
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-09-30 11:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-30 9:39 [PATCH v2 1/2] net: phonet: mark header_ops as const Lin Zhang
2017-09-30 11:49 ` Rémi Denis-Courmont
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).