From patchwork Fri Jun 24 17:56:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prabhakar X-Patchwork-Id: 12894969 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1DBFDC43334 for ; Fri, 24 Jun 2022 17:57:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=zB9PMBbXDn5KKKN2JHWsxsa23zwwiIMVZzkczhqgwPU=; b=29iGDT/pupcsBN lI541zp8PwEpX1YZLx9Aeek10Kx0a4tp07zPd0txOrualduoXbyktneC8OF2bNsSA2GKm8qA2396O 4yAS6K4ogj8QVRjTwKMHGJr20Cv1HNTDofi2FDJR0RiLxsviixrVaOd3cwtswIQS7Gjfi6Txwvli8 2R00Gi2pZY4fg5z1pO0XwzMC9v6Jq+xCOa+C1ltfVaOXBeiXIrQqGw7MmKUixvmQTh93KsuVz7g5O NJ4XKdGPcA42zRq2eqW/TZoThBDhG7AJYHhyotFdVhXoXoIS1UXalNT1OXpcMT5QWvua6rwR4R09d 1qNLGoYJSjEgxAa+GL+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4nYB-003NJX-Qe; Fri, 24 Jun 2022 17:56:59 +0000 Received: from relmlor2.renesas.com ([210.160.252.172] helo=relmlie6.idc.renesas.com) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4nY8-003NHM-QL for linux-riscv@lists.infradead.org; Fri, 24 Jun 2022 17:56:58 +0000 X-IronPort-AV: E=Sophos;i="5.92,218,1650898800"; d="scan'208";a="125577364" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 25 Jun 2022 02:56:50 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 84329400F791; Sat, 25 Jun 2022 02:56:47 +0900 (JST) From: Lad Prabhakar To: Thomas Gleixner , Marc Zyngier , Palmer Dabbelt , Paul Walmsley , linux-riscv@lists.infradead.org Cc: Geert Uytterhoeven , linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar Subject: [PATCH] irqchip/sifive-plic: Make struct irq_chip const Date: Fri, 24 Jun 2022 18:56:39 +0100 Message-Id: <20220624175639.2677-1-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220624_105657_001051_8F0E585B X-CRM114-Status: UNSURE ( 8.39 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org These should be const, so make it so. Signed-off-by: Lad Prabhakar Reviewed-by: Palmer Dabbelt Acked-by: Palmer Dabbelt --- drivers/irqchip/irq-sifive-plic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-sifive-plic.c b/drivers/irqchip/irq-sifive-plic.c index bb87e4c3b88e..173446cc9204 100644 --- a/drivers/irqchip/irq-sifive-plic.c +++ b/drivers/irqchip/irq-sifive-plic.c @@ -176,7 +176,7 @@ static void plic_irq_eoi(struct irq_data *d) } } -static struct irq_chip plic_chip = { +static const struct irq_chip plic_chip = { .name = "SiFive PLIC", .irq_mask = plic_irq_mask, .irq_unmask = plic_irq_unmask,