Re: [PATCH] stack-protector: Fix test with 32-bit userland and CONFIG_64BIT=y

2018-06-23 Thread Masahiro Yamada
har X[200]; return 3; }" | $* -S -x c -c -m64 -O0 > -mcmodel=kernel -fno-PIE -fstack-protector - -o - 2> /dev/null | grep -q "%gs" > -- > 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

Re: [PATCH] kconfig: document Kconfig source file comments

2018-06-23 Thread Masahiro Yamada
line > +is a comment. > + > > Kconfig hints > - > > > -- > 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 v2 2/3] kbuild: do not update config when running install targets

2018-06-23 Thread Masahiro Yamada
ts except headers_install, and external modules are the cases. Signed-off-by: Masahiro Yamada --- Changes in v2: None Makefile | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 413c2ed..f1e06fba 100644 --- a/Makefile +++ b/Makefi

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

2018-06-23 Thread Masahiro Yamada
t to 'make kernelrelease'. Signed-off-by: Masahiro Yamada --- Changes in v2: None Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f1e06fba..bb7394a 100644 --- a/Makefile +++ b/Makefile @@ -225,7 +225,8 @@ no-dot-config-target

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

2018-06-23 Thread Masahiro Yamada
ues building; /bin/false let the creation of 'include/config/auto.config' fail, but Make can ignore the error since it is included by the '-include' directive. Use the 'include' directive instead. This allows the /bin/false to correctly terminate the whole build pr

[PATCH] mtd: replace VMLINUX_SYMBOL_STR() with string literal

2018-06-23 Thread Masahiro Yamada
With the special case handling for Blackfin and Metag was removed by commit 94e58e0ac312 ("export.h: remove code for prefixing symbols with underscore"), VMLINUX_SYMBOL_STR() can be replaced with string literal. Signed-off-by: Masahiro Yamada --- drivers/mtd/chips/gen_probe.c | 4 ++

[PATCH] module: replace VMLINUX_SYMBOL_STR() with __stringify() or string literal

2018-06-23 Thread Masahiro Yamada
SYMBOL_STR(). Signed-off-by: Masahiro Yamada --- include/linux/module.h | 4 ++-- kernel/module.c| 6 ++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/include/linux/module.h b/include/linux/module.h index d44df9b..f807f15 100644 --- a/include/linux/module.h +++ b/inc

[PATCH] kbuild: reword help of LD_DEAD_CODE_DATA_ELIMINATION

2018-06-23 Thread Masahiro Yamada
Update the help message. Signed-off-by: Masahiro Yamada --- init/Kconfig | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/init/Kconfig b/init/Kconfig index fde3d09..041f3a0 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1051,10 +1051,9 @@ config LD_DEAD_CODE_D

Re: [GIT PULL 2/2] Kconfig updates for v4.18

2018-06-23 Thread Masahiro Yamada
Hi. 2018-06-18 22:25 GMT+09:00 Eric W. Biederman : > Masahiro Yamada writes: > >> - drop CONFIG_CROSS_COMPILE support > > aka >> commit f1089c92da791034af73478159626007cba7f092 >> Author: Masahiro Yamada >> Date: Mon May 28 18:21:39 2018 +0900 >>

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

2018-06-24 Thread Masahiro Yamada
your 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.ker

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

2018-06-24 Thread Masahiro Yamada
hen select maximum ECC strength which can be fit with >available OOB size. > > This patch introduces nand_ecc_choose_conf function which calls the > required helper functions for the above logic. The drivers can use > this single function instead of calling the 3 helper functions &g

[PATCH 2/2] arm64: uniphier: select RESET_CONTROLLER

2018-06-24 Thread Masahiro Yamada
The UniPhier platform highly relies on the reset controller. Select RESET_CONTROLLER to enable it forcibly. Signed-off-by: Masahiro Yamada --- arch/arm64/Kconfig.platforms | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index

[PATCH 1/2] ARM: uniphier: select RESET_CONTROLLER

2018-06-24 Thread Masahiro Yamada
The UniPhier platform highly relies on the reset controller. Select RESET_CONTROLLER to enable it forcibly. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-uniphier/Kconfig b/arch/arm/mach-uniphier/Kconfig

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

2018-06-25 Thread Masahiro Yamada
cooling device properties for CPUS - fix widget name of headphone - select RESET_CONTROLLER Katsuhiro Suzuki (1): arm64: dts: uniphier: fix widget name of headphone for LD11/LD20 boards Masahiro Yamada (2): ARM

Re: [PATCH] trace: fix SKIP_STACK_VALIDATION=1 build

2018-06-25 Thread Masahiro Yamada
2018-06-25 23:16 GMT+09:00 Steven Rostedt : > On Sat, 23 Jun 2018 02:42:26 +0900 > Masahiro Yamada wrote: > >> 2018-06-09 6:47 GMT+09:00 Greg Thelen : >> > Non gcc-5 builds with CONFIG_STACK_VALIDATION=y and >> > SKIP_STACK_VALIDATION=1 fail. >> > Exampl

Re: [PATCH v2 1/2] arm64: dts: uniphier: add headphone detect gpio for LD20 global board

