linux-next: build warning after merge of the wireless-drivers-next tree
Hi all,
After merging the wireless-drivers-next tree, today's linux-next build (x86_64 allmodconfig) produced this warning:
In file included from include/linux/usb/ch9.h:35:0,
from include/linux/usb.h:5,
from drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:32:drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c: In function 'rtl8xxxu_fill_txdesc_v2':include/linux/device.h:1214:36: warning: 'rate' may be used uninitialized in this function [-Wmaybe-uninitialized]
#define dev_info(dev, fmt, arg...) _dev_info(dev, fmt, ##arg)
^
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:4841:6: note: 'rate' was declared here
u32 rate;
^Introduced by commit
b4c3d9cfb607 ("rtl8xxxu: Pass tx_info to fill_txdesc in order to have access to retry count")
This is a correct diagnosis.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 16 lines · Stephen Rothwell
Hi all,
After merging the wireless-drivers-next tree, today's linux-next build (
x86_64allmodconfig) produced this warning:In file included from
include/linux/usb/ch9.h:35:0,
frominclude/linux/usb.h:5,
fromdrivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:32:drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c: In function 'rtl8xxxu_fill_txdesc_v2':include/linux/device.h:1214:36: warning: 'rate' may be used uninitialized in this function [-Wmaybe-uninitialized]#define dev_info(dev, fmt, arg...) _dev_info(dev, fmt, ##arg) ^ drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:4841:6: note: 'rate' was declared here u32 rate; ^
Quoted 5 lines
Introduced by commit
b4c3d9cfb607("rtl8xxxu: Passtx_infotofill_txdescin order to have access to retry count")This is a correct diagnosis.
Thanks for the report. Jes, can you send a patch to fix this? (Unless someone else beats to it.)
Signature · 1 line
Kalle Valo
Quoted 18 lines · Kalle Valo
Quoted 16 lines · Stephen Rothwell
Hi all,
After merging the wireless-drivers-next tree, today's linux-next build (
x86_64allmodconfig) produced this warning:In file included from
include/linux/usb/ch9.h:35:0,
frominclude/linux/usb.h:5,
fromdrivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:32:drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c: In function 'rtl8xxxu_fill_txdesc_v2':include/linux/device.h:1214:36: warning: 'rate' may be used uninitialized in this function [-Wmaybe-uninitialized]#define dev_info(dev, fmt, arg...) _dev_info(dev, fmt, ##arg) ^ drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:4841:6: note: 'rate' was declared here u32 rate; ^
Quoted 11 lines
Quoted 5 lines
Introduced by commit
b4c3d9cfb607("rtl8xxxu: Passtx_infotofill_txdescin order to have access to retry count")This is a correct diagnosis.
Thanks for the report. Jes, can you send a patch to fix this? (Unless someone else beats to it.)
Signature · 1 line
Kalle Valo
I posted a patch on the 26th that fixes this
Barry
Quoted 25 lines · Barry Day
Quoted 24 lines · Kalle Valo
Quoted 21 lines · Stephen Rothwell
Hi all,
After merging the wireless-drivers-next tree, today's linux-next build (
x86_64allmodconfig) produced this warning:In file included from
include/linux/usb/ch9.h:35:0,
frominclude/linux/usb.h:5,
fromdrivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:32:drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c: In function 'rtl8xxxu_fill_txdesc_v2':include/linux/device.h:1214:36: warning: 'rate' may be used uninitialized in this function [-Wmaybe-uninitialized]#define dev_info(dev, fmt, arg...) _dev_info(dev, fmt, ##arg) ^ drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:4841:6: note: 'rate' was declared here u32 rate; ^Introduced by commit
b4c3d9cfb607("rtl8xxxu: Passtx_infotofill_txdescin order to have access to retry count")This is a correct diagnosis.
Quoted 7 lines
Quoted 5 lines
Thanks for the report. Jes, can you send a patch to fix this? (Unless someone else beats to it.)
Signature · 1 line
Kalle ValoI posted a patch on the 26th that fixes this
Thanks, I see it:
https://patchwork.kernel.org/patch/9448225/
The commit log doesn't mention anything about the compilation warning, I'll add that. Also a Fixes line is nice to have.
Signature · 1 line
Kalle Valo
Jes Sorensen
Acked-byQuoted 33 lines · Kalle Valo
Quoted 31 lines · Barry Day
Quoted 29 lines · Kalle Valo
Quoted 16 lines · Stephen Rothwell
Hi all,
After merging the wireless-drivers-next tree, today's linux-next build (
x86_64allmodconfig) produced this warning:In file included from
include/linux/usb/ch9.h:35:0,
frominclude/linux/usb.h:5,
fromdrivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:32:drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c: In function 'rtl8xxxu_fill_txdesc_v2':include/linux/device.h:1214:36: warning: 'rate' may be used uninitialized in this function [-Wmaybe-uninitialized]#define dev_info(dev, fmt, arg...) _dev_info(dev, fmt, ##arg) ^ drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:4841:6: note: 'rate' was declared here u32 rate; ^Quoted 5 lines
Introduced by commit
b4c3d9cfb607("rtl8xxxu: Passtx_infotofill_txdescin order to have access to retry count")This is a correct diagnosis.
Thanks for the report. Jes, can you send a patch to fix this? (Unless someone else beats to it.)
Signature · 1 line
Kalle Valo
Quoted 8 lines
Quoted 1 line
I posted a patch on the 26th that fixes this
Thanks, I see it:
https://patchwork.kernel.org/patch/9448225/
The commit log doesn't mention anything about the compilation warning, I'll add that. Also a Fixes line is nice to have.
I'm happy with this fix