[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1506762519-4709-1-git-send-email-xiaolou4617@gmail.com>
Date: Sat, 30 Sep 2017 17:08:39 +0800
From: Lin Zhang <xiaolou4617@...il.com>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, courmisch@...il.com,
Lin Zhang <xiaolou4617@...il.com>
Subject: [PATCH 1/2] net: phonet: mark header_ops as const
Signed-off-by: Lin Zhang <xiaolou4617@...il.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
Powered by blists - more mailing lists