compile warning

2007-10-26 Thread Sergej Stepanov
Hello! I have at compile time the following warning: WARNING: vmlinux.o(.text+0x10f5c): Section mismatch: reference to .init.text:cpm_muram_init (between 'cpm2_reset' and 'cpm2_smc_clk_setup') Could it make some problem? Thanks. -- Sergej I. Stepanov IDS GmbH Nobelstr. 18, Zim. 2.1.05 D-76275

Re: compile warning

2007-10-26 Thread Kumar Gala
On Oct 26, 2007, at 8:25 AM, Sergej Stepanov wrote: > Hello! > > I have at compile time the following warning: > > WARNING: vmlinux.o(.text+0x10f5c): Section mismatch: reference > to .init.text:cpm_muram_init (between 'cpm2_reset' and > 'cpm2_smc_clk_setup') > > Could it make some problem? It sh

Re: compile warning

2007-10-29 Thread Sergej Stepanov
thanks for your reply. > > > > WARNING: vmlinux.o(.text+0x10f5c): Section mismatch: reference > > to .init.text:cpm_muram_init (between 'cpm2_reset' and > > 'cpm2_smc_clk_setup') > > > It should be fixed, but its highly unlikely you'll see a problem > unless you start trying to build core parts o

Re: compile warning

2007-10-30 Thread Arnd Bergmann
On Tuesday 30 October 2007, Sergej Stepanov wrote: > -void > +void __init > cpm2_reset(void) > { > #ifdef CONFIG_PPC_85xx > > -- > I am not sure it is ok. Yes, this looks good. > > But i have other 2 warnings (no modules). > > WARNING: vmlinux.o(.exit.text+0x5da): Section m

[PATCH] gianfar: fix compile warning

2007-10-17 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Eliminate an uninitialized variable warning. The code is correct, but a pointer to the automatic variable 'addr' is passed to dma_alloc_coherent. Since addr has never been initialized, and the compiler doesn't know what dma_alloc_coherent will do with it, it

[PATCH] gianfar: fix compile warning

2007-12-01 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Eliminate an uninitialized variable warning. The code is correct, but a pointer to the automatic variable 'addr' is passed to dma_alloc_coherent. Since addr has never been initialized, and the compiler doesn't know what dma_alloc_coherent will do with it, it

platform_driver/of_platform_driver compile warning in fsldma.c

2011-04-08 Thread Kumar Gala
Grant, I'm being lazy, can you give any quick insight on the following compile warning: drivers/dma/fsldma.c:1457:2: warning: initialization from incompatible pointer type drivers/dma/fsldma.c: In function 'fsldma_init': drivers/dma/fsldma.c:1468:2: warning: passin

[PATCH v2] lmb: Fix compile warning

2008-05-18 Thread Kumar Gala
lib/lmb.c: In function 'lmb_dump_all': lib/lmb.c:51: warning: format '%lx' expects type 'long unsigned int', but argument 2 has type 'u64' Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> --- Cast so it works everywhere. - k lib/lmb.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)

Re: [PATCH] gianfar: fix compile warning

2007-12-04 Thread Jeff Garzik
Grant Likely wrote: > From: Grant Likely <[EMAIL PROTECTED]> > > Eliminate an uninitialized variable warning. The code is correct, but > a pointer to the automatic variable 'addr' is passed to dma_alloc_coherent. > Since addr has never been initialized, and the compiler doesn't know > what dma_al

[PATCH] powerpc/mm: Fix compile warning

2009-04-07 Thread Kumar Gala
arch/powerpc/mm/tlb_nohash.c: In function 'flush_tlb_mm': arch/powerpc/mm/tlb_nohash.c:128: warning: unused variable 'cpu_mask' Signed-off-by: Kumar Gala --- arch/powerpc/mm/tlb_nohash.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/mm/tlb_nohash.c b/arch/

[PATCH] powerpc: fix create_section_mapping compile warning

2020-11-16 Thread Dan Williams
0day robot reports that a recent rework of how memory_add_physaddr_to_nid() and phys_to_target_node() are declared resulted in the following new compilation warning: arch/powerpc/mm/mem.c:91:12: warning: no previous prototype for 'create_section_mapping' [-Wmissing-prototypes] 91 | int __weak

Re: platform_driver/of_platform_driver compile warning in fsldma.c

