I'm not sure if it's a good idea, but it might be possible to reduce the amount of boilerplate headers in arch/*/include/asm if we do the following: 1) move include/asm-generic to include/generic/asm and replace all references to asm-generic with generic/asm 2) add include/generic to search path for headers, right after arch/*/include 3) kill every arch/foo/include/asm/bar.h that has only #include <generic/asm/bar.h> in it. We still can do override of default headers (simply by putting whatever we want in arch/*/include/asm) and we can explicitly include the default from arch/*/include/asm (by using explicit generic/asm in the #include). The tricky part is handling of exported headers; we could detect the absense of asm/foo.h we'd like to export and have include/generic/asm/foo.h copied in its place, but that's not pretty. We also have a risk of userland code doing explicit #include <asm-generic/foo.h>, but that's probably not a legitimate thing to do anyway *and* we could export them as asm-generic, rewriting includes in headers from generic/asm to asm-generic as we export them. I'm honestly not sure if it's worth doing; comments? -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html