Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3229983ybn; Fri, 27 Sep 2019 03:13:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwd+V6L4iaT8mFDshMgDdOCHoujcHZuGxvPu9etpX7MCzM5AXxO3gfq3ooqI87TFPmx+Sko X-Received: by 2002:a17:906:938b:: with SMTP id l11mr7120973ejx.67.1569579181384; Fri, 27 Sep 2019 03:13:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569579181; cv=none; d=google.com; s=arc-20160816; b=tYP5ERFWRd8oXZD3rCVzh869PtKMhfwSp96HnHWe1EQdLWpHVfWnJ+4vDecHOQpLt8 0hDzIbDCAOdRUdmTqqi4I/tDnOWHaxfK9mkcZ0G8/Ds1nvVUzNMWPedRZ3AtuYe8E52n ByMlo6gOUpizAwMI2gP0QtjCXe8lpW+ANy+YS8jD63Qy2Rmpa+k1xakxKIOf4xbFI96G tYugKonRbRuaOOK3Nh2rBkEmLog+5cL3rV8o/NW0uthXiw33p+/jhNlsIzm3+grD5pBJ yxvrqVOTEO5hW6Fs0PvTwFD6szWnruxZnwJlwyzfqcoPzG2mH9nX/1CFaTgJpdl/rVdq JKzQ== 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=MW+EwG5qjQ85hKMmL2vG2Diw6a/RR5S1MRBLJVSBh8g=; b=UjTNdtatoEJp/WhWE1+mPKoMqmXlySJJp3eS5CaGhig1aExE+cat7mqMZVE/Zv8ux2 FeMHjxcqoSIl8iCZWcY8h6hF9WbZhXuqJoqoKhErJnKDS1wz47KyCR0S6D0tS/Zk3FXa fWd+x5oGf16oo4Q0VjmGGNnI/llg/Jnt2SmppmMf2MydHSv9eTL/cBwv3nczqyr39SFw QV2lC17IGddJBxtXevAAwSbkxm5zQKZUJkuEU+4WFlMeq3z2+fpmrcN+yEfmXWIxVDTY 0lC+AuPyOYKk6QDo3+87C9Wr1dAJOmfbGYz6vCAyUR8z677jnzOik9f9s4mDfk+OOlF8 eAnQ== 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 26si2667330ejl.292.2019.09.27.03.12.35; Fri, 27 Sep 2019 03:13:01 -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 S1727099AbfI0KMH (ORCPT + 99 others); Fri, 27 Sep 2019 06:12:07 -0400 Received: from foss.arm.com ([217.140.110.172]:47960 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbfI0KMH (ORCPT ); Fri, 27 Sep 2019 06:12:07 -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 AF75F28; Fri, 27 Sep 2019 03:12:06 -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 72FE73F534; Fri, 27 Sep 2019 03:12:04 -0700 (PDT) Subject: Re: [RFC PATCH v4 2/5] ptp: Reorganize ptp_kvm modules to make it arch-independent. To: "Jianyong Wu (Arm Technology China)" , "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 , Will Deacon Cc: "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.cs.columbia.edu" , "kvm@vger.kernel.org" , Steve Capper , "Kaly Xin (Arm Technology China)" , "Justin He (Arm Technology China)" , nd References: <20190926114212.5322-1-jianyong.wu@arm.com> <20190926114212.5322-3-jianyong.wu@arm.com> <2f338b57-b0b2-e439-6089-72e5f5e4f017@arm.com> From: Suzuki K Poulose Message-ID: <4337dcf0-bd60-4db8-6c9f-cd718b89d2a4@arm.com> Date: Fri, 27 Sep 2019 11:12:03 +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: 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 27/09/2019 11:10, Jianyong Wu (Arm Technology China) wrote: > Hi Suzuki, > >> -----Original Message----- >> From: Suzuki K Poulose >> Sent: Thursday, September 26, 2019 9:06 PM >> To: Jianyong Wu (Arm Technology China) ; >> 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 >> ; Will Deacon >> Cc: linux-kernel@vger.kernel.org; linux-arm-kernel@lists.infradead.org; >> kvmarm@lists.cs.columbia.edu; kvm@vger.kernel.org; Steve Capper >> ; Kaly Xin (Arm Technology China) >> ; Justin He (Arm Technology China) >> ; nd >> Subject: Re: [RFC PATCH v4 2/5] ptp: Reorganize ptp_kvm modules to make it >> arch-independent. >> >> Hi Jianyong, >> >> 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 >>> --- >>> drivers/ptp/Makefile | 1 + >>> drivers/ptp/{ptp_kvm.c => kvm_ptp.c} | 77 ++++++------------------ >>> drivers/ptp/ptp_kvm_x86.c | 87 >> ++++++++++++++++++++++++++++ >>> include/asm-generic/ptp_kvm.h | 12 ++++ >>> 4 files changed, 118 insertions(+), 59 deletions(-) >>> rename drivers/ptp/{ptp_kvm.c => kvm_ptp.c} (63%) >> >> minor nit: Could we not skip renaming the file ? Given you are following the >> ptp_kvm_* for the arch specific files and the header files, wouldn't it be >> good to keep ptp_kvm.c ? >> > If the module name ptp_kvm.ko is the same with its dependent object file ptp_kvm.o, warning will be given by compiler, > So I change the ptp_kvm.c to kvm_ptp.c to avoid that conflict. Hmm, ok. How about ptp_kvm_common.c instead of kvm_ptp.c ? Suzuki