Re: [PATCH v2 01/34] kbuild: Add support for DT binding schema checks

2018-12-07 Thread Masahiro Yamada
eparate from a normal build to > avoid a hard dependency on the external DT schema project and because > there are lots of warnings generated. > > Cc: Jonathan Corbet > Cc: Mark Rutland > Cc: Masahiro Yamada > Cc: Michal Marek > Cc: linux-...@vger.kernel.org > Cc: devicet...

Re: [PATCH 1/2] um: remove -fno-unit-at-a-time workaround for pre-4.0 GCC

2018-12-07 Thread Masahiro Yamada
x86 maintainers, Ping. On Tue, Nov 13, 2018 at 6:48 PM Richard Weinberger wrote: > > Am Montag, 12. November 2018, 03:35:19 CET schrieb Masahiro Yamada: > > Commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6") > > bumped the minimum GCC version

Re: [PATCH 2/2] x86, powerpc: remove -funit-at-a-time compiler option entirely

2018-12-07 Thread Masahiro Yamada
x86 maintainers, Ping. On Mon, Nov 12, 2018 at 8:23 PM Michael Ellerman wrote: > > Masahiro Yamada writes: > > > GCC 4.6 manual says: > > > > -funit-at-a-time > > This option is left for compatibility reasons. -funit-at-a-time has > > no effect,

Re: [PATCH] kbuild: move .SECONDARY special target to Kbuild.include

2018-12-07 Thread Masahiro Yamada
On Sat, Dec 1, 2018 at 9:29 AM Masahiro Yamada wrote: > > In commit 54a702f70589 ("kbuild: mark $(targets) as .SECONDARY and > remove .PRECIOUS markers"), I missed one important feature of the > .SECONDARY target: > > .SECONDARY with no prerequisites causes all t

Re: [PATCH 2/2] x86, powerpc: remove -funit-at-a-time compiler option entirely

2018-12-08 Thread Masahiro Yamada
Hi Borislav, On Sat, Dec 8, 2018 at 8:34 PM Borislav Petkov wrote: > > On Sat, Dec 08, 2018 at 03:36:52PM +0900, Masahiro Yamada wrote: > > x86 maintainers, > > > > Ping. > > You got the required ACKs. If you want me to carry this one and the > UML one through

Re: [PATCH 1/2] um: remove -fno-unit-at-a-time workaround for pre-4.0 GCC

2018-12-08 Thread Masahiro Yamada
Hi Richard, On Sat, Dec 8, 2018 at 5:55 PM Richard Weinberger wrote: > > Am Samstag, 8. Dezember 2018, 07:35:47 CET schrieb Masahiro Yamada: > > x86 maintainers, > > > > > > Ping. > > I thought you carry this via your kbuild tree. > That said, I can mer

Re: [PATCH v4 1/3] kernel.h: disable type-checks in container_of() for Sparse

2018-11-30 Thread Masahiro Yamada
Hi Andrew, On Sat, Nov 24, 2018 at 6:06 PM Miguel Ojeda wrote: > > On Fri, Nov 23, 2018 at 10:14 PM Luc Van Oostenryck > wrote: > > > > On Thu, Nov 22, 2018 at 12:14:20PM +0900, Masahiro Yamada wrote: > > > When I tried to enable BUILD_BUG_ON for Sparse, the kb

Re: [PATCH] kbuild: fix UML build error with CONFIG_GCC_PLUGINS

2018-12-01 Thread Masahiro Yamada
On Thu, Nov 29, 2018 at 12:01 PM Masahiro Yamada wrote: > > UML fails to build with CONFIG_GCC_PLUGINS=y. > > $ make -s ARCH=um mrproper > $ make -s ARCH=um allmodconfig > $ make ARCH=um > UPD include/generated/uapi/linux/version.h > WRAParch/x86/in

Re: [PATCH 1/3] modpost: refactor seen flag clearing in add_depends()

2018-12-01 Thread Masahiro Yamada
On Sat, Nov 24, 2018 at 5:08 PM Masahiro Yamada wrote: > > You do not need to iterate over all modules for resetting ->seen flag > because add_depends() is only interested in modules that export symbols > referenced from the given 'mod'. > > This also avoids shado

Re: [PATCH] pcmcia: remove per-arch PCMCIA config entry

2018-12-01 Thread Masahiro Yamada
On Mon, Nov 26, 2018 at 6:24 PM Dominik Brodowski wrote: > > On Mon, Nov 26, 2018 at 05:15:41PM +0900, Masahiro Yamada wrote: > > Now that all architectures include drivers/pcmcia/Kconfig where > > the PCMCIA config is defined, the PCMCIA config entries in per-arch > > Kco

Re: [PATCH v2 1/2] kbuild: make 'archprepare' depend on 'scripts'

2018-12-01 Thread Masahiro Yamada
On Thu, Nov 29, 2018 at 12:57 PM Masahiro Yamada wrote: > > Before start descending, Kbuild needs to run 'prepare' and 'scripts', > which has been orthogonal to each other. > > Going forward, let's consider 'scripts' is a part of the preparation.

Re: [PATCH v2 2/2] kbuild: descend into scripts/gcc-plugins/ via scripts/Makefile

2018-12-01 Thread Masahiro Yamada
On Thu, Nov 29, 2018 at 12:57 PM Masahiro Yamada wrote: > > Now that 'archprepare' depends on 'scripts', Kbuild can descend into > scripts/gcc-plugins in a more standard way. > > Signed-off-by: Masahiro Yamada > Reviewed-by: Kees Cook > --- Applied to

[PATCH 0/7] microblaze: fix various problems in building boot images