2018-06-25 Thread Masahiro Yamada
t; spdif-out { > -- > 2.18.0 > > -- > 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

[PATCH] powerpc: remove pre-build checks for old GCC versions

2018-08-26 Thread Masahiro Yamada
Commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6") bumped the minimum GCC version to 4.6 for all architectures. The GCC version checks in arch/powerpc/Makefile are obsolete now. Signed-off-by: Masahiro Yamada --- arch/powerpc/Mak

[PATCH] parisc: remove check for minimum required GCC version

2018-08-26 Thread Masahiro Yamada
Commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6") bumped the minimum GCC version to 4.6 for all architectures. The version check in arch/parisc/Makefile is obsolete now. Signed-off-by: Masahiro Yamada --- arch/parisc/Makefile | 9 - 1 file changed, 9

[PATCH] reiserfs: remove workaround code for GCC 3.x

2018-08-26 Thread Masahiro Yamada
Commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6") bumped the minimum GCC version to 4.6 for all architectures. The workaround code in fs/reiserfs/Makefile is obsolete now. Signed-off-by: Masahiro Yamada --- fs/reiserfs/Makefile | 9 - 1 file changed, 9

[PATCH] arc: remove redundant GCC version checks

2018-08-26 Thread Masahiro Yamada
Commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6") bumped the minimum GCC version to 4.6 for all architectures. With GCC >= 4.6 assumed, 'upto_gcc44' is empty, 'atleast_gcc44' is y. Signed-off-by: Masahiro Yamada --- arch/arc/Makefile |

[PATCH] objtool: remove workaround for unreachable warnings from old GCC

2018-08-26 Thread Masahiro Yamada
lder. Signed-off-by: Masahiro Yamada --- scripts/Makefile.build | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 1c48572..5a2d1c9 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -246,8 +246,6 @@ objtool_args += -

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

2018-08-26 Thread Masahiro Yamada
Commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6") bumped the minimum GCC version to 4.6 for all architectures. '$(call cc-option,-fno-unit-at-a-time)' is now dead code since '$(cc-version) -lt 0400' is always false. Signed-off-by: Masahiro Yama

[PATCH] x86/build: remove jump label quirk for GCC older than 4.5.2

2018-08-26 Thread Masahiro Yamada
Commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6") bumped the minimum GCC version to 4.6 for all architectures. Remove the workaround code. It was the only user of cc-if-fullversion. Remove the macro as well. Signed-off-by: Masahiro Yamada --- arch/x86/Makefile

[PATCH v2] mtd: rawnand: denali: do not pass zero maxchips to nand_scan()

2018-08-27 Thread Masahiro Yamada
ero. In this case, there is no point for calling nand_scan() because we know it will fail for sure. Let's make the probe function fail immediately. Signed-off-by: Masahiro Yamada --- Changes in v2: - Return -ENODEV immediately if no chip was found on the board for some reasons. Th

Re: [PATCH v2] compiler.h: give up __compiletime_assert_fallback()

2018-08-28 Thread Masahiro Yamada
e, > # and causing a panic. Since this behavior only affects ppc32, this ifeq > # will work around it. If any other architecture displays this behavior, > # add it here. > ccflags-$(CONFIG_PPC32) := $(call cc-ifversion, -lt, 0400, -O1) > > Arnd Recently, I sent out patches to remove redundant GCC version checks, including this one. https://lore.kernel.org/patchwork/patch/977808/ I do not know who is maintaining reiserfs, though. -- Best Regards Masahiro Yamada

Re: [PATCH v2 0/3] Add SPI dts node for UniPhier SoCs

2018-08-28 Thread Masahiro Yamada
anged, 185 insertions(+) > > -- > 2.7.4 > > -- > 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 1/2] ARM: uniphier: dts: add more clocks to Denali NAND controller node

2018-08-28 Thread Masahiro Yamada
2018-07-20 17:50 GMT+09:00 Masahiro Yamada : > Catch up with the new binding of the Denali IP where three clocks, > "nand", "nand_x", "ecc" are required. > > For UniPhier SoCs, the "nand_x" and "ecc" are tied up because they >

Re: [PATCH v3] modules_install: make missing $DEPMOD a warning instead of an error

2018-08-28 Thread Masahiro Yamada
Hi Randy 2018-08-29 4:55 GMT+09:00 Randy Dunlap : > On 08/23/2018 09:20 PM, Masahiro Yamada wrote: >> Hi Randy, >> >> >> 2018-08-24 3:13 GMT+09:00 Randy Dunlap : >>> From: Randy Dunlap >>> >>> When $DEPMOD is not found, only print a warning

Re: [PATCH] kbuild: add Map option to save vmlinux linker map file(s)

2018-08-08 Thread Masahiro Yamada
gets] Save vmlinux linker map file(s)' > @echo '' > @echo 'Execute "make" or "make all" to build all targets marked with > [*] ' > @echo 'For further info see the ./README file' > -- > 2.18.0.13.gd42ae10 > > -- > 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 1/1] kbuild: allow alternate src for target's implicit prerequisite

2018-08-08 Thread Masahiro Yamada
+# e.g. 'SRCDIR_cmdline.o := lib' This does not work for single targets. 'make foo/bar/cmdline.o' works, but 'make foo/bar/cmdline.i' does not. > +.SECONDEXPANSION: > +srcdir := $$(if $$(SRCDIR_$$(@F)),$$(SRCDIR_$$(@F)),$(src)) > -- Best Regards Masahiro Yamada

