Skip to contentSkip to conversation

linux-next: build failure after merge of the block tree

PATCH In review Stephen Rothwell 4 participants 6 messages Jul 4, 2011 – Jul 7, 2011 Linux-next tree

lore
Share & tools
lore
#0 lore raw

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/
#1 lore raw

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
index c6a68d0..72202b1 100644
@@ -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
#2 lore raw

Re: [PATCH] compat_ioctl: fix make headers_check regression

Hi,

Quoted 8 lines · Johannes Stezenbach

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.

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
index c6a68d0..72202b1 100644
@@ -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
#3 lore raw

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_check error introduced by 390192b30057:

include/linux/fd.h:6: included file 'linux/compat.h' is not exported

Quoted 8 lines
Quoted 4 lines

---
I used the same style as in linux/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.

#4 lore raw

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_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.

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 in
git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-3.1/core

http://git.kernel.org/?p=linux/kernel/git/axboe/linux-block.git;a=commit;h=390192b300570b2bc721d77067ca133f58015ae8

And this fix now, too:

http://git.kernel.org/?p=linux/kernel/git/axboe/linux-block.git;a=commit;h=719c0c590609809365c6f3da2f923cd84dc99113

Johannes

#5 lore raw

Re: [PATCH] compat_ioctl: fix make headers_check regression

In reply to Johannes Stezenbach
Quoted 3 lines · Johannes Stezenbach

Fix headers_check error introduced by 390192b30057:

include/linux/fd.h:6: included file 'linux/compat.h' is not exported

Thanks!

Signature · 1 line
Jens Axboe