Skip to content

Commit

Permalink
net: phonet: mark header_ops as const
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Zhang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Lin Zhang authored and davem330 committed Oct 7, 2017
1 parent a1d753d commit 6423747
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/linux/if_phonet.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion net/phonet/af_phonet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 6423747

Please sign in to comment.