diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-07-01 12:10:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-02 03:23:57 -0400 |
commit | a05b1019cfe5250baf24e26e2e7112cf66054114 (patch) | |
tree | 96a1a433f24c0cc93660375d3f0d096a812dbcbc /include/net/sctp | |
parent | 37beae65fa4a683b2f17f3472708ab58d134b03c (diff) |
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: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp')
-rw-r--r-- | include/net/sctp/checksum.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/sctp/checksum.h b/include/net/sctp/checksum.h index 5a2110d3176d..0cb08e6fb6df 100644 --- a/include/net/sctp/checksum.h +++ b/include/net/sctp/checksum.h | |||
@@ -42,6 +42,9 @@ | |||
42 | * be incorporated into the next SCTP release. | 42 | * be incorporated into the next SCTP release. |
43 | */ | 43 | */ |
44 | 44 | ||
45 | #ifndef __sctp_checksum_h__ | ||
46 | #define __sctp_checksum_h__ | ||
47 | |||
45 | #include <linux/types.h> | 48 | #include <linux/types.h> |
46 | #include <net/sctp/sctp.h> | 49 | #include <net/sctp/sctp.h> |
47 | #include <linux/crc32c.h> | 50 | #include <linux/crc32c.h> |
@@ -81,3 +84,5 @@ static inline __le32 sctp_end_cksum(__u32 crc32) | |||
81 | { | 84 | { |
82 | return cpu_to_le32(~crc32); | 85 | return cpu_to_le32(~crc32); |
83 | } | 86 | } |
87 | |||
88 | #endif /* __sctp_checksum_h__ */ | ||