UAPI: Unexport part of linux/ppp-comp.h
PATCH 1/2 UAPI: Unexport part of linux/ppp-comp.h
Unexport part of linux/ppp-comp.h as userspace can't make use of that bit.
Signed-off-by David Howells <[email protected]>
cc Paul Mackerras <[email protected]>
cc David Miller <[email protected]>
---
include/linux/ppp-comp.h | 4 ++++ 1 file changed, 4 insertions(+)
include/linux/ppp-comp.h +4 -0
@@ -10,6 +10,8 @@#ifndef _NET_PPP_COMP_H#define _NET_PPP_COMP_H +#ifdef __KERNEL__ +struct module ;/*
@@ -98,6 +100,8 @@ struct compressor {#define DECOMP_ERROR -1/* error detected before decomp. */ #define DECOMP_FATALERROR -2/* error detected after decomp. */ +#endif /* __KERNEL__ */ +/* * CCP codes. */
PATCH 2/2 UAPI: Unexport linux/blk_types.h
It seems that was linux/blk_types.h incorrectly exported to fix up some missing bits required by the exported parts of linux/fs.h (READ, WRITE, READA, etc.).
So unexport linux/blk_types.h and unexport the relevant bits of linux/fs.h.
Signed-off-by David Howells <[email protected]>
cc Jens Axboe <[email protected]>
cc Tejun Heo <[email protected]>
cc Al Viro <[email protected]>
---
include/linux/Kbuild | 1 - include/linux/fs.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-)
include/linux/Kbuild +0 -1
@@ -69,7 +69,6 @@ header-y += b1lli.h header-y += baycom.h header-y += bfs_fs.h header-y += binfmts.h -header-y += blk_types.h header-y += blkpg.h header-y += blktrace_api.h header-y += bpqether.h
include/linux/fs.h +2 -0
@@ -117,6 +117,7 @@ struct inodes_stat_t {/* File was opened by fanotify and shouldn't generate fanotify events */ #define FMODE_NONOTIFY ((__force fmode_t)0x1000000) +#ifdef __KERNEL__/* * The below are the various read and write types that we support. Some of * them include behavioral modifiers that send information down to the
@@ -175,6 +176,7 @@ struct inodes_stat_t {#define WRITE_FUA (WRITE | REQ_SYNC | REQ_NOIDLE | REQ_FUA)#define WRITE_FLUSH_FUA (WRITE | REQ_SYNC | REQ_NOIDLE | REQ_FLUSH | REQ_FUA) +#endif /* __KERNEL__ */ /* * Flag for rw_copy_check_uvector and compat_rw_copy_check_uvector
From: David Howells <[email protected]>
Date: Sat, 13 Oct 2012 10:08:10 +0100
Quoted 3 lines
Unexport part of
linux/ppp-comp.has userspace can't make use of that bit.Signed-off-by David Howells <[email protected]>
Acked-by David S. Miller <[email protected]>