Skip to contentSkip to conversation

net: sctp: prevent checksum.h from double inclusion

PATCH Applied Daniel Borkmann 3 participants 3 messages Jul 1, 2013 – Jul 2, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: sctp: prevent checksum.h from double inclusion

The header file checksum.h is missing proper defines that prevents it from double inclusion.

---
 include/net/sctp/checksum.h | 5 +++++
 1 file changed, 5 insertions(+)
include/net/sctp/checksum.h +5 -0
index 5a2110d..0cb08e6 100644
@@ -42,6 +42,9 @@
  * be incorporated into the next SCTP release.
  */
 
+#ifndef __sctp_checksum_h__
+#define __sctp_checksum_h__
+
 #include <linux/types.h>
 #include <net/sctp/sctp.h>
 #include <linux/crc32c.h>
@@ -81,3 +84,5 @@ static inline __le32 sctp_end_cksum(__u32 crc32)
 {
 	return cpu_to_le32(~crc32);
 }
+
+#endif /* __sctp_checksum_h__ */
Signature · 1 line
1.7.11.7
Acked-by on v1 1/1
#1 lore raw
Quoted 36 lines · Daniel Borkmann

The header file checksum.h is missing proper defines that prevents it from double inclusion.

---
 include/net/sctp/checksum.h | 5 +++++
 1 file changed, 5 insertions(+)
include/net/sctp/checksum.h +5 -0
index 5a2110d..0cb08e6 100644
@@ -42,6 +42,9 @@
  * be incorporated into the next SCTP release.
  */
 
+#ifndef __sctp_checksum_h__
+#define __sctp_checksum_h__
+
 #include <linux/types.h>
 #include <net/sctp/sctp.h>
 #include <linux/crc32c.h>
@@ -81,3 +84,5 @@ static inline __le32 sctp_end_cksum(__u32 crc32)
 {
 	return cpu_to_le32(~crc32);
 }
+
+#endif /* __sctp_checksum_h__ */
Signature · 6 lines
1.7.11.7

--
To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html