Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp866084rdg; Wed, 11 Oct 2023 07:40:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+et3ZmFmy95K2v4f836HEtewlEIJKRl5PcXQZZ5RZfaYjq7KvTI50ugRp/LFfZSE/Ib0S X-Received: by 2002:a05:6870:c08e:b0:1d5:b9e1:d35e with SMTP id c14-20020a056870c08e00b001d5b9e1d35emr27006983oad.41.1697035224323; Wed, 11 Oct 2023 07:40:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697035224; cv=none; d=google.com; s=arc-20160816; b=n/PLAL/lLhmtMes/AcUS1FRvumwAaMXJQL3Idn4+vdKwaz6o3A1kO4WzAFKMFCbbcF x2+apLrBcqewPczqoJ546lecFR+oQxa4n9q9M+p7LB4+7B2LGXtpfQUOD72+6WnwYE1N b1gjGmKWFXiFaVE4dd2voxZrlOzk/0Sf8VqlfvEZZkreCHklcLUxgiaRz5g56IFoF061 ZY7rx8ecb/+G8G+DzMKGmpNIS7TDi+RhQFoeZP8McmK0f2jH/5gO+KS1zfBUFkoCs5/j jHxHcoS3Tfnbu8V1tDB5fuXGBxTEF673QN9Z8qDCKJttnhi+PiJWjhfoipZT6w7g2xs8 fR4A== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=pSMf2BfN/XfDzzuYfb421LK5BJNzbDct4c6lo/e68xk=; fh=bdWJ9WHfyGgL+JY2YfVSLr2d9D27oGmiGiiPgTxnOHA=; b=hDx7PsEA75B0Zm/DwtiLr4pCH6r6J76OPpyqW5BtV9rEtoCdmnD6f/3BmDsSOnGfc8 y6YPSyrTDhwo+m2hXKXvKwiVMlQ8gsa1HShIK9avgsWmnl6dVLAJ7Pu+/Tvpe2VN01K3 6F26SfeFPC0pl9yJySDUQ9+kcAd05qSe05Y8V9fWFF4cAbFG6EBa2I+aPf0UbBRQf8jo KLgLbnWJ1TVzqXSc7M+0PAT266NYxzKBSbvxG6k1MjFJyHCWSCsYwDO4M4lRpAWP0mN/ 3zsmB9MYPA+LNIq3nCtQCc9St6iprTyUqI6L9wshxNj8XvClVRh2EhMLOF1ZhkeLk004 15Mg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id z1-20020a63c041000000b00563d9ff5157si14110886pgi.547.2023.10.11.07.40.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 07:40:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 19A0C8135CF7; Wed, 11 Oct 2023 07:40:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231370AbjJKOkN (ORCPT + 99 others); Wed, 11 Oct 2023 10:40:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232323AbjJKOkM (ORCPT ); Wed, 11 Oct 2023 10:40:12 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 29436B6; Wed, 11 Oct 2023 07:40:10 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A0AF4106F; Wed, 11 Oct 2023 07:40:50 -0700 (PDT) Received: from bogus (unknown [10.57.93.106]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EDF843F7A6; Wed, 11 Oct 2023 07:40:07 -0700 (PDT) Date: Wed, 11 Oct 2023 15:38:36 +0100 From: Sudeep Holla To: Arnd Bergmann Cc: Arnd Bergmann , Rob Herring , Frank Rowand , Sudeep Holla , Greg Kroah-Hartman , Yang Yang , Geert Uytterhoeven , Sebastian Reichel , Miquel Raynal , Dmitry Baryshkov , Viresh Kumar , Benjamin Herrenschmidt , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] of: rexport of_find_next_cache_node() Message-ID: <20231011143836.q4c5rf6eqb2i6p53@bogus> References: <20231011131431.2559029-1-arnd@kernel.org> <20231011135905.hveat7viflqluccw@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 11 Oct 2023 07:40:22 -0700 (PDT) X-Spam-Level: ** On Wed, Oct 11, 2023 at 04:05:47PM +0200, Arnd Bergmann wrote: > On Wed, Oct 11, 2023, at 15:59, Sudeep Holla wrote: > > On Wed, Oct 11, 2023 at 03:14:08PM +0200, Arnd Bergmann wrote: > >> From: Arnd Bergmann > >> > >> This function is now called from a cpufreq driver, but that breaks the > >> build when the caller is in a loadable module, because of a missing > >> export: > >> > >> ERROR: modpost: "of_find_next_cache_node" [drivers/cpufreq/qcom-cpufreq-nvmem.ko] undefined! > >> > >> Export this as a GPL-only symbol, like the other related functions in > >> this file. > >> > >> Fixes: 7683a63c08ff5 ("cpufreq: qcom-nvmem: create L2 cache device") > >> Fixes: a3e31b4588443 ("of: Move definition of of_find_next_cache_node into common code.") > > > > I am bit confused as I see commit a3e31b4588443 didn't drop the export. > > So how is this change fixing that commit ? > > My mistake, I was looking for the commit that initially introduced > the function, but didn't notice that this just moved it from powerpc. > > I could have used "Fixes: e523f723d69cd ("powerpc: Add > of_find_next_cache_node()")", but it's probably best to just > leave that line out entirely. > Yes I was thinking to drop it as it is quite old commit(both a3e31b4588443 and e523f723d69cd) and I don't see any point in merging this to all the concerned stable trees as they must not have this new user. That said it is not a complex change, so I am fine either way, just thought of raising it in case it was not intentional. -- Regards, Sudeep