Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2358944rwl; Sun, 26 Mar 2023 21:51:16 -0700 (PDT) X-Google-Smtp-Source: AKy350aQwUcJF2zlwb9vSszMOzPd4+O8FfsdbNU8nXYxHarSQsyrobihFwdL7YJqlob0reLMAK0/ X-Received: by 2002:a17:907:9801:b0:934:60b1:a4b7 with SMTP id ji1-20020a170907980100b0093460b1a4b7mr12635529ejc.51.1679892676254; Sun, 26 Mar 2023 21:51:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679892676; cv=none; d=google.com; s=arc-20160816; b=ONt2gfTGwPi/Bj1uBkOUwb/bU5n9aWvz946vKceJYU9T+wWr1fv8+//xZLsvti/ENU hTACt412quNev0vJLlVH/RYqeVnqj0KG1apL45XAIzxO/1pMS7nTU8UBo3rEc0IR801i 4AUTK0i8DNWEbzuZbH8MZ/PdbWcvODrXWNllJkQx2oE9Olub9fUtx8siluXYtYdW34Dn w5XmvBIh6T0IGQDb54247dqJ4/Ak3abV1qY2Sd2bFkVPy4y7qEn7KJ4EjC/KI9tGKHIw cKEnyRr8u0gYs91joUXegj/k4+gPIfLpGN8bY94c989TIDQB4gAyEQuEgOWjrX3NaUE9 wdyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=NIilwokkVveAW1/qoyF+G5KzDatqErPlzzHGZDvChIE=; b=mf+HGfGdkOCVpck0eGNlxctwht1n40W4xruraWzP5O3tt2PEvDoSmqN04zfqW6vfWB fJwFYkh2CgeW5VtDGQ869d7pfZfH77gqvosRXPSzr5gZGsUlE3l9wBkntGKiK3JzGH4k HOH96YjzBtXjiMTiU05oGfZCDFZm368Elm1/IgFYP5Y+Mm0Jq6yB+mvI1qu2k5zK9uOv jxdBRwXdEeOt/mAHVUMwk+3f4N+9wSN+t2XCaRrZwR8aga9Q8w6pkGNPszLHK7ICYPxp I5m1Pn/hncb7fpfLrW/CsXR9EbClDoAd0bDgDr+6ujDHuve3bzTkDStNGUyCxP7gb0lD FAow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=IA1L8cUT; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa5-20020a170906eda500b00930a3df8e79si28052365ejb.558.2023.03.26.21.50.51; Sun, 26 Mar 2023 21:51: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=@linux.microsoft.com header.s=default header.b=IA1L8cUT; 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 S229971AbjC0Erk (ORCPT + 99 others); Mon, 27 Mar 2023 00:47:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229525AbjC0Eri (ORCPT ); Mon, 27 Mar 2023 00:47:38 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BB2B34C3A; Sun, 26 Mar 2023 21:47:37 -0700 (PDT) Received: by linux.microsoft.com (Postfix, from userid 1127) id 2E9CB20FD0D3; Sun, 26 Mar 2023 21:47:37 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 2E9CB20FD0D3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1679892457; bh=NIilwokkVveAW1/qoyF+G5KzDatqErPlzzHGZDvChIE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IA1L8cUT6IpC78sM9ct3eZR1fTaqg1TOJzmdnWntQD8qMPBc4sDsl878GyhoIYl9B 33HHNFeMOeVxYZj2zvAkVIzlxS0OICsDwNAy9QCuebMGg3Kycd4qVv4QvcUlrW5HFk lPdS2Tyq0pgprfQZDe7fMXftYVXOjiYLJQ+pvVKM= Date: Sun, 26 Mar 2023 21:47:37 -0700 From: Saurabh Singh Sengar To: "Michael Kelley (LINUX)" Cc: "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "hpa@zytor.com" , KY Srinivasan , Haiyang Zhang , "wei.liu@kernel.org" , Dexuan Cui , "arnd@arndb.de" , Tianyu Lan , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "linux-arch@vger.kernel.org" Subject: Re: [PATCH v3 1/5] x86/init: Make get/set_rtc_noop() public Message-ID: <20230327044737.GA6852@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <1679306618-31484-1-git-send-email-ssengar@linux.microsoft.com> <1679306618-31484-2-git-send-email-ssengar@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-17.9 required=5.0 tests=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=unavailable 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 On Sun, Mar 26, 2023 at 03:03:17PM +0000, Michael Kelley (LINUX) wrote: > From: Saurabh Sengar Sent: Monday, March 20, 2023 3:04 AM > > > > 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 > > --- > > 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" }, > > -- > > 2.34.1 > > Reviewed-by: Michael Kelley Hi x86 maintainers, If there is no concern, can you please ack this patch. Regards, Saurabh