Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3153920imd; Mon, 29 Oct 2018 02:35:10 -0700 (PDT) X-Google-Smtp-Source: AJdET5egkykc8W8GTzkLzNfeghYluX8TDD3SofG5+aVLNyC747ffO1fKG+daP+YLicgZft0o8pmi X-Received: by 2002:a63:e918:: with SMTP id i24-v6mr13009570pgh.64.1540805710026; Mon, 29 Oct 2018 02:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540805709; cv=none; d=google.com; s=arc-20160816; b=srFOuocqcFPTX+a0ZqH3/R8jHd/uRlKLqzGChVW0oJZOtPd7Ug+IZpAUshdIySLSS3 kd7opfcuj8vO/wc5yGLk4EMVpvFe2jsvghm7nvVTK/0ZdWlov9hOneCSv7IJOLTKhWY5 8IeqZfF8QeFIPO7EnW8RoNYEDY8EJEOQlKYvSNhzNnDO9GHe3mDvB4td9XEgjImyOwn7 594EcySr2hpq5Vb0dKhMp42Npo1hrqSDA/OGAksPhmsKoYaRrBwd1/5Fem9NUtRLP9wL vWbpUGV5cBUr1dk0qw0B9wRd5LAxgHTiHmJwC1oG/d2Tbqz0sgv7P94h9tsB3SIzSqLL n2lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=1oMNWFLSsrvGvVRfJy9U6ixfRunZ8x+CDbGg6TFC2QE=; b=iU+YWo57HTyg8skqPqCIp7FDe401KAILYHu4SK/UjWJ4h5+BEIRAYvtQw2Rsqt2nBq YivhkJg71D9KhFvQi5HGBX/vUie6G9Dy8pd8+ZtI39JYUfx2bccC88fkV00n9scxZTZo I6SpiCXCcVtPaM41T4PIu0kow83xz0EhxOCr8OZq/So5a41cZcsOLAj54noRtv4kP3BI dOrGD6y4/v3jlYOzvWuIJFgqqgecigAN2Kg4h1V+tFslo0R0+Yieb6ANPqhi71zU4AUk rGQ89OShR6qUPTYJTJjVwNLZlzXZGNp2rKYGIQufeoJr6f5LLDjSadVz2VGoPrVtFwNw sX4A== 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 y6-v6si3039596plr.365.2018.10.29.02.34.54; Mon, 29 Oct 2018 02:35:09 -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 S1729672AbeJ2SWM (ORCPT + 99 others); Mon, 29 Oct 2018 14:22:12 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:64317 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729467AbeJ2SWM (ORCPT ); Mon, 29 Oct 2018 14:22:12 -0400 X-IronPort-AV: E=Sophos;i="5.54,439,1534802400"; d="scan'208";a="283652620" Received: from vaio-julia.rsr.lip6.fr ([132.227.76.33]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Oct 2018 10:34:08 +0100 Date: Mon, 29 Oct 2018 10:34:00 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Liviu Dudau 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 In-Reply-To: <20181029091756.GA1167@e110455-lin.cambridge.arm.com> Message-ID: References: <1540619262-22681-1-git-send-email-Julia.Lawall@lip6.fr> <1540619262-22681-3-git-send-email-Julia.Lawall@lip6.fr> <20181029091756.GA1167@e110455-lin.cambridge.arm.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-1340634172-1540805640=:3755" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --8323329-1340634172-1540805640=:3755 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Mon, 29 Oct 2018, Liviu Dudau wrote: > 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? Please do with it whatever seems best. Thanks, julia > > 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! / > --------------- > ¯\_(ツ)_/¯ > --8323329-1340634172-1540805640=:3755--