2011-04-08 Thread Ira W. Snyder
On Fri, Apr 08, 2011 at 04:12:13AM -0500, Kumar Gala wrote: > Grant, > > I'm being lazy, can you give any quick insight on the following compile > warning: > > drivers/dma/fsldma.c:1457:2: warning: initialization from incompatible > pointer type > drivers/dma/fsldm

Re: platform_driver/of_platform_driver compile warning in fsldma.c

2011-04-08 Thread Grant Likely
On Fri, Apr 8, 2011 at 8:32 AM, Ira W. Snyder wrote: > On Fri, Apr 08, 2011 at 04:12:13AM -0500, Kumar Gala wrote: >> Grant, >> >> I'm being lazy, can you give any quick insight on the following compile >> warning: >> >> drivers/dma/fsldma.c:1457:

Re: platform_driver/of_platform_driver compile warning in fsldma.c

2011-04-09 Thread Kumar Gala
On Apr 8, 2011, at 10:32 AM, Ira W. Snyder wrote: > On Fri, Apr 08, 2011 at 04:12:13AM -0500, Kumar Gala wrote: >> Grant, >> >> I'm being lazy, can you give any quick insight on the following compile >> warning: >> >> drivers/dma/fsldma.c:1457:

[PATCH] powerpc: cputime: fix a compile warning

2016-11-21 Thread yanjiang.jin
From: Yanjiang Jin This patch is to avoid the below warning: kernel/sched/cpuacct.c:298:25: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'long unsigned int' [-Wformat=] Signed-off-by: Yanjiang Jin --- arch/powerpc/include/asm/cputime.h | 3 ++- 1 fi

[PATCH 1/4] lmb: Fix compile warning

2008-05-18 Thread Kumar Gala
lib/lmb.c: In function 'lmb_dump_all': lib/lmb.c:51: warning: format '%lx' expects type 'long unsigned int', but argument 2 has type 'u64' Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> --- lib/lmb.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/lmb.c b/lib/lmb.c i

Re: [PATCH v2] lmb: Fix compile warning

2008-05-18 Thread David Miller
From: Kumar Gala <[EMAIL PROTECTED]> Date: Sun, 18 May 2008 23:34:36 -0500 (CDT) > lib/lmb.c: In function 'lmb_dump_all': > lib/lmb.c:51: warning: format '%lx' expects type 'long unsigned int', but > argument 2 has type 'u64' > > Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> Acked-by: David S.

[PATCH 1/4] lmb: Fix compile warning

2008-05-19 Thread Kumar Gala
lib/lmb.c: In function 'lmb_dump_all': lib/lmb.c:51: warning: format '%lx' expects type 'long unsigned int', but argument 2 has type 'u64' Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> Acked-by: David S. Miller <[EMAIL PROTECTED]> --- lib/lmb.c |3 ++- 1 files changed, 2 insertions(+), 1 del

[PATCH] powerpc: fix compile warning in init_thread

2008-07-01 Thread Michael Neuling
arch/powerpc/kernel/init_task.c:33: warning: missing braces around initializer arch/powerpc/kernel/init_task.c:33: warning: (near initialization for 'init_task.thread.fpr[0]') Noticed by SFR. Signed-off-by: Michael Neuling <[EMAIL PROTECTED]> --- include/asm-powerpc/processor.h |2 +- 1 fi

[PATCH] powerpc/fsl-booke: Fix compile warning

2009-02-12 Thread Kumar Gala
arch/powerpc/mm/fsl_booke_mmu.c: In function 'adjust_total_lowmem': arch/powerpc/mm/fsl_booke_mmu.c:221: warning: format '%ld' expects type 'long int', but argument 3 has type 'phys_addr_t' Signed-off-by: Kumar Gala --- arch/powerpc/mm/fsl_booke_mmu.c |4 ++-- 1 files changed, 2 insertions(

[Reoprt] Some compile warning on ppc dts

2021-02-28 Thread chenjun (AM)
Hi After run the following commands make distclean make allmodconfig ARCH=powerpc CROSS_COMPILE=powerpc64-linux-gnu- make oldconfig ARCH=powerpc CROSS_COMPILE=powerpc64-linux-gnu- make -j64 ARCH=powerpc CROSS_COMPILE=powerpc64-linux-gnu- I get some warning: arch/powerpc/boot/dts/mpc5200b.dtsi:267

[PATCH] powerpc/ucc_geth: deal with an compile warning

2014-06-24 Thread Zhao Qiang
deal with a compile warning: comparison between 'enum qe_fltr_largest_external_tbl_lookup_key_size' and 'enum qe_fltr_tbl_lookup_key_size' the code: "if (ug_info->largestexternallookupkeysize == QE_FLTR_TABLE_LOOKUP_KEY_SIZE_8_BYTES)" is

[PATCH v2] spi: deal with a compile warning

2014-06-25 Thread Zhao Qiang
ret is unused when CONFIG_FSL_SOC defined, so return ret instead of -ENOMEM when the kzalloc fails to avoid it. Signed-off-by: Zhao Qiang --- Changes for v2: -return ret instead of -ENOMEM when the kzalloc fails drivers/spi/spi-fsl-lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH] powerpc/ucc_geth: deal with a compile warning

