• Ross Zwisler's avatar
    pmem, x86: clean up conditional pmem includes · 4a370df5
    Ross Zwisler authored
    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: default avatarRoss Zwisler <ross.zwisler@linux.intel.com>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
    4a370df5
pmem.h 2.43 KB