2018-12-02 Thread Masahiro Yamada
my best to keep the same behavior. IMHO, I guess DTB= would be more sensible, but it is up to Michal. Masahiro Yamada (7): microblaze: fix cleaning of boot images microblaze: adjust the help to the real behavior microblaze: move "... is ready" message to arch/microblaze/Makefi

[PATCH 2/7] microblaze: adjust the help to the real behavior

2018-12-02 Thread Masahiro Yamada
e a phony target that generates multiple images. Reflect the behavior to the help message. Signed-off-by: Masahiro Yamada --- arch/microblaze/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile index 0823d29..97e13

[PATCH 1/7] microblaze: fix cleaning of boot images

2018-12-02 Thread Masahiro Yamada
e. Fix the clean-files to take care of all the four. Adding linux.bin.ub to clean-files is redundant because it is already added into "targets". Signed-off-by: Masahiro Yamada --- arch/microblaze/boot/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[PATCH 6/7] microblaze: fix race condition in building boot images

2018-12-02 Thread Masahiro Yamada
two threads descend into arch/microblaze/boot simultaneously. Add proper dependencies to avoid it. Signed-off-by: Masahiro Yamada --- arch/microblaze/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile index 7a5

[PATCH 7/7] microblaze: remove the unneeded code just in case file copy fails

2018-12-02 Thread Masahiro Yamada
_ERROR special target"). Reuse equivalent cmd_shipped from scripts/Makefile.lib. Signed-off-by: Masahiro Yamada --- arch/microblaze/boot/dts/Makefile | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/microblaze/boot/dts/Makefile b/arch/microblaze/boot/dts/Ma

[PATCH 3/7] microblaze: move "... is ready" message to arch/microblaze/Makefile

2018-12-02 Thread Masahiro Yamada
To prepare for more fixes, move this to arch/microblaze/Makefile. Otherwise, the same "... is ready" would be printed multiple times. (Another solution would be, to remove these messages entirely unless people persist with them.) Signed-off-by: Masahiro Yamada --- arch/microblaz

[PATCH 4/7] microblaze: fix multiple bugs in arch/microblaze/boot/Makefile

2018-12-02 Thread Masahiro Yamada
croblaze/boot/simpleImage..unstrip: identical to vmlinux - arch/microblaze/boot/simpleImage..ub: identical to arch/microblaze/boot/linux.bin.ub - arch/microblaze/boot/simpleImage..strip: stripped vmlinux The first three are just aliases of other images. Separate the

[PATCH 5/7] microblaze: add linux.bin* and simpleImage.* to PHONY

2018-12-02 Thread Masahiro Yamada
ned-off-by: Masahiro Yamada --- arch/microblaze/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile index c5d5b0e..7a5df02 100644 --- a/arch/microblaze/Makefile +++ b/arch/microblaze/Makefile @@ -79,11 +79,13 @@ all:

Re: [PATCH 07/14] clock: milbeaut: Add Milbeaut M10V clock control

2018-12-04 Thread Masahiro Yamada
the LSI business from Panasonic and Fujitsu. UniPhier originates in Panasonic, while Milbeaut in Fujitsu. Thanks. -- Best Regards Masahiro Yamada

Re: [PATCH 11/14] pinctrl: milbeaut: Add Milbeaut M10V pinctrl

2018-12-04 Thread Masahiro Yamada
.name = "m10v-pinctrl", > + .of_match_table = m10v_pmatch, > + }, > +}; > + > +static int __init m10v_pinctrl_init(void) > +{ > + return platform_driver_register(&m10v_pinctrl_driver); > +} > +arch_initcall(m10v_pinctrl_init); Can't it be builtin_platform_driver()? Which device requires this to be arch_initcall()? -- Best Regards Masahiro Yamada

Re: [PATCH] Revert "scripts/setlocalversion: git: Make -dirty check more robust"

2018-11-08 Thread Masahiro Yamada
still think that it is a > bad idea to touch the source tree if an output directory was specified. > It defeats the purpose of specifying an output directory. I agree. We should avoid any write attempt to the source tree for any reason. > Ubuntu 16.04 ships with git version 2.7.4. > > Guenter -- Best Regards Masahiro Yamada

Re: [PATCH] Revert "scripts/setlocalversion: git: Make -dirty check more robust"

2018-11-08 Thread Masahiro Yamada
to the old way? I also like this idea! I will pick-up this revert patch soon. Brian, Could you please send a patch on top of that? Thanks! -- Best Regards Masahiro Yamada

Re: [PATCH] init/Kconfig: make CC_OPTIMIZE_FOR_DEBUGGING visible only for GCC

2018-11-09 Thread Masahiro Yamada
On Tue, Nov 6, 2018 at 12:18 AM Changbin Du wrote: > > Currently CC_OPTIMIZE_FOR_DEBUGGING is only able to build with GCC. > For clang, -Og optimization level could break kernel build. So make > CC_OPTIMIZE_FOR_DEBUGGING visible only for GCC. > > Cc: Masahiro Yamada > Signe

Re: [PATCH 3/4] dt-bindings: reset: uniphier: Add AHCI core reset description

2018-11-09 Thread Masahiro Yamada
-glue-reset" - > for Pro4 SoC AHCI > > That way if more places turn up where the glue layer reset is used, > you can add them without patching the driver every time. This is a trade-off between "patch the driver" and "potential change of the binding". There is no real hardware like pro4-glue-reset. I am guessing this is a part of syscon or something, but I cannot find any explanation in a bigger picture. So, I cannot judge this further more. > regards > Philipp -- Best Regards Masahiro Yamada

