Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1799244pxb; Thu, 28 Oct 2021 10:13:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcTv88fGy0ZM9/Lmc5UiEmguaYVhiNZR8I+C2Vvi2fA2/B6K3km54Ao+0v59+NRjgib4WC X-Received: by 2002:a17:90a:8b89:: with SMTP id z9mr5899252pjn.89.1635441205755; Thu, 28 Oct 2021 10:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635441205; cv=none; d=google.com; s=arc-20160816; b=D6r3YKVGfynGsUhKWWUau/24abaM+nj5rA26onrKVqg/btpYglVsUvLsFkMuxS5+5M qQ+MleQTePtEe29ibCQYZ0GjuMnduybXakjg0pkXwSgbQdqnizToLwNTKd4VoMof5U5w Z6JvKbW20uolyVw2g+fg1UinA+JkF/yW1O2cPQmyOZ85KCuDw/0ObQS+ndjosRo6UlUc 2Bzjk4eSTmgFJpqkCErg15sF1J9jOPfr5O8Q3KOKvmybSMm+tc0HM6fjBG21h6ymeJXk wIOixLzzDaZqMUVkJkPARZL3W835pUpt1fOgSRgH0fzN9aeU9Xwv/V10Kjr+fzp/uBIZ U2HA== 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=IJSEp+DCzHUBo3PW4/+SE5xzQ88lc4C2stLqQUkdWE4=; b=LBuHRY6FcImQL76Fx1kh9w/8naRRsoL+LyzjGCK+9vmaRXDiqtfACt1B1WIgyAwB0e 9ha1T2//WzFAq4lO8zVP4LYkslCaTzlRM9E+blZbK4y2kKLWaMNijESNQdMi1FdtbhQg UZHddCcW566yDc3lMEklJiEKGxK2QgkWt7jllvx/8i7Ew1I9s4FUd4DyqbNQ4VLO8QZV SbWKxlzFpoV46Qu6Jk2w2yn6Z4oDhjSnEDzigzhXgO5l2qpnEXujizjECns7hW97IU17 TKdEuaKi2RWCxnNGxYfCHTOt/BA6+5SzqE1IVlNjsCxKIG8G7e1Nh2rOJGjTL0jFBsrE bm5g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t9si1365299pjl.138.2021.10.28.10.13.12; Thu, 28 Oct 2021 10:13:25 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230264AbhJ1ROb (ORCPT + 99 others); Thu, 28 Oct 2021 13:14:31 -0400 Received: from foss.arm.com ([217.140.110.172]:57424 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230223AbhJ1ROa (ORCPT ); Thu, 28 Oct 2021 13:14:30 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2D0B31063; Thu, 28 Oct 2021 10:12:03 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4C7F43F70D; Thu, 28 Oct 2021 10:12:00 -0700 (PDT) Date: Thu, 28 Oct 2021 18:11:55 +0100 From: Mark Rutland To: Guenter Roeck 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, tsbogend@alpha.franken.de, vgupta@kernel.org, will@kernel.org Subject: Re: [PATCH 03/15] irq: mips: simplify do_domain_IRQ() Message-ID: <20211028171153.GA42845@lakrids.cambridge.arm.com> References: <20211021180236.37428-1-mark.rutland@arm.com> <20211021180236.37428-4-mark.rutland@arm.com> <20211028170732.GA507928@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211028170732.GA507928@roeck-us.net> User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 28, 2021 at 10:07:32AM -0700, Guenter Roeck wrote: > 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. > > > > Except for this compile error: > > arch/mips/kernel/irq.c: In function 'do_domain_IRQ': > arch/mips/kernel/irq.c:114:26: error: unused variable 'desc' [-Werror=unused-variable] > 114 | struct irq_desc *desc; > > Guenter Sorry for that; this has been fixed by: https://lore.kernel.org/r/20211028095652.3503790-1-siyanteng@loongson.cn ... which is queued up: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?h=irq/remove-handle-domain-irq-20211026&id=34fca8947b2743e6a3a9a8a3a44962e625993533 Thanks, Mark. > > > 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 > >