]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pmem, x86: clean up conditional pmem includes
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Tue, 18 Aug 2015 19:55:38 +0000 (13:55 -0600)
committerDan Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 17:19:24 +0000 (12:19 -0500)
commit26eb0d08ab5a6894385657dda5b838d6bb68d0cc
tree3777a120110922f9f2d4af5b68ccca33fcc98177
parent7c1fd626fa3caaedde2b87a73b1d2a6662818137
pmem, x86: clean up conditional pmem includes

Orabug: 22913653

Prior to this change x86_64 used the pmem defines in
arch/x86/include/asm/pmem.h, and UM used the default ones at the
top of include/linux/pmem.h.  The inclusion or exclusion in linux/pmem.h
was controlled by CONFIG_ARCH_HAS_PMEM_API, but the ones in asm/pmem.h
were controlled by ARCH_HAS_NOCACHE_UACCESS.

Instead, control them both with CONFIG_ARCH_HAS_PMEM_API so that it's
clear that they are related and we don't run into the possibility where
they are both included or excluded.  Also remove a bunch of stale
function prototypes meant for UM in asm/pmem.h - these just conflicted
with the inline defaults in linux/pmem.h and gave compile errors.

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit 4a370df5534ef727cba9a9d74bf22e0609f91d6e)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
arch/x86/include/asm/pmem.h