fs: dax: do not build on ARC or SH
Subsystems (3)
Arnd Bergmann
maintainerThe DAX implementation relies on the architecture to provide a working copy_user_page() function, as reported by Michael Ellerman's kisskb build bot:
fs/dax.c: error: implicit declaration of function 'copy_user_page' [-Werror=implicit-function-declaration]: => 266:2
We already have a list of architectures that are known to be incompatible, but the list is missing ARC and SH at the moment. Further, blackfin and c6x also lack support for this function, but are already excluded because they do not support MMU-based kernels.
---
fs/Kconfig +1 -1
@@ -36,7 +36,7 @@ source "fs/nilfs2/Kconfig" config FS_DAX bool "Direct Access (DAX) support" depends on MMU - depends on !(ARM || MIPS || SPARC) + depends on !(ARC || ARM || MIPS || SH || SPARC) help Direct Access (DAX) can be used on memory-backed block devices. If the block device supports DAX and the filesystem supports DAX,
Quoted 10 lines · Arnd Bergmann
The DAX implementation relies on the architecture to provide a working
copy_user_page()function, as reported by Michael Ellerman's kisskb build bot:
fs/dax.c: error: implicit declaration of function 'copy_user_page' [-Werror=implicit-function-declaration]: => 266:2We already have a list of architectures that are known to be incompatible, but the list is missing ARC and SH at the moment. Further, blackfin and c6x also lack support for this function, but are already excluded because they do not support MMU-based kernels.
I've got a short list of patches for DAX; I'll add this one to the list.
Have the maintainers of these architectures been notified that they're missing a core piece of kernel functionality?
Arnd Bergmann
maintainerQuoted 5 lines · On Monday 23 February 2015 13:40:25 Matthew Wilcox wrote:
Quoted 4 lines · Arnd Bergmann
The DAX implementation relies on the architecture to provide a working
copy_user_page()function, as reported by Michael Ellerman's kisskb build bot:
Quoted 8 lines
Quoted 6 lines
fs/dax.c: error: implicit declaration of function 'copy_user_page' [-Werror=implicit-function-declaration]: => 266:2We already have a list of architectures that are known to be incompatible, but the list is missing ARC and SH at the moment. Further, blackfin and c6x also lack support for this function, but are already excluded because they do not support MMU-based kernels.
I've got a short list of patches for DAX; I'll add this one to the list.
Ok, thanks!
Quoted 2 lines
Have the maintainers of these architectures been notified that they're missing a core piece of kernel functionality?
Not until you put them on Cc here.
Arnd
Quoted 12 lines · Matthew Wilcox
Quoted 10 lines · Arnd Bergmann
The DAX implementation relies on the architecture to provide a working
copy_user_page()function, as reported by Michael Ellerman's kisskb build bot:
fs/dax.c: error: implicit declaration of function 'copy_user_page' [-Werror=implicit-function-declaration]: => 266:2We already have a list of architectures that are known to be incompatible, but the list is missing ARC and SH at the moment. Further, blackfin and c6x also lack support for this function, but are already excluded because they do not support MMU-based kernels.
Quoted 5 lines
I've got a short list of patches for DAX; I'll add this one to the list.
Have the maintainers of these architectures been notified that they're missing a core piece of kernel functionality?
Guess there a philosophical difference in opinion if the architecture code should (have to) provide copy_user_page() or not outside the architecture code itself. After all, fs/dax.c _is_ the only user of this function outside the architecture code.
Guenter
Quoted 4 lines · Guenter Roeck
Guess there a philosophical difference in opinion if the architecture code should (have to) provide
copy_user_page()or not outside the architecture code itself. After all,fs/dax.c_is_ the only user of this function outside the architecture code.
Given that copy_user_page just is an optimized version of copy_page all these architectures should just grab the trivial macro defintion from the asm-generic version so that we could avoid this discussion.
Quoted 10 lines · Christoph Hellwig
Quoted 4 lines · Guenter Roeck
Guess there a philosophical difference in opinion if the architecture code should (have to) provide
copy_user_page()or not outside the architecture code itself. After all,fs/dax.c_is_ the only user of this function outside the architecture code.Given that
copy_user_pagejust is an optimized version ofcopy_pageall these architectures should just grab the trivial macro defintion from the asm-generic version so that we could avoid this discussion.
I tried to do just that, for mips, with little success.
https://patchwork.linux-mips.org/patch/9175/
Presumably, if copy_page() followed by a conditional flush_data_cache_page() does not work on mips, I would assume that copy_page() without flush does not work either.
Guenter
Quoted 20 lines · Arnd Bergmann
The DAX implementation relies on the architecture to provide a working
copy_user_page()function, as reported by Michael Ellerman's kisskb build bot:
fs/dax.c: error: implicit declaration of function 'copy_user_page' [-Werror=implicit-function-declaration]: => 266:2We already have a list of architectures that are known to be incompatible, but the list is missing ARC and SH at the moment. Further, blackfin and c6x also lack support for this function, but are already excluded because they do not support MMU-based kernels.
Signed-off-by Arnd Bergmann <[email protected]>Reported-by Geert Uytterhoeven <[email protected]>---
fs/Kconfig +0
-0
fs/Kconfig source "fs/nilfs2/Kconfig" · line 39
Quoted 5 lines
fs/Kconfig +1
-1@@ -36,7 +36,7 @@ source "fs/nilfs2/Kconfig" config FS_DAX bool "Direct Access (DAX) support" depends on MMU - depends on !(ARM || MIPS || SPARC) + depends on !(ARC || ARM || MIPS || SH || SPARC)
Did you mean
SUPERH?
fs/Kconfig source "fs/nilfs2/Kconfig" · line 42
Quoted 4 lines
fs/Kconfig +0
-0help Direct Access (DAX) can be used on memory-backed block devices. If the block device supports DAX and the filesystem supports DAX,
Thanks,
Paul Bolle