Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp812997rwb; Thu, 11 Aug 2022 10:17:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR7TKfD96uvqkQTxklGHrbiJmLDLRMf4N9oQPkwgkmaXcmazxbZ9orQfoYP80IYPa8q/8gJY X-Received: by 2002:a63:5a58:0:b0:41c:7d4c:8fd5 with SMTP id k24-20020a635a58000000b0041c7d4c8fd5mr104425pgm.92.1660238273098; Thu, 11 Aug 2022 10:17:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660238273; cv=none; d=google.com; s=arc-20160816; b=M6BvLUc2gbPhLpC8Bry8wEl6ENp3UNImZv5amoPzJCXkYcDODnf3NUZcKTP87Fg96z lf450PTiBxwSdRtm6jX1xnaEJGu+fh1bJxZlj3CSzbZRsCe24LU2tk5pqpR4O1jr4XZf VZ6eIFBYLPfDOcBfG/cB7AG4yF1KMcPO10//DnYTBCWbOL5id77XfeuGETDC4UrDUuw2 aIPYLlt3bUxBGFk91czu1HrhANY0oHSnIq7X+i4jTySvpkhS9mZGZudJkf8pXB6arqSj Cb3WjinU0Ik7kjd8hw9FN+Rs3KnLggLFcTh6OPbtP6HhXWnAIn3LRFY2jVrmxbm+b/mJ N3EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=FrEgly12wj2ttxZWwOI1z30y1JdS/EZuSClhPVGvhZ0=; b=OrmpqGaD4KwNwWJrb13JMjNnKx+6Bzg0o9wDIC76RShFk/6jVahBrLE8DmD3M3AIuv XDLBaKfuQHol+AAQReYQDuHrBCHoRiiOa7LzomTGWhVbmTfcwwFiM7b8Cu91MzwXUKEN 6UuD2oftzzTv+8lYYiGW4oWYfePOlRGJoSMPDLeC8+cjNjISFXTfLat3aEFX1SPaWyJD xgqydIUv0Z8OcQbd5R865O9XRcA8CBMLCrgDsEleFX6869Yl4arB3zOgnVjLDX2v4AJO +gJpwIYeSHQXjSoIk59Vz//Ku7ME9c33kZGuon8uldNEg5kRFCTWk0csFO2+83/QN5d+ nXNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b="QZ5Z6/hK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t8-20020a637808000000b0041bb35dd034si5653pgc.303.2022.08.11.10.17.37; Thu, 11 Aug 2022 10:17:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b="QZ5Z6/hK"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235934AbiHKRNT (ORCPT + 99 others); Thu, 11 Aug 2022 13:13:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236107AbiHKRMx (ORCPT ); Thu, 11 Aug 2022 13:12:53 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40D7445077 for ; Thu, 11 Aug 2022 09:53:24 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id 73so17587214pgb.9 for ; Thu, 11 Aug 2022 09:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc; bh=FrEgly12wj2ttxZWwOI1z30y1JdS/EZuSClhPVGvhZ0=; b=QZ5Z6/hK+x84b+71V1583oW+eo8ZntWTD681dmHF5tMcqWEcKm77ur2URjyeChO7Kw Dc/Iz1jNz1zd8Fi+wgT9f/kHanPE54dIBe6/4xSI7SpSKExiFGn+QrQ83dGmgHJC6Jw3 9ug8SKR+1qqNfoxncgtdvbIqbYZysw0Zm7LN6HUf9gqSoZpIuyNEWBRgggHKoUp7GuGt Q+u06MkeaKgMmhuYhL1+xqNIwfCQUqZH6YJHidUSgIQ5yQFn/8KRMx0Wxnc2UNR9DlQp wIKC6qY1jrS8SB0Fa1602gNNQMLH0m8e7cGFZVnJRUZZtOaiXQU1Y5TA+Br3DwTktk7k N21Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc; bh=FrEgly12wj2ttxZWwOI1z30y1JdS/EZuSClhPVGvhZ0=; b=UXAbGuKX009L0vRo3zN+YiClTn7ol+m1HjEOSH7WtEmJB8n6D6Bz9BRyVB2vgFMEy/ qxA/3Pg8u6TKAdP2RvRTCySMqJh1+o5ICwEln7hRMLKsi2sq9uBpW2U2+kkTwQ2QnURt 2nM9MtLlMZOLioScEIOHAH28oKplVQ/7hxnJHGWz6M3+v6qPU07kdHz4YvQQuQetiaiT jW8vfw6XAu0uILOVxLTStLRzT3cr1IxjAwz8qVZfzlHyaDa7ncs+YVOppVjmq7GS+6TM ryFLlGMSfYx+2+sN3cwLfNoXBGqqUgXv76v3oUBjna6QqBpAEfp+oArn1Hsrcc+B7cyt B/FQ== X-Gm-Message-State: ACgBeo0Avb0+J2BwGhKxOao0+Ssh7ItqyjUPSrG7YEWi1PMgFgd6xP4i MghiEZQYDxzrojaT0DorO31HNg== X-Received: by 2002:a63:8143:0:b0:41b:ee3b:1b66 with SMTP id t64-20020a638143000000b0041bee3b1b66mr14399pgd.31.1660236803743; Thu, 11 Aug 2022 09:53:23 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id w23-20020a1709027b9700b0016c68b56be7sm2751222pll.158.2022.08.11.09.53.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 09:53:23 -0700 (PDT) Date: Thu, 11 Aug 2022 09:53:23 -0700 (PDT) X-Google-Original-Date: Thu, 11 Aug 2022 09:21:37 PDT (-0700) Subject: Re: [PATCH] irqchip/sifive-plic: Make struct irq_chip const In-Reply-To: <20220624175639.2677-1-prabhakar.mahadev-lad.rj@bp.renesas.com> CC: tglx@linutronix.de, Paul Walmsley , linux-riscv@lists.infradead.org, geert+renesas@glider.be, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, prabhakar.csengg@gmail.com, biju.das.jz@bp.renesas.com, prabhakar.mahadev-lad.rj@bp.renesas.com From: Palmer Dabbelt To: prabhakar.mahadev-lad.rj@bp.renesas.com, Marc Zyngier Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 24 Jun 2022 10:56:39 PDT (-0700), prabhakar.mahadev-lad.rj@bp.renesas.com wrote: > These should be const, so make it so. > > Signed-off-by: Lad Prabhakar > --- > 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, Reviewed-by: Palmer Dabbelt Acked-by: Palmer Dabbelt Not sure if this got picked up somewhere, but it looks fine to me.