Wind River Support Network

HomeDefectsLIN8-2932
Fixed

LIN8-2932 : 2 kernel warnings founded during the kernel compilation

Created: Mar 3, 2016    Updated: Dec 3, 2018
Resolved Date: Mar 3, 2016
Found In Version: 8.0.0.2
Fix Version: 8.0.0.3
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Kernel

Description

######################################################### 
     Start testcase kernwarning_buildcheck testing      
######################################################### 
<<start Check build warning>>
********************
root@Remley-EP-Ivy-Refresh-5:/root# cat /opt/wr-test/kernel.do_compile | grep -v 'TODO:' |grep -B10 -A10 'warning' ||return 0
  LD      drivers/firmware/efi/built-in.o
  LD      drivers/firmware/built-in.o
  CC      net/sched/act_api.o
  CC      drivers/gpio/devres.o
  CC      net/ipv6/ping.o
  CC      drivers/gpio/gpiolib.o
  CC      net/ipv4/arp.o
  CC      net/ipv6/exthdrs.o
  CC      net/sunrpc/sched.o
/WRL8/build_dir/bsp/GIT_201603/lxbuilds/Canoe-Pass-Ivy-Refresh_platform_up/intel-x86-64-standard-glibc-std/wrlinux/bitbake_build/tmp/work-shared/intel-x86-64/kernel-source/drivers/gpio/gpiolib.c: In function 'gpiod_set_drive':
/WRL8/build_dir/bsp/GIT_201603/lxbuilds/Canoe-Pass-Ivy-Refresh_platform_up/intel-x86-64-standard-glibc-std/wrlinux/bitbake_build/tmp/work-shared/intel-x86-64/kernel-source/drivers/gpio/gpiolib.c:1132:17: warning: unused variable 'flags' [-Wunused-variable]
  unsigned long  flags;
                 ^
  CC      net/ipv6/datagram.o
  CC      net/sched/sch_fifo.o
  CC      net/ipv4/icmp.o
  CC      net/ipv4/devinet.o
  CC      drivers/gpio/gpiolib-legacy.o
  CC      net/sched/cls_u32.o
  CC      net/sched/cls_basic.o
  CC      net/ipv6/ip6_flowlabel.o
  CC      drivers/gpio/gpiolib-sysfs.o
  CC      net/mac80211/spectmgmt.o
/WRL8/build_dir/bsp/GIT_201603/lxbuilds/Canoe-Pass-Ivy-Refresh_platform_up/intel-x86-64-standard-glibc-std/wrlinux/bitbake_build/tmp/work-shared/intel-x86-64/kernel-source/drivers/gpio/gpiolib-sysfs.c:462:2: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  &dev_attr_drive.attr,
  ^
  CC      net/sched/cls_cgroup.o
  CC      drivers/gpio/gpiolib-acpi.o
  CC      net/ipv4/af_inet.o
  CC      net/sunrpc/auth.o
  CC      net/sunrpc/auth_null.o
  CC      net/mac80211/tx.o
  CC      net/ipv6/inet6_connection_sock.o
  CC      drivers/gpio/gpio-lynxpoint.o
<<end Check build warning>>

Steps to Reproduce

/WRL8/product_install/wrlinux-8/wrlinux/configure --enable-board=intel-x86-64 --enable-kernel=standard --enable-rootfs=glibc-std --with-layer=/lpg-build/cdc/WASSP_LINUX_80/testcases/wrlinux/wr-testing/bts-dev --with-template=feature/bts --enable-jobs=8 --enable-parallel-pkgbuilds=8 --enable-reconfig=yes --with-rcpl-version=0

Other Downloads


Live chat
Online