[PATCH] kbuild: remove deprecated host-progs variable

2018-08-08 Thread Masahiro Yamada
The host-progs has been supported as an alias of hostprogs-y at least since the beginning of Git era, with the clear prompt: Usage of host-progs is deprecated. Please replace with hostprogs-y! Enough time for the migration has passed. Signed-off-by: Masahiro Yamada --- arch/xtensa/boot

[PATCH] kconfig: fix the rule of mainmenu_stmt symbol

2018-08-08 Thread Masahiro Yamada
cause they are reduced to common_stmt. Signed-off-by: Masahiro Yamada --- scripts/kconfig/zconf.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/zconf.y index 4b68272..95a4fd3 100644 --- a/scripts/kconfig/zconf.y +++ b/scrip

Re: [PATCH v7 02/10] Makefile: Prepare for using macros for inline asm

2018-08-09 Thread Masahiro Yamada
x86 will use it. > > Cc: Sam Ravnborg > Cc: Masahiro Yamada I added this in the previous version. Acked-by: Masahiro Yamada When you send a new version, please make sure to add Acked-by/Reviewed-by reviewers have given. Thanks. > Cc: Michal Marek > Cc: Thomas Gleixner

[PATCH v2] pinctrl: uniphier: drop meaningless pin from SD1 pin-mux of Pro4

2018-08-10 Thread Masahiro Yamada
port. Then, they needed to shrink the silicon die size, and gave up the UHS, but forgot to remove the pin assignment. Signed-off-by: Masahiro Yamada --- Changes in v2: - rebase onto linux-pinctrl/devel branch drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c | 5 ++--- 1 file changed, 2

Re: [PATCH v2] coccicheck: return proper error code on fail

2018-08-13 Thread Masahiro Yamada
> echo $@ >>$DEBUG_FILE >> $@ 2>>$DEBUG_FILE >> - if [[ $? -ne 0 ]]; then >> + err=$? >> + if [[ $err -ne 0 ]]; then >> echo "coccicheck failed" >> - exit $? >> + exit $err >> fi >> } >> >> -- >> 2.17.1 >> >> -- Best Regards Masahiro Yamada

Re: [PATCH] gcc-plugins: require GCC

2018-08-13 Thread Masahiro Yamada
gcc-plugin.sh This shell script should exit 0 only when GCC plugin is supported. Kees? -- Best Regards Masahiro Yamada

[PATCH 1/2] kconfig: remove unused sym_get_env_prop() function

2018-08-13 Thread Masahiro Yamada
This function is unused since commit 104daea149c4 ("kconfig: reference environment variables directly and remove 'option env='"). Signed-off-by: Masahiro Yamada --- scripts/kconfig/lkc.h| 1 - scripts/kconfig/symbol.c | 9 - 2 files changed, 10 deletions(-)

[PATCH 2/2] kconfig: remove P_ENV property type

2018-08-13 Thread Masahiro Yamada
This property is not set by anyone since commit 104daea149c4 ("kconfig: reference environment variables directly and remove 'option env='"). Signed-off-by: Masahiro Yamada --- scripts/kconfig/expr.h | 1 - scripts/kconfig/qconf.cc | 1 - scripts/kconfig/symbol.c | 2 --

Re: [PATCH] bitfield: avoid gcc-8 -Wint-in-bool-context warning

2018-08-13 Thread Masahiro Yamada
_pfx "mask is not constant"); \ > - BUILD_BUG_ON_MSG(!(_mask), _pfx "mask is zero");\ > + BUILD_BUG_ON_MSG((_mask) == 0, _pfx "mask is zero");\ > BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ > ~((_mask) >> __bf_shf(_mask)) & (_val) : 0, \ > _pfx "value too large for the field"); \ > -- > 2.18.0 > -- Best Regards Masahiro Yamada

Re: [PATCH] gcc-plugins: require GCC

2018-08-13 Thread Masahiro Yamada
2018-08-14 6:29 GMT+09:00 Stefan Agner : > On 13.08.2018 22:18, Kees Cook wrote: >> On Mon, Aug 13, 2018 at 1:10 PM, Kees Cook wrote: >>> On Mon, Aug 13, 2018 at 12:38 AM, Masahiro Yamada >>> wrote: >>>> 2018-08-11 18:48 GMT+09:00 Stefan Agner : >>&g

Re: [PATCH] Support mksh as /bin/sh.

2018-08-13 Thread Masahiro Yamada
-12,7 +12,7 @@ >> >> compiler="$*" >> >> -if !( $compiler --version | grep -q clang) ; then >> +if ! ( $compiler --version | grep -q clang) ; then >> echo 0 >> exit 1 >> fi >> -- >> 2.18.0 >> > > > > -- > Kees Cook > Pixel Security -- Best Regards Masahiro Yamada

Re: linux-next: Signed-off-by missing for commit in the kbuild tree

2018-08-13 Thread Masahiro Yamada
t; -- > Cheers, > Stephen Rothwell -- Best Regards Masahiro Yamada

Re: [PATCH 1/2] kconfig: remove unused sym_get_env_prop() function

