Commit 626f311737770f0fb5c09a6da2ea795a559aa42a
Committed by
Heiko Carstens
1 parent
9d853caf44
Exists in
master
and in
7 other branches
[S390] chsc headers userspace cleanup
Kernel headers shouldn't expose functions to userspace. Cc: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Showing 3 changed files with 7 additions and 4 deletions Side-by-side Diff
include/asm-s390/Kbuild
include/asm-s390/chpid.h
... | ... | @@ -20,6 +20,9 @@ |
20 | 20 | u8 id; |
21 | 21 | } __attribute__((packed)); |
22 | 22 | |
23 | +#ifdef __KERNEL__ | |
24 | +#include <asm/cio.h> | |
25 | + | |
23 | 26 | static inline void chp_id_init(struct chp_id *chpid) |
24 | 27 | { |
25 | 28 | memset(chpid, 0, sizeof(struct chp_id)); |
... | ... | @@ -39,9 +42,6 @@ |
39 | 42 | chpid->cssid++; |
40 | 43 | } |
41 | 44 | } |
42 | - | |
43 | -#ifdef __KERNEL__ | |
44 | -#include <asm/cio.h> | |
45 | 45 | |
46 | 46 | static inline int chp_id_is_valid(struct chp_id *chpid) |
47 | 47 | { |
include/asm-s390/schid.h
... | ... | @@ -10,6 +10,7 @@ |
10 | 10 | __u32 sch_no : 16; |
11 | 11 | } __attribute__ ((packed, aligned(4))); |
12 | 12 | |
13 | +#ifdef __KERNEL__ | |
13 | 14 | |
14 | 15 | /* Helper function for sane state of pre-allocated subchannel_id. */ |
15 | 16 | static inline void |
... | ... | @@ -24,6 +25,8 @@ |
24 | 25 | { |
25 | 26 | return !memcmp(schid1, schid2, sizeof(struct subchannel_id)); |
26 | 27 | } |
28 | + | |
29 | +#endif /* __KERNEL__ */ | |
27 | 30 | |
28 | 31 | #endif /* ASM_SCHID_H */ |