Skip to contentSkip to conversation

-git10 staging build warnings

DISCUSSION Randy Dunlap 3 participants 5 messages Oct 21, 2008

lore
Share & tools
lore
#0 lore raw

i386:

drivers/staging/sxg/sxg.c:462: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int' drivers/staging/sxg/sxg.c:479: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int' drivers/staging/sxg/sxg.c:540: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int' drivers/staging/sxg/sxg.c:571: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int'

x86_64:

drivers/staging/winbond/./linux/wbusb .c:109: warning: 'struct ieee80211_tx_control' declared inside parameter list drivers/staging/winbond/./linux/wbusb.c:109: warning: its scope is only this definition or declaration, which is proba bly not what you want drivers/staging/winbond/./linux/wbusb .c:172: warning: initialization from incompatible pointer type
drivers/staging/winbond/./linux/wbusb .c:174: warning: initialization from incompatible pointer type
drivers/staging/winbond/./linux/wbusb .c:180: warning: initialization from incompatible pointer type
drivers/staging/winbond/./linux/wbusb .c:181: warning: initialization from incompatible pointer type
drivers/staging/winbond/./linux/wbusb .c:299: warning: ISO C90 forbids mixed declarations and code
drivers/staging/usbip/vhci_rx.c:204: warning: format '%d' expects type 'int', but argument 7 has type 'long unsigned int'
drivers/staging/winbond/sme_api.c:13: warning: no return statement in function returning non-void

#1 lore raw
Quoted 9 lines · Randy Dunlap

i386:

drivers/staging/sxg/sxg.c:462: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int' drivers/staging/sxg/sxg.c:479: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int' drivers/staging/sxg/sxg.c:540: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int' drivers/staging/sxg/sxg.c:571: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int'

x86_64:

Quoted 8 lines

drivers/staging/winbond/./linux/wbusb .c:109: warning: 'struct ieee80211_tx_control' declared inside parameter list drivers/staging/winbond/./linux/wbusb.c:109: warning: its scope is only this definition or declaration, which is proba bly not what you want drivers/staging/winbond/./linux/wbusb .c:172: warning: initialization from incompatible pointer type
drivers/staging/winbond/./linux/wbusb .c:174: warning: initialization from incompatible pointer type
drivers/staging/winbond/./linux/wbusb .c:180: warning: initialization from incompatible pointer type
drivers/staging/winbond/./linux/wbusb .c:181: warning: initialization from incompatible pointer type
drivers/staging/winbond/./linux/wbusb .c:299: warning: ISO C90 forbids mixed declarations and code
drivers/staging/usbip/vhci_rx.c:204: warning: format '%d' expects type 'int', but argument 7 has type 'long unsigned int'
drivers/staging/winbond/sme_api.c:13: warning: no return statement in function returning non-void

Thanks, I have quite a few -staging patches queued up, need to ensure these get fixed as well.

greg k-h

#2 lore raw
Quoted 7 lines · Greg KH
Quoted 6 lines · Randy Dunlap

i386:

drivers/staging/sxg/sxg.c:462: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int' drivers/staging/sxg/sxg.c:479: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int' drivers/staging/sxg/sxg.c:540: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int' drivers/staging/sxg/sxg.c:571: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int'

Greg, does this have anything to do with the fix-gcc-warnings patch I sent you a while back?

Quoted 22 lines
Quoted 11 lines

x86_64:

drivers/staging/winbond/./linux/wbusb .c:109: warning: 'struct ieee80211_tx_control' declared inside parameter list drivers/staging/winbond/./linux/wbusb.c:109: warning: its scope is only this definition or declaration, which is proba bly not what you want drivers/staging/winbond/./linux/wbusb .c:172: warning: initialization from incompatible pointer type
drivers/staging/winbond/./linux/wbusb .c:174: warning: initialization from incompatible pointer type
drivers/staging/winbond/./linux/wbusb .c:180: warning: initialization from incompatible pointer type
drivers/staging/winbond/./linux/wbusb .c:181: warning: initialization from incompatible pointer type
drivers/staging/winbond/./linux/wbusb .c:299: warning: ISO C90 forbids mixed declarations and code
drivers/staging/usbip/vhci_rx.c:204: warning: format '%d' expects type 'int', but argument 7 has type 'long unsigned int'
drivers/staging/winbond/sme_api.c:13: warning: no return statement in function returning non-void

Thanks, I have quite a few -staging patches queued up, need to ensure these get fixed as well.

greg k-h
--
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
Quoted 11 lines · J.R. Mauro
Quoted 7 lines · Greg KH
Quoted 6 lines · Randy Dunlap

i386:

drivers/staging/sxg/sxg.c:462: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int' drivers/staging/sxg/sxg.c:479: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int' drivers/staging/sxg/sxg.c:540: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int' drivers/staging/sxg/sxg.c:571: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'unsigned int'

Greg, does this have anything to do with the fix-gcc-warnings patch I sent you a while back?

I don't know, I don't see that one in my "to-apply" queue, so either I missed it, or it's already applied :)

I've now fixed this in my tree, it was a simple change.

thanks,

greg k-h

#4 lore raw
In reply to Randy Dunlap
Quoted 10 lines · Randy Dunlap

x86_64:

drivers/staging/winbond/./linux/wbusb .c:109: warning: 'struct ieee80211_tx_control' declared inside parameter list drivers/staging/winbond/./linux/wbusb.c:109: warning: its scope is only this definition or declaration, which is proba bly not what you want drivers/staging/winbond/./linux/wbusb .c:172: warning: initialization from incompatible pointer type
drivers/staging/winbond/./linux/wbusb .c:174: warning: initialization from incompatible pointer type
drivers/staging/winbond/./linux/wbusb .c:180: warning: initialization from incompatible pointer type
drivers/staging/winbond/./linux/wbusb .c:181: warning: initialization from incompatible pointer type
drivers/staging/winbond/./linux/wbusb .c:299: warning: ISO C90 forbids mixed declarations and code
drivers/staging/usbip/vhci_rx.c:204: warning: format '%d' expects type 'int', but argument 7 has type 'long unsigned int'
drivers/staging/winbond/sme_api.c:13: warning: no return statement in function returning non-void

Thanks, I've now fixed these.

greg k-h