Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3142421imd; Mon, 29 Oct 2018 02:20:16 -0700 (PDT) X-Google-Smtp-Source: AJdET5cM6SvdMxqEy4NE6CPTH5cUMS/fKRE1jDgR0nZd+AHFFvv10dJWJQviMfIuYyLhE54qNwZ1 X-Received: by 2002:a62:ac18:: with SMTP id v24-v6mr13793491pfe.126.1540804816747; Mon, 29 Oct 2018 02:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540804816; cv=none; d=google.com; s=arc-20160816; b=l6hzHVdXc0Xf1i9Akvwi6Wy9g1CJiIS2gCyVOsRLJkbEIP0bBPJkbJuYHfiwbcUKBi C895CVPwXCiy7j7Wqnpfz651HkBTUuWopiWiBTmhJnmZgAYxoo9/FSeMhuQ0/IR1PQFm IjAxY5DnRH6awZHJuymfxug42SFhKri2z8sruTXuqouie6xoNlOpAlneSpWMSG2G8DR/ AN7uyaOjWMLuUnlAZBmgISr7VJ3UAjGPgWHw3eN7n2AWJZKTLmVS8dhSWOcSyxrEdOUS y29wi2kBlPaO7qzPGzq88Ly4oQzcFKSfzbA95NbY9GAPKxH1Q1cKu3EfNSH3mLjC32wr tqXA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=WqVgALuiLkYrwu+r/cG8yWCSFWcMpoZFuu/aE3sCeOM=; b=0+6Dvmo3Cmmei4DQA67sNBPiDWZ9Oce8eg5g5TLdKDAwzjX6o8rKz6DoRf/RWTOli9 hekl8URNo0Vfrk2gUyBR0JUHEDIj6Flgzi6uRUpbODtb+HmDevh2ycOlkJgp4EM+8N8m 11EOaXh85J9jCP0rFcmypq3GQxgdhd9XkR9ooK6cYeW4BMsooudeCFnS7pqWd2Bo+Kx7 ucfUtZjyMSBhUhivlHLGU3neJ0KyVHKykssggnT5tsClltbNsUEygM6/lafSfhCqFPB6 ulGJvRrV63ukkUi4X2NU/Mr3WqEhwWo4wz3tm/0QzUuiN31jBDCPc8BETcLJWr/dQJsY zzHg== ARC-Authentication-Results: i=1; mx.google.com; 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 i6-v6si19933908pgm.335.2018.10.29.02.20.01; Mon, 29 Oct 2018 02:20:16 -0700 (PDT) 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; 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 S1729639AbeJ2SFp (ORCPT + 99 others); Mon, 29 Oct 2018 14:05:45 -0400 Received: from foss.arm.com ([217.140.101.70]:36974 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729521AbeJ2SFp (ORCPT ); Mon, 29 Oct 2018 14:05:45 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B9B48341; Mon, 29 Oct 2018 02:17:58 -0700 (PDT) Received: from e110455-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 893CF3F557; Mon, 29 Oct 2018 02:17:58 -0700 (PDT) Received: by e110455-lin.cambridge.arm.com (Postfix, from userid 1000) id D86CD681DFC; Mon, 29 Oct 2018 09:17:56 +0000 (GMT) Date: Mon, 29 Oct 2018 09:17:56 +0000 From: Liviu Dudau To: Julia Lawall Cc: kernel-janitors@vger.kernel.org, Sudeep Holla , Lorenzo Pieralisi , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/8] ARM: vexpress/spc: constify clk_ops structure Message-ID: <20181029091756.GA1167@e110455-lin.cambridge.arm.com> References: <1540619262-22681-1-git-send-email-Julia.Lawall@lip6.fr> <1540619262-22681-3-git-send-email-Julia.Lawall@lip6.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1540619262-22681-3-git-send-email-Julia.Lawall@lip6.fr> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 27, 2018 at 07:47:36AM +0200, Julia Lawall wrote: > The clk_ops structure is only stored in the ops field of a > clk_init_data structure. This field is const, so the clk_ops > structure can be const as well. > > Identified and transformed using Coccinelle. > > Signed-off-by: Julia Lawall Acked-by: Liviu Dudau Are you going to send the series to the arm-soc maintainers directly or you want us to cherry-pick this patch into the Versatile tree? Best regards, Liviu > > --- > arch/arm/mach-vexpress/spc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/mach-vexpress/spc.c b/arch/arm/mach-vexpress/spc.c > index 0f5381d13494..611f22de48cb 100644 > --- a/arch/arm/mach-vexpress/spc.c > +++ b/arch/arm/mach-vexpress/spc.c > @@ -521,7 +521,7 @@ static int spc_set_rate(struct clk_hw *hw, unsigned long rate, > return ve_spc_set_performance(spc->cluster, rate / 1000); > } > > -static struct clk_ops clk_spc_ops = { > +static const struct clk_ops clk_spc_ops = { > .recalc_rate = spc_recalc_rate, > .round_rate = spc_round_rate, > .set_rate = spc_set_rate, > -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