2014-06-30 Thread Zhao Qiang
deal with a compile warning: comparison between 'enum qe_fltr_largest_external_tbl_lookup_key_size' and 'enum qe_fltr_tbl_lookup_key_size' the code: "if (ug_info->largestexternallookupkeysize == QE_FLTR_TABLE_LOOKUP_KEY_SIZE_8_BYTES)" is

Re: [PATCH] powerpc: cputime: fix a compile warning

2016-11-30 Thread Scott Wood
On Mon, 2016-11-21 at 12:56 +0800, yanjiang@windriver.com wrote: > From: Yanjiang Jin > > This patch is to avoid the below warning: > > kernel/sched/cpuacct.c:298:25: warning: > format '%lld' expects argument of type 'long long int', > but argument 4 has type 'long unsigned int' [-Wformat=]

Re: [PATCH] powerpc: cputime: fix a compile warning

2016-11-30 Thread yjin
16 05:04:53 + Subject: [PATCH] powerpc: cputime: fix a compile warning This patch is to avoid the below warning: kernel/sched/cpuacct.c:298:25: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'long unsigned int' [-Wformat=] Signe

Re: [PATCH] powerpc: cputime: fix a compile warning

2016-12-01 Thread Michael Ellerman
yanjiang@windriver.com writes: > diff --git a/arch/powerpc/include/asm/cputime.h > b/arch/powerpc/include/asm/cputime.h > index 4f60db0..4423e97 100644 > --- a/arch/powerpc/include/asm/cputime.h > +++ b/arch/powerpc/include/asm/cputime.h > @@ -228,7 +228,8 @@ static inline cputime_t clock_t_t

Re: [PATCH] powerpc: cputime: fix a compile warning

2016-12-01 Thread Balbir Singh
On Fri, Dec 2, 2016 at 3:15 PM, Michael Ellerman wrote: > yanjiang@windriver.com writes: > >> diff --git a/arch/powerpc/include/asm/cputime.h >> b/arch/powerpc/include/asm/cputime.h >> index 4f60db0..4423e97 100644 >> --- a/arch/powerpc/include/asm/cputime.h >> +++ b/arch/powerpc/include/asm/

Re: [PATCH] powerpc: cputime: fix a compile warning

2016-12-01 Thread yjin
On 2016年12月02日 12:22, Balbir Singh wrote: On Fri, Dec 2, 2016 at 3:15 PM, Michael Ellerman wrote: yanjiang@windriver.com writes: diff --git a/arch/powerpc/include/asm/cputime.h b/arch/powerpc/include/asm/cputime.h index 4f60db0..4423e97 100644 --- a/arch/powerpc/include/asm/cputime.h ++

Re: [PATCH] powerpc: cputime: fix a compile warning

2016-12-01 Thread Pan Xinhui
在 2016/12/2 12:35, yjin 写道: On 2016年12月02日 12:22, Balbir Singh wrote: On Fri, Dec 2, 2016 at 3:15 PM, Michael Ellerman wrote: yanjiang@windriver.com writes: diff --git a/arch/powerpc/include/asm/cputime.h b/arch/powerpc/include/asm/cputime.h index 4f60db0..4423e97 100644 --- a/arch/p

Re: [PATCH] powerpc: cputime: fix a compile warning

2016-12-01 Thread yjin
On 2016年12月02日 13:15, Pan Xinhui wrote: 在 2016/12/2 12:35, yjin 写道: On 2016年12月02日 12:22, Balbir Singh wrote: On Fri, Dec 2, 2016 at 3:15 PM, Michael Ellerman wrote: yanjiang@windriver.com writes: diff --git a/arch/powerpc/include/asm/cputime.h b/arch/powerpc/include/asm/cputime.h

Re: [PATCH] powerpc: cputime: fix a compile warning

