mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dinh Nguyen <dinguyen@kernel.org>
To: Randy Dunlap <rdunlap@infradead.org>, linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH] NIOS2: irqflags: rename a redefined register name
Date: Tue, 12 Oct 2021 22:22:14 -0500	[thread overview]
Message-ID: <261a69a1-0037-f1f8-9ddd-de50e45085fc@kernel.org> (raw)
In-Reply-To: <20211004075606.6229-1-rdunlap@infradead.org>



On 10/4/21 2:56 AM, Randy Dunlap wrote:
> Both arch/nios2/ and drivers/mmc/host/tmio_mmc.c define a macro
> with the name "CTL_STATUS". Change the one in arch/nios2/ to be
> "CTL_FSTATUS" (flags status) to eliminate the build warning.
> 
> In file included from ../drivers/mmc/host/tmio_mmc.c:22:
> drivers/mmc/host/tmio_mmc.h:31: warning: "CTL_STATUS" redefined
>     31 | #define CTL_STATUS 0x1c
> arch/nios2/include/asm/registers.h:14: note: this is the location of the previous definition
>     14 | #define CTL_STATUS      0
> 
> Fixes: b31ebd8055ea ("nios2: Nios2 registers")
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Dinh Nguyen <dinguyen@kernel.org>
> ---
>   arch/nios2/include/asm/irqflags.h  |    4 ++--
>   arch/nios2/include/asm/registers.h |    2 +-
>   2 files changed, 3 insertions(+), 3 deletions(-)
> 
> --- linux-next-20211001.orig/arch/nios2/include/asm/irqflags.h
> +++ linux-next-20211001/arch/nios2/include/asm/irqflags.h
> @@ -9,7 +9,7 @@
>   
>   static inline unsigned long arch_local_save_flags(void)
>   {
> -	return RDCTL(CTL_STATUS);
> +	return RDCTL(CTL_FSTATUS);
>   }
>   
>   /*
> @@ -18,7 +18,7 @@ static inline unsigned long arch_local_s
>    */
>   static inline void arch_local_irq_restore(unsigned long flags)
>   {
> -	WRCTL(CTL_STATUS, flags);
> +	WRCTL(CTL_FSTATUS, flags);
>   }
>   
>   static inline void arch_local_irq_disable(void)
> --- linux-next-20211001.orig/arch/nios2/include/asm/registers.h
> +++ linux-next-20211001/arch/nios2/include/asm/registers.h
> @@ -11,7 +11,7 @@
>   #endif
>   
>   /* control register numbers */
> -#define CTL_STATUS	0
> +#define CTL_FSTATUS	0
>   #define CTL_ESTATUS	1
>   #define CTL_BSTATUS	2
>   #define CTL_IENABLE	3
> 

Applied!

Thanks,
Dinh

      reply	other threads:[~2021-10-13  3:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-04  7:56 Randy Dunlap
2021-10-13  3:22 ` Dinh Nguyen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=261a69a1-0037-f1f8-9ddd-de50e45085fc@kernel.org \
    --to=dinguyen@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rdunlap@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®