Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages Nov 30, 2018 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Andrew,

After merging the akpm tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

lib/lzo/lzo1x_compress.c: In function 'lzo1x_1_do_compress':
lib/lzo/lzo1x_compress.c:239:14: warning: 'm_pos' may be used uninitialized in this function [-Wmaybe-uninitialized]

   m_off = ip - m_pos;
           ~~~^~~~~~~

Probably introduced by patch

"lib/lzo: implement run-length encoding"
or
"lib/lzo: separate lzo-rle from lzo"

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 5 lines · Stephen Rothwell

After merging the akpm tree, today's linux-next build (arm multi_v7_defconfig) produced this warning:

lib/lzo/lzo1x_compress.c: In function 'lzo1x_1_do_compress':
lib/lzo/lzo1x_compress.c:239:14: warning: 'm_pos' may be used uninitialized in this function [-Wmaybe-uninitialized]

Quoted 7 lines
    m_off = ip - m_pos;
            ~~~^~~~~~~

Probably introduced by patch

"lib/lzo: implement run-length encoding"
or
"lib/lzo: separate lzo-rle from lzo"

Apologies, I didn't spot this (I think it's gcc only - clang, which I was testing with, seems smart enough not to report this false positive).

I've fixed it in the latest patchset (v4):

https://lkml.org/lkml/2018/11/30/972

Dave
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.