Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1740890rwl; Wed, 12 Apr 2023 18:19:12 -0700 (PDT) X-Google-Smtp-Source: AKy350Y9KA6gfOPYl5+QK2d+ps41pBC2as2gJOTs1+A5p2v8uVdIKJJAVI5b2KRlV99ArjPiaGsp X-Received: by 2002:a05:6a20:77af:b0:d9:237e:9d08 with SMTP id c47-20020a056a2077af00b000d9237e9d08mr381264pzg.3.1681348751854; Wed, 12 Apr 2023 18:19:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681348751; cv=none; d=google.com; s=arc-20160816; b=OJLlv3giYUz83e6z9raZPsX9hCvgnEHQRIdqR+EXD7BeTz2EB42CNq4VGvVgempoWM uv3dvy1pgYZo6pxA5C3qQxFPN4uGTDdz+l9r0Dp2u2xXCIm3T+E4GM7oL06BSIgXHwtU IypCLg7xIqyOHwl0sSGnx4TkCR1GzEZXI39uzNm7ahdc8dXkElhmYutGRGTIh8Z1hXmi 953vfd3qQ4eUXe7BxFfBHwIf77Tcqw4KnaFYBC2twCjrxh4wKO5h4cMQVOV7l59Y1dAw Kks/Hq3A/9FquiaUgBmQ2Nvqd75fLCNwCVuOPJNvBPC7Hl1VKWogHX8uo0UaktkN6aM5 IdXQ== 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=EfIRGx4NmUH+6AwOlHWuuT1aV7ClftxmalQe00WqSS8=; b=VOCNRw2By6Svfe321IOFwBKHxn63Ib+jKt3NFshYdrjFJGQ/zlmvI2aiHd9mv+WNCh aG5AQwKulGOOyZ4ZgnZe6iZbL24p61XGlijOkdpbS2+0BHBaZJwaQrGRQkyS1qnwKaHh dZYsnyvvfkFVP45z1INAoxFLHm5RixY9cHLYejjZM6IXKOm+4xPkizUUlHvnI/EEgMP7 0fGNovvY7S/4Bbduju4YZUSUTwShbYbV3w71o0WrTK0bGGW38Bf+d/IFDMV5Nej0vkvJ NsggprYVHCaNNYCSeV7iVtL/0aa8eJ3W4mc+udHdRrsKNc9+aXDP33djGn4CRCU9/V2M maAQ== 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 e11-20020a63ee0b000000b0050f817e8564si680661pgi.86.2023.04.12.18.19.00; Wed, 12 Apr 2023 18:19:11 -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 S229716AbjDMBQT (ORCPT + 99 others); Wed, 12 Apr 2023 21:16:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbjDMBQS (ORCPT ); Wed, 12 Apr 2023 21:16:18 -0400 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA57E2D58; Wed, 12 Apr 2023 18:16:13 -0700 (PDT) Received: by mail-wr1-f50.google.com with SMTP id i3so3303411wrc.4; Wed, 12 Apr 2023 18:16:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681348572; x=1683940572; 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=EfIRGx4NmUH+6AwOlHWuuT1aV7ClftxmalQe00WqSS8=; b=CyZHsL+IDly3ElcF5YkGbF+9QmFZJm0NGdS6C6Bj1ndEuCB3DdR6wu4Igu3cgEPZkM X+I8qMITLsyko2IgYAryJSbXsizsWCXaVl3oAQUM6z974Q5i29iDS2NQzNnspx1WY8Cc ErpdMb48FXMe7pTthwpJr8bLE1dVF59ozkVIa17ltiG0Ad8+bpvUVSam/URBSFKWq7er nowOzadGNhBX61KXinI3Rh7l/iY/QYHGaGtSc5ArgXhCjJVTr6UlbwqNiVweGdbEBtFW +zIwXXB5xRQWKJcndLsosb77NKgPsOkgq6ZkLJh3HHfz8LUUuSwX7e7N4qhfWoGEOcRZ aq6g== X-Gm-Message-State: AAQBX9dOrrLDBBgLpVXFg9lRGZy8v7ThnOm88NRbY6d9PNFj83tJfqbE hofMLvePOoB9MwmxFywQxVw= X-Received: by 2002:adf:dd8c:0:b0:2cf:e868:f789 with SMTP id x12-20020adfdd8c000000b002cfe868f789mr123340wrl.48.1681348572055; Wed, 12 Apr 2023 18:16:12 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id h8-20020adfe988000000b002efdf3e5be0sm115885wrm.44.2023.04.12.18.16.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 18:16:11 -0700 (PDT) Date: Thu, 13 Apr 2023 01:16:07 +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 v5 1/5] x86/init: Make get/set_rtc_noop() public Message-ID: References: <1681192532-15460-1-git-send-email-ssengar@linux.microsoft.com> <1681192532-15460-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: <1681192532-15460-2-git-send-email-ssengar@linux.microsoft.com> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, 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 Mon, Apr 10, 2023 at 10:55:28PM -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 x86 maintainers, can you please ack or nack this patch? This looks trivially correct, but I don't want to apply this patch without an ack since this is under arch/x86. Thanks, Wei. > --- > 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) { } > > static __initconst const struct of_device_id of_cmos_match[] = { > { .compatible = "motorola,mc146818" }, > -- > 2.34.1 >