2016-12-02 Thread Scott Wood
On Fri, 2016-12-02 at 15:15 +1100, Michael Ellerman wrote: > yanjiang@windriver.com writes: > > > > > diff --git a/arch/powerpc/include/asm/cputime.h > > b/arch/powerpc/include/asm/cputime.h > > index 4f60db0..4423e97 100644 > > --- a/arch/powerpc/include/asm/cputime.h > > +++ b/arch/powerpc/

Re: [PATCH 1/4] lmb: Fix compile warning

2008-05-18 Thread David Miller
From: Kumar Gala <[EMAIL PROTECTED]> Date: Sun, 18 May 2008 13:44:53 -0500 > lib/lmb.c: In function 'lmb_dump_all': > lib/lmb.c:51: warning: format '%lx' expects type 'long unsigned int', but > argument 2 has type 'u64' > > Signed-off-by: Kumar Gala <[EMAIL PROTECTED]> That's not right either.

Re: [PATCH] powerpc: fix compile warning in init_thread

2008-07-01 Thread Benjamin Herrenschmidt
On Tue, 2008-07-01 at 17:00 +1000, Michael Neuling wrote: > arch/powerpc/kernel/init_task.c:33: warning: missing braces around initializer > arch/powerpc/kernel/init_task.c:33: warning: (near initialization for > 'init_task.thread.fpr[0]') > > Noticed by SFR. > > Signed-off-by: Michael Neuling <

Re: [PATCH] powerpc: fix compile warning in init_thread

2008-07-01 Thread Michael Neuling
In message <[EMAIL PROTECTED]> you wrote: > On Tue, 2008-07-01 at 17:00 +1000, Michael Neuling wrote: > > arch/powerpc/kernel/init_task.c:33: warning: missing braces around initiali zer > > arch/powerpc/kernel/init_task.c:33: warning: (near initialization for 'init _task.thread.fpr[0]') > > > >

[PATCH] Fix a compile warning in pci_32.c

2007-08-01 Thread Segher Boessenkool
__must_check, so do so. Signed-off-by: Segher Boessenkool <[EMAIL PROTECTED]> --- arch/powerpc/kernel/pci_32.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c index cd35c96..04a3109 100644 --- a/arch/powerpc/

[PATCH] Fix a compile warning in powermac/feature.c

2007-08-01 Thread Segher Boessenkool
...by using the pci_get API instead of the deprecated old stuff. Signed-off-by: Segher Boessenkool <[EMAIL PROTECTED]> --- arch/powerpc/platforms/powermac/feature.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/powermac/feature.c b/arch/powe

Re: [Reoprt] Some compile warning on ppc dts

2022-03-02 Thread Christophe Leroy
Le 01/03/2021 à 03:16, chenjun (AM) a écrit : Hi After run the following commands make distclean make allmodconfig ARCH=powerpc CROSS_COMPILE=powerpc64-linux-gnu- make oldconfig ARCH=powerpc CROSS_COMPILE=powerpc64-linux-gnu- make -j64 ARCH=powerpc CROSS_COMPILE=powerpc64-linux-gnu- I get so

Re: [PATCH] powerpc/ucc_geth: deal with an compile warning

2014-06-30 Thread Scott Wood
On Tue, 2014-06-24 at 16:18 +0800, Zhao Qiang wrote: > deal with a compile warning: comparison between > 'enum qe_fltr_largest_external_tbl_lookup_key_size' > and 'enum qe_fltr_tbl_lookup_key_size' > > the code: > &quo

Re: [PATCH v2] spi: deal with a compile warning

2014-07-02 Thread Mark Brown
On Thu, Jun 26, 2014 at 11:26:43AM +0800, Zhao Qiang wrote: > ret is unused when CONFIG_FSL_SOC defined, > so return ret instead of -ENOMEM when the > kzalloc fails to avoid it. Applied, thanks. signature.asc Description: Digital signature ___ Linuxppc

[PATCH] sbc8560: fix compile warning on CPM pin array

2008-09-03 Thread Paul Gortmaker
This is just a parallel of a5dc66e2ab2e2cf641346b056a69a67cfcf9458c applied to the sbc8560 board. Signed-off-by: Paul Gortmaker <[EMAIL PROTECTED]> --- arch/powerpc/platforms/85xx/sbc8560.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/platforms/85xx/sbc85

[PATCH] powerpc: fix pseries/dlpar compile warning without CONFIG_PROC_DEVICETREE

