Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3240475ybn; Fri, 27 Sep 2019 03:23:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHj9zYmzSFqOvRA0/28yLnyIwLHC/PEKh5CyrvWgAonemrOfFhydyuzp8HSAZZK9m1nKpC X-Received: by 2002:a17:906:cc9b:: with SMTP id oq27mr6983285ejb.125.1569579829329; Fri, 27 Sep 2019 03:23:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569579829; cv=none; d=google.com; s=arc-20160816; b=zobDgmdunYmF/Bs74V9dPczILehpRYh9tKk/wXtbybTFvBkrkZ6IfQXB/iYLzWA7Ff ZTjdfgQRui4GaB79THZ+PPZMUBtYIIJ6dCxta2XOf/2e1+jXS8lYzmwK60q6ei9kxYdr PcU3LyxyzMxLV/kf6dPnaRPMWbIN8Wo0PzguL7IfccwI/BSW3RDUNQVhQA38sq385MDW wAFKetlWQU1wFXCpfK1h/Ub9E+R4P91tGRMSuXBmgLxtxKevIqoTO2lt437/tweXdaAM Am+voFm1dQRhfVnwg+KvHdaFUZUmgiNduORhAu85BtPCLQVF7ElGNWDuvH7TNav88BPE 9f+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=vrt2JvGPw514LrVXzG2iOlchn+ZL6QYM/8H9avmXvhU=; b=Uo09vKMdMOKw5ERNjH/NKE8FDQxl5gMzdwzv+v3lVr8F5rRvRo2PbquK7OvvsIhXFB /j5acpS5aNySWL80vN2j5SecpYdE4QXmuXCg0Dn2y6EJLnsDuJObvLEjNJsE2LJUrOgw 963QZkRFISjkv129/mHSEdFzwF6YAxDnSgg98w+efMkK/BMqraZG72POyae54+GLgdny DSjAVu/VTnk/Six1tOwZaLVcE9lZg78ATwOpHOHLXJRsb4rFeBww/8GIfQMN/ZDBKvf1 qrUeG8bG0CFOxLirWrFvzvzJbXweI/1G/x/YgKE/f6EcfqT3DjWnb8VFVDTco6Db8vO1 I+aQ== 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 y2si1224474eds.98.2019.09.27.03.23.24; Fri, 27 Sep 2019 03:23:49 -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; 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 S1727184AbfI0KXI (ORCPT + 99 others); Fri, 27 Sep 2019 06:23:08 -0400 Received: from foss.arm.com ([217.140.110.172]:48276 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbfI0KXI (ORCPT ); Fri, 27 Sep 2019 06:23:08 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BB44528; Fri, 27 Sep 2019 03:23:07 -0700 (PDT) Received: from dawn-kernel.cambridge.arm.com (unknown [10.1.197.116]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7D4163F534; Fri, 27 Sep 2019 03:23:05 -0700 (PDT) Subject: Re: [RFC PATCH v4 2/5] ptp: Reorganize ptp_kvm modules to make it arch-independent. To: Jianyong Wu , netdev@vger.kernel.org, yangbo.lu@nxp.com, john.stultz@linaro.org, tglx@linutronix.de, pbonzini@redhat.com, sean.j.christopherson@intel.com, maz@kernel.org, richardcochran@gmail.com, Mark.Rutland@arm.com, Will.Deacon@arm.com Cc: 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 References: <20190926114212.5322-1-jianyong.wu@arm.com> <20190926114212.5322-3-jianyong.wu@arm.com> From: Suzuki K Poulose Message-ID: <47ceb25c-c9ff-e284-43bf-6cac7e128a98@arm.com> Date: Fri, 27 Sep 2019 11:23:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <20190926114212.5322-3-jianyong.wu@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/09/2019 12:42, Jianyong Wu wrote: > Currently, ptp_kvm modules implementation is only for x86 which includs > large part of arch-specific code. This patch move all of those code > into new arch related file in the same directory. > > Signed-off-by: Jianyong Wu ... > +int kvm_arch_ptp_get_clock_fn(unsigned long *cycle, struct timespec64 *tspec, > + struct clocksource **cs) > diff --git a/include/asm-generic/ptp_kvm.h b/include/asm-generic/ptp_kvm.h > new file mode 100644 > index 000000000000..208e842bfa64 > --- /dev/null > +++ b/include/asm-generic/ptp_kvm.h > +int kvm_arch_ptp_get_clock_fn(long *cycle, > + struct timespec64 *tspec, void *cs); > Conflicting types for kvm_arch_ptp_get_clock_fn() ? Suzuki