Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64237470 authored by Lin Zhang's avatar Lin Zhang Committed by David S. Miller
Browse files

net: phonet: mark header_ops as const

parent a1d753d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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,
};