2018-08-13 Thread Masahiro Yamada
2018-08-14 2:20 GMT+09:00 Sam Ravnborg : > On Tue, Aug 14, 2018 at 01:48:38AM +0900, Masahiro Yamada wrote: >> This function is unused since commit 104daea149c4 ("kconfig: reference >> environment variables directly and remove 'option env='"). >> >> S

Re: [PATCH] kconfig: fix the rule of mainmenu_stmt symbol

2018-08-13 Thread Masahiro Yamada
2018-08-09 15:47 GMT+09:00 Masahiro Yamada : > The rule of mainmenu_stmt does not have debug print of zconf_lineno(), > but if it had, it would print a wrong line number for the same reason > as commit b2d00d7c61c8 ("kconfig: fix line numbers for if-entries in > menu tree").

[PATCH 1/2] kconfig: report recursive dependency involving 'imply'

2018-08-13 Thread Masahiro Yamada
_expr_deps() should recurse to not only sym->rev_dep.expr but also sym->implied.expr . At this moment, sym_check_print_recursive() cannot distinguish 'select' and 'imply' since it does not know the precise context where the recursive dependency is hit. This will be so

[PATCH 2/2] kconfig: improve the recursive dependency report

2018-08-13 Thread Masahiro Yamada
s commit changes the message for the latter case like this: symbol B depends on A symbol A prompt is visible depending on B Also, 'select' and 'imply' are distinguished. Signed-off-by: Masahiro Yamada --- scripts/kconfig/symbol.c | 48 +++

Re: [PATCH] bitfield: avoid gcc-8 -Wint-in-bool-context warning

2018-08-14 Thread Masahiro Yamada
2018-08-14 16:56 GMT+09:00 Johannes Berg : > On Tue, 2018-08-14 at 08:57 +0900, Masahiro Yamada wrote: >> 2018-08-14 7:09 GMT+09:00 Arnd Bergmann : >> > Passing an enum into FIELD_GET() produces a long but harmless warning on >> > newer compilers: >> > >

[PATCH] compiler-gcc: get back Clang build

2018-08-20 Thread Masahiro Yamada
in order to disable features not supported by Clang. Fixes: cafa0010cd51 ("Raise the minimum required gcc version to 4.6") Signed-off-by: Masahiro Yamada --- include/linux/compiler-gcc.h | 34 -- 1 file changed, 28 insertions(+), 6 deletions(-) diff --g

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

2018-08-21 Thread Masahiro Yamada
Hi Frank, 2018-08-21 14:37 GMT+09:00 Frank Rowand : > On 08/20/18 19:08, Masahiro Yamada wrote: >> Hi Frank, >> >> 2018-08-21 10:31 GMT+09:00 Frank Rowand : >>> On 08/20/18 14:32, Rob Herring wrote: >>>> On Mon, Aug 20, 2018 at 1:55 PM Frank Rowand

[PATCH] mtd: rawnand: denali: do not pass zero maxchips to nand_scan()

2018-08-21 Thread Masahiro Yamada
ove the code that is causing NULL pointer dereference. Now, the maxchips passed to nand_scan() is the maximum number of chip selects supported by the IP (typically 4 or 8). Leave all the chip detection process to nand_scan_ident(). Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/raw/

Re: [PATCH 1/2] dt-bindings: dmaengine: add DT binding for UniPhier MIO DMAC

2018-08-21 Thread Masahiro Yamada
(+CC Rob, DT, LKML) I forgot to CC this to DT community... 2018-08-21 18:30 GMT+09:00 Masahiro Yamada : > The MIO DMAC (Media IO DMA Controller) is used in UniPhier LD4, > Pro4, and sLD8 SoCs. > > Signed-off-by: Masahiro Yamada > --- > > .../devicetree/bindings/dma/uniphi

Re: [PATCH 2/2] dmaengine: uniphier-mdmac: add UniPhier MIO DMAC driver

2018-08-21 Thread Masahiro Yamada
(+CC LKML just in case) 2018-08-21 18:30 GMT+09:00 Masahiro Yamada : > The MIO DMAC (Media IO DMA Controller) is used in UniPhier LD4, > Pro4, and sLD8 SoCs. > > Signed-off-by: Masahiro Yamada > --- > > MAINTAINERS | 1 + > drivers/dma/Kconfig

Re: [RFC PATCH] compiler.h: give up __compiletime_assert_fallback()

2018-08-21 Thread Masahiro Yamada
LD_BUG_ON_MSG should use > _Static_assert, then have fallbacks for gcc < 4.6. > > On Sun, Aug 19, 2018 at 9:14 AM Kees Cook wrote: >> >> On Sat, Aug 18, 2018 at 10:51 PM, Masahiro Yamada >> wrote: >> > __compiletime_assert_fallback() is supposed to stop build

Re: [PATCH] compiler-gcc: get back Clang build

2018-08-21 Thread Masahiro Yamada
2018-08-22 1:33 GMT+09:00 Joe Perches : > On Tue, 2018-08-21 at 15:48 +0900, Masahiro Yamada wrote: >> Commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6") >> missed the fact that is included by Clang >> as well as by GCC. >> >> Clan

Re: [PATCH] compiler-gcc: get back Clang build

