Wind River Support Network

HomeDefectsLIN5-18365
Fixed

LIN5-18365 : WRL5 Uninitialized variables in drivers/mfd/*.c

Created: Mar 20, 2014    Updated: Dec 19, 2017
Resolved Date: Apr 16, 2014
Found In Version: 5.0.1
Fix Version: 5.0.1.14
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Kernel

Description

/workspace/projects/intel-xeon-core_cgl_0012_prj/bitbake_build/tmp/work/intel_xeon_core-wrs-linux/linux-windriver-3.4-r0/linux/drivers/mfd/wm8994-core.c:583:7: warning: 'patch_regs' may be used uninitialized in this function [-Wuninitialized]
/workspace/projects/intel-xeon-core_cgl_0012_prj/bitbake_build/tmp/work/intel_xeon_core-wrs-linux/linux-windriver-3.4-r0/linux/drivers/mfd/twl6030-irq.c:398:24: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
/workspace/projects/intel-xeon-core_cgl_0012_prj/bitbake_build/tmp/work/intel_xeon_core-wrs-linux/linux-windriver-3.4-r0/linux/drivers/mfd/twl6030-irq.c:415:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
/workspace/projects/intel-xeon-core_cgl_0012_prj/bitbake_build/tmp/work/intel_xeon_core-wrs-linux/linux-windriver-3.4-r0/linux/drivers/mfd/mc13xxx-core.c:783:10: warning: 'id' may be used uninitialized in this function [-Wuninitialized]
/workspace/projects/intel-xeon-core_cgl_0012_prj/bitbake_build/tmp/work/intel_xeon_core-wrs-linux/linux-windriver-3.4-r0/linux/drivers/mfd/rc5t583.c:105:15: warning: 'sleepseq_val' may be used uninitialized in this function [-Wuninitialized]
/workspace/projects/intel-xeon-core_cgl_0012_prj/bitbake_build/tmp/work/intel_xeon_core-wrs-linux/linux-windriver-3.4-r0/linux/drivers/mfd/rc5t583-irq.c:276:20: warning: 'master_int' may be used uninitialized in this function [-Wuninitialized]


Fixed in the attached fix. (the attached fix fixes the Wuninitialized but we have still some invalid pointer casts (see above warnings)

Other Downloads


Live chat
Online