Skip to contentSkip to conversation

fix buid error of autodetect_raid()

mmotm 02/Oct KOSAKI Motohiro 3 participants 10 messages Oct 4, 2008 – Oct 9, 2008

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

Patch against: mmotm 02 Oct
Applied after: git-fastboot.patch

fix following build error

Quoted 5 lines

CC init/do_mounts_md.o
init/do_mounts_md.c: In function 'autodetect_raid':
init/do_mounts_md.c:278: error: implicit declaration of function 'msleep' make[1]: *** [init/do_mounts_md.o] Error 1
make: *** [init] Error 2

CC Arjan van de Ven <[email protected]>
CC Ingo Molnar <[email protected]>
---
 init/do_mounts_md.c |    1 +
 1 file changed, 1 insertion(+)
init/do_mounts_md.c +1 -0
Index: b/init/do_mounts_md.c
===================================================================
@@ -1,5 +1,6 @@
 
 #include <linux/raid/md.h>
+#include <linux/delay.h>
 
 #include "do_mounts.h"
 
#1 lore raw

[mmotm 02/Oct] fix buid error of hid-core

Patch against: mmotm 02 Oct
Applied after: usb-usb-remove-warn-macro-from-usbh.patch

fix following buiild error

-------------------------
CC [M] drivers/hid/usbhid/hid-core.o
drivers/hid/usbhid/hid-core.c: In function 'usbhid_submit_report':
drivers/hid/usbhid/hid-core.c:417: error: incompatible type for argument 1 of 'dev_driver_string' drivers/hid/usbhid/hid-core.c:417: error: incompatible type for argument 1 of 'dev_name' drivers/hid/usbhid/hid-core.c:436: error: incompatible type for argument 1 of 'dev_driver_string' drivers/hid/usbhid/hid-core.c:436: error: incompatible type for argument 1 of 'dev_name' drivers/hid/usbhid/hid-core.c: In function 'usbhid_init_reports':
drivers/hid/usbhid/hid-core.c:568: error: incompatible type for argument 1 of 'dev_driver_string' drivers/hid/usbhid/hid-core.c:568: error: incompatible type for argument 1 of 'dev_name' make[3]: *** [drivers/hid/usbhid/hid-core.o] Error 1
make[2]: *** [drivers/hid/usbhid] Error 2
make[1]: *** [drivers/hid] Error 2
make: *** [drivers] Error 2
-------------------

---
 drivers/hid/usbhid/hid-core.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/hid/usbhid/hid-core.c +3 -3
