From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2l10-0004sl-DB for qemu-devel@nongnu.org; Thu, 12 Oct 2017 17:27:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2l0x-0001Js-8i for qemu-devel@nongnu.org; Thu, 12 Oct 2017 17:27:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59034) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e2l0x-0001Ih-1c for qemu-devel@nongnu.org; Thu, 12 Oct 2017 17:27:35 -0400 Date: Thu, 12 Oct 2017 17:27:28 -0400 (EDT) From: Pankaj Gupta Message-ID: <1893461099.19940340.1507843648978.JavaMail.zimbra@redhat.com> In-Reply-To: References: <20171012155027.3277-1-pagupta@redhat.com> <20171012155027.3277-2-pagupta@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 1/2] pmem: Move reusable code to base header files List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Dan Williams Cc: Kevin Wolf , Haozhong Zhang , Jan Kara , Xiao Guangrong , KVM list , David Hildenbrand , linux-nvdimm , Ross Zwisler , linux-kernel@vger.kernel.org, Qemu Developers , Linux MM , Stefan Hajnoczi , Paolo Bonzini , Nitesh Narayan Lal > > On Thu, Oct 12, 2017 at 8:50 AM, Pankaj Gupta wrote: > > This patch moves common code to base header files > > so that it can be used for both ACPI pmem and VIRTIO pmem > > drivers. More common code needs to be moved out in future > > based on functionality required for virtio_pmem driver and > > coupling of code with existing ACPI pmem driver. > > > > Signed-off-by: Pankaj Gupta > [..] > > diff --git a/include/linux/pmem_common.h b/include/linux/pmem_common.h > > new file mode 100644 > > index 000000000000..e2e718c74b3f > > --- /dev/null > > +++ b/include/linux/pmem_common.h > > This should be a common C file, not a header. Sure! will create a common C file to put all the common code there. > >