Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3039267imu; Mon, 17 Dec 2018 12:09:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/XIUruz1T9zZBZ3S0hjWUMv132vm0Y8Sah8OM0KbpTfxkwEPbzb5eSTuc9QTNQWYRzeycPj X-Received: by 2002:a63:658:: with SMTP id 85mr13136762pgg.373.1545077364367; Mon, 17 Dec 2018 12:09:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545077364; cv=none; d=google.com; s=arc-20160816; b=pIGHWy1nGqSNhn28FlKgn4mEBsiK3diI99w1QZGnB8J7mOagbuTmB+e1YqGqeRPqVF aiVMIAx6dE/ZP7w07BMV3pwwD0MfuNygHFJ89Qd5ggbKGhuz/z3j2Qb8J5hnV1S13oX3 9uWnb+AFlVkGdplBIqtdCDXZz4MgrxAwoEQ4YGD0YGVwxti+DoB7SssD+e0SY0IURhDM Vs6jgh6gayUfzUdEuhLnjykbSc61SM1gytuFxHXYMhisQjzvwvw2GWqo+idfUlKGuqLX GXY2P8vg7+sqgGhyEc5Ka3kBOTMJDRe59lfGw2kP0kjK0ZWttuNrdKOVpRZVUwA5xwoi o6XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=V1AZ6Rv5gqo874NO+3M1S/MKnTRClD0a9hdXcAkawwY=; b=m0gNXAJ/PZ77gyZ4ijy3e4KWNgIJXZlQlY8nP8+F05LA/9GcPrNAl4vVivW75x57Ww Gk4ibUj0rVL9Snt78F3OIqYVL6QPbjBJYG1uNRtzzq24BSrKtZ9laiGWL2fJdpPlWXfR lwIQ+vX7DGBL47aXjVSXDRsF2bEUxo7dkW6Vj9xV6XZD0M2xpoQjLxDZy5aDa90Pgty9 RKkM55Dq6spU2C0JOS4ZACry8fn1kvWmx/WTYU9mdg+yTX1z2CJm+VntP+ojv2pBMTVu SJwHta3dtsvvn7ozsqOC4Yt8Fo2jJwqAb9RAX2wNkEkrxNFK3Cqe85f7FTPIoxE4coul drfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=YBlRBz1G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3si11173542plt.394.2018.12.17.12.09.04; Mon, 17 Dec 2018 12:09:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=YBlRBz1G; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388973AbeLQS1Y (ORCPT + 99 others); Mon, 17 Dec 2018 13:27:24 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:38744 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732405AbeLQS1Y (ORCPT ); Mon, 17 Dec 2018 13:27:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=V1AZ6Rv5gqo874NO+3M1S/MKnTRClD0a9hdXcAkawwY=; b=YBlRBz1GDphFo1v2KR7tY7GLM 79Ix+CBeXtvOoWX/t8D72xDsVR8HE0zGBuGyGI2AnIgwugahezFvrut8Cse/Oqy+jKspTpKAwERDL gMNSB0Yk4CIGD+BZDZpXc3GsFa0M+vWqSUXuwU0NkrHZte5LNTHCm6nSsc73+5w/+/fHBDy5LRuPV aZ3AOEQ5PJV8SzshTS8gp0/1sq0xpBDTYn6AMGPjqn7TIOj7I58uR4K0Ib8tLcPSYsZCojkON50NQ /6pzJ2xPSlpJ9MexK/2N8OmYw+5swAyPOQiz4IMngpmZsYpJVPh8wBb8KnAOmQsV9K3Ct4WyMaApO NVYBlsKFQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gYxbr-0003qR-UO; Mon, 17 Dec 2018 18:27:19 +0000 Date: Mon, 17 Dec 2018 10:27:19 -0800 From: Christoph Hellwig To: Anup Patel Cc: Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Jason Cooper , Marc Zyngier , Christoph Hellwig , Atish Patra , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/6] irqchip: sifive-plic: More flexible plic_irq_toggle() Message-ID: <20181217182719.GC7086@infradead.org> References: <20181130080207.20505-1-anup@brainfault.org> <20181130080207.20505-4-anup@brainfault.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181130080207.20505-4-anup@brainfault.org> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -static inline void plic_toggle(struct plic_handler *handler, > - int hwirq, int enable) > +static void plic_toggle(struct plic_handler *handler, int hwirq, int enable) > { > u32 __iomem *reg = handler->enable_base + (hwirq / 32) * sizeof(u32); > u32 hwirq_mask = 1 << (hwirq % 32); > @@ -92,27 +91,27 @@ static inline void plic_toggle(struct plic_handler *handler, > raw_spin_unlock(&handler->enable_lock); > } > > -static inline void plic_irq_toggle(struct irq_data *d, int enable) > +static void plic_irq_toggle(const struct cpumask *mask, int hwirq, int enable) It also removes inline statements which seems rather unrelated to the patch description. Also the actual addintion of the single cpumask argument is simple enough that it should probably go into the patch that makes use of it.