diff mbox series

linux/scc.h: make uapi linux/scc.h self-contained

Message ID 20191108055809.26969-1-yamada.masahiro@socionext.com
State Accepted
Commit 1a18374fc370da5a335b061fe94ebf677b07bd1d
Headers show
Series linux/scc.h: make uapi linux/scc.h self-contained | expand

Commit Message

Masahiro Yamada Nov. 8, 2019, 5:58 a.m. UTC
Userspace cannot compile <linux/scc.h>

  CC      usr/include/linux/scc.h.s
In file included from <command-line>:32:0:
./usr/include/linux/scc.h:20:20: error: ‘SIOCDEVPRIVATE’ undeclared here (not in a function)
  SIOCSCCRESERVED = SIOCDEVPRIVATE,
                    ^~~~~~~~~~~~~~

Include <linux/sockios.h> to make it self-contained, and add it to
the compile-test coverage.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

---

 include/uapi/linux/scc.h | 1 +
 usr/include/Makefile     | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

-- 
2.17.1
diff mbox series

Patch

diff --git a/include/uapi/linux/scc.h b/include/uapi/linux/scc.h
index c5bc7f747755..947edb17ce9d 100644
--- a/include/uapi/linux/scc.h
+++ b/include/uapi/linux/scc.h
@@ -4,6 +4,7 @@ 
 #ifndef _UAPI_SCC_H
 #define _UAPI_SCC_H
 
+#include <linux/sockios.h>
 
 /* selection of hardware types */
 
diff --git a/usr/include/Makefile b/usr/include/Makefile
index 107d04bd5ee3..b469e39eafc8 100644
--- a/usr/include/Makefile
+++ b/usr/include/Makefile
@@ -41,7 +41,6 @@  header-test- += linux/omapfb.h
 header-test- += linux/patchkey.h
 header-test- += linux/phonet.h
 header-test- += linux/reiserfs_xattr.h
-header-test- += linux/scc.h
 header-test- += linux/sctp.h
 header-test- += linux/signal.h
 header-test- += linux/sysctl.h