Re: [RFC 1/2] pmem: Move reusable code to base header files

From: Dan Williams
Date: Thu Oct 12 2017 - 16:42:48 EST


On Thu, Oct 12, 2017 at 8:50 AM, Pankaj Gupta <pagupta@xxxxxxxxxx> 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 <pagupta@xxxxxxxxxx>
[..]
> 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.