Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages Nov 16, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi all,

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

kernel/bpf/bpf_lru_list.c: In function '__bpf_lru_list_rotate_inactive.isra.3':
kernel/bpf/bpf_lru_list.c:201:28: warning: 'next' may be used uninitialized in this function [-Wmaybe-uninitialized]

  l->next_inactive_rotation = next;
                            ^

Introduced by commit

3a08c2fd7634 ("bpf: LRU List")

I can't tell if this is a false positive or not.

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

Hi all,

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

kernel/bpf/bpf_lru_list.c: In function '__bpf_lru_list_rotate_inactive.isra.3':
kernel/bpf/bpf_lru_list.c:201:28: warning: 'next' may be used uninitialized in this function [-Wmaybe-uninitialized]

Quoted 8 lines
  l->next_inactive_rotation = next;
                            ^

Introduced by commit

3a08c2fd7634 ("bpf: LRU List")

I can't tell if this is a false positive or not.

A false positive.

A patch has been posted: https://patchwork.ozlabs.org/patch/695202/

Thanks for the report.
--Martin