Re: [PATCH 05/11] tracing: consolidate the TRACE_IRQFLAGS_SUPPORT symbol

From: Ley Foon Tan
Date: Mon Feb 18 2019 - 20:40:40 EST


On Fri, 2019-02-15 at 16:55 +0900, Masahiro Yamada wrote:
> +CC: Ley Foon Tan <lftan@xxxxxxxxxx>
> +CC: nios2-dev@xxxxxxxxxxxxxxxxxxxxxx
>
>
> On Thu, Feb 14, 2019 at 2:40 AM Christoph Hellwig <hch@xxxxxx> wrote:
>
> >
> > diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig
> > index 715e6c09b4a5..3b50689007f5 100644
> > --- a/arch/nios2/Kconfig
> > +++ b/arch/nios2/Kconfig
> > @@ -20,6 +20,7 @@ config NIOS2
> > ÂÂÂÂÂÂÂÂselect OF_EARLY_FLATTREE
> > ÂÂÂÂÂÂÂÂselect SOC_BUS
> > ÂÂÂÂÂÂÂÂselect SPARSE_IRQ
> > +ÂÂÂÂÂÂÂselect TRACE_IRQFLAGS_SUPPORT
>
> This is a behavior change of nios2.
>
> TRACE_IRQFLAGS_SUPPORT was previously 'n',
> and this commit is changing it to 'y'.
>
>
>
>
> Strangely, nios2 defines TRACE_IRQFLAGS_SUPPORT twice
> with different default values.
>
> In Kconfig, the first one becomes effective.
>
> In this case, 'def_bool n' in arch/nios2/Kconfig is used.
> 'def_bool y' in arch/nios2/Kconfig.debug is dead code.
>
>
> I think this select should be dropped
> to keep the current behavior,
> but I hope the NIOS2 maintainer will give us
> some comments just in case.
>
Yes, please drop this patch to keep original behavior.
Thanks.

Regards
Ley Foon
>
>
>
> >
> > ÂÂÂÂÂÂÂÂselect USB_ARCH_HAS_HCD if USB_SUPPORT
> > ÂÂÂÂÂÂÂÂselect CPU_NO_EFFICIENT_FFS
> > ÂÂÂÂÂÂÂÂselect ARCH_DISCARD_MEMBLOCK
> > @@ -39,9 +40,6 @@ config NO_IOPORT_MAP
> > Âconfig FPU
> > ÂÂÂÂÂÂÂÂdef_bool n
> >
> > -config TRACE_IRQFLAGS_SUPPORT
> > -ÂÂÂÂÂÂÂdef_bool n
> > -
> > Âmenu "Kernel features"
> >
> > Âsource "kernel/Kconfig.hz"
> > diff --git a/arch/nios2/Kconfig.debug b/arch/nios2/Kconfig.debug
> > index f1da8a7b17ff..a8bc06e96ef5 100644
> > --- a/arch/nios2/Kconfig.debug
> > +++ b/arch/nios2/Kconfig.debug
> > @@ -1,8 +1,5 @@
> > Â# SPDX-License-Identifier: GPL-2.0
> >
> > -config TRACE_IRQFLAGS_SUPPORT
> > -ÂÂÂÂÂÂÂdef_bool y
> > -
> > Âconfig EARLY_PRINTK
> > ÂÂÂÂÂÂÂÂbool "Activate early kernel debugging"
> > ÂÂÂÂÂÂÂÂdefault y
> --
> Best Regards
> Masahiro Yamada
>
> ________________________________
>
> Confidentiality Notice.
> This message may contain information that is confidential or
> otherwise protected from disclosure. If you are not the intended
> recipient, you are hereby notified that any use, disclosure,
> dissemination, distribution, or copying of this message, or any
> attachments, is strictly prohibited. If you have received this
> message in error, please advise the sender by reply e-mail, and
> delete the message and any attachments. Thank you.