* [PATCH 1/2] UAPI: Unexport part of linux/ppp-comp.h
@ 2012-10-13 9:08 David Howells
2012-10-13 9:08 ` [PATCH 2/2] UAPI: Unexport linux/blk_types.h David Howells
2012-10-13 21:47 ` [PATCH 1/2] UAPI: Unexport part of linux/ppp-comp.h David Miller
0 siblings, 2 replies; 3+ messages in thread
From: David Howells @ 2012-10-13 9:08 UTC (permalink / raw)
Cc: linux-kernel, David Howells, Paul Mackerras, David Miller
Unexport part of linux/ppp-comp.h as userspace can't make use of that bit.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Paul Mackerras <paulus@samba.org>
cc: David Miller <davem@davemloft.net>
---
include/linux/ppp-comp.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/ppp-comp.h b/include/linux/ppp-comp.h
index e53ff65..b7dc06f 100644
--- a/include/linux/ppp-comp.h
+++ b/include/linux/ppp-comp.h
@@ -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.
*/
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH 2/2] UAPI: Unexport linux/blk_types.h
2012-10-13 9:08 [PATCH 1/2] UAPI: Unexport part of linux/ppp-comp.h David Howells
@ 2012-10-13 9:08 ` David Howells
2012-10-13 21:47 ` [PATCH 1/2] UAPI: Unexport part of linux/ppp-comp.h David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Howells @ 2012-10-13 9:08 UTC (permalink / raw)
Cc: linux-kernel, David Howells, Jens Axboe, Tejun Heo, Al Viro
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 <dhowells@redhat.com>
cc: Jens Axboe <jaxboe@fusionio.com>
cc: Tejun Heo <tj@kernel.org>
cc: Al Viro <viro@ZenIV.linux.org.uk>
---
include/linux/Kbuild | 1 -
include/linux/fs.h | 2 ++
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/linux/Kbuild b/include/linux/Kbuild
index d114db9..e2a1346 100644
--- a/include/linux/Kbuild
+++ b/include/linux/Kbuild
@@ -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
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 65fbf57..c83f45c 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH 1/2] UAPI: Unexport part of linux/ppp-comp.h
2012-10-13 9:08 [PATCH 1/2] UAPI: Unexport part of linux/ppp-comp.h David Howells
2012-10-13 9:08 ` [PATCH 2/2] UAPI: Unexport linux/blk_types.h David Howells
@ 2012-10-13 21:47 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2012-10-13 21:47 UTC (permalink / raw)
To: dhowells; +Cc: linux-kernel, paulus
From: David Howells <dhowells@redhat.com>
Date: Sat, 13 Oct 2012 10:08:10 +0100
> Unexport part of linux/ppp-comp.h as userspace can't make use of that bit.
>
> Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: David S. Miller <davem@davemloft.net>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-13 21:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-13 9:08 [PATCH 1/2] UAPI: Unexport part of linux/ppp-comp.h David Howells
2012-10-13 9:08 ` [PATCH 2/2] UAPI: Unexport linux/blk_types.h David Howells
2012-10-13 21:47 ` [PATCH 1/2] UAPI: Unexport part of linux/ppp-comp.h David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®