• A
    arm64: fix pmem interface definition · caf5ef7d
    Arnd Bergmann 提交于
    Defining the two functions as 'static inline' and exporting them
    leads to the interesting case where we can use the interface
    from loadable modules, but not from built-in drivers, as shown
    in this link failure:
    
    vers/nvdimm/claim.o: In function `nsio_rw_bytes':
    claim.c:(.text+0x1b8): undefined reference to `arch_invalidate_pmem'
    drivers/nvdimm/pmem.o: In function `pmem_dax_flush':
    pmem.c:(.text+0x11c): undefined reference to `arch_wb_cache_pmem'
    drivers/nvdimm/pmem.o: In function `pmem_make_request':
    pmem.c:(.text+0x5a4): undefined reference to `arch_invalidate_pmem'
    pmem.c:(.text+0x650): undefined reference to `arch_invalidate_pmem'
    pmem.c:(.text+0x6d4): undefined reference to `arch_invalidate_pmem'
    
    This removes the bogus 'static inline'.
    
    Fixes: d50e071f ("arm64: Implement pmem API support")
    Acked-by: NRobin Murphy <robin.murphy@arm.com>
    Signed-off-by: NArnd Bergmann <arnd@arndb.de>
    Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
    caf5ef7d
flush.c 2.7 KB