From patchwork Mon Mar 20 10:03:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saurabh Singh Sengar X-Patchwork-Id: 72062 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1124654wrt; Mon, 20 Mar 2023 03:06:32 -0700 (PDT) X-Google-Smtp-Source: AK7set9rLPqPEU4vvRQbP1SZZBBKqvCoMrE7hgJO5sntOQj5x5TTQORolIxhwK1hmJfBv33HdmTr X-Received: by 2002:a17:902:db07:b0:1a1:a146:f6d7 with SMTP id m7-20020a170902db0700b001a1a146f6d7mr15199272plx.4.1679306792418; Mon, 20 Mar 2023 03:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679306792; cv=none; d=google.com; s=arc-20160816; b=thXP9BFd43pAauAVo0VGo5VwYT5P2SpqnobHFhKIrvOrDtueWO1nN85lLdjrL8P5Tg YVA5bAveu5N0d9WscoqIGcDVro5gACSVz9Arj1RFm6V8u3C0S1aocli0VsZBFFMPS4re +qsyzeirJGd80WNMeVDgfV//9w+6nHlZloGbtnfHM3itAGho7vu67uk156YLDVg6/BE7 roH7Xz5m3+0ms4cOfQMYvd2e3aIOKOwqZKY7xvNpKCen5VwZKWUN4Qs/EO1+Fy/kN9nn lqXAq7KXNoW9yOngUE2KYMOpfRDNP5CZkkcseEACLTulKqev6/q76RpcyjC4V5HJDnfB QOzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature:dkim-filter; bh=XJGsmNUD3KYthEmUtcPnLGFUy0O6jC650pPe5cXvUH4=; b=fXnOwzgsQevgob04YKa12kMqtjtdtzlW/BvLX2385SNhnA8fKDgOu9xmzviKDZkc/S z+fhACuhEaKHnXvGlIlgESv8nuIWjmfRKMx5DKRvyYYgmyE9gQpuU6WKIpwcohW+gOq3 rv0CEDjUaNtQd+mP8IbwC4cLX6d/lpYaVIYk0CHyIX/9plRqQXwHaK1K6z0k7XmAVXJc C1QkY1WHtCPb1wUSRAI5TUkO1wAAtMjge1Tgb6nOj9tX1njl0KKe7oDy3Ltlt1c9LOYW ICtiu+vMSy3/Gz4VacPBGOGZNsiMOtDDGzZDB4JtAcCtRHFe0enzMOwMBzrj4H0fujjk 2Sqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=pYUk5tPx; 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=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lf5-20020a170902fb4500b001945ff85d7asi9204483plb.357.2023.03.20.03.06.17; Mon, 20 Mar 2023 03:06:32 -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=@linux.microsoft.com header.s=default header.b=pYUk5tPx; 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=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229922AbjCTKEi (ORCPT + 99 others); Mon, 20 Mar 2023 06:04:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229871AbjCTKE3 (ORCPT ); Mon, 20 Mar 2023 06:04:29 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 315F7BDE3; Mon, 20 Mar 2023 03:03:55 -0700 (PDT) Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id D2D5D20FAEC9; Mon, 20 Mar 2023 03:03:42 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D2D5D20FAEC9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1679306622; bh=XJGsmNUD3KYthEmUtcPnLGFUy0O6jC650pPe5cXvUH4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pYUk5tPxJsbHm3xm61VRG/KqPerAnzNDGFWo568XIKLsOMjexwkVUFo/wA1NhNnFx P/vYQ8rM2ewLieELC/NtEGk61Uqfe2qoVohLIswvW4Ms2RO0HF7eUQavTV6eopJMDU Gd7369pzAwY+w10k5mV65x6lPODjDfDtgC+3lhDQ= From: Saurabh Sengar To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, arnd@arndb.de, tiala@microsoft.com, mikelley@microsoft.com, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-arch@vger.kernel.org Subject: [PATCH v3 1/5] x86/init: Make get/set_rtc_noop() public Date: Mon, 20 Mar 2023 03:03:34 -0700 Message-Id: <1679306618-31484-2-git-send-email-ssengar@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1679306618-31484-1-git-send-email-ssengar@linux.microsoft.com> References: <1679306618-31484-1-git-send-email-ssengar@linux.microsoft.com> X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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?1760880798746249270?= X-GMAIL-MSGID: =?utf-8?q?1760880798746249270?= Make get/set_rtc_noop() to be public so that they can be used in other modules as well. Co-developed-by: Tianyu Lan Signed-off-by: Tianyu Lan Signed-off-by: Saurabh Sengar Reviewed-by: Wei Liu Reviewed-by: Michael Kelley --- arch/x86/include/asm/x86_init.h | 2 ++ arch/x86/kernel/x86_init.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/x86_init.h b/arch/x86/include/asm/x86_init.h index c1c8c581759d..d8fb3a1639e9 100644 --- a/arch/x86/include/asm/x86_init.h +++ b/arch/x86/include/asm/x86_init.h @@ -326,5 +326,7 @@ extern void x86_init_uint_noop(unsigned int unused); extern bool bool_x86_init_noop(void); extern void x86_op_int_noop(int cpu); extern bool x86_pnpbios_disabled(void); +extern int set_rtc_noop(const struct timespec64 *now); +extern void get_rtc_noop(struct timespec64 *now); #endif diff --git a/arch/x86/kernel/x86_init.c b/arch/x86/kernel/x86_init.c index ef80d361b463..d93aeffec19b 100644 --- a/arch/x86/kernel/x86_init.c +++ b/arch/x86/kernel/x86_init.c @@ -33,8 +33,8 @@ static int __init iommu_init_noop(void) { return 0; } static void iommu_shutdown_noop(void) { } bool __init bool_x86_init_noop(void) { return false; } void x86_op_int_noop(int cpu) { } -static __init int set_rtc_noop(const struct timespec64 *now) { return -EINVAL; } -static __init void get_rtc_noop(struct timespec64 *now) { } +int set_rtc_noop(const struct timespec64 *now) { return -EINVAL; } +void get_rtc_noop(struct timespec64 *now) { } static __initconst const struct of_device_id of_cmos_match[] = { { .compatible = "motorola,mc146818" },