2018-08-21 Thread Masahiro Yamada
Hi Joe, 2018-08-21 19:39 GMT+09:00 Joe Perches : > On Tue, 2018-08-21 at 15:48 +0900, Masahiro Yamada wrote: >> Commit cafa0010cd51 ("Raise the minimum required gcc version to 4.6") >> missed the fact that is included by Clang >> as well as by GCC. >&g

[PATCH v2] kbuild: rename LDFLAGS to KBUILD_LDFLAGS

2018-08-22 Thread Masahiro Yamada
UILD_ prefixed variables for the internally appended options, so here is one more conversion to sanitize the naming convention. I did not touch Makefiles under tools/ since the tools build system is a different world. Signed-off-by: Masahiro Yamada Acked-by: Kirill A. Shutemov

[PATCH] kbuild: test dead code/data elimination support in Kconfig

2018-08-22 Thread Masahiro Yamada
This config option should be enabled only when both the compiler and the linker support necessary flags. Add proper dependencies to Kconfig. Signed-off-by: Masahiro Yamada --- Makefile | 8 ++-- init/Kconfig | 2 ++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a

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

2018-08-22 Thread Masahiro Yamada
Hi Frank 2018-08-22 3:02 GMT+09:00 Frank Rowand : > On 08/21/18 00:18, Masahiro Yamada wrote: >> Hi Frank, >> >> >> 2018-08-21 14:37 GMT+09:00 Frank Rowand : >>> On 08/20/18 19:08, Masahiro Yamada wrote: >>>> Hi Frank, >>>> >>&g

Re: [PATCH] include/linux/compiler*.h: make compiler-*.h mutually exclusive

2018-08-22 Thread Masahiro Yamada
finitions into mutually > exclusive headers, do more proper compiler detection, and keep shared > definitions in compiler_types.h. > > Reported-by: Masahiro Yamada > Suggested-by: Eli Friedman > Suggested-by: Joe Perches > Signed-off-by: Nick Desaulniers > --- > arch

Re: [PATCH 1/2] dt-bindings: dmaengine: add DT binding for UniPhier MIO DMAC

2018-08-22 Thread Masahiro Yamada
Hi Jassi, 2018-08-21 19:44 GMT+09:00 Jassi Brar : > On 21 August 2018 at 15:17, Masahiro Yamada > wrote: >> (+CC Rob, DT, LKML) >> >> I forgot to CC this to DT community... >> >> >> 2018-08-21 18:30 GMT+09:00 Masahiro Yamada : >>> The MIO DMA

Re: please revert commit ce8556cca6 "kbuild: verify that $DEPMOD is installed" introduced in v4.18.4.

2018-08-23 Thread Masahiro Yamada
a warning on a host that never runs "make >> modules_install"? >> Can this check be only done when we actually try to install modules? > > > So Nikolaus: how do you provoke this problem that you are reporting? > It's not just a theoretical problem, is i

Re: please revert commit ce8556cca6 "kbuild: verify that $DEPMOD is installed" introduced in v4.18.4.

2018-08-23 Thread Masahiro Yamada
exit 1 'exit 0' is missing here. This shell script would fail, then abort the build process. > ../scripts/depmod.sh: line 44: /sbin/depmod: No such file or directory > make[1]: *** [/home/rdunlap/lnx/lnx-418/Makefile:1244: _modinst_post] Error > 127 > make: *** [Makefile:146: sub-make] Error 2 -- Best Regards Masahiro Yamada

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

2018-08-23 Thread Masahiro Yamada
\ ${1}" - ${LD} ${LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} \ + ${LD} ${KBUILD_LDFLAGS} ${LDFLAGS_vmlinux} -o ${2} \ -T ${lds} ${objects} else objects="-Wl,--whole-archive\ -- Best Regards Masahiro Yamada

Re: microblaze-linux-ld: cannot find sound/soc/jz4740/jz4740-i2s.o: No such file or directory

2018-08-23 Thread Masahiro Yamada
--- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -220,7 +220,7 @@ sub_cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH "$(if $(CONFIG_CPU_BIG_ENDIAN),big,little)" \ "$(if $(CONFIG_64BIT),64,32)" \ "$(OBJDUMP)" "$(OBJCOPY)" "$(CC) $(KBUILD_CFLAGS)" \ - "$(LD)" "$(NM)" "$(RM)" "$(MV)" \ + "$(LD) $(LDFLAGS)" "$(NM)" "$(RM)" "$(MV)" \ "$(if $(part-of-module),1,0)" "$(@)"; recordmcount_source := $(srctree)/scripts/recordmcount.pl endif # BUILD_C_RECORDMCOUNT -- Best Regards Masahiro Yamada

[PATCH v3 1/2] kbuild: pass LDFLAGS to recordmcount.pl

2018-08-23 Thread Masahiro Yamada
Since commit 0fbe9a245c60 ("microblaze: add endianness options to LDFLAGS instead of LD"), you cannot build the kernel for microblaze with CONFIG_DYNAMIC_FTRACE. Fixes: 0fbe9a245c60 ("microblaze: add endianness options to LDFLAGS instead of LD") Signed-off-by: Masahiro Yamada

[PATCH v3 2/2] kbuild: rename LDFLAGS to KBUILD_LDFLAGS

