Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp808107rdg; Wed, 11 Oct 2023 06:14:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH5QEfhrMbI5Fi8UJdztpCwvnEnILFQNZDrrhikp/hubqy0p6rqdXnf/YyWPkoOicK8Mlzg X-Received: by 2002:a17:90b:207:b0:263:ebab:a152 with SMTP id fy7-20020a17090b020700b00263ebaba152mr18261738pjb.19.1697030094126; Wed, 11 Oct 2023 06:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697030094; cv=none; d=google.com; s=arc-20160816; b=thQhCQV7auvw3j0rXeMIlnr0JKxSioKkusYA0E8ZS0MOfuz1G6jXIez640v33wncFS ZaokdiafSMk771ZhiS/BeTBGAoppa+ED1wJ3cPjXdHHYdXYhR6+74At7lLu8pKdfAaim Jzq6y08gUTMIZtey05JWi3u0xqLVLOZLsfGkDCCJrr2GmrWK3ndFgXRv75LnTx490mTD y+qJFG7xABSODaV6ik0rknPg5okY8EHjOPteJFXJ1wicdt5Xm3gCmcpUbRMtaOwtv0fm PGV4PG8QkhjkVDSwspdSQV4tUCfnrWQx14Szj7iuJ6J+mmnSTTU77puSHM8qUECRTCg4 /u2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=flJjhhTpD7sfYZxQxhDiACDg3R5aDjOdIj9OR4GbtNw=; fh=+frQyKKlqsgMikyJ/q/k8UBgFu9xu88GW0WpNhGRJZc=; b=hT+CsrPFRVbQvMKdksjlhXJaQH3qFUOoN0R5JoTv0eg5ZUEiQOkLEejVS0WSGhmx2u kFOi4SphBPD3+eheRe7g5eW/7+Sxg1FEmmXaT8xqiSkQnYLtGNL6irEBUd9kFoQescwi rsSJJ7VG9ojFssrV8vXc9QRW8TzpblVmhNcD3rhfRKmVRdxR7WyA+b9Ky0DJe7gZuyOr ZbLLcOqYJYUHvd3KV96oRJLm17Cop0bXRYDeNvRxecqVlGf12wTGV9He4cGg5IfxXeB/ cy5+T96mu+LPt98k+KhuYpRgqa4oZEzZKWz1fmFcEcuUPzhMGclPUW+4mVIZkBoG8vBg Zigw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KF2a7+Uq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id co11-20020a17090afe8b00b002790fa91d77si16159685pjb.145.2023.10.11.06.14.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 06:14:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KF2a7+Uq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 8F93080DA8E6; Wed, 11 Oct 2023 06:14:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346153AbjJKNOn (ORCPT + 99 others); Wed, 11 Oct 2023 09:14:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232273AbjJKNOm (ORCPT ); Wed, 11 Oct 2023 09:14:42 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41F348F for ; Wed, 11 Oct 2023 06:14:41 -0700 (PDT) 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 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 morse.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 (morse.vger.email [0.0.0.0]); Wed, 11 Oct 2023 06:14:51 -0700 (PDT) X-Spam-Level: ** 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 -- 2.39.2