From patchwork Sat May 20 20:12:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 96819 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp556853vqo; Sat, 20 May 2023 13:54:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6zTMhywMDYd5wOy4KRIh0CRNXGGn9r2W22mF8AXO5ArybF1NROkXdRDvnwemjdu+1tnx6H X-Received: by 2002:a05:6a20:3d04:b0:105:53:9a0 with SMTP id y4-20020a056a203d0400b00105005309a0mr7342521pzi.29.1684616078136; Sat, 20 May 2023 13:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684616078; cv=none; d=google.com; s=arc-20160816; b=m7jtXYUHCpsfsRglj6mEghfeOVKFZpYK/7+T74jp76IxztyAdw81PQ8+P6lDYOjg+g A6wmcNguU+64gY+AKFHEhFB4AOx9BPgKxJNUPQdEiKPVdqzDMmUlIFETp+3eL0jA8n+a Ed8WHKbfYZAhD1iAYhUh1VEiq19aqbVoQNkpp8fjZkHOB+hEmpCdtuiPeGx1YTc8+5sN ts+kt2mYYdttsx5loO2fCtprMudnxY1lOUvx1DveNJjtPzljNg597YtxpI+HpDNuCVO1 ippJs1RgwKLlvX20OIUn4vJi9JSLi/FVNJx2WoknFXfLm3Im84i+yr8gissCch3ig0J+ diYA== 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=zXkCVDb2bhMtAXt85DCGNGnmnYf+BDOHEzbv1HWT/nw=; b=qhfnoYKS1nJb3IE4bEi8AE6vZIwQFhnqmgH1WK5ZnB1NG8teDtIDsRBYPK6uDpcpfD 9YcPi7k1FmforQ7SSJ4idKdPZHRZGmW0Ayc4FPcdqMyZmUHJoAhfWjGcW54TkR8xmQGx z9JotZnzcpcZqENdNljdwap/r/2JosVNu5D7kezi+8PgP7YtNVjaf0vYUsyh1g9cW5oJ iljW6Y/C2gueo8jXMV/VjmQ8txz4GGWJptgPZZDzIUHXjqBhLgMahNZMcIRd9toMw5eQ n+3donU7/CnQkL3EKi+ucjD23QoERLZxzGJy0UUXD1si2AHAyc00S5RU6ne4pbnpCKYj RbFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=raej4Vtr; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v4-20020a637a04000000b0053489170ee1si2029476pgc.235.2023.05.20.13.54.07; Sat, 20 May 2023 13:54:38 -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=@infradead.org header.s=bombadil.20210309 header.b=raej4Vtr; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230226AbjETUMw (ORCPT + 99 others); Sat, 20 May 2023 16:12:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbjETUMv (ORCPT ); Sat, 20 May 2023 16:12:51 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FCE6184 for ; Sat, 20 May 2023 13:12:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=zXkCVDb2bhMtAXt85DCGNGnmnYf+BDOHEzbv1HWT/nw=; b=raej4VtrOEhADlGD3uit2sSBlf gMFd6rVjbpNsO6m5hDqkPvsM4cwCyBVGuRtZNHCxUYfRr8ggWX8cvt5nltZvDhQ2g02et+5ENyJLB RZSmg3comu16ed3iYfAvlSEFlzon7mstlhOChdgVEveftBF6e8yaEE++ZQIGDylPNYkN/NrYAXI2g Mkn1qb+AAZjiItJLjdrGpHTtKFJ7VnayF/wTwjeMfsxo/736Q+nO5kU1mUWvvEHDKeNA0ClobZI2W SZtR5iWhWp502GuAaOf1SqrR17SCPmo1iuUpoV+VauPe00GY6aEPJ2FU7Gu0JqN0yisPvX5XGei+8 fr/VcaTw==; Received: from [2601:1c2:980:9ec0::2764] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1q0Swa-002Cc2-29; Sat, 20 May 2023 20:12:48 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Dmitry Baryshkov , Georgi Djakov Subject: [PATCH] interconnect: add license and exports to fix build errors Date: Sat, 20 May 2023 13:12:48 -0700 Message-Id: <20230520201248.2437-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766447988627226378?= X-GMAIL-MSGID: =?utf-8?q?1766447988627226378?= icc-clk.c should have a MODULE_LICENSE() and export its register and unregister functions to prevent build errors, so add them. ERROR: modpost: missing MODULE_LICENSE() in drivers/interconnect/icc-clk.o ERROR: modpost: "icc_clk_unregister" [drivers/clk/qcom/clk-cbf-8996.ko] undefined! ERROR: modpost: "icc_clk_register" [drivers/clk/qcom/clk-cbf-8996.ko] undefined! Fixes: 0ac2a08f42ce ("interconnect: add clk-based icc provider support") Signed-off-by: Randy Dunlap Cc: Dmitry Baryshkov Cc: Georgi Djakov --- drivers/interconnect/icc-clk.c | 6 ++++++ 1 file changed, 6 insertions(+) diff -- a/drivers/interconnect/icc-clk.c b/drivers/interconnect/icc-clk.c --- a/drivers/interconnect/icc-clk.c +++ b/drivers/interconnect/icc-clk.c @@ -5,8 +5,10 @@ #include #include +#include #include #include +#include struct icc_clk_node { struct clk *clk; @@ -146,6 +148,7 @@ err: return ERR_PTR(ret); } +EXPORT_SYMBOL_GPL(icc_clk_register); /** * icc_clk_unregister() - unregister a previously registered clk interconnect provider @@ -166,3 +169,6 @@ void icc_clk_unregister(struct icc_provi clk_disable_unprepare(qn->clk); } } +EXPORT_SYMBOL_GPL(icc_clk_unregister); + +MODULE_LICENSE("GPL");