2018-08-23 Thread Masahiro Yamada
UILD_ prefixed variables for the internally appended options, so here is one more conversion to sanitize the naming convention. I did not touch Makefiles under tools/ since the tools build system is a different world. Signed-off-by: Masahiro Yamada Acked-by: Kirill A. Shutemov Reviewed-by: Palmer

Re: [PATCH 1/2] dt-bindings: dmaengine: add DT binding for UniPhier MIO DMAC

2018-08-23 Thread Masahiro Yamada
Hi Rob, Jassi, 2018-08-23 23:12 GMT+09:00 Jassi Brar : > On 23 August 2018 at 18:51, Rob Herring wrote: >> On Thu, Aug 23, 2018 at 12:38 AM Jassi Brar >> wrote: >>> On 23 August 2018 at 10:48, Masahiro Yamada > >>> > >>> > If desired, I

[PATCH v2 1/2] dt-bindings: dmaengine: add DT binding for UniPhier MIO DMAC

2018-08-23 Thread Masahiro Yamada
The MIO DMAC (Media IO DMA Controller) is used in UniPhier LD4, Pro4, and sLD8 SoCs. Signed-off-by: Masahiro Yamada --- Changes in v2: - Rename the node "dmac" to "dma-controller" - Remove dma-channels property .../devicetree/bindings/dma/uniphie

[PATCH v2 2/2] dmaengine: uniphier-mdmac: add UniPhier MIO DMAC driver

2018-08-23 Thread Masahiro Yamada
The MIO DMAC (Media IO DMA Controller) is used in UniPhier LD4, Pro4, and sLD8 SoCs. Signed-off-by: Masahiro Yamada --- Changes in v2: - Use platform_irq_count() to get the number of channels MAINTAINERS | 1 + drivers/dma/Kconfig | 11 + drivers/dma/Makefile

[PATCH v2 0/2] dmaengine: add UniPhier MIO DMAC driver

2018-08-23 Thread Masahiro Yamada
1/2: DT-binding 2/2: driver Masahiro Yamada (2): dt-bindings: dmaengine: add DT binding for UniPhier MIO DMAC dmaengine: uniphier-mdmac: add UniPhier MIO DMAC driver .../devicetree/bindings/dma/uniphier-mio-dmac.txt | 25 ++ MAINTAINERS| 1

Re: [PATCH v3] modules_install: make missing $DEPMOD a warning instead of an error

2018-08-23 Thread Masahiro Yamada
ess went well, but depmod is actually skipped because System.map is generated by "make vmlinux" What do you think we should do about this case? Skip depmod silently? Make it fail? Print noisy warning like missing depmod case? -- Best Regards Masahiro Yamada

[PATCH] riscv: move GCC version check for ARCH_SUPPORTS_INT128 to Kconfig

2018-08-24 Thread Masahiro Yamada
This becomes much neater in Kconfig. Signed-off-by: Masahiro Yamada --- arch/riscv/Kconfig | 1 + arch/riscv/Makefile | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index a344980..ed81df4 100644 --- a/arch/riscv/Kconfig +++ b/arch

Re: [PATCH] mtd: rawnand: denali: do not pass zero maxchips to nand_scan()

2018-08-24 Thread Masahiro Yamada
Hi Boris, 2018-08-24 21:55 GMT+09:00 Boris Brezillon : > Hi Masahiro, > > On Tue, 21 Aug 2018 17:23:19 +0900 > Masahiro Yamada wrote: > >> Commit 49aa76b16676 ("mtd: rawnand: do not execute nand_scan_ident() >> if maxchips is zero") gave a new meaning

[GIT PULL] more Kbuild updates for v4.19

2018-08-25 Thread Masahiro Yamada
c fixes and cleanups Andrzej Pietrasiewicz (1): kbuild: make sorting initramfs contents independent of locale Masahiro Yamada (13): scripts/dtc: consolidate include path options in Makefile kconfig: error out when seeing

Re: [RFC PATCH] compiler.h: give up __compiletime_assert_fallback()

2018-08-25 Thread Masahiro Yamada
d5a > > This changed again when -findirect-inline was added -- i.e., > BUILD_BUG_ON could be used on parameters of inline functions even when > called by pointer, although the caller needed __flatten in some cases -- > a bit messy. > > Daniel -- Best Regards Masahiro Yamada

[PATCH v2] compiler.h: give up __compiletime_assert_fallback()

2018-08-25 Thread Masahiro Yamada
. Let's give up __compiletime_assert_fallback(). This commit does not change the current behavior since it just rips off the useless code. Signed-off-by: Masahiro Yamada Reviewed-by: Kees Cook Reviewed-by: Nick Desaulniers --- Changes in v2: - Rebase include/linux/compiler.h | 17 +--

Re: [PATCH v2 2/2] spi: add SPI controller driver for UniPhier SoC

