mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
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>
This commit is contained in:
parent
37beae65fa
commit
a05b1019cf
@ -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__ */
|
||||
|
Loading…
Reference in New Issue
Block a user