[PATCH v1 07/30] powerpc/vdso: Remove unnecessary ifdefs in vdso_pagelist initialization

2020-09-27 Thread Christophe Leroy
No need of all those #ifdefs around the pagelist initialisation, use IS_ENABLED(), GCC will kick out unused static variables. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/vdso.c | 31 ++- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/arch/p

Re: [PATCH v1 4/9] powerpc/vdso: Remove unnecessary ifdefs in vdso_pagelist initialization

2020-08-27 Thread Christophe Leroy
Le 28/08/2020 à 07:40, Christophe Leroy a écrit : Le 27/08/2020 à 15:19, Michael Ellerman a écrit : Christophe Leroy writes: On 08/26/2020 02:58 PM, Michael Ellerman wrote: Christophe Leroy writes: diff --git a/arch/powerpc/kernel/vdso.c b/arch/powerpc/kernel/vdso.c index daef14a284a3.

Re: [PATCH v1 4/9] powerpc/vdso: Remove unnecessary ifdefs in vdso_pagelist initialization

2020-08-27 Thread Christophe Leroy
Le 27/08/2020 à 15:19, Michael Ellerman a écrit : Christophe Leroy writes: On 08/26/2020 02:58 PM, Michael Ellerman wrote: Christophe Leroy writes: diff --git a/arch/powerpc/kernel/vdso.c b/arch/powerpc/kernel/vdso.c index daef14a284a3..bbb69832fd46 100644 --- a/arch/powerpc/kernel/vdso.c

Re: [PATCH v1 4/9] powerpc/vdso: Remove unnecessary ifdefs in vdso_pagelist initialization

2020-08-27 Thread Michael Ellerman
Christophe Leroy writes: > On 08/26/2020 02:58 PM, Michael Ellerman wrote: >> Christophe Leroy writes: >>> diff --git a/arch/powerpc/kernel/vdso.c b/arch/powerpc/kernel/vdso.c >>> index daef14a284a3..bbb69832fd46 100644 >>> --- a/arch/powerpc/kernel/vdso.c >>> +++ b/arch/powerpc/kernel/vdso.c >>>

Re: [PATCH v1 4/9] powerpc/vdso: Remove unnecessary ifdefs in vdso_pagelist initialization

2020-08-26 Thread Christophe Leroy
On 08/26/2020 02:58 PM, Michael Ellerman wrote: Christophe Leroy writes: diff --git a/arch/powerpc/kernel/vdso.c b/arch/powerpc/kernel/vdso.c index daef14a284a3..bbb69832fd46 100644 --- a/arch/powerpc/kernel/vdso.c +++ b/arch/powerpc/kernel/vdso.c @@ -718,16 +710,14 @@ static int __init vdso

Re: [PATCH v1 4/9] powerpc/vdso: Remove unnecessary ifdefs in vdso_pagelist initialization

2020-08-26 Thread Christophe Leroy
Le 26/08/2020 à 16:58, Michael Ellerman a écrit : Christophe Leroy writes: diff --git a/arch/powerpc/kernel/vdso.c b/arch/powerpc/kernel/vdso.c index daef14a284a3..bbb69832fd46 100644 --- a/arch/powerpc/kernel/vdso.c +++ b/arch/powerpc/kernel/vdso.c @@ -718,16 +710,14 @@ static int __init vd

Re: [PATCH v1 4/9] powerpc/vdso: Remove unnecessary ifdefs in vdso_pagelist initialization

2020-08-26 Thread Michael Ellerman
Christophe Leroy writes: > diff --git a/arch/powerpc/kernel/vdso.c b/arch/powerpc/kernel/vdso.c > index daef14a284a3..bbb69832fd46 100644 > --- a/arch/powerpc/kernel/vdso.c > +++ b/arch/powerpc/kernel/vdso.c > @@ -718,16 +710,14 @@ static int __init vdso_init(void) ... > > - > -#ifdef CONFIG_VDS

[PATCH v1 4/9] powerpc/vdso: Remove unnecessary ifdefs in vdso_pagelist initialization