2018-07-26 Thread Masahiro Yamada
master->min_speed_hz = DIV_ROUND_UP(clksrc, SSI_MAX_CLK_DIVIDER); > + master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; > + master->dev.of_node = pdev->dev.of_node; > + master->bus_num = pdev->id; > + master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 32); > + > + master->set_cs = uniphier_spi_set_cs; > + master->transfer_one = uniphier_spi_transfer_one; > + master->prepare_transfer_hardware > + = uniphier_spi_prepare_transfer_hardware; > + master->unprepare_transfer_hardware > + = uniphier_spi_unprepare_transfer_hardware; > + master->num_chipselect = 1; > + > + ret = devm_spi_register_master(&pdev->dev, master); > + if (ret) > + goto out_disable_clk; > + > + return ret; I think return 0; will be clearer. > + > +out_disable_clk: > + clk_disable_unprepare(priv->clk); > + > +out_master_put: > + spi_master_put(master); > + return ret; > +} > + > +static int uniphier_spi_remove(struct platform_device *pdev) > +{ > + struct uniphier_spi_priv *priv = platform_get_drvdata(pdev); > + > + clk_disable_unprepare(priv->clk); > + > + return 0; > +} > + > +static const struct of_device_id uniphier_spi_match[] = { > + { .compatible = "socionext,uniphier-scssi", }, > + { /* sentinel */ }, > +}; > +MODULE_DEVICE_TABLE(of, uniphier_spi_match); > + > +static struct platform_driver uniphier_spi_driver = { > + .probe = uniphier_spi_probe, > + .remove = uniphier_spi_remove, > + .driver = { > + .name = "uniphier-spi", > + .of_match_table = uniphier_spi_match, > + }, > +}; > +module_platform_driver(uniphier_spi_driver); > + > +MODULE_AUTHOR("Kunihiko Hayashi "); > +MODULE_AUTHOR("Keiji Hayashibara "); > +MODULE_DESCRIPTION("Socionext UniPhier SPI controller driver"); > +MODULE_LICENSE("GPL v2"); > -- > 2.7.4 > > -- > 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: include architecture Kconfig files from top-level Kconfig v3

2018-07-26 Thread Masahiro Yamada
2018-07-27 2:21 GMT+09:00 Christoph Hellwig : > On Wed, Jul 25, 2018 at 01:30:24PM +0900, Masahiro Yamada wrote: >> Could you check the difference of CONFIG_PREEMPT_COUNT, please? >> >> >> For alpha, hexagon, um, >> CONFIG_PREEMPT_COUNT was previousl

Re: include architecture Kconfig files from top-level Kconfig v3

2018-07-27 Thread Masahiro Yamada
2018-07-27 16:48 GMT+09:00 Christoph Hellwig : > On Fri, Jul 27, 2018 at 10:32:19AM +0900, Masahiro Yamada wrote: >> This will just add a new unmet dependency warning. >> CONFIG_PREEMPT_COUNT will be still selected. > > True. I guess we simply need to prohibit CONF

Re: [PATCH] scripts: Add Python 3 support to tracing/draw_functrace.py

2018-07-27 Thread Masahiro Yamada
2018-07-26 0:01 GMT+09:00 Jeremy Cline : > On 07/25/2018 10:39 AM, Masahiro Yamada wrote: >> 2018-07-21 4:35 GMT+09:00 Jeremy Cline : >>> Use the print function. This maintains Python 2 support and should have >>> no functional change. >>> >>> Sign

[PATCH] microblaze: delete wrong comment about machine_early_init

2018-07-28 Thread Masahiro Yamada
machine_early_init is defined in arch/microblaze/kernel/setup.c I do not see mach-* directory for MicroBlaze. Signed-off-by: Masahiro Yamada --- arch/microblaze/kernel/head.S | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/microblaze/kernel/head.S b/arch/microblaze/kernel/head.S

Re: [PATCH v2] scripts: Add Python 3 support to tracing/draw_functrace.py

2018-07-28 Thread Masahiro Yamada
e body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Best Regards Masahiro Yamada

[GIT PULL 1/3] ARM: dts: uniphier: UniPhier DT updates for v4.19

2018-07-18 Thread Masahiro Yamada
insertions(+) -- Best Regards Masahiro Yamada

[GIT PULL 2/3] arm64: dts: uniphier: UniPhier DT updates for v4.19

2018-07-18 Thread Masahiro Yamada
/arm64/boot/dts/socionext/uniphier-ld20.dtsi | 2 ++ 3 files changed, 4 insertions(+) -- Best Regards Masahiro Yamada

[GIT PULL 3/3] ARM: uniphier: UniPhier SoC updates for v4.19

2018-07-18 Thread Masahiro Yamada
Masahiro Yamada (3): ARM: uniphier: select RESET_CONTROLLER arm64: uniphier: select RESET_CONTROLLER ARM: uniphier: remove empty Makefile arch/arm/Makefile | 1 - arch/arm/configs/multi_v7_defconfig | 2 ++ arch/arm/mach-uniphier/Kconfig | 1 + arch/arm/mach

Re: [PATCH] arm64: build with baremetal linker target instead of Linux when available

2018-07-18 Thread Masahiro Yamada
) > > # ld-option > -# Usage: LDFLAGS += $(call ld-option, -X) > -ld-option = $(call try-run, $(LD) $(LDFLAGS) $(1) -v,$(1),$(2)) > +# Usage: LDFLAGS += $(call ld-option, -X, -Y) > +ld-option = $(call try-run, $(LD) $(LDFLAGS) $(1) -v,$(1),$(2),$(3)) > > # ar-option >

Re: [PATCH 1/2] kbuild: buildtar: remove crufty vax pieces