Re: [PATCH] kbuild: deb-pkg: fix bindeb-pkg breakage when O= is used

2018-11-09 Thread Masahiro Yamada
On Mon, Nov 5, 2018 at 4:53 PM Masahiro Yamada wrote: > > Ard Biesheuvel reports bindeb-pkg with O= option is broken in the > following way: > > ... > LD [M] sound/soc/rockchip/snd-soc-rk3399-gru-sound.ko > LD [M] sound/soc/rockchip/snd-soc-rockchip-pcm.ko &g

Re: [PATCH] kbuild: rpm-pkg: fix binrpm-pkg breakage when O= is used

2018-11-09 Thread Masahiro Yamada
On Mon, Nov 5, 2018 at 4:52 PM Masahiro Yamada wrote: > > Zhenzhong Duan reported that running 'make O=/build/kernel binrpm-pkg' > failed with the following errors: > > Running 'make O=/build/kernel binrpm-pkg' failed with below two errors. > > Makefi

Re: [PATCH v2] kconfig: merge_config: avoid false positive matches from comment lines

2018-11-09 Thread Masahiro Yamada
On Mon, Nov 5, 2018 at 6:35 PM Arnout Vandecappelle wrote: > > > > On 05/11/18 09:19, Masahiro Yamada wrote: > > The current SED_CONFIG_EXP could match to comment lines in config > > fragment files, especially when CONFIG_PREFIX_ is empty. For example, > > Buildroot

Re: [PATCH v3 1/4] x86/mm: declare check_la57_support() as inline

2018-11-09 Thread Masahiro Yamada
On Fri, Nov 2, 2018 at 8:28 PM Borislav Petkov wrote: > > On Mon, Oct 29, 2018 at 10:04:46PM +0900, Masahiro Yamada wrote: > > On Mon, Oct 29, 2018 at 3:09 AM Steven Rostedt wrote: > > > > > > On Sun, 28 Oct 2018 13:09:42 + > > > Changbin Du wrote:

Re: [PATCH] Revert "scripts/setlocalversion: git: Make -dirty check more robust"

2018-11-09 Thread Masahiro Yamada
uld also make our check $(touch .git/some-file-here > > > 2>/dev/null && ...) instead of $(test -w .git) to handle misconfigured > > > NFS setups. But not sure if that has its own problems. > > > > Trying to 'touch' the source tree will also break us. No matter whether > > you redirect stderr, our sandbox will still notice the build is doing > > something fishy and complain. > > -- > BOFH excuse #192: > > runaway cat on system. -- Best Regards Masahiro Yamada

Re: [PATCH] Revert "scripts/setlocalversion: git: Make -dirty check more robust"

