Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3691102pxb; Sun, 24 Oct 2021 08:39:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhUbbmKU6Ff7Myk6SutBdAxNwLmWwmL4kphYXk9YYGwhuzClJF2gD1o4h6Jqr0xWktSeUn X-Received: by 2002:a17:90a:4f83:: with SMTP id q3mr6917635pjh.127.1635089971452; Sun, 24 Oct 2021 08:39:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635089971; cv=none; d=google.com; s=arc-20160816; b=PITBfzGOkmK9PhJ0re6/QxVXQL4EW6c3BafVW7opjnOowKVDDKvFccZ6sOJs3mQQP1 9Ch94njh9A8stbIESDq/CdFieMhXkRvRUQ1qKl34QGXDOiEvarBQmTDWiMcIcU/mO8os rZ0r/3sinmKLmJHSOJjdnsSiPFG/XLKsMPmOlomNC+L9vhOOjCzwlk/xPrXrS8+pBVpO oEn0fVVO2jAUmY6RCLRIDGF3KPQBNgysNCv9c41V/6UJ9K3KBQ1X/CDk0DFoLkCNt1HO Wm6Dod4+9jQw05KUF/Hiy0ITazq5HPyowbd1nJnw1gmkyRkCi0t25RcwVX49ATnMO5qO EfOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ThnZJjLCo863FFO7zMBgDZ+u6e90MJVYQPUw2q4Rh5g=; b=ooMbss05abkrwxHLg/Ej+SG3FJkYT0gHcBaoDGHvV7HDnxwZsLLTUcn54PB/OnKzu/ 69lU1wPMQgjCMBYO4Wtl3ny2zBuWW4RhzQsSPkR5zeMnaT58IiwUyWcjCT0s0xtOvWiF 8GEmY1xO9ox6YQDnAivRrk6xM5pXMz/lIM7Z9gnekxeCv+wQBiOxf9a3AQ/91L8nITEk WF/xffZCwyOgFRV/fdUdJuSwKKW2vhmiSdOO9UxsqEimTUrMMJR82uPaKF62+f6fzd7W k7lEI0ellFYWkivObXfEkmsYWFTjzH57LDUpJN9L/Y+QlsTshiglRgWLBKfWLRAH8ukP 5sfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q3si12923388plb.58.2021.10.24.08.39.18; Sun, 24 Oct 2021 08:39:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231927AbhJXPkB (ORCPT + 99 others); Sun, 24 Oct 2021 11:40:01 -0400 Received: from elvis.franken.de ([193.175.24.41]:37656 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231779AbhJXPjw (ORCPT ); Sun, 24 Oct 2021 11:39:52 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1mefYp-0006bc-06; Sun, 24 Oct 2021 17:37:24 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 083F3C265F; Sun, 24 Oct 2021 17:31:01 +0200 (CEST) Date: Sun, 24 Oct 2021 17:31:00 +0200 From: Thomas Bogendoerfer To: Mark Rutland Cc: linux-kernel@vger.kernel.org, aou@eecs.berkeley.edu, catalin.marinas@arm.com, deanbo422@gmail.com, green.hu@gmail.com, guoren@kernel.org, jonas@southpole.se, kernelfans@gmail.com, linux-arm-kernel@lists.infradead.org, linux@armlinux.org.uk, maz@kernel.org, nickhu@andestech.com, palmer@dabbelt.com, paulmck@kernel.org, paul.walmsley@sifive.com, peterz@infradead.org, shorne@gmail.com, stefan.kristiansson@saunalahti.fi, tglx@linutronix.de, torvalds@linux-foundation.org, vgupta@kernel.org, will@kernel.org Subject: Re: [PATCH 03/15] irq: mips: simplify do_domain_IRQ() Message-ID: <20211024153100.GG4721@alpha.franken.de> References: <20211021180236.37428-1-mark.rutland@arm.com> <20211021180236.37428-4-mark.rutland@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211021180236.37428-4-mark.rutland@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 21, 2021 at 07:02:24PM +0100, Mark Rutland wrote: > There's no need fpr arch/mips's do_domain_IRQ() to open-code the NULL > check performed by handle_irq_desc(), nor the resolution of the desc > performed by generic_handle_domain_irq(). > > Use generic_handle_domain_irq() directly, as this is functioanlly > equivalent and clearer. > > There should be no functional change as a result of this patch. > > Signed-off-by: Mark Rutland > Cc: Marc Zyngier > Cc: Thomas Bogendoerfer > Cc: Thomas Gleixner > --- > arch/mips/kernel/irq.c | 6 +----- > 1 file changed, 1 insertion(+), 5 deletions(-) > > diff --git a/arch/mips/kernel/irq.c b/arch/mips/kernel/irq.c > index d20e002b3246..1fee96ef8059 100644 > --- a/arch/mips/kernel/irq.c > +++ b/arch/mips/kernel/irq.c > @@ -115,11 +115,7 @@ void __irq_entry do_domain_IRQ(struct irq_domain *domain, unsigned int hwirq) > > irq_enter(); > check_stack_overflow(); > - > - desc = irq_resolve_mapping(domain, hwirq); > - if (likely(desc)) > - handle_irq_desc(desc); > - > + generic_handle_domain_irq(domain, hwirq); > irq_exit(); > } > #endif > -- > 2.11.0 Acked-by: Thomas Bogendoerfer -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]