Message ID | 1310209058-20980-12-git-send-email-tixy@yxit.co.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hello. On 09-07-2011 14:56, Tixy wrote: > From: Jon Medhurst<tixy@yxit.co.uk> > Signed-off-by: Jon Medhurst<tixy@yxit.co.uk> > --- > arch/arm/Kconfig | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index 9adc278..b4177c5 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -10,7 +10,7 @@ config ARM > select GENERIC_ATOMIC64 if (CPU_V6 || !CPU_32v6K || !AEABI) > select HAVE_OPROFILE if (HAVE_PERF_EVENTS) > select HAVE_ARCH_KGDB > - select HAVE_KPROBES if (!XIP_KERNEL&& !THUMB2_KERNEL) > + select HAVE_KPROBES if (!XIP_KERNEL) Why not drop useless parens, while at it? WBR, Sergei
On Mon, 2011-07-11 at 15:01 +0400, Sergei Shtylyov wrote: > Hello. > > On 09-07-2011 14:56, Tixy wrote: > > > From: Jon Medhurst<tixy@yxit.co.uk> > > > Signed-off-by: Jon Medhurst<tixy@yxit.co.uk> > > --- > > arch/arm/Kconfig | 2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > > index 9adc278..b4177c5 100644 > > --- a/arch/arm/Kconfig > > +++ b/arch/arm/Kconfig > > @@ -10,7 +10,7 @@ config ARM > > select GENERIC_ATOMIC64 if (CPU_V6 || !CPU_32v6K || !AEABI) > > select HAVE_OPROFILE if (HAVE_PERF_EVENTS) > > select HAVE_ARCH_KGDB > > - select HAVE_KPROBES if (!XIP_KERNEL&& !THUMB2_KERNEL) > > + select HAVE_KPROBES if (!XIP_KERNEL) > > Why not drop useless parens, while at it? Every other 'if' clause in that file has these parenthesis so I thought I would kept it consistent.
On Mon, Jul 11, 2011 at 12:33:41PM +0100, Tixy wrote: > On Mon, 2011-07-11 at 15:01 +0400, Sergei Shtylyov wrote: > > Hello. > > > > On 09-07-2011 14:56, Tixy wrote: > > > > > From: Jon Medhurst<tixy@yxit.co.uk> > > > > > Signed-off-by: Jon Medhurst<tixy@yxit.co.uk> > > > --- > > > arch/arm/Kconfig | 2 +- > > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > > > index 9adc278..b4177c5 100644 > > > --- a/arch/arm/Kconfig > > > +++ b/arch/arm/Kconfig > > > @@ -10,7 +10,7 @@ config ARM > > > select GENERIC_ATOMIC64 if (CPU_V6 || !CPU_32v6K || !AEABI) > > > select HAVE_OPROFILE if (HAVE_PERF_EVENTS) > > > select HAVE_ARCH_KGDB > > > - select HAVE_KPROBES if (!XIP_KERNEL&& !THUMB2_KERNEL) > > > + select HAVE_KPROBES if (!XIP_KERNEL) > > > > Why not drop useless parens, while at it? > > Every other 'if' clause in that file has these parenthesis so I thought > I would kept it consistent. There's plenty of examples where this isn't the case, eg: default y if PXA27x || PXA3xx || PXA95x || ARCH_MMP ... default 200 if ARCH_EBSA110 || ARCH_S3C2410 || ARCH_S5P64X0 || \ ARCH_S5PV210 || ARCH_EXYNOS4 default OMAP_32K_TIMER_HZ if ARCH_OMAP && OMAP_32K_TIMER default AT91_TIMER_HZ if ARCH_AT91 default SHMOBILE_TIMER_HZ if ARCH_SHMOBILE ... depends on !ARCH_S5P64X0 && !ARCH_S5PC100 depends on CPU_ARM920T || CPU_ARM926T || CPU_SA1100 || \ CPU_V6 || CPU_V6K || CPU_V7 || CPU_XSC3 || CPU_XSCALE We really need to stop useless additional parens for simple expressions.
On Mon, 2011-07-11 at 12:42 +0100, Russell King - ARM Linux wrote: > On Mon, Jul 11, 2011 at 12:33:41PM +0100, Tixy wrote: > > On Mon, 2011-07-11 at 15:01 +0400, Sergei Shtylyov wrote: > > > Hello. > > > > > > On 09-07-2011 14:56, Tixy wrote: > > > > > > > From: Jon Medhurst<tixy@yxit.co.uk> > > > > > > > Signed-off-by: Jon Medhurst<tixy@yxit.co.uk> > > > > --- > > > > arch/arm/Kconfig | 2 +- > > > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > > > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > > > > index 9adc278..b4177c5 100644 > > > > --- a/arch/arm/Kconfig > > > > +++ b/arch/arm/Kconfig > > > > @@ -10,7 +10,7 @@ config ARM > > > > select GENERIC_ATOMIC64 if (CPU_V6 || !CPU_32v6K || !AEABI) > > > > select HAVE_OPROFILE if (HAVE_PERF_EVENTS) > > > > select HAVE_ARCH_KGDB > > > > - select HAVE_KPROBES if (!XIP_KERNEL&& !THUMB2_KERNEL) > > > > + select HAVE_KPROBES if (!XIP_KERNEL) > > > > > > Why not drop useless parens, while at it? > > > > Every other 'if' clause in that file has these parenthesis so I thought > > I would kept it consistent. > > There's plenty of examples where this isn't the case, [...] > We really need to stop useless additional parens for simple expressions. OK, fair enough.
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 9adc278..b4177c5 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -10,7 +10,7 @@ config ARM select GENERIC_ATOMIC64 if (CPU_V6 || !CPU_32v6K || !AEABI) select HAVE_OPROFILE if (HAVE_PERF_EVENTS) select HAVE_ARCH_KGDB - select HAVE_KPROBES if (!XIP_KERNEL && !THUMB2_KERNEL) + select HAVE_KPROBES if (!XIP_KERNEL) select HAVE_KRETPROBES if (HAVE_KPROBES) select HAVE_FUNCTION_TRACER if (!XIP_KERNEL) select HAVE_FTRACE_MCOUNT_RECORD if (!XIP_KERNEL)