Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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.

Link: http://lkml.kernel.org/r/20191108055809.26969-1-yamada.masahiro@socionext.com
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Masahiro Yamada and committed by
Linus Torvalds
1a18374f 87889943

+1 -1
+1
include/uapi/linux/scc.h
··· 4 4 #ifndef _UAPI_SCC_H 5 5 #define _UAPI_SCC_H 6 6 7 + #include <linux/sockios.h> 7 8 8 9 /* selection of hardware types */ 9 10
-1
usr/include/Makefile
··· 40 40 header-test- += linux/patchkey.h 41 41 header-test- += linux/phonet.h 42 42 header-test- += linux/reiserfs_xattr.h 43 - header-test- += linux/scc.h 44 43 header-test- += linux/sctp.h 45 44 header-test- += linux/signal.h 46 45 header-test- += linux/sysctl.h