From patchwork Tue Sep 29 20:17:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rikard Falkeborn X-Patchwork-Id: 11806699 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0817A112E for ; Tue, 29 Sep 2020 20:18:09 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7C29C2076B for ; Tue, 29 Sep 2020 20:18:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MEtLuZ8H"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SIKcNag+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7C29C2076B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=CQpCslQNzyHtdX9MpxHDOSbWYacbxJN4z3G4z9NDAm0=; b=MEtLuZ8HybEJMh0u3mHPVOqEd5 Zu8jxjaAOL48ADRxYZdMDnMKmIjxfw+5fHlfMUfxfqvstCDRycnYMHCBj3E0fiYd4RR78ndDilCoR bKk9CUqlHdpgUGTVGp4zVVKkdJXfgoPBOpZ+H68YZrcd9DH6/gJuooBGXbnUzQXTYC7yDLm9WVjSO NDLiNTtlIl6mTfacefEqDbioluAB8Jt8ajKjucs7WCy5HyDU948QS5gKJCOszTM+GzQg7pWFx5DoK fH8MQXC1azXLY43YkUPCXICdPnq8i9RkkAF/y/uZiRSpqw0Za7H84jeG/Y+Dtlc6fWky6k8Cz71lx 8sDlhnRg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNM4M-000501-DD; Tue, 29 Sep 2020 20:17:50 +0000 Received: from mail-lf1-x144.google.com ([2a00:1450:4864:20::144]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNM4J-0004yi-Jc for linux-arm-kernel@lists.infradead.org; Tue, 29 Sep 2020 20:17:48 +0000 Received: by mail-lf1-x144.google.com with SMTP id b22so7017154lfs.13 for ; Tue, 29 Sep 2020 13:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+EosCr5gn7ZyZ+N6mEKKFHdvoy+RoVVYIyzqWT5rRa0=; b=SIKcNag+g326Er1qOD+M4r8gtWgXQPVz/kic6Pqhzd4ohq0ETwiQic06PA+s1UQEdt 99zWEbowBbjJ7ul1HAHrvx+By9s/EXBD3Jmk7ADbYdxs0I/dpZ6CGBQO6i9TVL1ugdDv MuWS7XkKqVOtc8q/7yiROVeTOs2R2AD8MD7AzKLGE9/S1+tuXeIyAmlEoZ4pL2EHfRyt Ex9q8hU3lX7hbXod2tc09Xw/ooaVbREt+wUfzCXNgC43b9D3Z8UXLaMXs1Yyf3eSFDjB G6BtF/YFVGHNWiQb+ZVWfZt9Bftdr3+DfoZMDBf/uwOpJPkA7T/3N1y62/m4G3n9aX/2 CqfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+EosCr5gn7ZyZ+N6mEKKFHdvoy+RoVVYIyzqWT5rRa0=; b=m821Bf09GNC1gtlb/oC5jcHcjf1/Ez5Qng1091xFIr4+M9pMbQ5ZuA8l2EHMBHuAe5 UybcB7XTO9A42CgS5n6q7WuItqKvqX+kVBxLPTL5MhA006H8c0s9HOLFjORnrRkwfrqm lo2+rrN+YT9xBfwRTj+3jOfs/Zg8n0HPGugtFtboyumX+BakzoeNcL5TPHqp9jCAicfv ERAmxixBlw3X+qCKWr/HxVUAfHFsazKj0zYFLXdCA2CVRO/hg8ui8RtZBGSaXicw6UhF M4UW3Kyjx1mFibnbv23fVt9TOQ+Wjrf579IsiKrbSrr+aajfgsKdXFqOU2A3czeQafp5 tFSA== X-Gm-Message-State: AOAM533LnTqgzXShQ0Sy6ibnp4GF41RsQ2I4M0sb9KaJIHI9xARxPT9V VuzLBeY89njmqPoLo28HhuM= X-Google-Smtp-Source: ABdhPJyefhwk3thR3Nx5YFjMDve83dUfvSBVcpTuJ8Em8uq/iPX2wl3isbkUd/wXNmxePbm5yKNmsQ== X-Received: by 2002:a05:6512:70f:: with SMTP id b15mr1791605lfs.39.1601410664672; Tue, 29 Sep 2020 13:17:44 -0700 (PDT) Received: from localhost.localdomain (h-155-4-221-87.NA.cust.bahnhof.se. [155.4.221.87]) by smtp.gmail.com with ESMTPSA id c22sm3329356lff.202.2020.09.29.13.17.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 13:17:43 -0700 (PDT) From: Rikard Falkeborn To: Barry Song Subject: [PATCH] ARM: prima2: Constify static sirfsoc_rstc_ops Date: Tue, 29 Sep 2020 22:17:38 +0200 Message-Id: <20200929201738.349465-1-rikard.falkeborn@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200929_161747_661829_FC071F30 X-CRM114-Status: GOOD ( 15.46 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:144 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [rikard.falkeborn[at]gmail.com] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, Rikard Falkeborn , Russell King , Philipp Zabel , linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The only usage of sirfsoc_rstc_ops is to assign its address to the ops field in the reset_controller_dev struct, which is a const pointer. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn Reviewed-by: Philipp Zabel --- arch/arm/mach-prima2/rstc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-prima2/rstc.c b/arch/arm/mach-prima2/rstc.c index 9d56606ac87f..1ee405e2dde9 100644 --- a/arch/arm/mach-prima2/rstc.c +++ b/arch/arm/mach-prima2/rstc.c @@ -53,7 +53,7 @@ static int sirfsoc_reset_module(struct reset_controller_dev *rcdev, return 0; } -static struct reset_control_ops sirfsoc_rstc_ops = { +static const struct reset_control_ops sirfsoc_rstc_ops = { .reset = sirfsoc_reset_module, };