Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp674692ybl; Thu, 22 Aug 2019 03:09:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwe8YPP+BxVqjrdHg3AhBdFI9jJDjB67e6r876ZlJCpZcfYWZaMOnaEyYtJHQvfz0JJ8Uae X-Received: by 2002:aa7:8746:: with SMTP id g6mr38879471pfo.191.1566468574598; Thu, 22 Aug 2019 03:09:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566468574; cv=none; d=google.com; s=arc-20160816; b=ADFysguvXj7+uawum3/tPuXMr2lPL9TRVzcot3H0JwUk4N7rkWic3xjSzQ96ZlttUE x4rQUciCi7mkvPqnver5W30X7yoEjorI2qNAqHXX56DwX8sEGv2xFSAiT2+LIrFAIena v7oZA686aIUR3i4y1V4sl0YVnneFJ/z4ZL8U+/fdEUN9Ljz00ixNIVgRcRrfijXqCK2k hNW3zcfFAa+GQFJ1dUwO2g7BooAhd1rSfDvDekDG/Re0ZHieECOTo0LGpJ/ZpxjUtdWF 5wr7NqgC39k+HKlFgjpiMAhR19HGbYXwjv13Uvtjxgcyl6SPoZblXD0EyJr1U1X2dkSC Npzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/bGJNIGeHShUi2KAJrnIfqaAZ76Q6jv5SalNCR03uoY=; b=Qr80GGkU0AKp3S7Zf69p64etKQVA/QsugtdxgBlaRuKXMyXFwQ/0BnKq7awj4XhFvr +D8/c0Kiw8eKrnJKVf1ZHMroYqyycKwmZVbOnBcjcZfdLJM6203LSeK22gXwkzJq/NsK XIUh+D7jMNVbdK3Z6Opgd9+DKEZlbdwiO27NosNK8p9XNSMKV4cq1937UBxSqP6N/j5A No64g+50zhIlKlZEXdanCaLHIFncgpqDWte0oTWqoA/owpZRku9dw8nIFyjxJOzHf/B3 Vxe9GZWcV6k9AHRtpgKkk3SpZFSXcAbvargQFQT6oMKAcOQ5wjQ0RGGa15IuhkNvF//w wSGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GD8Za+na; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13si16387990pgk.418.2019.08.22.03.09.18; Thu, 22 Aug 2019 03:09:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GD8Za+na; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733086AbfHVJOc (ORCPT + 99 others); Thu, 22 Aug 2019 05:14:32 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:33187 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725793AbfHVJOc (ORCPT ); Thu, 22 Aug 2019 05:14:32 -0400 Received: by mail-pf1-f193.google.com with SMTP id g2so3544152pfq.0; Thu, 22 Aug 2019 02:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/bGJNIGeHShUi2KAJrnIfqaAZ76Q6jv5SalNCR03uoY=; b=GD8Za+nahfu3tp60ifZ+TzNV/Gc7aWKBoy5u7inJdjfDv3ymB2vWFu6vh+Tl1WP+UG BoAX6Ro4izBSvkVZO5dyZ9TjfcRMO050Hv45zvqXhgXrs2UiZFfy4CnrZ0YLB0zfcP51 lLtA2Pt6KeIjM8pvdC2pn3vHGPHJp4sJ474i39Ij9g778nhvsVoR6LRHf65MpuzkJ9Gb hFPr1GadkjKLZYrT32rtx06Zsx3xNsgOShPAzlSRlqutdN+YqzlFsMPnLVnE6d2w0cGE /TCRwBnwDOflX4L57uKN7sC/USfVMT21usbtwy8jgHdss237aChRIG529Pf5xHqL6HVK wF9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/bGJNIGeHShUi2KAJrnIfqaAZ76Q6jv5SalNCR03uoY=; b=Hrd8V/L4/uXVkAuhpGUAWt7aNTETMKsSCB28Tp2ELbA4VSWQzWvB+8quj/pWy6U+9G ePecPC6k6yJtYKN3welhKNMEWTKDSfRDJ4XB+kcAaCFS+rTiJ0JZbJfPXzVbo2y0s7Wb an1hSc/IgWbmYoOwf9U/mPQ2T40kl4R1UK57e902M6Ow/tFQSZaj2Zt+ya/3K46LMr7E 4ZS74WEYqIEfgxS3da3j+V7KdiTkCyH+ONZn49Yc3djw3mvVTFc1G6s0H2xRlRfTXf+0 4KgFT4x6SVyOTcb+xys9UWm0NnMvPJJhXGGwC3PC/5PQZwdlgXFwVH0IhwclB/vpPET9 J3yw== X-Gm-Message-State: APjAAAVKTnq792fZwRXMHV8e5h+wPcasZOMKDAelp1Ww1gKKsItuhxTy kvxTJg7Dya6nxMoPrgCpEbj+rS8Q+efPUdNmSE4= X-Received: by 2002:a17:90a:fe07:: with SMTP id ck7mr4315418pjb.68.1566465271506; Thu, 22 Aug 2019 02:14:31 -0700 (PDT) MIME-Version: 1.0 References: <20190822053852.239309-1-Tianyu.Lan@microsoft.com> <87zhk1pp9p.fsf@vitty.brq.redhat.com> In-Reply-To: <87zhk1pp9p.fsf@vitty.brq.redhat.com> From: Tianyu Lan Date: Thu, 22 Aug 2019 17:14:20 +0800 Message-ID: Subject: Re: [PATCH] x86/Hyper-V: Fix build error with CONFIG_HYPERV_TSCPAGE=N To: Vitaly Kuznetsov Cc: Tianyu Lan , linux-hyperv@vger.kernel.org, "linux-kernel@vger kernel org" , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , Sasha Levin , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "the arch/x86 maintainers" , Daniel Lezcano , michael.h.kelley@microsoft.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 22, 2019 at 4:39 PM Vitaly Kuznetsov wrote: > > lantianyu1986@gmail.com writes: > > > From: Tianyu Lan > > > > Both Hyper-V tsc page and Hyper-V tsc MSR code use variable > > hv_sched_clock_offset for their sched clock callback and so > > define the variable regardless of CONFIG_HYPERV_TSCPAGE setting. > > CONFIG_HYPERV_TSCPAGE is gone after my "x86/hyper-v: enable TSC page > clocksource on 32bit" patch. Do we still have an issue to fix? > Hi Vtialy: Your patch also fixs the build issue. If it's not necessary to have a dedicated patch to fix the issue, please ignore it. Thanks. > > > > Signed-off-by: Tianyu Lan > > --- > > This patch is based on the top of "git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > > timers/core". > > > > drivers/clocksource/hyperv_timer.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/clocksource/hyperv_timer.c b/drivers/clocksource/hyperv_timer.c > > index dad8af198e20..c322ab4d3689 100644 > > --- a/drivers/clocksource/hyperv_timer.c > > +++ b/drivers/clocksource/hyperv_timer.c > > @@ -22,6 +22,7 @@ > > #include > > > > static struct clock_event_device __percpu *hv_clock_event; > > +static u64 hv_sched_clock_offset __ro_after_init; > > > > /* > > * If false, we're using the old mechanism for stimer0 interrupts > > @@ -215,7 +216,6 @@ EXPORT_SYMBOL_GPL(hyperv_cs); > > #ifdef CONFIG_HYPERV_TSCPAGE > > > > static struct ms_hyperv_tsc_page tsc_pg __aligned(PAGE_SIZE); > > -static u64 hv_sched_clock_offset __ro_after_init; > > > > struct ms_hyperv_tsc_page *hv_get_tsc_page(void) > > { > > -- > Vitaly -- Best regards Tianyu Lan