From patchwork Wed Oct 11 13:14:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 732750 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16D5B1A27C for ; Wed, 11 Oct 2023 13:14:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KF2a7+Uq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 898F2C433C8; Wed, 11 Oct 2023 13:14:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697030078; bh=m+J9DmKi3n5quBZyx0x3cvUP5ckHR1xIj1RRXPRYTE8=; h=From:To:Cc:Subject:Date:From; b=KF2a7+Uq4w19aHKrFHCd3Ql1I8MzBUEtTHR/2tv74lgaV5FP3yJBr2a/hoSldL0sD RG8i6nr+OzNBBepCkEQzo6FtjkD1UbnTVREOPDCuyly0d0VzwO7tdOW9MVTL4tgM62 pQGdVs4kRU7pgFUyCc6oQk6mwf2KLQTUEbXmYOOFVEtggzR4+h0Snogcp2wuzqMA7z dPVsVKNktPiiAV1jxasczvr+oIUcBAcW2WY8YpCyPVuh9gw5JT/Kai4QjpKT9XOc5U ixJQWgpKVaKWZeevXf9EfBtsCs0CzInGLRfwymTXJKY/N2f9RS+rDS4pj0yeX2GRKK qrsDY9yzWfn9g== From: Arnd Bergmann To: Rob Herring , Frank Rowand Cc: Arnd Bergmann , Greg Kroah-Hartman , Yang Yang , Geert Uytterhoeven , Sebastian Reichel , Miquel Raynal , Dmitry Baryshkov , Viresh Kumar , Sudeep Holla , Benjamin Herrenschmidt , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] of: rexport of_find_next_cache_node() Date: Wed, 11 Oct 2023 15:14:08 +0200 Message-Id: <20231011131431.2559029-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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.") Signed-off-by: Arnd Bergmann --- drivers/of/base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/base.c b/drivers/of/base.c index 8d93cb6ea9cde..c4cf558e60d92 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -1905,6 +1905,7 @@ struct device_node *of_find_next_cache_node(const struct device_node *np) return NULL; } +EXPORT_SYMBOL_GPL(of_find_next_cache_node); /** * of_find_last_cache_level - Find the level at which the last cache is