Patchwork [2/7] unix_diag: Include unix_diag.h into header-y target

login
register
mail settings
Submitter Pavel Emelyanov
Date Dec. 30, 2011, 10:52 a.m.
Message ID <4EFD9803.3040106@parallels.com>
Download mbox | patch
Permalink /patch/133630/
State Accepted
Delegated to: David Miller
Headers show

Comments

Pavel Emelyanov - Dec. 30, 2011, 10:52 a.m.
The headers check complains it should include the linux/types.h
withing, thus add this one.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>

---
 include/linux/Kbuild      |    1 +
 include/linux/unix_diag.h |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
David Miller - Dec. 30, 2011, 9:46 p.m.
From: Pavel Emelyanov <xemul@parallels.com>
Date: Fri, 30 Dec 2011 14:52:51 +0400

> The headers check complains it should include the linux/types.h
> withing, thus add this one.
> 
> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/include/linux/Kbuild b/include/linux/Kbuild
index 8e484d6..c94e717 100644
--- a/include/linux/Kbuild
+++ b/include/linux/Kbuild
@@ -197,6 +197,7 @@  header-y += in6.h
 header-y += in_route.h
 header-y += sock_diag.h
 header-y += inet_diag.h
+header-y += unix_diag.h
 header-y += inotify.h
 header-y += input.h
 header-y += ioctl.h
diff --git a/include/linux/unix_diag.h b/include/linux/unix_diag.h
index 3f7afb0..a5ce0f3 100644
--- a/include/linux/unix_diag.h
+++ b/include/linux/unix_diag.h
@@ -1,6 +1,8 @@ 
 #ifndef __UNIX_DIAG_H__
 #define __UNIX_DIAG_H__
 
+#include <linux/types.h>
+
 struct unix_diag_req {
 	__u8	sdiag_family;
 	__u8	sdiag_protocol;