fix buid error of autodetect_raid()
Patch against: mmotm 02 Oct
Applied after: git-fastboot.patch
fix following build error
Quoted 5 lines
CC
init/do_mounts_md.oinit/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
--- init/do_mounts_md.c | 1 + 1 file changed, 1 insertion(+)
init/do_mounts_md.c +1 -0
@@ -1,5 +1,6 @@#include <linux/raid/md.h> +#include <linux/delay.h> #include "do_mounts.h"
[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.odrivers/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
@@ -414,7 +414,7 @@ void usbhid_submit_report(struct hid_devif ((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_devif ((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" ); }/*
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.patchfix following buiild error
-------------------------
CC [M]drivers/hid/usbhid/hid-core.odrivers/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
-------------------Signed-off-by KOSAKI Motohiro <[email protected]>CC Andrew Morton <[email protected]>--- 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_devif ((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_devif ((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/
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.patchfix following buiild error
Quoted 14 lines
Quoted 6 lines
-------------------------
CC [M]drivers/hid/usbhid/hid-core.odrivers/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.
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.odrivers/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 ;)
[mmotm 02/Oct] fix buid error of md raid
In reply to KOSAKI MotohiroPatch against: mmotm 02 Oct
Applied after: git-md.patch
fix following build error
--------------------
CC drivers/md/raid1.odrivers/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.odrivers/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.odrivers/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
@@ -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
@@ -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
@@ -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.
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.patchfix following build error
--------------------
CCdrivers/md/raid1.odrivers/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 2CC
drivers/md/raid10.odrivers/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 1CC
drivers/md/md.odrivers/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
----------------------Signed-off-by KOSAKI Motohiro <[email protected]>CC NeilBrown <[email protected]>CC Andre Noll <[email protected]>--- 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_MAJORIndex:
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/
Quoted 24 lines · KOSAKI Motohiro
Patch against: mmotm 02 Oct
Applied after: git-fastboot.patchfix following build error
Quoted 5 lines
CC
init/do_mounts_md.oinit/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 2Signed-off-by KOSAKI Motohiro <[email protected]>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
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.halready 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.hhave alinux/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-mdinclude/linux/raid/md.hinclude/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>
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.halready 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.hhave alinux/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-mdinclude/linux/raid/md.hinclude/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