linux-next: build failure after merge of the block tree
Hi Jens,
After merging the block tree, today's linux-next build (x86_64 allmodconfig) failed like this:
include/linux/fd.h:6: included file 'linux/compat.h' is not exported
Caused by commit 390192b30057 ("compat_ioctl: fix warning caused by qemu").
I have used the block tree from next-20110701 for today.
Signature · 3 lines
Cheers, Stephen Rothwell [email protected] http://www.canb.auug.org.au/~sfr/
PATCH 1/1 compat_ioctl: fix make headers_check regression
Fix headers_check error introduced by 390192b30057:
include/linux/fd.h:6: included file 'linux/compat.h' is not exported
---
I used the same style as in linux/usbdevice_fs.h, hope that's OK.
include/linux/fd.h | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
include/linux/fd.h +5 -1
@@ -3,7 +3,6 @@#include <linux/ioctl.h> #include <linux/compiler.h> -#include <linux/compat.h> /* New file layout: Now the ioctl definitions immediately follow the * definitions of the structures that they use */
@@ -378,7 +377,11 @@ struct floppy_raw_cmd {#define FDEJECT _IO(2, 0x5a)/* eject the disk */ + +#ifdef __KERNEL__ #ifdef CONFIG_COMPAT +#include <linux/compat.h> + struct compat_floppy_struct { compat_uint_t size; compat_uint_t sect;
@@ -394,5 +397,6 @@ struct compat_floppy_struct {#define FDGETPRM32 _IOR(2, 0x04, struct compat_floppy_struct)#endif +#endif #endif
Re: [PATCH] compat_ioctl: fix make headers_check regression
Hi,
Quoted 8 lines · Johannes Stezenbach
Fix
headers_checkerror introduced by390192b30057:
include/linux/fd.h:6: included file 'linux/compat.h' is not exportedSigned-off-by Johannes Stezenbach <[email protected]>---
I used the same style as inlinux/usbdevice_fs.h, hope that's OK.
I just got an "added to -mm tree" mail for the original patch, so I wonder what's with this fix?
Johannes
Quoted 34 lines
include/linux/fd.h | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)include/linux/fd.h +5
-1@@ -3,7 +3,6 @@#include <linux/ioctl.h> #include <linux/compiler.h> -#include <linux/compat.h> /* New file layout: Now the ioctl definitions immediately follow the * definitions of the structures that they use */ @@ -378,7 +377,11 @@ struct floppy_raw_cmd {#define FDEJECT _IO(2, 0x5a)/* eject the disk */ + +#ifdef __KERNEL__ #ifdef CONFIG_COMPAT +#include <linux/compat.h> + struct compat_floppy_struct { compat_uint_t size; compat_uint_t sect;@@ -394,5 +397,6 @@ struct compat_floppy_struct {#define FDGETPRM32 _IOR(2, 0x04, struct compat_floppy_struct)#endif +#endif #endif
Re: [PATCH] compat_ioctl: fix make headers_check regression
Quoted 5 lines · On Thu, 7 Jul 2011 00:51:40 +0200 Johannes Stezenbach <[email protected]> wrote:
Quoted 4 lines · Johannes Stezenbach
Fix
headers_checkerror introduced by390192b30057:
include/linux/fd.h:6: included file 'linux/compat.h' is not exported
Quoted 8 lines
Quoted 4 lines
Signed-off-by Johannes Stezenbach <[email protected]>---
I used the same style as inlinux/usbdevice_fs.h, hope that's OK.I just got an "added to -mm tree" mail for the original patch, so I wonder what's with this fix?
What does the "original patch" refer to.
Also, there's no commit 390192b30057. Commit ID's can change. This is why we ask people to also include the patch title when describing patches by SHA ID's
Please let's just start again. Tell us what is going on here.
Re: [PATCH] compat_ioctl: fix make headers_check regression
Quoted 14 lines · Andrew Morton
Quoted 11 lines · On Thu, 7 Jul 2011 00:51:40 +0200 Johannes Stezenbach <[email protected]> wrote:
Quoted 8 lines · Johannes Stezenbach
Fix
headers_checkerror introduced by390192b30057:
include/linux/fd.h:6: included file 'linux/compat.h' is not exportedSigned-off-by Johannes Stezenbach <[email protected]>---
I used the same style as inlinux/usbdevice_fs.h, hope that's OK.
Quoted 4 lines
Quoted 2 lines
I just got an "added to -mm tree" mail for the original patch, so I wonder what's with this fix?
What does the "original patch" refer to.
"compat_ioctl: fix warning caused by qemu"
Quoted 3 lines
Also, there's no commit
390192b30057. Commit ID's can change. This is why we ask people to also include the patch title when describing patches by SHA ID's
I see, will do in the future
Quoted 1 line
Please let's just start again. Tell us what is going on here.
Well, I'm confused by the -mm workflow. The "original" patch 390192b30057 is ingit://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-3.1/core
And this fix now, too:
Johannes
Re: [PATCH] compat_ioctl: fix make headers_check regression
In reply to Johannes StezenbachQuoted 3 lines · Johannes Stezenbach
Fix
headers_checkerror introduced by390192b30057:
include/linux/fd.h:6: included file 'linux/compat.h' is not exported
Thanks!
Signature · 1 line
Jens Axboe