Commit a05b1019 authored by Daniel Borkmann's avatar Daniel Borkmann Committed by David S. Miller

net: sctp: prevent checksum.h from double inclusion

The header file checksum.h is missing proper defines that prevents
it from double inclusion.
Signed-off-by: default avatarDaniel Borkmann <dborkman@redhat.com>
Acked-by: default avatarNeil Horman <nhorman@tuxdriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 37beae65
...@@ -42,6 +42,9 @@ ...@@ -42,6 +42,9 @@
* be incorporated into the next SCTP release. * be incorporated into the next SCTP release.
*/ */
#ifndef __sctp_checksum_h__
#define __sctp_checksum_h__
#include <linux/types.h> #include <linux/types.h>
#include <net/sctp/sctp.h> #include <net/sctp/sctp.h>
#include <linux/crc32c.h> #include <linux/crc32c.h>
...@@ -81,3 +84,5 @@ static inline __le32 sctp_end_cksum(__u32 crc32) ...@@ -81,3 +84,5 @@ static inline __le32 sctp_end_cksum(__u32 crc32)
{ {
return cpu_to_le32(~crc32); return cpu_to_le32(~crc32);
} }
#endif /* __sctp_checksum_h__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment