On Mon, Apr 14, 2014 at 06:27:10PM +0900, Masahiro Yamada wrote: > W=... provides extra gcc checks. > > Having such code in scripts/Makefile.build results in the same flags > being added to KBUILD_CFLAGS multiple times becuase > scripts/Makefile.build is invoked every time Kbuild descends into > the subdirectories. > > Since the top Makefile is already too cluttered, this commit moves > all of extra gcc check stuff to a new file scripts/Makefile.extrawarn, > which is included from the top Makefile. > > Signed-off-by: Masahiro Yamada <yamada.m@xxxxxxxxxxxxxxxx> > Cc: Michal Marek <mmarek@xxxxxxx> > CC: Sam Ravnborg <sam@xxxxxxxxxxxx> > --- > > Changes in v3: > - Rebase on v3.15-rc1 > (v2 caused a conflict with Clang stuff.) > > Changes in v2: > - Move the code to a new file scripts/Makefile.extrawarn > - Move also "KBUILD_ENABLE_EXTRA_GCC_CHECKS" definition Applied to kbuild.git#kbuild, thanks. Michal -- 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