Index: b/drivers/hid/usbhid/hid-core.c
===================================================================
@@ -414,7 +414,7 @@ void usbhid_submit_report(struct hid_dev
 
 		if ((head = (usbhid->outhead + 1) & (HID_OUTPUT_FIFO_SIZE - 1)) == usbhid->outtail) {
 			spin_unlock_irqrestore(&usbhid->outlock, flags);
-			dev_warn(hid->dev, "output queue full\n");
+			dev_warn(&hid->dev, "output queue full\n");
 			return;
 		}
 
@@ -433,7 +433,7 @@ void usbhid_submit_report(struct hid_dev
 
 	if ((head = (usbhid->ctrlhead + 1) & (HID_CONTROL_FIFO_SIZE - 1)) == usbhid->ctrltail) {
 		spin_unlock_irqrestore(&usbhid->ctrllock, flags);
-		dev_warn(hid->dev, "control queue full\n");
+		dev_warn(&hid->dev, "control queue full\n");
 		return;
 	}
 
@@ -565,7 +565,7 @@ void usbhid_init_reports(struct hid_devi
 	}
 
 	if (err)
-		dev_warn(hid->dev, "timeout initializing reports\n");
+		dev_warn(&hid->dev, "timeout initializing reports\n");
 }
 
 /*
#2 lore raw

Re: [mmotm 02/Oct] fix buid error of hid-core

Hi Andrew,

Ping!

Quoted 66 lines

Patch against: mmotm 02 Oct
Applied after: usb-usb-remove-warn-macro-from-usbh.patch

fix following buiild error

-------------------------
CC [M] drivers/hid/usbhid/hid-core.o
drivers/hid/usbhid/hid-core.c: In function 'usbhid_submit_report':
drivers/hid/usbhid/hid-core.c:417: error: incompatible type for argument 1 of 'dev_driver_string' drivers/hid/usbhid/hid-core.c:417: error: incompatible type for argument 1 of 'dev_name' drivers/hid/usbhid/hid-core.c:436: error: incompatible type for argument 1 of 'dev_driver_string' drivers/hid/usbhid/hid-core.c:436: error: incompatible type for argument 1 of 'dev_name' drivers/hid/usbhid/hid-core.c: In function 'usbhid_init_reports':
drivers/hid/usbhid/hid-core.c:568: error: incompatible type for argument 1 of 'dev_driver_string' drivers/hid/usbhid/hid-core.c:568: error: incompatible type for argument 1 of 'dev_name' make[3]: *** [drivers/hid/usbhid/hid-core.o] Error 1
make[2]: *** [drivers/hid/usbhid] Error 2
make[1]: *** [drivers/hid] Error 2
make: *** [drivers] Error 2
-------------------

---
 drivers/hid/usbhid/hid-core.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Index: b/drivers/hid/usbhid/hid-core.c
===================================================================

drivers/hid/usbhid/hid-core.c +3 -4
@@ -414,7 +414,7 @@ void usbhid_submit_report(struct hid_dev
 
 		if ((head = (usbhid->outhead + 1) & (HID_OUTPUT_FIFO_SIZE - 1)) == usbhid->outtail) {
 			spin_unlock_irqrestore(&usbhid->outlock, flags);
-			dev_warn(hid->dev, "output queue full\n");
+			dev_warn(&hid->dev, "output queue full\n");
 			return;
 		}
 
@@ -433,7 +433,7 @@ void usbhid_submit_report(struct hid_dev
 
 	if ((head = (usbhid->ctrlhead + 1) & (HID_CONTROL_FIFO_SIZE - 1)) == usbhid->ctrltail) {
 		spin_unlock_irqrestore(&usbhid->ctrllock, flags);
-		dev_warn(hid->dev, "control queue full\n");
+		dev_warn(&hid->dev, "control queue full\n");
 		return;
 	}
 
@@ -565,7 +565,7 @@ void usbhid_init_reports(struct hid_devi
 	}
 
 	if (err)
-		dev_warn(hid->dev, "timeout initializing reports\n");
+		dev_warn(&hid->dev, "timeout initializing reports\n");
 }
 
 /*
 
 
--

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#3 lore raw

Re: [mmotm 02/Oct] fix buid error of hid-core

Quoted 1 line · On Thu, 9 Oct 2008 15:45:19 +0900 (JST) KOSAKI Motohiro…

Ping!

I'm in hiding until linux-next comes back.

Quoted 5 lines
Quoted 5 lines

Patch against: mmotm 02 Oct
Applied after: usb-usb-remove-warn-macro-from-usbh.patch

fix following buiild error

Quoted 14 lines
Quoted 6 lines

-------------------------
CC [M] drivers/hid/usbhid/hid-core.o
drivers/hid/usbhid/hid-core.c: In function 'usbhid_submit_report':
drivers/hid/usbhid/hid-core.c:417: error: incompatible type for argument 1 of 'dev_driver_string' drivers/hid/usbhid/hid-core.c:417: error: incompatible type for argument 1 of 'dev_name' drivers/hid/usbhid/hid-core.c:436: error: incompatible type for argument 1 of 'dev_driver_string'

Quoted 8 lines

drivers/hid/usbhid/hid-core.c:436: error: incompatible type for argument 1 of 'dev_name' drivers/hid/usbhid/hid-core.c: In function 'usbhid_init_reports':
drivers/hid/usbhid/hid-core.c:568: error: incompatible type for argument 1 of 'dev_driver_string' drivers/hid/usbhid/hid-core.c:568: error: incompatible type for argument 1 of 'dev_name' make[3]: *** [drivers/hid/usbhid/hid-core.o] Error 1
make[2]: *** [drivers/hid/usbhid] Error 2
make[1]: *** [drivers/hid] Error 2
make: *** [drivers] Error 2

Attempting to remove a widely-used macro in a single patch within our distributed development model was, frankly, short-sighted to the point of stupidity. I've had enough of dealing with stuff like this. If Stephen wants to take it on then fine.

otoh given that others need to depend on this mess to get work done, I guess I'm forced to continue to take out the garbage. Sigh.

#4 lore raw

Re: [mmotm 02/Oct] fix buid error of hid-core

Quoted 3 lines
Quoted 1 line

Ping!

I'm in hiding until linux-next comes back.

Oh, I see.
sorry for that.

Quoted 15 lines
Quoted 6 lines
Quoted 6 lines

-------------------------
CC [M] drivers/hid/usbhid/hid-core.o
drivers/hid/usbhid/hid-core.c: In function 'usbhid_submit_report':
drivers/hid/usbhid/hid-core.c:417: error: incompatible type for argument 1 of 'dev_driver_string' drivers/hid/usbhid/hid-core.c:417: error: incompatible type for argument 1 of 'dev_name' drivers/hid/usbhid/hid-core.c:436: error: incompatible type for argument 1 of 'dev_driver_string'

Quoted 8 lines
Quoted 8 lines

drivers/hid/usbhid/hid-core.c:436: error: incompatible type for argument 1 of 'dev_name' drivers/hid/usbhid/hid-core.c: In function 'usbhid_init_reports':
drivers/hid/usbhid/hid-core.c:568: error: incompatible type for argument 1 of 'dev_driver_string' drivers/hid/usbhid/hid-core.c:568: error: incompatible type for argument 1 of 'dev_name' make[3]: *** [drivers/hid/usbhid/hid-core.o] Error 1
make[2]: *** [drivers/hid/usbhid] Error 2
make[1]: *** [drivers/hid] Error 2
make: *** [drivers] Error 2

Quoted 7 lines

Attempting to remove a widely-used macro in a single patch within our distributed development model was, frankly, short-sighted to the point of stupidity. I've had enough of dealing with stuff like this. If Stephen wants to take it on then fine.

otoh given that others need to depend on this mess to get work done, I guess I'm forced to continue to take out the garbage. Sigh.

yup.
I fully agree it ;)

#5 lore raw

[mmotm 02/Oct] fix buid error of md raid

In reply to KOSAKI Motohiro

Patch against: mmotm 02 Oct
Applied after: git-md.patch

fix following build error

--------------------
CC drivers/md/raid1.o
drivers/md/raid1.c: In function 'sync_request':
drivers/md/raid1.c:1759: error: implicit declaration of function 'msleep_interruptible' make[2]: *** [drivers/md/raid1.o] Error 1
make[1]: *** [drivers/md] Error 2
make: *** [drivers] Error 2

CC drivers/md/raid10.o
drivers/md/raid10.c: In function 'sync_request':
drivers/md/raid10.c:1749: error: implicit declaration of function 'msleep_interruptible' make[2]: *** [drivers/md/raid10.o] Error 1

CC drivers/md/md.o
drivers/md/md.c: In function 'md_do_sync':
drivers/md/md.c:5914: error: implicit declaration of function 'msleep' drivers/md/md.c: In function 'md_notify_reboot':
drivers/md/md.c:6265: error: implicit declaration of function 'mdelay' make[2]: *** [drivers/md/md.o] Error 1
make[1]: *** [drivers/md] Error 2
make: *** [drivers] Error 2
----------------------

---
 drivers/md/md.c     |    1 +
 drivers/md/raid1.c  |    1 +
 drivers/md/raid10.c |    1 +
 3 files changed, 3 insertions(+)
drivers/md/raid1.c +1 -0
Index: b/drivers/md/raid1.c
===================================================================
@@ -34,6 +34,7 @@
 #include "dm-bio-list.h"
 #include <linux/raid/raid1.h>
 #include <linux/raid/bitmap.h>
+#include <linux/delay.h>
 
 #define DEBUG 0
 #if DEBUG
drivers/md/md.c +1 -0
Index: b/drivers/md/md.c
===================================================================
@@ -44,6 +44,7 @@
 #include <linux/random.h>
 #include <linux/reboot.h>
 #include <linux/file.h>
+#include <linux/delay.h>
 
 #define MAJOR_NR MD_MAJOR
 
drivers/md/raid10.c +1 -0
Index: b/drivers/md/raid10.c
===================================================================
@@ -21,6 +21,7 @@
 #include "dm-bio-list.h"
 #include <linux/raid/raid10.h>
 #include <linux/raid/bitmap.h>
+#include <linux/delay.h>
 
 /*
  * RAID10 provides a combination of RAID0 and RAID1 functionality.
#6 lore raw

Re: [mmotm 02/Oct] fix buid error of md raid

Hi Andrew, Neil

Ping!

Quoted 84 lines

Patch against: mmotm 02 Oct
Applied after: git-md.patch

fix following build error

--------------------
CC drivers/md/raid1.o
drivers/md/raid1.c: In function 'sync_request':
drivers/md/raid1.c:1759: error: implicit declaration of function 'msleep_interruptible' make[2]: *** [drivers/md/raid1.o] Error 1
make[1]: *** [drivers/md] Error 2
make: *** [drivers] Error 2

CC drivers/md/raid10.o
drivers/md/raid10.c: In function 'sync_request':
drivers/md/raid10.c:1749: error: implicit declaration of function 'msleep_interruptible' make[2]: *** [drivers/md/raid10.o] Error 1

CC drivers/md/md.o
drivers/md/md.c: In function 'md_do_sync':
drivers/md/md.c:5914: error: implicit declaration of function 'msleep' drivers/md/md.c: In function 'md_notify_reboot':
drivers/md/md.c:6265: error: implicit declaration of function 'mdelay' make[2]: *** [drivers/md/md.o] Error 1
make[1]: *** [drivers/md] Error 2
make: *** [drivers] Error 2
----------------------

---
 drivers/md/md.c     |    1 +
 drivers/md/raid1.c  |    1 +
 drivers/md/raid10.c |    1 +
 3 files changed, 3 insertions(+)

Index: b/drivers/md/raid1.c
===================================================================

drivers/md/raid1.c +1 -0
@@ -34,6 +34,7 @@
 #include "dm-bio-list.h"
 #include <linux/raid/raid1.h>
 #include <linux/raid/bitmap.h>
+#include <linux/delay.h>
 
 #define DEBUG 0
 #if DEBUG

Index: b/drivers/md/md.c
===================================================================

drivers/md/md.c +1 -0
@@ -44,6 +44,7 @@
 #include <linux/random.h>
 #include <linux/reboot.h>
 #include <linux/file.h>
+#include <linux/delay.h>
 
 #define MAJOR_NR MD_MAJOR
 

Index: b/drivers/md/raid10.c
===================================================================

drivers/md/raid10.c +1 -1
@@ -21,6 +21,7 @@
 #include "dm-bio-list.h"
 #include <linux/raid/raid10.h>
 #include <linux/raid/bitmap.h>
+#include <linux/delay.h>
 
 /*
  * RAID10 provides a combination of RAID0 and RAID1 functionality.
 
 
--

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#7 lore raw
In reply to KOSAKI Motohiro
Quoted 24 lines · KOSAKI Motohiro

Patch against: mmotm 02 Oct
Applied after: git-fastboot.patch

fix following build error

Quoted 5 lines

CC init/do_mounts_md.o
init/do_mounts_md.c: In function 'autodetect_raid':
init/do_mounts_md.c:278: error: implicit declaration of function 'msleep' make[1]: *** [init/do_mounts_md.o] Error 1
make: *** [init] Error 2

CC Arjan van de Ven <[email protected]>
CC Ingo Molnar <[email protected]>
---
 init/do_mounts_md.c |    1 +
 1 file changed, 1 insertion(+)

Index: b/init/do_mounts_md.c
===================================================================

init/do_mounts_md.c line 3

Quoted 3 lines
init/do_mounts_md.c +1 -0
@@ -1,5 +1,6 @@
 
 #include <linux/raid/md.h>
+#include <linux/delay.h>

hm, linux/raid/md.h already has:

  #include <linux/delay.h>

what config triggers this build failure, and does your version of include/linux/raid/md.h have a linux/delay.h #include?

Ingo

#8 lore raw

Hi Ingo,

Thank you for very quick responce.

Quoted 6 lines
Quoted 6 lines

Index: b/init/do_mounts_md.c
===================================================================

init/do_mounts_md.c +0 -0
@@ -1,5 +1,6 @@
 
Quoted 8 lines

init/do_mounts_md.c line 3

Quoted 2 lines
init/do_mounts_md.c +1 -0
 #include <linux/raid/md.h>
+#include <linux/delay.h>

hm, linux/raid/md.h already has:

  #include <linux/delay.h>

what config triggers this build failure,

config attached.

Quoted 2 lines

and does your version of include/linux/raid/md.h have a linux/delay.h #include?

No.

git-md.patch of current mmotm has following hunk.
ok, CCing NeilBrown and Andre Noll.

Quoted 28 lines

diff -puN include/linux/raid/md.h~git-md include/linux/raid/md.h

include/linux/raid/md.h renamed from include/linux/raid/md.h~git-md +0 -20
@@ -19,27 +19,7 @@
 #define _MD_H
 
 #include <linux/blkdev.h>
-#include <linux/major.h>
-#include <linux/ioctl.h>
-#include <linux/types.h>
-#include <linux/bitops.h>
-#include <linux/module.h>
-#include <linux/hdreg.h>
-#include <linux/proc_fs.h>
 #include <linux/seq_file.h>
-#include <linux/smp_lock.h>
-#include <linux/delay.h>
-#include <net/checksum.h>
-#include <linux/random.h>
-#include <linux/kernel_stat.h>
-#include <asm/io.h>
-#include <linux/completion.h>
-#include <linux/mempool.h>
-#include <linux/list.h>
-#include <linux/reboot.h>
-#include <linux/vmalloc.h>
-#include <linux/blkpg.h>
-#include <linux/bio.h>
#9 lore raw
Quoted 50 lines · KOSAKI Motohiro

Hi Ingo,

Thank you for very quick responce.

Quoted 6 lines
Quoted 6 lines

Index: b/init/do_mounts_md.c
===================================================================

init/do_mounts_md.c +0 -0
@@ -1,5 +1,6 @@
 
Quoted 8 lines

init/do_mounts_md.c line 3

Quoted 2 lines
init/do_mounts_md.c +1 -0
 #include <linux/raid/md.h>
+#include <linux/delay.h>

hm, linux/raid/md.h already has:

  #include <linux/delay.h>

what config triggers this build failure,

config attached.

Quoted 2 lines

and does your version of include/linux/raid/md.h have a linux/delay.h #include?

No.

git-md.patch of current mmotm has following hunk.
ok, CCing NeilBrown and Andre Noll.

Quoted 20 lines

diff -puN include/linux/raid/md.h~git-md include/linux/raid/md.h

include/linux/raid/md.h renamed from include/linux/raid/md.h~git-md +0 -12
@@ -19,27 +19,7 @@
 #define _MD_H
 
 #include <linux/blkdev.h>
-#include <linux/major.h>
-#include <linux/ioctl.h>
-#include <linux/types.h>
-#include <linux/bitops.h>
-#include <linux/module.h>
-#include <linux/hdreg.h>
-#include <linux/proc_fs.h>
 #include <linux/seq_file.h>
-#include <linux/smp_lock.h>
-#include <linux/delay.h>
-#include <net/checksum.h>
-#include <linux/random.h>
-#include <linux/kernel_stat.h>
Quoted 8 lines

include/linux/raid/md.h line 42

Quoted 8 lines
include/linux/raid/md.h renamed from include/linux/raid/md.h~git-md +0 -8
-#include <asm/io.h>
-#include <linux/completion.h>
-#include <linux/mempool.h>
-#include <linux/list.h>
-#include <linux/reboot.h>
-#include <linux/vmalloc.h>
-#include <linux/blkpg.h>
-#include <linux/bio.h>

ah, that indeed makes sense.

so the build error can not hit the fastboot tree, only if combined with the latest raid tree. I've applied your fix to tip/fastboot, thanks!

Ingo