kconfig: Fix warning: ignoring return value of 'fgets'

This fix facilitates fgets() either it returns on success or on error or
when end of file occurs.

Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts:conf.c Fix warning: variable 'type' set but not used

Not sure if this is correct or not, but with
make menuconfig
  HOSTCC  scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function 'conf_sym':
scripts/kconfig/conf.c:159:6: warning: variable 'type' set but not used
scripts/kconfig/conf.c: In function 'conf_choice':
scripts/kconfig/conf.c:231:6: warning: variable 'type' set but not used
  HOSTLD  scripts/kconfig/mconf

I get this using gcc 4.6.0 the below change fixes this form me.

Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
The return value of wattrset() is being ignored in the
code and newer compilers complain about this e.g.

HOSTCC  scripts/kconfig/lxdialog/checklist.o
scripts/kconfig/lxdialog/checklist.c: In function print_item:
scripts/kconfig/lxdialog/checklist.c:40: warning: value computed is not used
scripts/kconfig/lxdialog/checklist.c:46: warning: value computed is not used

Let the compiler know that ignore is intentional.

Signed-off-by: Sanjeev Premi <premi@ti.com>
kbuild: Fix passing -Wno-* options to gcc 4.4+

[ upstream commit 8417da6 ]

Starting with 4.4, gcc will happily accept -Wno-<anything> in the
cc-option test and complain later when compiling a file that has some
other warning. This rather unexpected behavior is intentional as per
http://gcc.gnu.org/PR28322, so work around it by testing for support of
the opposite option (without the no-). Introduce a new Makefile function
cc-disable-warning that does this and update two uses of cc-option in
the toplevel Makefile.

Reported-and-tested-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Remove compiler warnings for gcc 4.5.0

init/main.c:734:10: warning: 'calltime.tv64' may be used uninitialized in
this function
kernel/async.c:127:10: warning: 'calltime.tv64' may be used uninitialized in
this function
kernel/async.c:283:10: warning: 'starttime.tv64' may be used uninitialized in
this function
drivers/base/power/main.c:305:10: warning: 'calltime.tv64' may be used uninitialized
in this function
drivers/base/power/main.c:305:10: warning: 'calltime.tv64' may be used uninitialized
in this function
fs/eventpoll.c:1118:7: warning: 'slack' may be used uninitialized in this function
drivers/md/dm.c:1118:3: warning: statement with no effect
drivers/md/dm.c:1146:3: warning: statement with no effect
drivers/md/dm-table.c:1065:2: warning: statement with no effect
drivers/md/dm-table.c:1071:2: warning: statement with no effect
net/ipv4/netfilter/nf_nat_standalone.c:118:2: warning: case value '4' not
in enumerated type 'enum ip_conntrack_info'
net/netfilter/nf_conntrack_netlink.c:762:11: warning: comparison between
'enum ctattr_tuple' and 'enum ctattr_type'
lib/decompress_bunzip2.c:511:1: warning: the frame size of 1872 bytes is
larger than 1024 bytes
drivers/regulator/core.c:2606:17: warning: 'err_ptr' may be used uninitialized
in this function
drivers/media/video/gspca/gspca.c:1508:2: warning: case value '7' not in
enumerated type 'enum v4l2_memory'

Change-Id: I72bd4784836c1f18d643b0747a296a2660106fa9
Signed-off-by: Ezra Godfrey <egodfrey@codeaurora.org>
arch/arm/kernel/return_address: remove excess warning
GCC fix - remove error check to build
GCC: Attempt to fix GCC 4.62 Compile Error
Silence the warning from gcc 4.5