[PATCH 1/2] ASoC: fsl_sarc_dma: Check pair before using it

2014-08-03 Thread Nicolin Chen
The patch 3117bb3109dc: "ASoC: fsl_asrc: Add ASRC ASoC CPU DAI and platform drivers" from Jul 29, 2014, leads to the following Smatch complaint: sound/soc/fsl/fsl_asrc_dma.c:304 fsl_asrc_dma_shutdown() warn: variable dereferenced before check 'pair' (see line 302) sound/soc/fsl/fsl_asrc_dma.c 301

[PATCH 2/2] ASoC: fsl_asrc: Don't access members of config before checking it

2014-08-03 Thread Nicolin Chen
sound/soc/fsl/fsl_asrc.c:250 fsl_asrc_config_pair() warn: variable dereferenced before check 'config' (see line 243) git remote add next git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git remote update next git checkout 3117bb3109dc223e186302f5dc8ce9ed04adca90 vim +/con

[PATCH 0/2] ASoC: fsl_asrc: Fix two dereferenced variable before check

2014-08-03 Thread Nicolin Chen
These two patches fixes two warning of dereferenced variable reported by Dan Carpenter Nicolin Chen (2): ASoC: fsl_sarc_dma: Check pair before using it ASoC: fsl_asrc: Don't access members of config before checking it sound/soc/fsl/fsl_asrc.c | 9 ++--- sound/soc/fsl/fsl_asrc_dma.c

Re: scheduler crash on Power

2014-08-03 Thread Michael Ellerman
On Fri, 2014-08-01 at 14:24 -0700, Sukadev Bhattiprolu wrote: > Dietmar Eggemann [dietmar.eggem...@arm.com] wrote: > | > ltcbrazos2-lp07 login: [ 181.915974] [ cut here ] > | > [ 181.915991] WARNING: at ../kernel/sched/core.c:5881 > | > | This warning indicates the proble

Re: [PATCH v3] powerpc/kvm: support to handle sw breakpoint

2014-08-03 Thread Segher Boessenkool
> +/* > + * KVMPPC_INST_BOOK3S_DEBUG is debug Instruction for supporting Software > Breakpoint. > + * Based on PowerISA v2.07, Instruction with opcode 0s will be treated as > illegal > + * instruction. > + */ "primary opcode 0" instead? > +#define OP_ZERO 0x0 Using 0x0 where yo

Re: [PATCH] powerpc/cpuidle: Fix parsing of idle state flags from device-tree

2014-08-03 Thread Preeti U Murthy
On 08/03/2014 01:23 PM, Vaidyanathan Srinivasan wrote: > Flags from device-tree need to be parsed with accessors for > interpreting correct value in little-endian. > > Signed-off-by: Vaidyanathan Srinivasan > --- > drivers/cpuidle/cpuidle-powernv.c | 16 > 1 file changed, 8 in

[PATCH] powerpc/cpufreq: Add pr_warn() on OPAL firmware failures

2014-08-03 Thread Vaidyanathan Srinivasan
Cpufreq depends on platform firmware to implement PStates. In case of platform firmware failure, cpufreq should not panic host kernel with BUG_ON(). Less severe pr_warn() will suffice. Add firmware_has_feature(FW_FEATURE_OPALv3) check to skip probing for device-tree on non-powernv platforms. Si

[PATCH] powerpc/cpuidle: Fix parsing of idle state flags from device-tree

2014-08-03 Thread Vaidyanathan Srinivasan
Flags from device-tree need to be parsed with accessors for interpreting correct value in little-endian. Signed-off-by: Vaidyanathan Srinivasan --- drivers/cpuidle/cpuidle-powernv.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/cpuidle/cpuidle-pow