kbuild: warn redundant generic-y
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 17 Mar 2019 02:01:08 +0000 (11:01 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 17 Mar 2019 03:56:31 +0000 (12:56 +0900)
commit7cbbbb8bc2974264bbbf326d9a4552fc8878d375
treef5a3c927cd662dc9fac451335097de0205d6f087
parentf84dde10d893cd368e73dda04b694169542ed792
kbuild: warn redundant generic-y

The generic-y is redundant under the following condition:

 - arch has its own implementation

 - the same header is added to generated-y

 - the same header is added to mandatory-y

If a redundant generic-y is found, the warning like follows is displayed:

  scripts/Makefile.asm-generic:20: redundant generic-y found in arch/arm/include/asm/Kbuild: timex.h

I fixed up arch Kbuild files found by this.

Suggested-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
12 files changed:
arch/arm/include/asm/Kbuild
arch/h8300/include/asm/Kbuild
arch/ia64/include/uapi/asm/Kbuild
arch/openrisc/include/asm/Kbuild
arch/parisc/include/asm/Kbuild
arch/powerpc/include/asm/Kbuild
arch/s390/include/asm/Kbuild
arch/s390/include/uapi/asm/Kbuild
arch/x86/include/uapi/asm/Kbuild
arch/xtensa/include/asm/Kbuild
arch/xtensa/include/uapi/asm/Kbuild
scripts/Makefile.asm-generic