Re: [PATCH] arm: Fix build warning

2014-06-16 Thread David Rientjes
On Fri, 13 Jun 2014, Guenter Roeck wrote: > If compiled with W=1, the following warning is seen in arm builds. > > arch/arm/kernel/topology.c:278:25: warning: > type qualifiers ignored on function return type > > This is caused by a function returning 'const int', which doesn't > make

Re: [PATCH] arm: Fix build warning

2014-06-16 Thread David Rientjes
On Fri, 13 Jun 2014, Guenter Roeck wrote: If compiled with W=1, the following warning is seen in arm builds. arch/arm/kernel/topology.c:278:25: warning: type qualifiers ignored on function return type This is caused by a function returning 'const int', which doesn't make sense to

[PATCH] arm: Fix build warning

2014-06-13 Thread Guenter Roeck
If compiled with W=1, the following warning is seen in arm builds. arch/arm/kernel/topology.c:278:25: warning: type qualifiers ignored on function return type This is caused by a function returning 'const int', which doesn't make sense to gcc. Drop 'const' to fix the problem.

[PATCH] arm: Fix build warning

2014-06-13 Thread Guenter Roeck
If compiled with W=1, the following warning is seen in arm builds. arch/arm/kernel/topology.c:278:25: warning: type qualifiers ignored on function return type This is caused by a function returning 'const int', which doesn't make sense to gcc. Drop 'const' to fix the problem.

Re: [PATCH] ARM: Fix build warning in do_alignment.

2012-09-10 Thread Chanho Min
> What it's caused by is do_alignment_t32_to_handler(), and its assignment > through a pointer of this variable. You can see that this is the cause > because the patch below fixes the warning. We couldn't fix the warning with your patch. the patch below fixes it instead. IMHO, gcc can't seems to

Re: [PATCH] ARM: Fix build warning in do_alignment.

2012-09-10 Thread Russell King - ARM Linux
On Mon, Sep 10, 2012 at 12:25:15PM +0900, Chanho Min wrote: > Fix the following build warning: > > arch/arm/mm/alignment.c: In function 'do_alignment': > arch/arm/mm/alignment.c:327:15: warning: 'offset.un' may be used > uninitialized in this function [-Wuninitialized] >

Re: [PATCH] ARM: Fix build warning in do_alignment.

2012-09-10 Thread Russell King - ARM Linux
On Mon, Sep 10, 2012 at 12:25:15PM +0900, Chanho Min wrote: Fix the following build warning: arch/arm/mm/alignment.c: In function 'do_alignment': arch/arm/mm/alignment.c:327:15: warning: 'offset.un' may be used uninitialized in this function [-Wuninitialized] arch/arm/mm/alignment.c:749:21:

Re: [PATCH] ARM: Fix build warning in do_alignment.

2012-09-10 Thread Chanho Min
What it's caused by is do_alignment_t32_to_handler(), and its assignment through a pointer of this variable. You can see that this is the cause because the patch below fixes the warning. We couldn't fix the warning with your patch. the patch below fixes it instead. IMHO, gcc can't seems to

[PATCH] ARM: Fix build warning in do_alignment.

2012-09-09 Thread Chanho Min
Fix the following build warning: arch/arm/mm/alignment.c: In function 'do_alignment': arch/arm/mm/alignment.c:327:15: warning: 'offset.un' may be used uninitialized in this function [-Wuninitialized] arch/arm/mm/alignment.c:749:21: note: 'offset.un' was declared here Signed-off-by: Chanho Min

[PATCH] ARM: Fix build warning in do_alignment.

2012-09-09 Thread Chanho Min
Fix the following build warning: arch/arm/mm/alignment.c: In function 'do_alignment': arch/arm/mm/alignment.c:327:15: warning: 'offset.un' may be used uninitialized in this function [-Wuninitialized] arch/arm/mm/alignment.c:749:21: note: 'offset.un' was declared here Signed-off-by: Chanho Min