Messages in this thread | | | Date | Mon, 18 Mar 2019 10:30:25 +1100 | From | Stephen Rothwell <> | Subject | linux-next: build warning after merge of the bluetooth tree |
| |
Hi all,
After merging the bluetooth tree, today's linux-next build (x86_64 allmodconfig) produced this warning:
drivers/bluetooth/btmtksdio.c: In function 'btmtksdio_interrupt': drivers/bluetooth/btmtksdio.c:470:2: warning: 'old_len' may be used uninitialized in this function [-Wmaybe-uninitialized] print_hex_dump(KERN_ERR, "err sdio rx: ", DUMP_PREFIX_NONE, 4, 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ old_data, old_len, true); ~~~~~~~~~~~~~~~~~~~~~~~~ drivers/bluetooth/btmtksdio.c:376:15: note: 'old_len' was declared here unsigned int old_len; ^~~~~~~ drivers/bluetooth/btmtksdio.c:470:2: warning: 'old_data' may be used uninitialized in this function [-Wmaybe-uninitialized] print_hex_dump(KERN_ERR, "err sdio rx: ", DUMP_PREFIX_NONE, 4, 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ old_data, old_len, true); ~~~~~~~~~~~~~~~~~~~~~~~~ drivers/bluetooth/btmtksdio.c:375:17: note: 'old_data' was declared here unsigned char *old_data; ^~~~~~~~
Introduced by commit
d74eef2834b5 ("Bluetooth: mediatek: add support for MediaTek MT7663S and MT7668S SDIO")
-- Cheers, Stephen Rothwell [unhandled content-type:application/pgp-signature] | |