2018-11-09 Thread Masahiro Yamada
is specified. Users may have the reasonable expectation that the > source repository remains untouched in that situation. > > Fixes: 6147b1cf19651 ("scripts/setlocalversion: git: Make -dirty check more > robust" > Cc: Genki Sky > Cc: Masahiro Yamada > Signed-off-by: Guen

Re: [PATCH v2] scripts/kconfig/merge_config: don't redefine 'y' to 'm'

2018-11-10 Thread Masahiro Yamada
t > $ORIG_MERGE_FILE: > echo Previous value: $PREV_VAL > echo New value: $NEW_VAL > echo > elif [ "$WARNREDUN" = "true" ]; then > - echo Value of $CFG is redundant by fragment > $MERGE_FILE: > + echo Value of $CFG is redundant by fragment > $ORIG_MERGE_FILE: > + fi > + if [ "$BUILTIN_FLAG" = "false" ]; then > + sed -i "/$CFG[ =]/d" $TMP_FILE > + else > + sed -i "/$CFG[ =]/d" $MERGE_FILE > + BUILTIN_FLAG=false Then this 'BUILTIN_FLAG=false' can go away. Thanks. > fi > - sed -i "/$CFG[ =]/d" $TMP_FILE > done > cat $MERGE_FILE >> $TMP_FILE > done > -- > 2.19.1 > -- Best Regards Masahiro Yamada

[GIT PULL] Kbuild fixes for v4.20-rc2

2018-11-11 Thread Masahiro Yamada
Guenter Roeck (1): Revert "scripts/setlocalversion: git: Make -dirty check more robust" Masahiro Yamada (4): kbuild: rpm-pkg: fix binrpm-pkg breakage when O= is used kbuild: deb-pkg: fix bindeb-pkg breakage when O= is used kconfig: merge_config: avoid fals

[GIT PULL] Kbuild fixes for v4.18-rc3

2018-06-30 Thread Masahiro Yamada
ers for if-entries in menu tree kconfig: handle P_SYMBOL in print_symbol() Jerry James (1): kconfig: loop boundary condition fix Masahiro Yamada (1): kbuild: reword help of LD_DEAD_CODE_DATA_ELIMINATION Paul Burton (1): powerpc: Remove -Wattribute-alias pragmas Randy

Re: [PATCH v4] kconfig: check for pkg-config on make {menu,n,g,x}config

2018-06-30 Thread Masahiro Yamada
for use in > +'make {menu,n,g,x}config'. Previously pkg-config was being used but not > +verified or documented. > + > Flex > > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Best Regards Masahiro Yamada

Re: [PATCH] kbuild: check for /sbin/depmod installed

2018-07-01 Thread Masahiro Yamada
*install' ? > + echo "This is probably in the module-init-tools package." >&2 > + exit 1 > +fi > + > # older versions of depmod require the version string to start with three > # numbers, so we cheat with a symlink here > depmod_hack_needed=true > > -- Best Regards Masahiro Yamada

Re: [PATCH] arm: dts: socfpga: denali needs nand_x_clk too

2018-07-01 Thread Masahiro Yamada
Hi Dinh, 2018-06-27 23:55 GMT+09:00 Dinh Nguyen : > Hi Masahiro, > > On 06/26/2018 09:52 PM, Masahiro Yamada wrote: >> 2018-06-27 3:09 GMT+09:00 Miquel Raynal : >>> Hi Masahiro, >>> >>> On Tue, 26 Jun 2018 11:38:21 +0900, Masahiro Yamada >>>

[PATCH] gcc-plugins: remove unused GCC_PLUGIN_SUBDIR

2018-07-02 Thread Masahiro Yamada
GCC_PLUGIN_SUBDIR has never been used. If you really need this in the future, please re-add it then. For now, the code is unused. Remove. 'export HOSTLIBS' is not necessary either. Signed-off-by: Masahiro Yamada --- scripts/Makefile.gcc-plugins | 3 +-- scripts/gcc-plugins/Ma

[PATCH 1/3] ARM: add endianness option to LDFLAGS instead of LD

2018-07-02 Thread Masahiro Yamada
#x27;LD' in arch Makefile depending on CONFIG_CPU_BIG_ENDIAN, this would end up with circular dependency between Makefile and Kconfig. Signed-off-by: Masahiro Yamada --- arch/arm/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/Makefile b/arch/arm/Makefile

[PATCH 0/3] arm,arm64,microblaze: add endianness options to LDFLAGS instead of LD

2018-07-02 Thread Masahiro Yamada
ommit 1421dc6d48296a. I need to fix arm, arm64, microblaze as well before I start moving linker option tests to Kconfig from Makefile. arch maintainers: Please pick up a proper patch for your tree. Masahiro Yamada (3): ARM: add endianness option to LDFLAGS instead of LD arm64: add endianne

[PATCH 2/3] arm64: add endianness option to LDFLAGS instead of LD

2018-07-02 Thread Masahiro Yamada
#x27;LD' in arch Makefile depending on CONFIG_CPU_BIG_ENDIAN, this would end up with circular dependency between Makefile and Kconfig. Signed-off-by: Masahiro Yamada --- arch/arm64/Makefile | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm64/Makefile b/arc

[PATCH 3/3] microblaze: add endianness options to LDFLAGS instead of LD

2018-07-02 Thread Masahiro Yamada
#x27;LD' in arch Makefile depending on CONFIG_CPU_BIG_ENDIAN, this would end up with circular dependency between Makefile and Kconfig. Signed-off-by: Masahiro Yamada --- arch/microblaze/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/microblaze/Makefile b/

[PATCH 2/2] x86/build/vdso: simplify cmd_vdso2c

2018-07-02 Thread Masahiro Yamada
No reason to use 'define' directive here. Just use the = operator. Signed-off-by: Masahiro Yamada --- arch/x86/entry/vdso/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/x86/entry/vdso/Makefile b/arch/x86/entry/vdso/Makefile index 261802b..b9ed

[PATCH 0/2] x86/build/vdso: a little more Makefile cleanups

2018-07-02 Thread Masahiro Yamada
At first, I sent the first patch to UML ML, but they did not pick it up. Instead, I was able to get Acked-by from Richard, one of the UML maintainers. https://patchwork.kernel.org/patch/10399787/ I am resending it to x86 ML. Masahiro Yamada (2): x86/build/vdso: remove unused vdso-syms.lds

[PATCH 1/2] x86/build/vdso: remove unused vdso-syms.lds

2018-07-02 Thread Masahiro Yamada
proof that this file was not needed in the first place. Signed-off-by: Masahiro Yamada Acked-by: Richard Weinberger Acked-by: Ingo Molnar --- arch/x86/um/vdso/.gitignore | 1 - arch/x86/um/vdso/Makefile | 16 2 files changed, 17 deletions(-) diff --git a/arch/x86/um/vdso/.g

Re: [PATCH] gcc-plugins: remove unused GCC_PLUGIN_SUBDIR

2018-07-02 Thread Masahiro Yamada
Hi Kees, 2018-07-03 11:18 GMT+09:00 Kees Cook : > On Mon, Jul 2, 2018 at 5:39 PM, Masahiro Yamada > wrote: >> GCC_PLUGIN_SUBDIR has never been used. If you really need this in >> the future, please re-add it then. >> >> For now, the code is unused. Remove.

Re: [PATCH 0/2] x86/build/vdso: a little more Makefile cleanups

2018-07-03 Thread Masahiro Yamada
2018-07-03 16:35 GMT+09:00 Ingo Molnar : > > * Richard Weinberger wrote: > >> Masahiro, >> >> Am Dienstag, 3. Juli 2018, 03:50:12 CEST schrieb Masahiro Yamada: >> > >> > At first, I sent the first patch to UML ML, >> > but they did not pic

Re: [PATCH resend] scripts: teach extract-vmlinux about LZ4 and ZSTD

2018-07-07 Thread Masahiro Yamada
7;lzop -d' > +try_decompress '\002!L\030' xxx 'lz4 -d' > +try_decompress '(\265/\375' xxx unzstd > > # Bail out: > echo "$me: Cannot find vmlinux." >&2 > -- > 2.18.0 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Best Regards Masahiro Yamada

Re: kconfig usage in automatic kernel test

2018-07-07 Thread Masahiro Yamada
sometimes use allnoconfig for build testing. When I want to test the whole build process quickly, I disable as many drivers as possible to save time. I do not use alldefconfig. Anyway, it would not hurt to have it for completeness. > -- > Sincerely, > Cao jin > > -- Best Regards Masahiro Yamada

Re: [PATCH 3/7] treewide: Rename HOSTCFLAGS -> KBUILD_HOSTCFLAGS

2018-07-07 Thread Masahiro Yamada
HOSTCFLAGS_gen_facilities.o += -Wall $(LINUXINCLUDE) > -HOSTCFLAGS_gen_opcode_table.o += -Wall $(LINUXINCLUDE) > +KBUILD_HOSTCFLAGS_gen_facilities.o += -Wall $(LINUXINCLUDE) > +KBUILD_HOSTCFLAGS_gen_opcode_table.o += -Wall $(LINUXINCLUDE) No. Please keep HOSTCFLAGS_.o as-is. -- Best Regards Masahiro Yamada

Re: [PATCH 6/7] treewide: Rename HOST_LOADLIBES to KBUILD_HOSTLDLIBS

2018-07-07 Thread Masahiro Yamada
$@ >cmd_host-cmulti = $(HOSTCC) $(KBUILD_HOSTLDFLAGS) -o $@ \ > $(addprefix $(obj)/,$($(@F)-objs)) \ > - $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F)) > + $(KBUILD_HOSTLDLIBS) $(HOSTLOADLIBES_$(@F)) For consistency, please rename $(HOSTLOADLIBES_$(@F)) to $(HOSTLDLIBS_$(@F)) -- Best Regards Masahiro Yamada

Re: [PATCH 7/7] Kbuild: Use HOST*FLAGS options from the command line

2018-07-07 Thread Masahiro Yamada
IBES) Please use HOSTLDLIBS instead of HOST_LOADLIBES. All of these must be documented in Documentation/kbuild/kbuild.txt -- Best Regards Masahiro Yamada

Re: [PATCH 4/7] treewide: Rename HOSTCXXFLAGS to KBUILD_HOSTCXXFLAGS

2018-07-07 Thread Masahiro Yamada
= $(shell . $(obj)/.qconf-cfg && echo $$cflags) > +KBUILD_HOSTCXXFLAGS_qconf.o= $(shell . $(obj)/.qconf-cfg && echo > $$cflags) Please keep HOSTCXXFLAGS_.o as-is. -- Best Regards Masahiro Yamada

[PATCH] objtool: move libelf detection to Kconfig from Makefile

2018-07-08 Thread Masahiro Yamada
compiler can build the objtool. The ugly check in the Makefile will go away. Signed-off-by: Masahiro Yamada --- I am sure about this patch only from the build system point of view. Please review this from x86 and objtool point of view. In my understanding: - UNWINDER_ORC _requires_ objtool, so

Re: [PATCH] Fix the oldconfig target rule

2018-07-08 Thread Masahiro Yamada
config/Makefile >> +++ b/scripts/kconfig/Makefile >> @@ -62,6 +62,7 @@ PHONY += $(simple-targets) >> >> $(simple-targets): $(obj)/conf >> $< $(silent) --$@ $(Kconfig) >> +$(Q)$(MAKE) -f $(srctree)/Makefile syncconfig > > On second thought, removing the auto.conf might be sufficient: > $(Q)rm -f include/config/auto.conf include/config/auto.conf.cmd > > Would you prefer that? No. My suggestion is this: https://patchwork.kernel.org/patch/10513065/ -- Best Regards Masahiro Yamada

Re: [PATCHv6 0/4] Salted build ids via ELF notes

2018-07-08 Thread Masahiro Yamada
hanged, 47 insertions(+) > create mode 100644 include/linux/build-salt.h > > -- > 2.17.1 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Best Regards Masahiro Yamada

[PATCH] ARM: add endianness option to LDFLAGS instead of LD

2018-07-08 Thread Masahiro Yamada
#x27;LD' in arch Makefile depending on CONFIG_CPU_BIG_ENDIAN, this would end up with circular dependency between Makefile and Kconfig. Signed-off-by: Masahiro Yamada --- KernelVersion: v4.18-rc4 arch/arm/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/ar

Re: 4.17.x won't boot due to "x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G"

2018-07-09 Thread Masahiro Yamada
2018-07-09 19:10 GMT+09:00 Kirill A. Shutemov : > On Sat, Jul 07, 2018 at 10:21:47AM +0900, Masahiro Yamada wrote: >> 2018-07-07 1:29 GMT+09:00 Kirill A. Shutemov : >> > On Fri, Jul 06, 2018 at 11:13:02PM +0900, Masahiro Yamada wrote: >> >> >> LDFLAGS is for

[PATCH] x86/build: remove code effective only for GCC older than 4.0

2018-07-09 Thread Masahiro Yamada
Commit e501ce957a78 ("x86: Force asm-goto") bumped the minimum GCC version to 4.5 for building the x86 kernel. arch/x86/Makefile no longer needs to take care of older GCC versions. Signed-off-by: Masahiro Yamada --- arch/x86/Makefile | 5 - 1 file changed, 5 deletions(-) di

Re: [PATCH] objtool: move libelf detection to Kconfig from Makefile

2018-07-09 Thread Masahiro Yamada
2018-07-10 4:21 GMT+09:00 Josh Poimboeuf : > On Sun, Jul 08, 2018 at 06:59:42PM +0900, Masahiro Yamada wrote: >> Currently, users are allowed to enable STACK_VALIDATION regardless >> of the compiler capability. The top-level Makefile warns or breaks >> the build if it tu

[PATCH v2] objtool: move libelf detection to Kconfig from Makefile

2018-07-09 Thread Masahiro Yamada
compiler can build the objtool. The ugly check in the Makefile will go away. Signed-off-by: Masahiro Yamada Acked-by: Josh Poimboeuf --- Changes in v2: - Move package information to help of STACK_VALIDATION Makefile | 14 +- arch/x86/Kconfig | 2 +- arch/x86

Re: [PATCH v2] objtool: move libelf detection to Kconfig from Makefile

2018-07-09 Thread Masahiro Yamada
Hi. 2018-07-10 11:29 GMT+09:00 Josh Poimboeuf : > On Tue, Jul 10, 2018 at 10:35:16AM +0900, Masahiro Yamada wrote: >> Currently, users are allowed to enable STACK_VALIDATION regardless >> of the compiler capability. The top-level Makefile warns or breaks >> the build if

Re: [PATCH 4/9] kconfig: include common Kconfig files from top-level Kconfig

2018-07-11 Thread Masahiro Yamada
ndif > > -source "arch/sh/mm/Kconfig" I noticed at least sh is broken because "arch/sh/mm/Kconfig" is no longer included by anyone. I am not doing further tests. Please test *ALL* architectures. If possible, matrix tests (arch, config-target), where arch = arm, arm64, ... config-target = allyesconfig, allnoconfig, alldefconfig, ... Note: scripts/diffconf is helpful. -- Best Regards Masahiro Yamada

Re: [PATCH] arm: dts: socfpga: denali needs nand_x_clk too

2018-06-25 Thread Masahiro Yamada
2018-06-25 23:55 GMT+09:00 Boris Brezillon : > On Mon, 25 Jun 2018 09:50:18 -0500 > Dinh Nguyen wrote: > >> On 06/22/2018 10:58 AM, Richard Weinberger wrote: >> > Masahiro, >> > >> > Am Freitag, 22. Juni 2018, 16:37:21 CEST schrieb Masahiro Yamada: >

Re: [PATCH] arm: dts: socfpga: denali needs nand_x_clk too

2018-06-26 Thread Masahiro Yamada
2018-06-27 3:09 GMT+09:00 Miquel Raynal : > Hi Masahiro, > > On Tue, 26 Jun 2018 11:38:21 +0900, Masahiro Yamada > wrote: > >> 2018-06-25 23:55 GMT+09:00 Boris Brezillon : >> > On Mon, 25 Jun 2018 09:50:18 -0500 >> > Dinh Nguyen wrote: >> > >&g

Re: [GIT PULL] ARM: uniphier: fixes for v4.18

2018-06-26 Thread Masahiro Yamada
Hi Olof, 2018-06-27 2:42 GMT+09:00 Olof Johansson : > Hi, > > On Mon, Jun 25, 2018 at 11:13:04PM +0900, Masahiro Yamada wrote: >> Hi Arnd, Olof, >> >> Please pull some fixes of ARM UniPhier platform. >> >> >> >> The following changes si

Re: [PATCH 4/5] kbuild: disable KBUILD_MODNAME when building for mod.a

2018-06-26 Thread Masahiro Yamada
) > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Best Regards Masahiro Yamada

Re: [PATCH] kbuild: reword help of LD_DEAD_CODE_DATA_ELIMINATION

2018-06-27 Thread Masahiro Yamada
2018-06-24 1:41 GMT+09:00 Masahiro Yamada : > Since commit 5d20ee3192a5 ("kbuild: Allow LD_DEAD_CODE_DATA_ELIMINATION > to be selectable if enabled"), HAVE_LD_DEAD_CODE_DATA_ELIMINATION is > supposed to be selected by architectures that are capable of t

Re: [PATCH v2 1/3] kbuild: use 'include' directive to load auto.conf from top Makefile

2018-06-28 Thread Masahiro Yamada
patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Masahiro-Yamada/kbuild-use-include-directive-to-load-auto-conf-from-top-Makefile/20180623-220114 > base: > https://git.kernel.or

Re: [PATCHv4 3/3] x86: Add build salt to the vDSO and kernel linker scripts

2018-06-28 Thread Masahiro Yamada
t; Acked-by: Ingo Molnar >> >> What is the upstream merge plan for this series? kbuild tree? >> >> Thanks, >> >> Ingo >> > > There was an alternate proposal that requires slightly fewer > changes that needs to be cleaned up and submitted. I do > think the plan is for the series to eventually go through > the kbuild tree. Yes. V5 is welcome. Thanks. -- Best Regards Masahiro Yamada

Re: [PATCH v3 0/4] kconfig: refactor package checks for GUI frontends

2018-05-24 Thread Masahiro Yamada
2018-05-22 16:22 GMT+09:00 Masahiro Yamada : > > Kconfig supports 4 GUI frontends. > Each of them needs some support packages, but checks them differently: > > qconf, gconf: check packages in Makefile (pkg-config is required) > mconf: lxdialog/check-lxdialog.sh > ncon

Re: [RFC PATCH 1/1] kconfig: drop localization support

2018-05-24 Thread Masahiro Yamada
.moc -*.mo # # configuration programs .mo is no longer generated. It was added by commit c26dd719a5b9d94d12211f2d101bd7dffb7f9f1f Please double-check if it is OK. -- Best Regards Masahiro Yamada

Re: [PATCH v2] kbuild: check for pkg-config on make {menu,n,g,x}config

2018-05-24 Thread Masahiro Yamada
Randy, 2018-05-20 7:42 GMT+09:00 Randy Dunlap : > On 05/17/18 22:10, Masahiro Yamada wrote: >> Hi Randy, >> >> 2018-04-07 6:37 GMT+09:00 Randy Dunlap : >>> On 03/14/2018 10:50 PM, Masahiro Yamada wrote: >>>> 2018-03-13 11:30 GMT+09:00 Randy Dunlap : >

