Skip to content

Commit 3b939ba

Browse files
arndbhansendc
authored andcommitted
x86/usercopy: Include arch_wb_cache_pmem() declaration
arch_wb_cache_pmem() is declared in a global header but defined by the architecture. On x86, the implementation needs to include the header to avoid this warning: arch/x86/lib/usercopy_64.c:39:6: error: no previous prototype for 'arch_wb_cache_pmem' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com> Link: https://lore.kernel.org/all/20230516193549.544673-18-arnd%40kernel.org
1 parent 3e0bd4d commit 3b939ba

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/x86/lib/usercopy_64.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <linux/export.h>
1010
#include <linux/uaccess.h>
1111
#include <linux/highmem.h>
12+
#include <linux/libnvdimm.h>
1213

1314
/*
1415
* Zero Userspace

0 commit comments

Comments
 (0)