Skip to contentSkip to conversation

fs: dax: do not build on ARC or SH

PATCH Arnd Bergmann 5 participants 7 messages Feb 23, 2015 – Feb 28, 2015

Subsystems (3)
lore
Share & tools
lore

Arnd Bergmann

author maintainer
#0 lore raw

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: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
index ec35851e5b71..a24d496787d6 100644
@@ -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,
#1 lore raw
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: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.

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?

author maintainer
#2 lore raw
Quoted 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: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.

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

#3 lore raw
In reply to Matthew Wilcox
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: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.

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

#4 lore raw
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.

#5 lore raw
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_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.

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

#6 lore raw
In reply to Arnd Bergmann
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: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 +0 -0
index ec35851e5b71..a24d496787d6 100644

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 -0
 	help
 	  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