[GIT PULL] Kbuild fixes for v4.17-rc7

2018-05-27 Thread Masahiro Yamada
Makefile | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) -- Best Regards Masahiro Yamada

Re: [PATCH v3 02/16] mtd: rawnand: denali: use helper function for ecc setup

2018-05-27 Thread Masahiro Yamada
2018-05-25 21:21 GMT+09:00 Abhishek Sahu : > Use the NAND core helper function nand_ecc_choose_conf to tune > the ECC parameters instead of the function locally defined. > > CC: Masahiro Yamada You can replace the CC with my Acked-by: Masahiro Yamada > Acked-by: Miquel Rayna

Re: [PATCH 0/8] kbuild: remove CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX and clean-up code

2018-05-13 Thread Masahiro Yamada
2018-05-09 16:23 GMT+09:00 Masahiro Yamada : > > I got acknowledge to remove CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX entirely. > (https://lkml.org/lkml/2018/5/5/148) > > Several tools can be cleaned-up. > > Removing the CONFIG option makes VMLINUX_SYMBOL() no-op, > so this

Re: [PATCH 1/4] modpost: pass struct elf_info pointer to get_modinfo()

2018-05-13 Thread Masahiro Yamada
2018-05-09 18:50 GMT+09:00 Masahiro Yamada : > get_(next_)modinfo takes a pointer and length pair of the .modinfo > section. Instead, pass struct elf_info pointer to reduce the number > of function arguments. > > Signed-off-by: Masahiro Yamada > --- Series, applied to linux-kb

[PATCH 1/2] kbuild: do not update config when running install targets

2018-06-16 Thread Masahiro Yamada
uration, but do not want to update it Install targets except headers_install, and external modules are the cases. Signed-off-by: Masahiro Yamada --- Makefile | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 8a26b59..f934

[PATCH 2/2] kbuild: do not update config for 'make kernelrelease'

2018-06-16 Thread Masahiro Yamada
release' in the source tree configured for cross-compilation. Signed-off-by: Masahiro Yamada --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f934a81..f4fecda 100644 --- a/Makefile +++ b/Makefile @@ -225,7 +225,8 @@ no-dot-config-target

Re: [PATCH v4 1/9] Makefile: Prepare for using macros for inline asm

2018-06-16 Thread Masahiro Yamada
le-offsets.h modpost is an exceptional hostprogam - it depends on target compiler, which makes the build order complicated. I want to compile under scripts/ only with $(HOSTCC). I am planning to change modpost target-independent by detecting 32/64 bit, little/big-endianness run-time. Then, empty.c will go away. In the meanwhile, CFLAGS_REMOVE_ will do as a workaround. -- Best Regards Masahiro Yamada

Re: [PATCH v4 1/9] Makefile: Prepare for using macros for inline asm

2018-06-16 Thread Masahiro Yamada
el macros > > could be modified to specify the exact filename so this indirection is not > needed. Yes, it could work. Actually, two styles co-exist in arch/x86/Makefile. (archprepare vs archscripts) -- Best Regards Masahiro Yamada

Re: [PATCH v3 3/3] mtd: rawnand: denali: optimize timing parameters for data interface

2018-06-18 Thread Masahiro Yamada
Hi Richard, 2018-06-18 16:22 GMT+09:00 Richard Weinberger : > Am Freitag, 15. Juni 2018, 03:18:52 CEST schrieb Masahiro Yamada: >> This commit improves the ->setup_data_interface() hook. >> >> The denali_setup_data_interface() needs the frequency of clk_x >>

Re: [PATCH v3 1/3] mtd: rawnand: denali_dt: add more clocks based on IP datasheet

2018-06-19 Thread Masahiro Yamada
Hi Boris, 2018-06-18 16:46 GMT+09:00 Boris Brezillon : > On Mon, 18 Jun 2018 09:09:02 +0200 > Richard Weinberger wrote: > >> Am Freitag, 15. Juni 2018, 03:18:50 CEST schrieb Masahiro Yamada: >> > According to the Denali User's Guide, this IP needs three clocks: >

[PATCH 0/2] x86/build: clean-up 'archprepare' and 'archclean'

2018-06-19 Thread Masahiro Yamada
Clean-up from the build system point of view. The archpreapre and archclean for the x86 purgatory are unnecessary. Kbuild can handle them in a normal way. Masahiro Yamada (2): Revert "kexec: purgatory: add clean-up for purgatory directory" x86/build: remove unnecessary prepa

[PATCH 1/2] Revert "kexec: purgatory: add clean-up for purgatory directory"

2018-06-19 Thread Masahiro Yamada
m point of view. arch/x86/Makefile adds 'arch/x86' to core-y. Hence 'make clean' descends like this: arch/x86/Kbuild -> arch/x86/purgatory/Makefile Signed-off-by: Masahiro Yamada --- arch/x86/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/M

[PATCH 2/2] x86/build: remove unnecessary preparation for purgatory

2018-06-19 Thread Masahiro Yamada
kexec-purgatory.c is properly generated when Kbuild descend into the arch/x86/purgatory/. The archprepare target is redundant. Signed-off-by: Masahiro Yamada --- arch/x86/Makefile | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 246a979

Re: [reset-control] How to initialize hardware state with the shared reset line?

2018-05-29 Thread Masahiro Yamada
2018-05-25 5:09 GMT+09:00 Martin Blumenstingl : > Hi Philipp, > > On Tue, May 22, 2018 at 4:04 PM, Philipp Zabel wrote: >> Hi Martin, >> >> On Mon, 2018-05-21 at 12:40 +0200, Martin Blumenstingl wrote: >>> Hello, >>> >>> On Mon, May 21,

Re: [PATCH v3 01/16] mtd: rawnand: helper function for setting up ECC configuration

2018-05-30 Thread Masahiro Yamada
2018-05-30 15:21 GMT+09:00 Abhishek Sahu : > On 2018-05-30 05:58, Masahiro Yamada wrote: >> >> Hi. >> >> 2018-05-30 4:30 GMT+09:00 Boris Brezillon : >>> >>> On Sat, 26 May 2018 10:42:47 +0200 >>> Miquel Raynal wrote: >>> >>&

Re: linux-next: build warnings after merge of the kbuild tree

2018-05-30 Thread Masahiro Yamada
se warnings to appear ... nothing in those > functions looks too bad. This has been triggered by the following commit: commit 0e461945f3504e09b8ecf947b6398adce1287a28 Author: Masahiro Yamada Date: Mon May 28 18:22:07 2018 +0900 gcc-plugins: allow to enable GCC_PLUGINS for COMPILE_TEST

Re: linux-next: build warnings after merge of the kbuild tree

2018-05-31 Thread Masahiro Yamada
2018-05-31 12:53 GMT+09:00 Kees Cook : > On Wed, May 30, 2018 at 6:26 PM, Kees Cook wrote: >> On Wed, May 30, 2018 at 6:12 PM, Masahiro Yamada >> wrote: >>> Hi. >>> (+CC Kees) >>> >>> 2018-05-31 7:40 GMT+09:00 Stephen Rothwell : >>>>

Re: [PATCH 05/15] arm: dts: uniphier: Add missing cooling device properties for CPUs

2018-05-31 Thread Masahiro Yamada
ells = <2>; > }; > }; > > -- > 2.15.0.194.g9af6a3dea062 > > -- > To unsubscribe from this list: send the line "unsubscribe devicetree" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Best Regards Masahiro Yamada