2018-07-18 Thread Masahiro Yamada
mpressed/vmlinux.bin" > "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}" > -- > 2.11.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: [PATCH 2/2] kbuild: buildtar: add arm64 support

2018-07-18 Thread Masahiro Yamada
+ ;; > *) > [ -f "${KBUILD_IMAGE}" ] && cp -v -- "${KBUILD_IMAGE}" > "${tmpdir}/boot/vmlinux-kbuild-${KERNELRELEASE}" > echo "" >&2 > -- > 2.11.0 > -- Best Regards Masahiro Yamada

Re: [PATCH] buildtar: Copy vmlinuz for arm64

2018-07-18 Thread Masahiro Yamada
ERNELRELEASE}" > -- > 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

Re: [PATCH 0/6] kbuild: clean-up and rename LDFLAGS to KBUILD_LDFLAGS

2018-07-18 Thread Masahiro Yamada
2018-07-12 23:05 GMT+09:00 Kirill A. Shutemov : > On Thu, Jul 12, 2018 at 05:01:30PM +0900, Masahiro Yamada wrote: >> >> This series renames LDFLAGS to KBUILD_LDFLAGS >> after some Makefile cleanups. >> >> Currently, the last patch does not apply to Linus'

Re: [PATCH] reset: uniphier: add reset control support for SPI

2018-07-19 Thread Masahiro Yamada
2018-07-19 15:18 GMT+09:00 Keiji Hayashibara : > From: Kunihiko Hayashi > > Add reset control for SPI controller on UniPhier SoCs. > > Signed-off-by: Kunihiko Hayashi > --- Acked-by: Masahiro Yamada > drivers/reset/reset-uniphier.c | 9 + > 1 file changed,

Re: [PATCH v2] pinctrl: uniphier: add spi pin-mux settings

2018-07-19 Thread Masahiro Yamada
2018-07-19 18:05 GMT+09:00 Keiji Hayashibara : > From: Kunihiko Hayashi > > Add pin-mux settings for spi controller. > > Signed-off-by: Kunihiko Hayashi > Signed-off-by: Keiji Hayashibara > --- Acked-by: Masahiro Yamada > Changes since v1: > - Fix build error

[PATCH v4 10/11] kbuild: do not update config for 'make kernelrelease'

2018-07-20 Thread Masahiro Yamada
t to 'make kernelrelease'. Signed-off-by: Masahiro Yamada --- Changes in v4: None Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ad83917..0ec1c27 100644 --- a/Makefile +++ b/Makefile @@ -225,7 +225,8 @@ no-dot-config-target

[PATCH v4 06/11] kconfig: allow all config targets to write auto.conf if missing

2018-07-20 Thread Masahiro Yamada
ommit 87a5f98d248f ("[SV 102] Don't show unnecessary include file errors.") However, older GNU Make versions are still widely used. Signed-off-by: Masahiro Yamada --- Changes in v4: None scripts/kconfig/conf.c | 31 +-- scripts/kconfig/con

[PATCH v4 08/11] kbuild: add .DELETE_ON_ERROR special target

2018-07-20 Thread Masahiro Yamada
;2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo >&2 ; \ /bin/false) Signed-off-by: Masahiro Yamada --- Changes in v4: None scripts/Kbuild.include | 3

[PATCH v4 09/11] kbuild: do not update config when running install targets

2018-07-20 Thread Masahiro Yamada
ts except headers_install, and external modules are the cases. Signed-off-by: Masahiro Yamada --- Changes in v4: None Makefile | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 2fa9830..ad83917 100644 --- a/Makefile +++

[PATCH v4 00/11] kbuild/kconfig: do not update config during installation

2018-07-20 Thread Masahiro Yamada
. - I am keeping include/config/auto.conf as the prerequisite of modules.builtin (11/11) Masahiro Yamada (11): kconfig: rename file_write_dep and move it to confdata.c kconfig: split out useful helpers in confdata.c kconfig: remove unneeded directory generation from local*config kconfig

[PATCH v4 04/11] kconfig: create directories needed for syncconfig by itself

2018-07-20 Thread Masahiro Yamada
ws scripts/kconfig/Makefile cleanups; syncconfig can be merged into simple-targets. Signed-off-by: Masahiro Yamada --- Changes in v4: None scripts/kconfig/Makefile | 15 ++- scripts/kconfig/confdata.c | 14 ++ 2 files changed, 20 insertions(+), 9 deletions(-) diff --git

[PATCH v4 01/11] kconfig: rename file_write_dep and move it to confdata.c

2018-07-20 Thread Masahiro Yamada
file_write_dep() is called only from conf_write_autoconf(). Move it from util.c to confdata.c to make it static. Also, rename it to conf_write_dep() since it should belong to the group of conf_write* functions. Signed-off-by: Masahiro Yamada --- Changes in v4: None scripts/kconfig/confdata.c

[PATCH v4 05/11] kconfig: make syncconfig update .config regardless of sym_change_count

2018-07-20 Thread Masahiro Yamada
: # # Compiler: aarch64-linux-gcc (GCC) 9.0.0 20180628 (experimental) # ... which carries the information of the old compiler. If KCONFIG_NOSILENTUPDATE is set, syncconfig is not allowed to update the .config file. Otherwise, it is fine to update it regardless of sym_change_count.

<    1   2   3   4   5   6   7   8   9   10   >