Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[-Wmaybe-uninitialized] warnings while building bzImage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 2767
Location: Gainesville, Florida

PostPosted: Thu Sep 11, 2014 9:21 pm    Post subject: [-Wmaybe-uninitialized] warnings while building bzImage Reply with quote

Lately, with the 3.16.x gentoo-sources kernels, I've been getting [-Wmaybe-uninitialized] warnings when doing "make xconfig", right at the onset of building bzImage (on several different Gentoo installs, both x86 and amd64). After these warnings, make bzImage settles down with no other warnings, as usual.
The first is immediately after starting "make bzImage", and the others are several seconds later. No warnings on "make modules."

Everything completes, and kernels run normally, but I'm wondering if these nagging warnings are anything to be concerned about, and if they are caused by the kernel source, or perhaps a gentoo-sources patch? Or, maybe something I missed in my config file?

(The first warning is running make xconfig, and the others were with make bzImage).

EDIT: OK- just tried a 3.17-rc4 from kernel.org, and get the same warnings, so that must eliminate any gentoo-sources (and "USE=experimental" patches).
Code:
In file included from scripts/kconfig/zconf.tab.c:2537:0:
scripts/kconfig/menu.c: In function ‘get_symbol_str’:
scripts/kconfig/menu.c:590:18: warning: ‘jump’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     jump->offset = strlen(r->s);
                  ^
scripts/kconfig/menu.c:551:19: note: ‘jump’ was declared here
  struct jump_key *jump;

----------------------------------------------------


In file included from scripts/sortextable.c:194:0:
scripts/sortextable.c: In function ‘main’:
scripts/sortextable.h:176:3: warning: ‘relocs_size’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   memset(relocs, 0, relocs_size);
   ^
scripts/sortextable.h:106:6: note: ‘relocs_size’ was declared here
  int relocs_size;
      ^
In file included from scripts/sortextable.c:192:0:
scripts/sortextable.h:176:3: warning: ‘relocs_size’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   memset(relocs, 0, relocs_size);
   ^
scripts/sortextable.h:106:6: note: ‘relocs_size’ was declared here
  int relocs_size;
      ^
-----------------------------------------------------

fs/namespace.c: In function ‘SyS_mount’:
fs/namespace.c:2647:6: warning: ‘kernel_dev’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  ret = do_mount(kernel_dev, kernel_dir->name, kernel_type, flags,
      ^
fs/namespace.c:2626:8: note: ‘kernel_dev’ was declared here
  char *kernel_dev;
        ^
fs/namespace.c:2647:6: warning: ‘kernel_type’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  ret = do_mount(kernel_dev, kernel_dir->name, kernel_type, flags,
      ^
fs/namespace.c:2624:8: note: ‘kernel_type’ was declared here
  char *kernel_type;
        ^
  CC      fs/seq_file.o

_________________
Main box- Gigabyte GIGABYTE GA-990FXA-UD3 AM3+ rev.-4.0
Amd FX 8320, 3.5 GHz, 16GB GSkill DDR3 1866mhz
Samsung SATA 1000GB, Radeon HD 6570 2GB DDR3
Gentoo ~x86, ~amd64, glibc-2.19, gcc-4.9.0, kernel 3.16.1-gentoo (USE=experimental "native")
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum