Skip to content

Commit 1a18374

Browse files
masahir0ytorvalds
authored andcommitted
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>
1 parent 8788994 commit 1a18374

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/uapi/linux/scc.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#ifndef _UAPI_SCC_H
55
#define _UAPI_SCC_H
66

7+
#include <linux/sockios.h>
78

89
/* selection of hardware types */
910

‎usr/include/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ header-test- += linux/omapfb.h
4040
header-test- += linux/patchkey.h
4141
header-test- += linux/phonet.h
4242
header-test- += linux/reiserfs_xattr.h
43-
header-test- += linux/scc.h
4443
header-test- += linux/sctp.h
4544
header-test- += linux/signal.h
4645
header-test- += linux/sysctl.h

0 commit comments

Comments
 (0)