Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1138870rwl; Fri, 7 Apr 2023 10:29:03 -0700 (PDT) X-Google-Smtp-Source: AKy350bjJP8FYNsY/I/xWi2WImUN93is1WihsYz0FvhkMTNXk/gMxpgvZsZNJ1oyyFfCQw11zyKi X-Received: by 2002:a05:6402:782:b0:500:47ed:9784 with SMTP id d2-20020a056402078200b0050047ed9784mr2074060edy.14.1680888543326; Fri, 07 Apr 2023 10:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680888543; cv=none; d=google.com; s=arc-20160816; b=ab43Ix9ABQ4EXDsBUr2pdCyih3pbHUSBWWwTe3tkZN88V4MTLe2Ac2gOM43EiPn1ry H12addOgZHpuUfXhtiM4Bvl8kR5AKs60p5FZS49eMoEL6YWg+jy66Xzua6URiRe6AIHK iHekUlFSyVkRP1B2amQHXngimeJLLLNnoprncsH4CW3l6sQK0JXwZ9FQ4OdJ2Wxpee/X xkLQ2S1u1AvebdGe4LxUYBByQs+YIRhdJ4/cQmc4tIpKV2XpAizItttrLQXHI7aKoe+V EPU8VOjyu9ntRbbSlWAmx86r6eE07n97F4KtoIYyZF7WGU8iKWOCOLefQwEHen5e1fiA dztA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=JQsQ9Zw7IbWQc2rh3cEQR+IFQYyiCQZXokEd/GwNUOc=; b=v8fZNAxHzm57G5bokKuKNwSOiKH16buUWfO6qOGIV0o0zw/p0Zx7obvc9SgibjlIO3 z5QexWih5smQfJQnCXOXNV22XtNn9AF7pOCCnxumRLEe7KoM3JZwwk2UlD0yeYPu5QTy iD8ohiap3Pxg1oidCUdbH0mp0Jf4haHcdl27E3y2gYyBDGw+uak03tXnhwevKky6Yw4u 3TnhH+GJZadzVOjzsE3WDMdPITZEmqYfvStdqCQfjuMJLHqRc7rYo0nxGN7Kn/DQ/dEi TTr0OZrsOSPMYnBIdexItzA9IBgHNa1xoi++JBWsLU1iC5/Y9KivBVOQpUetE6vEv4fL mNpQ== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt18-20020a170907729200b009317f50118fsi3846269ejc.621.2023.04.07.10.28.36; Fri, 07 Apr 2023 10:29:03 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229797AbjDGR0C (ORCPT + 99 others); Fri, 7 Apr 2023 13:26:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbjDGR0A (ORCPT ); Fri, 7 Apr 2023 13:26:00 -0400 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 029C093E0; Fri, 7 Apr 2023 10:25:56 -0700 (PDT) Received: by mail-wm1-f49.google.com with SMTP id l26-20020a05600c1d1a00b003edd24054e0so1134096wms.4; Fri, 07 Apr 2023 10:25:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680888354; x=1683480354; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JQsQ9Zw7IbWQc2rh3cEQR+IFQYyiCQZXokEd/GwNUOc=; b=qRkTArCFKWAe3zxQN/2e+Zn29UENFbLlC2WAoelDOVWuT/NHV+7LCGaNyZb5tU56jp TKVoaOgeWsYZ1g13XDKXkrbXoVszr1Pz8kABh3jOqhV5ei23HFo1aX7BQBxeoGOBE/Wj PDnG8vKYQMkh0Mo/06Fw69MEg8/oiLnpJY4LfqKg7oxFtsaVrXvr28mewsw3enPZ+qkO 3kmvSOcUquHfQ3OR3jfJgdae/EiYLz67ehOlvob+oH9Hloll0f/DC1/kVQhLAferdZn5 xM7KSDkmGX8ut5OMgvCyymwljwVd7UfcbA6DR670d7s1fca5xA0RgEKSde87u8zd8qfL gcDg== X-Gm-Message-State: AAQBX9c5HmjKifxKMEHYEjC6/3885sA4/KBCld+X150EDaOEsXsv842D RbNEM43wPa6v0x+FFa9u2HJiayJUk4U56A== X-Received: by 2002:a05:600c:cc6:b0:3f0:3070:f4ea with SMTP id fk6-20020a05600c0cc600b003f03070f4eamr1712259wmb.11.1680888354281; Fri, 07 Apr 2023 10:25:54 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id w24-20020a05600c099800b003ee74c25f12sm8835123wmp.35.2023.04.07.10.25.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 10:25:53 -0700 (PDT) Date: Fri, 7 Apr 2023 17:25:49 +0000 From: Wei Liu To: Saurabh Sengar Cc: 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, jgross@suse.com, mat.jonczyk@o2.pl Subject: Re: [PATCH v4 1/5] x86/init: Make get/set_rtc_noop() public Message-ID: References: <1680598864-16981-1-git-send-email-ssengar@linux.microsoft.com> <1680598864-16981-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: <1680598864-16981-2-git-send-email-ssengar@linux.microsoft.com> X-Spam-Status: No, score=0.5 required=5.0 tests=FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 On Tue, Apr 04, 2023 at 02:01:00AM -0700, Saurabh Sengar wrote: > 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 acc20ae4079d..88085f369ff6 100644 > --- a/arch/x86/include/asm/x86_init.h > +++ b/arch/x86/include/asm/x86_init.h > @@ -330,5 +330,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 95be3831df73..d82f4fa2f1bf 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) { } I just had a second thought on this -- do you really need to drop the __init annotation for these two functions? Thanks, Wei. > > static __initconst const struct of_device_id of_cmos_match[] = { > { .compatible = "motorola,mc146818" }, > -- > 2.34.1 >