Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp628104ybx; Wed, 6 Nov 2019 23:57:12 -0800 (PST) X-Google-Smtp-Source: APXvYqyUy7imZ9hu3DYJ8eoNUwfmIKkM4PaRpJEMzmIZltI85p7N+jwDGGdRShhqly/CToW7BCKp X-Received: by 2002:a50:91f6:: with SMTP id h51mr2015315eda.99.1573113432541; Wed, 06 Nov 2019 23:57:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573113432; cv=none; d=google.com; s=arc-20160816; b=Q7zXsXKCq481QnNy1AsILpq7F1PktnMTB8EEQ1hhLHnsdgIdHd5T3HZsnnpvDe8+v6 ZsDB2Krz2iQmZTtST3y6T8JLrx17apYtlfptX7rHfVgM7bwqBksldKuRDiRPTiAlvN21 FMwycUPBNpaGL9pddAJnw5MUk4FFTtihwb4JmpkKJqWJtIlxASCYCQogVsLcRkXEaZg2 AzVoOSKcAsaollyC4A01eQF7PyucZ0s36HcYBnceFsGkJC4b81mlbWm0/n4w2kI85MvQ KHCtpRlKadH0K9QdDLsmHU0pmesyp7Kk5xpo4R4qRvNwV//BbJeyPXVpL53CgOByWnwS IXGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=USt2NW8AHsp/NKjQMA4OySoNyWwNNh/HX8EqTG7hBTE=; b=wAPlFBOX3lnz38pwt26AVIBomXSAHGUcm5ZXnIO4Bxnz+MFSInH/1rjK2JVWORpoHR KCzugbxklMk48JDzSop7US14OSUqeA6GXBkMdff1xDnW4+uYBsJHyAiEGpn8zE/3/Q4z RLVA53pD9616X7wN9aBCz1oql717+z+vrDOgVSIdGKt4uoNzyW6mX4Y7iu3uSGKqdQdf 8uoDB2EO1T6V5Bcov3f60BMhoBE1V46m7xpSpLYazvF85fo/V6Ts4SdjnMgtFbMqJUhc V4w7PVEPx5i5gb6YFNbuH6agNIg14wem+SZYbdg3yYyphtuCDG9CVrxlk7a+TgbcS8+O 05rA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5si258881edn.370.2019.11.06.23.56.48; Wed, 06 Nov 2019 23:57:12 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727420AbfKGH4I (ORCPT + 99 others); Thu, 7 Nov 2019 02:56:08 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:46395 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727119AbfKGH4H (ORCPT ); Thu, 7 Nov 2019 02:56:07 -0500 Received: from p5b06da22.dip0.t-ipconnect.de ([91.6.218.34] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iSce3-0000dt-Uf; Thu, 07 Nov 2019 08:55:56 +0100 Date: Thu, 7 Nov 2019 08:55:54 +0100 (CET) From: Thomas Gleixner To: Jianyong Wu cc: netdev@vger.kernel.org, yangbo.lu@nxp.com, john.stultz@linaro.org, pbonzini@redhat.com, sean.j.christopherson@intel.com, maz@kernel.org, richardcochran@gmail.com, Mark.Rutland@arm.com, will@kernel.org, suzuki.poulose@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, Steve.Capper@arm.com, Kaly.Xin@arm.com, justin.he@arm.com, nd@arm.com Subject: Re: [RFC PATCH v6 4/7] time: Add mechanism to recognize clocksource in time_get_snapshot In-Reply-To: <20191024110209.21328-5-jianyong.wu@arm.com> Message-ID: References: <20191024110209.21328-1-jianyong.wu@arm.com> <20191024110209.21328-5-jianyong.wu@arm.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 24 Oct 2019, Jianyong Wu wrote: > From: Thomas Gleixner > > In some scenario like return device time to ptp_kvm guest, > we need identify the current clocksource outside core time code. > > This patch add a mechanism to recognize the current clocksource > by export clocksource id in time_get_snapshot. Please check Documentation/process/submitting-patches.rst and search for 'This patch'. > diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h > index b21db536fd52..ac8016b22734 100644 > --- a/include/linux/clocksource.h > +++ b/include/linux/clocksource.h > @@ -19,6 +19,7 @@ > #include > #include > #include > +#include Please place that include to the other linux includes. You might notice that there is ordering here. But where is that include? It's not part of that series, so how is this supposed to compile? Thanks, tglx