2020-08-25 Thread Christophe Leroy
No need of all those #ifdefs around the pagelist initialisation, use IS_ENABLED(), GCC will kick out unused static variables. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/vdso.c | 57 +++--- 1 file changed, 22 insertions(+), 35 deletions(-) diff --git

Re: [RFC PATCH v2 02/12] powerpc/ptrace: drop unnecessary #ifdefs CONFIG_PPC64

2019-06-28 Thread Andreas Schwab
On Jun 28 2019, Christophe Leroy wrote: > Le 28/06/2019 à 18:36, Andreas Schwab a écrit : >> On Jun 28 2019, Christophe Leroy wrote: >> >>> diff --git a/arch/powerpc/include/uapi/asm/ptrace.h >>> b/arch/powerpc/include/uapi/asm/ptrace.h >>> index f5f1ccc740fc..37d7befbb8dc 100644 >>> --- a/arch

Re: [RFC PATCH v2 02/12] powerpc/ptrace: drop unnecessary #ifdefs CONFIG_PPC64

2019-06-28 Thread Christophe Leroy
Le 28/06/2019 à 18:36, Andreas Schwab a écrit : On Jun 28 2019, Christophe Leroy wrote: diff --git a/arch/powerpc/include/uapi/asm/ptrace.h b/arch/powerpc/include/uapi/asm/ptrace.h index f5f1ccc740fc..37d7befbb8dc 100644 --- a/arch/powerpc/include/uapi/asm/ptrace.h +++ b/arch/powerpc/inclu

Re: [RFC PATCH v2 02/12] powerpc/ptrace: drop unnecessary #ifdefs CONFIG_PPC64

2019-06-28 Thread Andreas Schwab
On Jun 28 2019, Christophe Leroy wrote: > diff --git a/arch/powerpc/include/uapi/asm/ptrace.h > b/arch/powerpc/include/uapi/asm/ptrace.h > index f5f1ccc740fc..37d7befbb8dc 100644 > --- a/arch/powerpc/include/uapi/asm/ptrace.h > +++ b/arch/powerpc/include/uapi/asm/ptrace.h > @@ -43,12 +43,11 @@ s

[RFC PATCH v2 02/12] powerpc/ptrace: drop unnecessary #ifdefs CONFIG_PPC64

2019-06-28 Thread Christophe Leroy
Drop a bunch of #ifdefs CONFIG_PPC64 that are not vital. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/ptrace.h | 9 - arch/powerpc/include/uapi/asm/ptrace.h | 12 arch/powerpc/kernel/ptrace/ptrace.c| 24 +++- 3 files changed, 11

[RFC PATCH v1 02/13] powerpc/ptrace: drop unnecessary #ifdefs CONFIG_PPC64

2019-06-25 Thread Christophe Leroy
Drop a bunch of #ifdefs CONFIG_PPC64 that are not vital. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/ptrace.h | 9 - arch/powerpc/include/uapi/asm/ptrace.h | 12 arch/powerpc/kernel/ptrace/ptrace.c| 24 +++- 3 files changed, 11

[PATCH 4.4 146/193] net: hp100: remove unnecessary #ifdefs

2018-02-23 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 747a11279a442b913a57bf38934879babab3b58b upstream. Building the hp100 ethernet driver causes warnings when both the PCI and EISA drivers are disabled: ethernet/hp/hp100.c:

[4.4-stable 19/22] net: hp100: remove unnecessary #ifdefs

