Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1560037rwd; Tue, 16 May 2023 20:21:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7n/4uWxfCKqllVAmzvsBxFoUGkWfKWqCawG5ddU2ZpgNjjMzroaQdCErDMwfX9WbwJhYCz X-Received: by 2002:a17:903:22cd:b0:1aa:ebcc:dd5e with SMTP id y13-20020a17090322cd00b001aaebccdd5emr47417307plg.65.1684293676431; Tue, 16 May 2023 20:21:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684293676; cv=none; d=google.com; s=arc-20160816; b=z3H5xF6taLWLen7Qd5c7hUZ/KXr9vm8r4k5s8AhqlSabFJ2KYVETeeN4aWa0iY8oo8 96N5Iex65wyRKMMTtb2jvTgjyEV7g8F8Lm/2ezyhaSgrrO/nfQF6HNzsXtXsTwbN6yHf iFbwuYrsAJXjQJwsIzkkP0DdsEmXL4O9zLL9zFAnmM5mjf0fSgP+tkdh8wGq6aTl6U2y ZiWp69t/Tg7l+qJ+OGKgA6pdM06W8v4Ot5WeHiIuYaNyUVaBcpZe0QMrc8cyMptaWfag YwkwfpBhjWW0+ghaSHUxjYgNcu0a2LWs9AJd8ypDow4FQoRzgn3kNLIQ+V9dbHWSMWum xmwA== 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=BiHDgbOEI7ul8fVenUBc4fXvk4qUwYuxHNdXt7Wyg8A=; b=sc4IorHPi6IG6L9JNAUkKrmnrkLlE1NIJ00dbtMzCOKZwhrM2iXybFD07lIUC1aQ4o gALkMuLMPgZbO/wEcZsaBuC7CRRqSR47/xSHVwf/pvFgCmysgaYMe0qj7pFYA0Qz0Dkq UV6r1OJCAusVOi4G7ms9D+k3F3tXdjOittHbdvUaeWmpI9IY+6TWO+H1TFzPgo/kcO/Z Fxf5jsvsr7tW8Oju3AVvcZKp3O2EraVvTBb4xuaSR2Q7HoXLD40hiLqVP+tA1nX+8rIO H/X0CKrnoqmuht1TD4GuBHLtfEq3X5d+q7dkvAbk9xIiLwx90UtO36URX5nFeF0S0kOi sWlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=mZdzG1Y4; 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 w13-20020a170902a70d00b001a6bb7b7a44si18384130plq.307.2023.05.16.20.21.01; Tue, 16 May 2023 20:21:16 -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=mZdzG1Y4; 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 S232031AbjEQC1z (ORCPT + 99 others); Tue, 16 May 2023 22:27:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231856AbjEQC1s (ORCPT ); Tue, 16 May 2023 22:27:48 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BC975BA9 for ; Tue, 16 May 2023 19:27:20 -0700 (PDT) X-UUID: 3da58310f45a11edb20a276fd37b9834-20230517 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=BiHDgbOEI7ul8fVenUBc4fXvk4qUwYuxHNdXt7Wyg8A=; b=mZdzG1Y4i+CLdsUu3xRgBLLB9QbdIcom+BEGwos6rfHrQXuZIUi851cNTJQqOVkS81KfrUWxyzKVDGTgyW0PLbQq9EGKfhEqq9FC/BgWa0r04IfAbXsCu9HWho+58qGqJm4xoWxaw91XY/XvG3/NTqa73BFaDU1PJ7KLrB1LIdc=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.25,REQID:b2dc69a7-5c53-4312-abf0-1b1a58835759,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:d5b0ae3,CLOUDID:c21714c1-e32c-4c97-918d-fbb3fc224d4e,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: 3da58310f45a11edb20a276fd37b9834-20230517 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1682484753; Wed, 17 May 2023 10:26:33 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.194) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Wed, 17 May 2023 10:26:32 +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.26 via Frontend Transport; Wed, 17 May 2023 10:26:32 +0800 From: To: Daniel Lezcano , Thomas Gleixner , Matthias Brugger , AngeloGioacchino Del Regno , "Maciej W . Rozycki" , John Stultz CC: , , , , , Chun-Hung Wu , , , Subject: [PATCH v5 2/4] clocksource/drivers/mmio: Export clocksource_mmio_init() Date: Wed, 17 May 2023 10:25:46 +0800 Message-ID: <20230517022557.24388-3-walter.chang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230517022557.24388-1-walter.chang@mediatek.com> References: <20230517022557.24388-1-walter.chang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,RDNS_NONE, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY, URIBL_BLOCKED autolearn=no 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 Signed-off-by: Walter Chang Acked-by: John Stultz --- 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