linux-next: build warning after merge of the gfs2 tree

2 messages, 2 authors, 2019-12-10 · open the first message on its own page

linux-next: build warning after merge of the gfs2 tree

From: Stephen Rothwell <hidden>
Date: 2019-12-10 23:10:09

Hi all,

After merging the gfs2 tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

fs/gfs2/lops.c: In function 'gfs2_find_jhead':
fs/gfs2/lops.c:536:13: warning: 'bio_chained' may be used uninitialized in this function [-Wmaybe-uninitialized]
  536 |    if (!bio || (bio_chained && !off)) {
      |        ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~

Introduced by commit

  1ee366c67176 ("gfs2: Another gfs2_find_jhead fix")

-- 
Cheers,
Stephen Rothwell

Re: linux-next: build warning after merge of the gfs2 tree

From: Andreas Grünbacher <hidden>
Date: 2019-12-10 23:21:04

Hi Stephen,

Am Mi., 11. Dez. 2019 um 00:10 Uhr schrieb Stephen Rothwell
[off-list ref]:
Hi all,

After merging the gfs2 tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

fs/gfs2/lops.c: In function 'gfs2_find_jhead':
fs/gfs2/lops.c:536:13: warning: 'bio_chained' may be used uninitialized in this function [-Wmaybe-uninitialized]
  536 |    if (!bio || (bio_chained && !off)) {
      |        ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~

Introduced by commit

  1ee366c67176 ("gfs2: Another gfs2_find_jhead fix")
thanks. It's actually a false positive and I'm not getting this
warning, but I'll make the code more explicit.

Andreas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help