* [ambarus:spi-nor/quad-v3 21/38] include/linux/compiler.h:58:31: warning: 'ret' is used uninitialized in this function
@ 2019-10-29 17:42 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-10-29 17:42 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2777 bytes --]
tree: https://github.com/ambarus/linux-0day spi-nor/quad-v3
head: 1b964e2c2dda78f5abd8245a612def9de93018d3
commit: 7b2087807e922dee46fb271479251023fa127221 [21/38] mtd: spi-nor: Check for errors after each Register Operation
config: i386-randconfig-a003-201943 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
git checkout 7b2087807e922dee46fb271479251023fa127221
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/mtd/spi-nor/spi-nor.c: In function 'st_micron_set_4byte':
drivers/mtd/spi-nor/spi-nor.c:598:6: warning: value computed is not used [-Wunused-value]
ret == spi_nor_write_enable(nor);
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/err.h:5:0,
from drivers/mtd/spi-nor/spi-nor.c:10:
>> include/linux/compiler.h:58:31: warning: 'ret' is used uninitialized in this function [-Wuninitialized]
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~~~~~~~~~~~~~~~~~
drivers/mtd/spi-nor/spi-nor.c:596:6: note: 'ret' was declared here
int ret;
^~~
--
drivers/mtd//spi-nor/spi-nor.c: In function 'st_micron_set_4byte':
drivers/mtd//spi-nor/spi-nor.c:598:6: warning: value computed is not used [-Wunused-value]
ret == spi_nor_write_enable(nor);
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/err.h:5:0,
from drivers/mtd//spi-nor/spi-nor.c:10:
>> include/linux/compiler.h:58:31: warning: 'ret' is used uninitialized in this function [-Wuninitialized]
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~~~~~~~~~~~~~~~~~
drivers/mtd//spi-nor/spi-nor.c:596:6: note: 'ret' was declared here
int ret;
^~~
vim +/ret +58 include/linux/compiler.h
a15fd609ad53a6 Linus Torvalds 2019-03-20 57
a15fd609ad53a6 Linus Torvalds 2019-03-20 @58 #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
a15fd609ad53a6 Linus Torvalds 2019-03-20 59
:::::: The code at line 58 was first introduced by commit
:::::: a15fd609ad53a631a927c6680e8fb606f42a712b tracing: Simplify "if" macro code
:::::: TO: Linus Torvalds <torvalds@linux-foundation.org>
:::::: CC: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27440 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-29 17:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-29 17:42 [ambarus:spi-nor/quad-v3 21/38] include/linux/compiler.h:58:31: warning: 'ret' is used uninitialized in this function kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.