The patch titled Subject: mm,fs,dax: mark dax_iomap_pmd_fault as const has been added to the -mm tree. Its filename is mmfsdax-mark-dax_iomap_pmd_fault-as-const.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mmfsdax-mark-dax_iomap_pmd_fault-as-const.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mmfsdax-mark-dax_iomap_pmd_fault-as-const.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Arnd Bergmann <arnd@xxxxxxxx> Subject: mm,fs,dax: mark dax_iomap_pmd_fault as const The two alternative implementations of dax_iomap_fault have different prototypes, and one of them is obviously wrong as seen from this build warning: fs/dax.c: In function 'dax_iomap_fault': fs/dax.c:1462:35: error: passing argument 2 of 'dax_iomap_pmd_fault' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] This marks the argument 'const' as in all the related functions. Fixes: a2d581675d48 ("mm,fs,dax: change ->pmd_fault to ->huge_fault") Link: http://lkml.kernel.org/r/20170227203349.3318733-1-arnd@xxxxxxxx Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/dax.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN fs/dax.c~mmfsdax-mark-dax_iomap_pmd_fault-as-const fs/dax.c --- a/fs/dax.c~mmfsdax-mark-dax_iomap_pmd_fault-as-const +++ a/fs/dax.c @@ -1436,7 +1436,8 @@ out: return result; } #else -static int dax_iomap_pmd_fault(struct vm_fault *vmf, struct iomap_ops *ops) +static int dax_iomap_pmd_fault(struct vm_fault *vmf, + const struct iomap_ops *ops) { return VM_FAULT_FALLBACK; } _ Patches currently in -mm which might be from arnd@xxxxxxxx are mmfsdax-mark-dax_iomap_pmd_fault-as-const.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html