Wind River Support Network

HomeDefectsLIN10-3783
Fixed

LIN10-3783 : nxp-ls10xx: there are warnings in log.do_compile of linux kernel

Created: Apr 25, 2018    Updated: Apr 24, 2019
Resolved Date: May 7, 2018
Found In Version: 10.17.41.7
Fix Version: 10.17.41.7
Severity: Standard
Applicable for: Wind River Linux LTS 17
Component/s: BSP - Async

Description

$ cat log.do_compile| grep -v 'TODO:' |grep -i -B10 -A10 'warning'
  CC      arch/arm/mach-imx/system.o
  CC      arch/arm/mach-imx/irq-common.o
  CC      arch/arm/mach-imx/src.o
  AS      arch/arm/mach-imx/headsmp.o
  CC      arch/arm/mach-imx/platsmp.o
  CC      arch/arm/mach-imx/hotplug.o
  CC      arch/arm/mach-imx/mach-ls1021a.o
  CC      arch/arm/mach-imx/devices/devices.o
  CC      arch/arm/mach-imx/devices/platform-gpio-mxc.o
  CC      arch/arm/mach-imx/devices/platform-imx-dma.o
/project/nxp-ls10xx-standard-glibc/build/tmp-glibc/work-shared/nxp-ls10xx/kernel-source/arch/arm/mach-imx/platsmp.c:44:12: warning: 'secondary_pre_boot_entry' defined but not used [-Wunused-variable]
 static u32 secondary_pre_boot_entry;
            ^~~~~~~~~~~~~~~~~~~~~~~~
/project/nxp-ls10xx-standard-glibc/build/tmp-glibc/work-shared/nxp-ls10xx/kernel-source/arch/arm/mach-imx/platsmp.c:43:22: warning: 'scfg_base' defined but not used [-Wunused-variable]
 static void __iomem *scfg_base;
                      ^~~~~~~~~
/project/nxp-ls10xx-standard-glibc/build/tmp-glibc/work-shared/nxp-ls10xx/kernel-source/arch/arm/mach-imx/platsmp.c:42:22: warning: 'dcfg_base' defined but not used [-Wunused-variable]
 static void __iomem *dcfg_base;
                      ^~~~~~~~~
  LD      arch/arm/mach-imx/devices/built-in.o
  LD      arch/arm/mach-imx/built-in.o
  CC      kernel/fork.o
  CC      kernel/exec_domain.o
  CC      kernel/panic.o
  CC      kernel/cpu.o
  CC      kernel/exit.o
  CC      kernel/softirq.o
-- 
  LD      drivers/media/i2c/built-in.o
  LD      drivers/media/mmc/siano/built-in.o
  LD      drivers/media/mmc/built-in.o
  CC      drivers/mmc/core/host.o
  LD      drivers/gpu/drm/omapdrm/dss/built-in.o
  LD      drivers/gpu/drm/panel/built-in.o
  LD      drivers/gpu/drm/omapdrm/built-in.o
  CC      drivers/md/raid0.o
  CC      drivers/i2c/i2c-dev.o
/project/nxp-ls10xx-standard-glibc/build/tmp-glibc/work-shared/nxp-ls10xx/kernel-source/drivers/usb/common/common.c: In function 'of_usb_get_maximum_speed':
/project/nxp-ls10xx-standard-glibc/build/tmp-glibc/work-shared/nxp-ls10xx/kernel-source/drivers/usb/common/common.c:150:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (i = 0; i < ARRAY_SIZE(speed_names); i++)
  ^~~
/project/nxp-ls10xx-standard-glibc/build/tmp-glibc/work-shared/nxp-ls10xx/kernel-source/drivers/usb/common/common.c:154:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   return USB_SPEED_UNKNOWN;
   ^~~~~~
  CC      drivers/clk/clkdev.o
  CC      drivers/crypto/caam/ctrl.o
  CC      drivers/gpio/gpiolib.o
  CC      drivers/virtio/virtio_ring.o
  CC      drivers/irqchip/irq-gic.o 

Steps to Reproduce

--machines nxp-ls10xx --accept-eula yes --distros wrlinux --dl-layers
. environment-setup-x86_64-wrlinuxsdk-linux
. oe-init-build-env
bitbake-layers add-layer /buildarea1/kliang/wrlinux_10/wr-testing/bts-dev/
echo 'require templates/feature/bts/template.conf' >>conf/local.conf
sed -i "/#PREFERRED_PROVIDER_virtual\/kernel = \".*\"$/s/^.*$/PREFERRED_PROVIDER_virtual\/kernel = \"linux-yocto\"/g" conf/local.conf

bitbake wrlinux-image-glibc-std 

Other Downloads


Live chat
Online