Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: WangYuli <wangyuli@uniontech.com>, Wu Zhangjin <wuzhangjin@gmail.com>
Cc: guanwentao@uniontech.com, linux-kernel@vger.kernel.org,
	linux-mips@vger.kernel.org, macro@orcam.me.uk,
	niecheng1@uniontech.com, tsbogend@alpha.franken.de,
	zhanjun@uniontech.com
Subject: Re: [PATCH v2 4/6] MIPS: dec: Remove dec_irq_dispatch()
Date: Tue, 22 Apr 2025 12:27:44 +0200	[thread overview]
Message-ID: <d8504829-45fd-4df8-a98d-599d0c8c602d@linaro.org> (raw)
In-Reply-To: <093E43FBF9F4F005+20250422102253.137944-4-wangyuli@uniontech.com>

On 22/4/25 12:22, WangYuli wrote:
> Commit 187933f23679 ("[MIPS] do_IRQ cleanup") introduced dec_irq_dispatch()
> function. But Subsequent to commit 8f99a1626535 ("MIPS: Tracing: Add
> IRQENTRY_EXIT section for MIPS"), the dec_irq_dispatch() function is
> rendered superfluous. Remove it to eradicate compilation warnings.
> 
> [ Quoting Maciej W. Rozycki: ]
> 
>      It always has been, since its inception, see commit 187933f23679
>    ("[MIPS] do_IRQ cleanup").
> 
>      Up to commit 8f99a16265353 ("MIPS: Tracing: Add IRQENTRY_EXIT section
>    for MIPS") `do_IRQ' used to be a macro, that's why.  At the time `do_IRQ'
>    was converted to a macro `dec_irq_dispatch' was created and previously
>    this place used to call `do_IRQ' too.
> 
>      This cleanup should have been made along with commit 8f99a16265353, so
>    it's pretty old a technical debt being sorted here.
> 
> [ Fix follow error with gcc-14 when -Werror: ]
> 
> arch/mips/dec/setup.c:780:25: error: no previous prototype for ‘dec_irq_dispatch’ [-Werror=missing-prototypes]
>    780 | asmlinkage unsigned int dec_irq_dispatch(unsigned int irq)
>        |                         ^~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[7]: *** [scripts/Makefile.build:207: arch/mips/dec/setup.o] Error 1
> make[6]: *** [scripts/Makefile.build:465: arch/mips/dec] Error 2
> make[5]: *** [scripts/Makefile.build:465: arch/mips] Error 2
> make[5]: *** Waiting for unfinished jobs....
> make[4]: *** [Makefile:1992: .] Error 2
> make[3]: *** [debian/rules:74: build-arch] Error 2
> dpkg-buildpackage: error: make -f debian/rules binary subprocess returned exit status 2
> make[2]: *** [scripts/Makefile.package:126: bindeb-pkg] Error 2
> make[1]: *** [/mnt/83364c87-f5ee-4ae8-b862-930f1bd74feb/Projects/CommitUpstream/LinuxKernel/Temp/linux/Makefile:1625: bindeb-pkg] Error 2
> make: *** [Makefile:251: __sub-make] Error 2
> 
> Link: https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=187933f23679c413706030aefad9e85e79164c44
> Link: https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8f99a162653531ef25a3dd0f92bfb6332cd2b295
> Link: https://lore.kernel.org/all/alpine.DEB.2.21.2502220019210.65342@angie.orcam.me.uk/
> Signed-off-by: WangYuli <wangyuli@uniontech.com>
> ---
>   arch/mips/dec/int-handler.S | 2 +-
>   arch/mips/dec/setup.c       | 6 ------
>   2 files changed, 1 insertion(+), 7 deletions(-)
> 
> diff --git a/arch/mips/dec/int-handler.S b/arch/mips/dec/int-handler.S
> index 011d1d678840..a0b439c90488 100644
> --- a/arch/mips/dec/int-handler.S
> +++ b/arch/mips/dec/int-handler.S
> @@ -277,7 +277,7 @@
>   		 srlv	t3,t1,t2
>   
>   handle_it:
> -		j	dec_irq_dispatch
> +		j	do_IRQ
>   		 nop
>   
>   #if defined(CONFIG_32BIT) && defined(CONFIG_MIPS_FP_SUPPORT)
> diff --git a/arch/mips/dec/setup.c b/arch/mips/dec/setup.c
> index 6b100c7d0633..affae92f1918 100644
> --- a/arch/mips/dec/setup.c
> +++ b/arch/mips/dec/setup.c
> @@ -771,9 +771,3 @@ void __init arch_init_irq(void)
>   			pr_err("Failed to register halt interrupt\n");
>   	}
>   }
> -
> -asmlinkage unsigned int dec_irq_dispatch(unsigned int irq)
> -{
> -	do_IRQ(irq);
> -	return 0;
> -}

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>


  reply	other threads:[~2025-04-22 10:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-22 10:18 [PATCH v2 0/6] MIPS: Resolve build problems on decstation_64 WangYuli
2025-04-22 10:22 ` [PATCH v2 1/6] MIPS: dec: Only check -msym32 when need compiler WangYuli
2025-04-22 10:22 ` [PATCH v2 2/6] MIPS: Eliminate Redundant KBUILD_SYM32 Checks WangYuli
2025-04-22 10:22 ` [PATCH v2 3/6] MIPS: dec: Create reset.h WangYuli
2025-04-22 10:22 ` [PATCH v2 4/6] MIPS: dec: Remove dec_irq_dispatch() WangYuli
2025-04-22 10:27   ` Philippe Mathieu-Daudé [this message]
2025-04-22 10:22 ` [PATCH v2 5/6] MIPS: decstation_64_defconfig: Update configs dependencies WangYuli
2025-04-22 10:22 ` [PATCH v2 6/6] MIPS: decstation_64_defconfig: Compile the kernel with warnings as errors WangYuli
2025-07-07  6:58 ` Gentle ping: [PATCH v2 0/6] MIPS: Resolve build problems on decstation_64 WangYuli
2025-07-07 14:57   ` Maciej W. Rozycki
2025-07-16 19:24     ` Thomas Bogendoerfer
2025-07-18 14:38       ` Maciej W. Rozycki
2026-06-23 13:26     ` WangYuli
2026-06-23 14:39       ` Maciej W. Rozycki

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=d8504829-45fd-4df8-a98d-599d0c8c602d@linaro.org \
    --to=philmd@linaro.org \
    --cc=guanwentao@uniontech.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=macro@orcam.me.uk \
    --cc=niecheng1@uniontech.com \
    --cc=tsbogend@alpha.franken.de \
    --cc=wangyuli@uniontech.com \
    --cc=wuzhangjin@gmail.com \
    --cc=zhanjun@uniontech.com \
    /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