2018-02-20 Thread Arnd Bergmann
commit 747a11279a442b913a57bf38934879babab3b58b upstream. Building the hp100 ethernet driver causes warnings when both the PCI and EISA drivers are disabled: ethernet/hp/hp100.c: In function 'hp100_module_init': ethernet/hp/hp100.c:3047:2: warning: label 'out3' defined but not used [-Wunused-lab

[PATCH 10/22] signal: Remove unnecessary ifdefs now that there is only one struct siginfo

2018-01-15 Thread Eric W. Biederman
Remove HAVE_ARCH_SIGINFO_T Remove __ARCH_SIGSYS Signed-off-by: "Eric W. Biederman" --- include/linux/signal.h | 2 -- include/uapi/asm-generic/siginfo.h | 8 kernel/signal.c| 4 3 files changed, 14 deletions(-) diff --git a/include/linux/signal.h b/

[PATCH v2 3/7] net: hp100: remove unnecessary #ifdefs

2016-01-29 Thread Arnd Bergmann
Building the hp100 ethernet driver causes warnings when both the PCI and EISA drivers are disabled: ethernet/hp/hp100.c: In function 'hp100_module_init': ethernet/hp/hp100.c:3047:2: warning: label 'out3' defined but not used [-Wunused-label] ethernet/hp/hp100.c: At top level: ethernet/hp/hp100.c:

[PATCH 2/9] net: hp100: remove unnecessary #ifdefs

2016-01-27 Thread Arnd Bergmann
Building the hp100 ethernet driver causes warnings when both the PCI and EISA drivers are disabled: ethernet/hp/hp100.c: In function 'hp100_module_init': ethernet/hp/hp100.c:3047:2: warning: label 'out3' defined but not used [-Wunused-label] ethernet/hp/hp100.c: At top level: ethernet/hp/hp100.c:

Re: unnecessary #ifdefs

2015-05-27 Thread Stefan Hengelein
2015-05-27 2:17 GMT+02:00 Wu, Feng : >> Sent: Wednesday, May 27, 2015 2:19 AM >> To: Wu, Feng >> Cc: Valentin Rothberg; Paul Bolle; Andreas Ruprecht; t...@linutronix.de; >> x...@kernel.org; linux-kernel@vger.kernel.org; ru...@rustcorp.com.au; >> mi...@redhat.com &

RE: unnecessary #ifdefs

2015-05-26 Thread Wu, Feng
l@vger.kernel.org; ru...@rustcorp.com.au; > mi...@redhat.com > Subject: unnecessary #ifdefs > > Hi Feng Wu, > > your commits > > f6b3c72c23661e55 ("x86/irq: Define a global vector for VT-d > Posted-Interrupts") > 501b32653ebf49114c ("x86/irq: Show

unnecessary #ifdefs

2015-05-26 Thread Stefan Hengelein
Hi Feng Wu, your commits f6b3c72c23661e55 ("x86/irq: Define a global vector for VT-d Posted-Interrupts") 501b32653ebf49114c ("x86/irq: Show statistics information for posted-interrupts") showed up in linux-next today (i.e. next-20150526). Both commits add "#ifdef CONFIG_HAVE_KVM" blocks to eith

Re: [PATCH 2/2] pwm_backlight: remove unnecessary ifdefs

2013-02-26 Thread Thierry Reding
On Mon, Feb 25, 2013 at 05:15:47PM +0900, Jingoo Han wrote: > When the macro such as SIMPLE_DEV_PM_OPS is used, there is > no need to use '#ifdef CONFIG_PM' to prevent build error. Thus, > this patch removes unnecessary ifdefs. > > Signed-off-by: Jingoo Han > Cc: Thie

[PATCH 2/2] pwm_backlight: remove unnecessary ifdefs

2013-02-25 Thread Jingoo Han
When the macro such as SIMPLE_DEV_PM_OPS is used, there is no need to use '#ifdef CONFIG_PM' to prevent build error. Thus, this patch removes unnecessary ifdefs. Signed-off-by: Jingoo Han Cc: Thierry Reding --- drivers/video/backlight/pwm_bl.c |7 ++- 1 files changed, 2

[PATCH 1/2] backlight: platform_lcd: remove unnecessary ifdefs

2013-02-25 Thread Jingoo Han
When the macro such as SIMPLE_DEV_PM_OPS is used, there is no need to use '#ifdef CONFIG_PM' to prevent build error. Thus, this patch removes unnecessary ifdefs. Signed-off-by: Jingoo Han --- drivers/video/backlight/platform_lcd.c |6 ++ 1 files changed, 2 insertions(+), 4