Re: [PATCH 6/6] arm64: dts: socionext: Add missing cooling device properties for CPUs

2018-05-31 Thread Masahiro Yamada
2>; > }; > > cpu2: cpu@100 { > @@ -77,6 +78,7 @@ > clocks = <&sys_clk 33>; > enable-method = "psci"; > operating-points-v2 = <&cluster1_opp>; > + #cooling-cells = <2>; > }; > }; > > -- > 2.15.0.194.g9af6a3dea062 > -- Best Regards Masahiro Yamada

[PATCH] gcc-plugins: disable GCC_PLUGIN_STRUCTLEAK_BYREF_ALL for COMPILE_TEST

2018-05-31 Thread Masahiro Yamada
size of 2488 bytes is larger than 2048 bytes [-Wframe-larger-than=] } ^ It looks like GCC_PLUGIN_STRUCTLEAK_BYREF_ALL is causing this. Add "depends on !COMPILE_TEST" to not dirturb the compile test. Reported-by: Stephen Rothwell Suggested-by: Kees Cook Signed-off-by: Masah

[PATCH] fixup! gcc-plugins: test plugin support in Kconfig and clean up Makefile

2018-06-01 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- arch/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/Kconfig b/arch/Kconfig index e5ff804..3f93769 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -405,7 +405,7 @@ preferred-plugin-hostcc := $(if-success,[ $(gcc-version) -ge

Re: [PATCH v5 00/31] kconfig: move compiler capability tests to Kconfig

2018-06-01 Thread Masahiro Yamada
2018-06-01 17:31 GMT+09:00 Arnd Bergmann : > On Wed, May 30, 2018 at 2:38 AM, Masahiro Yamada > wrote: >> 2018-05-28 21:23 GMT+09:00 Masahiro Yamada : >>> 2018-05-28 18:21 GMT+09:00 Masahiro Yamada : > >> >> I pushed this series to the for-next branch. >>

Re: Kconfig warnings with GCC 8.1.0

2018-06-02 Thread Masahiro Yamada
~~~ > HOSTCC scripts/kconfig/conf.o > HOSTLD scripts/kconfig/conf > > I am not sure if this is a false positive or not, otherwise I would have > sent a patch. I tested on the latest linux-next with Masahiro's for-next > branch, currently at commit 57282f7da50c ("Merge branch 'kconfig' into > for-next"). I think these are legitimate warnings. A patch is welcome. -- Best Regards Masahiro Yamada

Re: [PATCH 0/7] MIPS: boot: fix various problems in arch/mips/boot/Makefile

2018-06-02 Thread Masahiro Yamada
Hi MIPS maintainers, 2018-04-16 23:47 GMT+09:00 Masahiro Yamada : > > When I was trying to fix commit 0f9da844d877 in a more correct way, > I found various problems in arch/mips/boot/Makefile. > > ITS is always rebuilt when you rebuild the kernel without touching > anything. Ma

[PATCH] scripts/dtc: consolidate include path options in Makefile

2018-07-03 Thread Masahiro Yamada
include check-in headers from generated C files. Thus, I added it only to dtc-lexer.lex.o and dtc-parser.tab.o . Signed-off-by: Masahiro Yamada --- scripts/dtc/Makefile | 18 -- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/scripts/dtc/Makefile b/scripts/dtc/Makefile

Re: [PATCHv5 0/4] Salted build ids via ELF notes

2018-07-03 Thread Masahiro Yamada
plain the background of this work, but the cover letter cannot be committed in git. Could you add this in 1/4 please? If I read only the simple log in 1/4, I would wonder why it is useful... > v5 uses the approach suggested by Masahiro Yamada which uses the > existing ELF not

<    5   6   7   8   9   10   11   12   13   14   >