2010-01-05 Thread FUJITA Tomonori
cc1: warnings being treated as errors arch/powerpc/platforms/pseries/dlpar.c: In function 'dlpar_attach_node': arch/powerpc/platforms/pseries/dlpar.c:239: error: unused variable 'ent' arch/powerpc/platforms/pseries/dlpar.c: In function 'dlpar_detach_node': arch/powerpc/platforms/pseries/dlpar.c:271

[PATCH] fix compile warning in arch/powerpc/kernel/sysfs.c

2007-08-16 Thread Michael Neuling
This fixes the following warning: arch/powerpc/kernel/sysfs.c:388: warning: ignoring return value of 'sysfs_create_group', declared with attribute warn_unused_result Signed-off-by: Michael Neuling <[EMAIL PROTECTED]> --- arch/powerpc/kernel/sysfs.c |8 ++-- 1 file changed, 6 insertions(+)

[PATCH 08/18] powerpc/boot: fix compile warning in 64bit

2014-03-20 Thread Cédric Le Goater
arch/powerpc/boot/oflib.c:211:9: warning: cast to pointer from integer of \ different size [-Wint-to-pointer-cast] return (phandle) of_call_prom("finddevice", 1, 1, name); This is a work around. The definite solution would be to define the phandle typedef as a u32, as in the k

Re: [PATCH] sbc8560: fix compile warning on CPM pin array

2008-09-16 Thread Kumar Gala
On Sep 3, 2008, at 3:02 PM, Paul Gortmaker wrote: This is just a parallel of a5dc66e2ab2e2cf641346b056a69a67cfcf9458c applied to the sbc8560 board. Signed-off-by: Paul Gortmaker <[EMAIL PROTECTED]> --- arch/powerpc/platforms/85xx/sbc8560.c |2 +- 1 files changed, 1 insertions(+), 1 deletion

Re: [PATCH] fix compile warning in arch/powerpc/kernel/sysfs.c

2007-08-16 Thread Michael Neuling
It seems I missed a long discussion about this warning... Please ignore. Mikey In message <[EMAIL PROTECTED]> you wrote: > This fixes the following warning: > arch/powerpc/kernel/sysfs.c:388: warning: ignoring return value of > 'sysfs_create_group', declared with attribute warn_unused_result > >

[PATCH 1/2] mpc52xx-ata: fix compile warning (unused variable)

2007-10-13 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Trivial unused variable fix Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- drivers/ata/pata_mpc52xx.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/ata/pata_mpc52xx.c b/drivers/ata/pata_mpc52xx.c index 099f4cd..f1c3f

[PATCH 3/5] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-15 Thread Wang Wenhu
Function instantiate_cache_sram should not be linked into the init section for its caller mpc85xx_l2ctlr_of_probe is none-__init. Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram

[PATCH -next] powerpc/eeh: fix compile warning with CONFIG_PROC_FS=n

2020-09-05 Thread Yang Yingliang
Fix the compile warning: arch/powerpc/kernel/eeh.c:1639:12: error: 'proc_eeh_show' defined but not used [-Werror=unused-function] static int proc_eeh_show(struct seq_file *m, void *v) Reported-by: Hulk Robot Signed-off-by: Yang Yingliang --- arch/powerpc/kernel/eeh.c | 2 ++ 1 fi

[PATCH 3/7] powerpc/sstep: Fix W=1 compile warning

2020-09-10 Thread Cédric Le Goater
../arch/powerpc/lib/sstep.c: In function ‘mlsd_8lsd_ea’: ../arch/powerpc/lib/sstep.c:225:3: error: suggest braces around empty body in an ‘if’ statement [-Werror=empty-body] ; /* Invalid form. Should already be checked for by caller! */ ^ Cc: Jordan Niethe Signed-off-by: Cédric Le Goater

[PATCH 2/7] powerpc/prom: Fix W=1 compile warning

2020-09-10 Thread Cédric Le Goater
arch/powerpc/kernel/prom.c: In function ‘early_reserve_mem’: arch/powerpc/kernel/prom.c:625:10: error: variable ‘reserve_map’ set but not used [-Werror=unused-but-set-variable] __be64 *reserve_map; ^~~ cc1: all warnings being treated as errors Cc: Christophe Leroy Signed-off-

[PATCH 1/7] powerpc/sysfs: Fix W=1 compile warning

