netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net: sctp: prevent checksum.h from double inclusion
@ 2013-07-01 16:10 Daniel Borkmann
  2013-07-01 20:57 ` Neil Horman
  2013-07-02  7:24 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Borkmann @ 2013-07-01 16:10 UTC (permalink / raw)
  To: davem; +Cc: netdev, linux-sctp

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

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
---
 include/net/sctp/checksum.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/net/sctp/checksum.h b/include/net/sctp/checksum.h
index 5a2110d..0cb08e6 100644
--- a/include/net/sctp/checksum.h
+++ b/include/net/sctp/checksum.h
@@ -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__ */
-- 
1.7.11.7

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] net: sctp: prevent checksum.h from double inclusion
  2013-07-01 16:10 [PATCH net-next] net: sctp: prevent checksum.h from double inclusion Daniel Borkmann
@ 2013-07-01 20:57 ` Neil Horman
  2013-07-02  7:24 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Neil Horman @ 2013-07-01 20:57 UTC (permalink / raw)
  To: Daniel Borkmann; +Cc: davem, netdev, linux-sctp

On Mon, Jul 01, 2013 at 06:10:36PM +0200, Daniel Borkmann wrote:
> The header file checksum.h is missing proper defines that prevents
> it from double inclusion.
> 
> Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
> ---
>  include/net/sctp/checksum.h | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/include/net/sctp/checksum.h b/include/net/sctp/checksum.h
> index 5a2110d..0cb08e6 100644
> --- a/include/net/sctp/checksum.h
> +++ b/include/net/sctp/checksum.h
> @@ -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__ */
> -- 
> 1.7.11.7
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
Acked-by: Neil Horman <nhorman@tuxdriver.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] net: sctp: prevent checksum.h from double inclusion
  2013-07-01 16:10 [PATCH net-next] net: sctp: prevent checksum.h from double inclusion Daniel Borkmann
  2013-07-01 20:57 ` Neil Horman
@ 2013-07-02  7:24 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2013-07-02  7:24 UTC (permalink / raw)
  To: dborkman; +Cc: netdev, linux-sctp

From: Daniel Borkmann <dborkman@redhat.com>
Date: Mon,  1 Jul 2013 18:10:36 +0200

> The header file checksum.h is missing proper defines that prevents
> it from double inclusion.
> 
> Signed-off-by: Daniel Borkmann <dborkman@redhat.com>

Applied.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-02  7:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-01 16:10 [PATCH net-next] net: sctp: prevent checksum.h from double inclusion Daniel Borkmann
2013-07-01 20:57 ` Neil Horman
2013-07-02  7:24 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).