From patchwork Wed Jun 17 01:20:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jack Qiu X-Patchwork-Id: 211800 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E7ABC433DF for ; Wed, 17 Jun 2020 00:29:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 422212080D for ; Wed, 17 Jun 2020 00:29:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726271AbgFQA3V (ORCPT ); Tue, 16 Jun 2020 20:29:21 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:6270 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725894AbgFQA3V (ORCPT ); Tue, 16 Jun 2020 20:29:21 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 506918483B30297482EE for ; Wed, 17 Jun 2020 08:29:17 +0800 (CST) Received: from huawei.com (10.175.101.6) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Wed, 17 Jun 2020 08:29:16 +0800 From: Jack Qiu To: Subject: [PATCH -next] opp: export dev_pm_opp_adjust_voltage Date: Wed, 17 Jun 2020 09:20:24 +0800 Message-ID: <20200617012024.41704-1-jack.qiu@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.175.101.6] X-CFilter-Loop: Reflected Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org dev_pm_opp_adjust_voltage() is used in qcom-cpufreq-hw module, so export it to GPL modules. otherwise compile error occurred: $ make allmodconfig ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- $ make -j64 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- ERROR: modpost: "dev_pm_opp_adjust_voltage" [drivers/cpufreq/qcom-cpufreq-hw.ko] undefined Signed-off-by: Jack Qiu --- drivers/opp/core.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 diff --git a/drivers/opp/core.c b/drivers/opp/core.c index 6937bf45f497..c9336aac74e9 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -2302,6 +2302,7 @@ int dev_pm_opp_adjust_voltage(struct device *dev, unsigned long freq, dev_pm_opp_put_opp_table(opp_table); return r; } +EXPORT_SYMBOL_GPL(dev_pm_opp_adjust_voltage); /** * dev_pm_opp_enable() - Enable a specific OPP