2020-09-10 Thread Cédric Le Goater
arch/powerpc/kernel/sysfs.c: In function ‘sysfs_create_dscr_default’: arch/powerpc/kernel/sysfs.c:228:7: error: variable ‘err’ set but not used [-Werror=unused-but-set-variable] int err = 0; ^~~ cc1: all warnings being treated as errors Cc: Madhavan Srinivasan Signed-off-by: Cédric Le

[PATCH 6/7] powerpc/perf: Fix W=1 compile warning

2020-09-10 Thread Cédric Le Goater
CC arch/powerpc/perf/imc-pmu.o ../arch/powerpc/perf/imc-pmu.c: In function ‘trace_imc_event_init’: ../arch/powerpc/perf/imc-pmu.c:1429:22: error: variable ‘target’ set but not used [-Werror=unused-but-set-variable] struct task_struct *target; ^~ Cc: Anju T Sudhaka

[PATCH 7/7] powerpc/32: Fix W=1 compile warning

2020-09-10 Thread Cédric Le Goater
CC arch/powerpc/kernel/traps.o ../arch/powerpc/kernel/traps.c:1663:6: error: no previous prototype for ‘stack_overflow_exception’ [-Werror=missing-prototypes] void stack_overflow_exception(struct pt_regs *regs) ^~~~ Cc: Christophe Leroy Fixes: 3978eb78517c ("power

[PATCH 4/7] powerpc/xive: Fix W=1 compile warning

2020-09-10 Thread Cédric Le Goater
CC arch/powerpc/sysdev/xive/common.o ../arch/powerpc/sysdev/xive/common.c:1568:6: error: no previous prototype for ‘xive_debug_show_cpu’ [-Werror=missing-prototypes] void xive_debug_show_cpu(struct seq_file *m, int cpu) ^~~ ../arch/powerpc/sysdev/xive/common.c:1602:6: e

[RFC/PATCH 18/32] usb: gadget: mv_u3d_core: fix a compile warning

2013-01-24 Thread Felipe Balbi
Fix the following compile warning: mv_u3d_core.c:1766:12: warning: 'mv_u3d_remove' \ defined but not used [-Wunused-function] Signed-off-by: Felipe Balbi --- drivers/usb/gadget/mv_u3d_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/

[RFC PATCH 08/18] powerpc/boot: fix compile warning in 64bit

2014-02-07 Thread Cédric Le Goater
arch/powerpc/boot/oflib.c:211:9: warning: cast to pointer from integer of \ different size [-Wint-to-pointer-cast] return (phandle) of_call_prom("finddevice", 1, 1, name); This is a work around. The definite solution would be to define the phandle typedef as a u32, as in the k

[PATCH v2 08/15] powerpc/boot: fix compile warning in 64bit

2014-04-14 Thread Cédric Le Goater
arch/powerpc/boot/oflib.c:211:9: warning: cast to pointer from integer of \ different size [-Wint-to-pointer-cast] return (phandle) of_call_prom("finddevice", 1, 1, name); This is a work around. The definite solution would be to define the phandle typedef as a u32, as in the k

[PATCH v2 08/15] powerpc/boot: fix compile warning in 64bit

2014-04-24 Thread Cédric Le Goater
arch/powerpc/boot/oflib.c:211:9: warning: cast to pointer from integer of \ different size [-Wint-to-pointer-cast] return (phandle) of_call_prom("finddevice", 1, 1, name); This is a work around. The definite solution would be to define the phandle typedef as a u32, as in the k

[PATCH 2/2] mpc52xx-uart: fix compile warning (format type mismatch)

2007-10-13 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Trivial compile warning fix Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- drivers/serial/mpc52xx_uart.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/serial/mpc52xx_uart.c b/drivers/serial/mp

[PATCH v2, 3/5] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-15 Thread Wang Wenhu
Function instantiate_cache_sram should not be linked into the init section for its caller mpc85xx_l2ctlr_of_probe is none-__init. Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram

[PATCH v3, 3/4] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
Function instantiate_cache_sram should not be linked into the init section for its caller mpc85xx_l2ctlr_of_probe is none-__init. Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram

[PATCH v3, 3/4] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
Function instantiate_cache_sram should not be linked into the init section for its caller mpc85xx_l2ctlr_of_probe is none-__init. Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram

[PATCH v3, 3/4] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
Function instantiate_cache_sram should not be linked into the init section for its caller mpc85xx_l2ctlr_of_probe is none-__init. Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram

[PATCH v4, 3/4] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
Function instantiate_cache_sram should not be linked into the init section for its caller mpc85xx_l2ctlr_of_probe is none-__init. Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram

Re: [PATCH v4,3/4] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-16 Thread Christophe Leroy
Le 16/04/2020 à 17:35, Wang Wenhu a écrit : Function instantiate_cache_sram should not be linked into the init section for its caller mpc85xx_l2ctlr_of_probe is none-__init. Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org F

[PATCH v5, 3/4] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-17 Thread Wang Wenhu
Function instantiate_cache_sram should not be linked into the init section for its caller mpc85xx_l2ctlr_of_probe is none-__init. Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram

[PATCH v6, 3/4] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-18 Thread Wang Wenhu
Function instantiate_cache_sram should not be linked into the init section for its caller mpc85xx_l2ctlr_of_probe is none-__init. Cc: Greg Kroah-Hartman Cc: Arnd Bergmann Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: Randy Dunlap Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92c

[PATCH v3, 3/5] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-23 Thread Wang Wenhu
Function instantiate_cache_sram should not be linked into the init section for its caller mpc85xx_l2ctlr_of_probe is none-__init. Cc: Greg Kroah-Hartman Cc: Arnd Bergmann Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/8

[PATCH v4, 3/5] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-24 Thread Wang Wenhu
Function instantiate_cache_sram should not be linked into the init section for its caller mpc85xx_l2ctlr_of_probe is none-__init. Cc: Greg Kroah-Hartman Cc: Arnd Bergmann Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: Randy Dunlap Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92c

Re: [PATCH -next] powerpc/eeh: fix compile warning with CONFIG_PROC_FS=n

2020-09-06 Thread Christophe Leroy
Le 05/09/2020 à 13:17, Yang Yingliang a écrit : Fix the compile warning: arch/powerpc/kernel/eeh.c:1639:12: error: 'proc_eeh_show' defined but not used [-Werror=unused-function] static int proc_eeh_show(struct seq_file *m, void *v) Reported-by: Hulk Robot Signed-off-by: Yang

[PATCH 5/7] powerpc/powernv/pci: Fix W=1 compile warning

2020-09-10 Thread Cédric Le Goater
CC arch/powerpc/platforms/powernv/pci-ioda.o ../arch/powerpc/platforms/powernv/pci-ioda.c: In function ‘pnv_ioda_configure_pe’: ../arch/powerpc/platforms/powernv/pci-ioda.c:897:18: error: variable ‘parent’ set but not used [-Werror=unused-but-set-variable] struct pci_dev *parent;

Re: [PATCH 1/7] powerpc/sysfs: Fix W=1 compile warning

2020-09-10 Thread Christophe Leroy
errors A small sentence explaining how this is fixes would be welcome, so that you don't need to read the code the know what the commit does to fix the warning. Even the subject should be more explicite, rather than saying "Fix W=1 compile warning", I think it should say somethi

Re: [PATCH 2/7] powerpc/prom: Fix W=1 compile warning

2020-09-10 Thread Christophe Leroy
Le 10/09/2020 à 23:02, Cédric Le Goater a écrit : arch/powerpc/kernel/prom.c: In function ‘early_reserve_mem’: arch/powerpc/kernel/prom.c:625:10: error: variable ‘reserve_map’ set but not used [-Werror=unused-but-set-variable] __be64 *reserve_map; ^~~ cc1: all warnings b

Re: [PATCH 3/7] powerpc/sstep: Fix W=1 compile warning

2020-09-10 Thread Christophe Leroy
Le 10/09/2020 à 23:02, Cédric Le Goater a écrit : ../arch/powerpc/lib/sstep.c: In function ‘mlsd_8lsd_ea’: ../arch/powerpc/lib/sstep.c:225:3: error: suggest braces around empty body in an ‘if’ statement [-Werror=empty-body] ; /* Invalid form. Should already be checked for by caller! */

Re: [PATCH 4/7] powerpc/xive: Fix W=1 compile warning

2020-09-10 Thread Christophe Leroy
Le 10/09/2020 à 23:02, Cédric Le Goater a écrit : CC arch/powerpc/sysdev/xive/common.o ../arch/powerpc/sysdev/xive/common.c:1568:6: error: no previous prototype for ‘xive_debug_show_cpu’ [-Werror=missing-prototypes] void xive_debug_show_cpu(struct seq_file *m, int cpu) ^

Re: [PATCH 6/7] powerpc/perf: Fix W=1 compile warning

2020-09-10 Thread Christophe Leroy
Le 10/09/2020 à 23:02, Cédric Le Goater a écrit : CC arch/powerpc/perf/imc-pmu.o ../arch/powerpc/perf/imc-pmu.c: In function ‘trace_imc_event_init’: ../arch/powerpc/perf/imc-pmu.c:1429:22: error: variable ‘target’ set but not used [-Werror=unused-but-set-variable] struct task_struct *

Re: [PATCH 7/7] powerpc/32: Fix W=1 compile warning

2020-09-10 Thread Christophe Leroy
Le 10/09/2020 à 23:02, Cédric Le Goater a écrit : CC arch/powerpc/kernel/traps.o ../arch/powerpc/kernel/traps.c:1663:6: error: no previous prototype for ‘stack_overflow_exception’ [-Werror=missing-prototypes] void stack_overflow_exception(struct pt_regs *regs) ^~

Re: [PATCH 3/7] powerpc/sstep: Fix W=1 compile warning

2020-09-10 Thread Cédric Le Goater
On 9/11/20 7:38 AM, Christophe Leroy wrote: > > > Le 10/09/2020 à 23:02, Cédric Le Goater a écrit : >> ../arch/powerpc/lib/sstep.c: In function ‘mlsd_8lsd_ea’: >> ../arch/powerpc/lib/sstep.c:225:3: error: suggest braces around empty body >> in an ‘if’ statement [-Werror=empty-body] >>     ; /* I

Re: [PATCH 2/7] powerpc/prom: Fix W=1 compile warning

2020-09-10 Thread Cédric Le Goater
On 9/11/20 7:33 AM, Christophe Leroy wrote: > > > Le 10/09/2020 à 23:02, Cédric Le Goater a écrit : >> arch/powerpc/kernel/prom.c: In function ‘early_reserve_mem’: >> arch/powerpc/kernel/prom.c:625:10: error: variable ‘reserve_map’ set but not >> used [-Werror=unused-but-set-variable] >>    __be

Re: [PATCH 3/7] powerpc/sstep: Fix W=1 compile warning

2020-09-10 Thread Christophe Leroy
Le 11/09/2020 à 07:59, Cédric Le Goater a écrit : On 9/11/20 7:38 AM, Christophe Leroy wrote: Le 10/09/2020 à 23:02, Cédric Le Goater a écrit : ../arch/powerpc/lib/sstep.c: In function ‘mlsd_8lsd_ea’: ../arch/powerpc/lib/sstep.c:225:3: error: suggest braces around empty body in an ‘if’ st

Re: [PATCH 1/7] powerpc/sysfs: Fix W=1 compile warning

2020-09-11 Thread Cédric Le Goater
Even the subject should be more explicite, rather than saying "Fix W=1 > compile warning", I think it should say something like "remove unused err > variable" Yes. I will respin a v2 with better commit logs for all. Thanks, C.

[PATCH RESEND, v3, 3/4] powerpc: sysdev: fix compile warning for fsl_85xx_cache_sram

2020-04-16 Thread Wang Wenhu
Function instantiate_cache_sram should not be linked into the init section for its caller mpc85xx_l2ctlr_of_probe is none-__init. Cc: Greg Kroah-Hartman Cc: Christophe Leroy Cc: Scott Wood Cc: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org Fixes: 6db92cc9d07d ("powerpc/85xx: add cache-sram

Re: [PATCH 5/7] powerpc/powernv/pci: Fix W=1 compile warning

2020-09-10 Thread Christophe Leroy
Le 10/09/2020 à 23:02, Cédric Le Goater a écrit : CC arch/powerpc/platforms/powernv/pci-ioda.o ../arch/powerpc/platforms/powernv/pci-ioda.c: In function ‘pnv_ioda_configure_pe’: ../arch/powerpc/platforms/powernv/pci-ioda.c:897:18: error: variable ‘parent’ set but not used [-Werror=un

Re: [PATCH 5/7] powerpc/powernv/pci: Fix W=1 compile warning

2020-09-10 Thread Oliver O'Halloran
On Fri, Sep 11, 2020 at 7:02 AM Cédric Le Goater wrote: > > CC arch/powerpc/platforms/powernv/pci-ioda.o > ../arch/powerpc/platforms/powernv/pci-ioda.c: In function > ‘pnv_ioda_configure_pe’: > ../arch/powerpc/platforms/powernv/pci-ioda.c:897:18: error: variable ‘parent’ > set but not use