jianhai / rpms / kernel

Forked from rpms/kernel 3 years ago
Clone
e293be
Without CONFIG_DAX_DRIVER, drivers/md/dm-stripe.c fails to compile:
e293be
e293be
drivers/md/dm-stripe.c:515:27: error: 'stripe_dax_memcpy_toiovecend' undeclared here (not in a function)
e293be
.dax_memcpy_toiovecend = stripe_dax_memcpy_toiovecend,
e293be
^
e293be
e293be
CONFIG_DAX_DRIVER will be automaticallly selected by NVDIMM support,
e293be
which needs PHYS_ADDR_T_64BIT setup.
e293be
e293be
diff -up ./drivers/md/dm-stripe.c.dax ./drivers/md/dm-stripe.c
e293be
--- ./drivers/md/dm-stripe.c.dax	2018-10-05 05:18:19.000000000 +0900
e293be
+++ ./drivers/md/dm-stripe.c	2018-11-01 12:53:35.000000000 +0900
e293be
@@ -370,6 +370,7 @@ static int stripe_dax_memcpy_toiovecend(
e293be
 #define stripe_dax_direct_access NULL
e293be
 #define stripe_dax_memcpy_fromiovecend NULL
e293be
 #define stripe_dax_memcpy_fromiovecend NULL
e293be
+#define stripe_dax_memcpy_toiovecend NULL
e293be
 #endif
e293be
 
e293be
 /*