Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp343272rdb; Thu, 24 Aug 2023 07:46:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJJ2AW8ZLHplEGHJfz2CSMLEhrrylh+T0EQjck4SH7o5mD1I0eOXar+fHp6LAepKJAhEpS X-Received: by 2002:a19:650a:0:b0:500:8f66:5941 with SMTP id z10-20020a19650a000000b005008f665941mr4697383lfb.50.1692888416473; Thu, 24 Aug 2023 07:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692888416; cv=none; d=google.com; s=arc-20160816; b=Hzb+A2tM+IHriE2lEY9Jg89sAo76igAungrDYzjDjGVk6L9otBfJhWh0kFt41WBggo 3+eFBI2E7jYxwjo+w2ZHt/yN2VpV69fPIyC3q2Ynz4EOmsncI8hnYVvk4qM3eRq7FhXT frKZXoGO1Fcpe6tm5mdrq6vr/d0LTdYfBypc30gHx6LJGeccdzFFRIlbLHTlypv+y2LA jmRNoF09XAIv+XMYx6zlO5wP1SkRTvnlFj2CpHayaLRHLt9JhqWMcvslKHahxGzM/H2Y W4Cs/yK0Jf6p3z15BJCLfhA81yw5F1RExrdnjFs2jvirn9c+tkXRvc9WiA57muz+dBEw VVew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FZY5uKGX68dxmYHE3FKMrBk8tbD98vzq9ubVvGM2dwM=; fh=q1l97cAlFaGSc4+A3+FSYM//eCKGB9AynL+xhMonGpQ=; b=AAQRQjzmoZxVYUUUlYPcTE4BFQciNzQxvCyYAimca8H5FAujOST60dQZNb2Vz4FCdl EO0Ld6KDwyYhXz3XAgO2htwGTiAzZMZqqE0YZfX/O6iSALKJEus+dwcDlOSPFOBmnpK+ dydUZ6K87fELwOza1RiNtPQA8prgjeWVpmlwDvSy/ax9n2XPFZq4Tq9+hTJEKPyk7Lt/ HDWgV8frr+s9fT4J0/XkMrtbXjCllAj0T4sFT5MKFjs1D0szfUBZDb5H8qKaAiNBbAtH erpSsXgtlfYN5JtZnnfzX+Bt73PWgjLRFgRPore3LkRti/CItRakHB3PGKXZJiGKKRNB PRfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Fz/1P9Nl"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w19-20020a056402071300b0052a48f40657si495346edx.35.2023.08.24.07.46.28; Thu, 24 Aug 2023 07:46:56 -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=@kernel.org header.s=k20201202 header.b="Fz/1P9Nl"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234594AbjHXMUP (ORCPT + 99 others); Thu, 24 Aug 2023 08:20:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241350AbjHXMTu (ORCPT ); Thu, 24 Aug 2023 08:19:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB89D19BD for ; Thu, 24 Aug 2023 05:19:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 740A566B25 for ; Thu, 24 Aug 2023 12:19:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38C7FC433C7; Thu, 24 Aug 2023 12:19:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692879571; bh=7DoxyHgUOzfItSz0te4kD/RDGv8F9/FkGoy0vBLm1ww=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Fz/1P9NlbRiSaa90TqTo1/ACT9bjaU6i755dtJroFJeJOWKQ8J3ZTcbmoqIFM1vn7 OdxCwY0A9D7JPQN/yUb73RsNaVG/UXl/+i2hIf/Z4IKmeaG1Jatczt9wlmixZSvIYl UANwQE0PIYSylfyu/Q9V69ecXoLukpM9FajvMqcHCg2L3OgJDN+gqdjYzEC3XQHiWv geTnRITdZ2OC4AmuPVAv0ESumYkM6I38YcsT0QVDM77vLBcxQeSuVUHp03puPcQGVM Qi3aj+afoMqB0mkLPzypUBNbq2CzUZRuAccTM+13Y8SgWffkxkPfihGsSzSCpSivo/ wxS5U5Dsls5dA== Date: Thu, 24 Aug 2023 13:19:28 +0100 From: Lee Jones To: =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: core: Un-constify mfd_cell.of_reg Message-ID: <20230824121928.GX1380343@google.com> References: <20230818155815.GY986605@google.com> <20230821081340.GD1380343@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Tue, 22 Aug 2023, Michał Mirosław wrote: > On Mon, Aug 21, 2023 at 09:13:40AM +0100, Lee Jones wrote: > > On Sat, 19 Aug 2023, Michał Mirosław wrote: > > > > > On Fri, Aug 18, 2023 at 04:58:15PM +0100, Lee Jones wrote: > > > > On Wed, 16 Aug 2023, Michał Mirosław wrote: > > > > > > > > > of_reg is the only constant member of struct mfd_cell. It seems to be > > > > > > > > Sorry, what? > > > > > > > > struct mfd_cell { > > > > const char *name; > > > > [...] > > > > const struct mfd_cell_acpi_match *acpi_match; > > > > [...] > > > > const struct software_node *swnode; > > > > [...] > > > > const char *of_compatible; > > > > [...] > > > > const u64 of_reg; > > > > [...] > > > > const struct resource *resources; > > > > [...] > > > > const char * const *parent_supplies; > > > > [...] > > > > }; > > > [...] > > > > > > All those are pointers to const, not const fields themselves. Only > > > `of_reg` is const regardless of the whole structure. > > > > Please make that clear in the commit message. > > Could you please help with the wording? I'm surprised being asked to explain > a basic C language feature in a commit message to have a patch accepted. > Could it be due to me using 'constant' instead of 'const' that made it > confusing? I read the commit message to say that there aren't any consts in the structure, but as you can see, there are plenty. Just change the language to be more specific about what you actually mean. Or just drop the sentence entirely. -- Lee Jones [李琼斯]