Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp448142rwe; Wed, 19 Apr 2023 00:54:42 -0700 (PDT) X-Google-Smtp-Source: AKy350bef/MY3A1dIuBRN8gTzGawce/vXx/cql8kN4JrZsgVLL57/wFF5yqvVCtQITNsdC8pTFD7 X-Received: by 2002:a05:6830:1683:b0:6a4:25d5:83f8 with SMTP id k3-20020a056830168300b006a425d583f8mr2549504otr.20.1681890881947; Wed, 19 Apr 2023 00:54:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681890881; cv=none; d=google.com; s=arc-20160816; b=KFfFA0bqDAvEUX71ObBTKcIuWv3mbBKofgjxXGK0KpYxHG6MvJ96qjAVwtAPeJo6yT idqs0aN4tuxqwkdGGw4SbwTOMuyTOEFL5QYcAa0ntFzyKZ9lyLKyGKbIak1a+kfXJDJo yOr+XyLijgHz2HahCsVPGQ6whLQKVwyOih8lWryXRYMVKb7QOoG+eouJS8cCN13y04ME LyQRjiZ7QaMxaj/itiKqGXyGuNqrrYqfKmDMXT5Wyua9t/0+UCDxU4OY8SIChNCFQcQT q2ZWBHV821VGFiHnITQFaFolNuD3/S9k5H7cc/oxx5FMIUaA8oDXvUgJKRNQ9fA9KN7t 9mAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=53j2Zr5g1CHI4OUeg0l8fF8afX2h7OOtLqGtKgBQpXk=; b=PQUkr1l9wuWs1v7Ghh48p3MDz4m38BiodZy7/nn6tLpYzMMCNmaWzPwFAj2TGk1gd+ KpCgRhsxLqF7hXWPaRyZwd9ywBTncUTIytpk/1CFAJAhP7ekPnkJ2s994MxtPojvBlZM wONikK12uPignkqwSfbQyFWAGhrKLXUrvuRkIdQYUO6nFVRBzriYZG2K0b0gfA3z4CXk V6FFQWTH+HbesulNUICjRuoI+v65/o5BqFbgBUCqMKJHUSKKJA4ijJYgQJ6T1djCuUON 9pYGH3g1lf64rVKtFBrW+o+xJNP3ONqcfKt8ruRi1+/uCGWuF3hjPvULO1uJG+J+gvC6 /6xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=SVXGrHgI; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk23-20020a056830369700b0069f8920dd0fsi4031259otb.86.2023.04.19.00.54.27; Wed, 19 Apr 2023 00:54:41 -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=@mediatek.com header.s=dk header.b=SVXGrHgI; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232547AbjDSHt6 (ORCPT + 99 others); Wed, 19 Apr 2023 03:49:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232467AbjDSHtt (ORCPT ); Wed, 19 Apr 2023 03:49:49 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FA03DE for ; Wed, 19 Apr 2023 00:49:48 -0700 (PDT) X-UUID: bfa9368ede8611eda9a90f0bb45854f4-20230419 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=53j2Zr5g1CHI4OUeg0l8fF8afX2h7OOtLqGtKgBQpXk=; b=SVXGrHgIM4g1mC3ak6OWrXReu4ApQ/wcyoqVcmC86mmI3/xftvX2svj8iHMQAGZDNmtxWqqX0jgvGE60gSbqnVIhMeRpvw7pGU8dANS11gClz2ECcsvOWRzsH+W7keip8faF0xAzifxsqkd8nxq4btAqbjagR+baedborHy+AQ8=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.22,REQID:d7c0e7fa-da63-42e4-806e-02ee5870f51d,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:120426c,CLOUDID:f2419084-cd9c-45f5-8134-710979e3df0e,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-UUID: bfa9368ede8611eda9a90f0bb45854f4-20230419 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 924638229; Wed, 19 Apr 2023 15:49:44 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.25; Wed, 19 Apr 2023 15:49:42 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Wed, 19 Apr 2023 15:49:42 +0800 From: To: Daniel Lezcano , Thomas Gleixner , Matthias Brugger , AngeloGioacchino Del Regno , "Maciej W . Rozycki" , John Stultz CC: , , , , , Chun-Hung Wu , , , Subject: [PATCH linux-next v3 2/4] clocksource/drivers/mmio: Export clocksource_mmio_init() Date: Wed, 19 Apr 2023 15:49:06 +0800 Message-ID: <20230419074910.10809-3-walter.chang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230419074910.10809-1-walter.chang@mediatek.com> References: <20230419074910.10809-1-walter.chang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,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 From: Chun-Hung Wu Export clocksource_mmio_init() and clocksource_mmio_readl_up() to support building clocksource driver as module, such as timer-mediatek.c. Signed-off-by: Chun-Hung Wu --- drivers/clocksource/mmio.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/clocksource/mmio.c b/drivers/clocksource/mmio.c index 9de751531831..b08b2f9d7a8b 100644 --- a/drivers/clocksource/mmio.c +++ b/drivers/clocksource/mmio.c @@ -21,6 +21,7 @@ u64 clocksource_mmio_readl_up(struct clocksource *c) { return (u64)readl_relaxed(to_mmio_clksrc(c)->reg); } +EXPORT_SYMBOL_GPL(clocksource_mmio_readl_up); u64 clocksource_mmio_readl_down(struct clocksource *c) { @@ -46,9 +47,9 @@ u64 clocksource_mmio_readw_down(struct clocksource *c) * @bits: Number of valid bits * @read: One of clocksource_mmio_read*() above */ -int __init clocksource_mmio_init(void __iomem *base, const char *name, - unsigned long hz, int rating, unsigned bits, - u64 (*read)(struct clocksource *)) +int clocksource_mmio_init(void __iomem *base, const char *name, + unsigned long hz, int rating, unsigned bits, + u64 (*read)(struct clocksource *)) { struct clocksource_mmio *cs; @@ -68,3 +69,4 @@ int __init clocksource_mmio_init(void __iomem *base, const char *name, return clocksource_register_hz(&cs->clksrc, hz); } +EXPORT_SYMBOL_GPL(clocksource_mmio_init); -- 2.18.0