[RESEND PATCH v3 10/11] powerpc/mm/radix: mark as __tlbie_pid() and friends as__always_inline

2019-04-22 Thread Masahiro Yamada
-by: Masahiro Yamada --- Changes in v3: None Changes in v2: - new patch arch/powerpc/mm/tlb-radix.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/mm/tlb-radix.c b/arch/powerpc/mm/tlb-radix.c index a2b2848f0ae3..14ff414d1545 100644 --- a/arch/powerpc/mm/tlb

[RESEND PATCH v3 09/11] powerpc/mm/radix: mark __radix__flush_tlb_range_psize() as __always_inline

2019-04-22 Thread Masahiro Yamada
: error: asm operand 3 probably doesn't match constraints [-Werror] asm volatile(PPC_TLBIEL(%0, %4, %3, %2, %1) ^~~ arch/powerpc/mm/tlb-radix.c:104:2: error: impossible constraint in 'asm' Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: - split into a separate patch

[RESEND PATCH v3 11/11] compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING

2019-04-22 Thread Masahiro Yamada
y improves the "Kernel hacking" Kconfig menu as e61aca5158a8 ("Merge branch 'kconfig-diet' from Dave Hansen') suggested; this config option would be a good fit in the "compiler option" menu. Signed-off-by: Masahiro Yamada Acked-by: Borislav Petkov --- Changes in v3: None Chang

[RESEND PATCH v3 05/11] mtd: rawnand: vf610_nfc: add initializer to avoid -Wmaybe-uninitialized

2019-04-22 Thread Masahiro Yamada
ta_access); ~~~ Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: - split into a separate patch drivers/mtd/nand/raw/vf610_nfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/vf610_nfc.c b/drivers/mtd/nand/raw/vf

Re: [PATCH] powerpc: remove meaningless KBUILD_ARFLAGS addition

2019-07-15 Thread Masahiro Yamada
vive GNUTARGET=elf$(BITS)-$(GNUTARGET) in a *separate* patch, correct? -- Best Regards Masahiro Yamada

Re: [PATCH] powerpc: remove meaningless KBUILD_ARFLAGS addition

2019-08-18 Thread Masahiro Yamada
Hi, On Fri, Jul 19, 2019 at 12:43 PM Michael Ellerman wrote: > > Segher Boessenkool writes: > > On Thu, Jul 18, 2019 at 11:19:58AM +0900, Masahiro Yamada wrote: > >> On Thu, Jul 18, 2019 at 1:46 AM Segher Boessenkool > >> wrote: > >> Kbuild alwa

[PATCH 2/3] kbuild: rebuild modules when module linker scripts are updated

2019-08-14 Thread Masahiro Yamada
Currently, the timestamp of module linker scripts are not checked. Add them to the dependency of modules so they are correctly rebuilt. Signed-off-by: Masahiro Yamada --- Documentation/kbuild/makefiles.rst | 5 + Makefile | 3 ++- arch/arm/Makefile

powerpc asm-prototypes.h seems odd

2019-08-27 Thread Masahiro Yamada
$(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/asm-prototypes.h) -- Best Regards Masahiro Yamada

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

2019-09-03 Thread Masahiro Yamada
check = \ $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$@" > -- > Cheers, > Stephen Rothwell -- Best Regards Masahiro Yamada

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

2019-09-04 Thread Masahiro Yamada
On Wed, Sep 4, 2019 at 10:00 AM Masahiro Yamada wrote: > > Hi Stephen, > > On Wed, Sep 4, 2019 at 9:13 AM Stephen Rothwell wrote: > > For today's linux-next, please squash the following too. (This is my fault, since scripts/mkuboot.sh is a bash script) diff --git a/scri

[PATCH] powerpc: improve prom_init_check rule

2019-09-12 Thread Masahiro Yamada
Currently, the O= build shows the absolute path to the script: CALL/abs/path/to/source/of/linux/arch/powerpc/kernel/prom_init_check.sh With this commit, it is always a relative path to the timestamp file: PROMCHK arch/powerpc/kernel/prom_init_check Signed-off-by: Masahiro Yamada

Re: [PATCH] powerpc: remove meaningless KBUILD_ARFLAGS addition

2019-07-17 Thread Masahiro Yamada
n.a creating empty archive: drivers/video/fbdev/omap2/omapfb/displays/built-in.a creating empty archive: drivers/video/fbdev/omap2/omapfb/dss/built-in.a BTW, your commit 8995ac8702737147115e1c75879a1a2d75627b9e dates back to 2008. At that time, thin archive was not used. -- Best Regards Masahiro Yamada

Re: [PATCH] powerpc: remove meaningless KBUILD_ARFLAGS addition

2019-07-17 Thread Masahiro Yamada
On Thu, Jul 18, 2019 at 1:46 AM Segher Boessenkool wrote: > > On Thu, Jul 18, 2019 at 12:19:36AM +0900, Masahiro Yamada wrote: > > On Wed, Jul 17, 2019 at 11:38 PM Segher Boessenkool > > wrote: > > > > > > On Tue, Jul 16, 2019 at 10:15:47PM +1000, Mi

Re: [PATCH] powerpc: remove meaningless KBUILD_ARFLAGS addition

2019-07-16 Thread Masahiro Yamada
On Tue, Jul 16, 2019 at 3:16 AM Segher Boessenkool wrote: > > On Mon, Jul 15, 2019 at 09:03:46PM +0900, Masahiro Yamada wrote: > > On Mon, Jul 15, 2019 at 4:30 PM Segher Boessenkool > > wrote: > > > > > > On Mon, Jul 15, 2019 at 05:05:34PM +1000, Mi

[PATCH] kbuild: remove ar-option and KBUILD_ARFLAGS

2019-09-21 Thread Masahiro Yamada
ays supported. Not only GNU ar but also llvm-ar supports it. With the 'D' option hard-coded, there is no more user of ar-option or KBUILD_ARFLAGS. Signed-off-by: Masahiro Yamada --- Documentation/kbuild/makefiles.rst | 5 - Makefile | 4 arch/powerpc/boot/Makefil

[PATCH 3/3] arch: sembuf.h: make uapi asm/sembuf.h self-contained

2019-10-30 Thread Masahiro Yamada
/asm/sembuf.h:31:2: error: unknown type name ‘__kernel_ulong_t’ __kernel_ulong_t __unused4; ^~~~ It is just a matter of missing include directive. Include to make it self-contained, and add it to the compile-test coverage. Signed-off-by: Masahiro Yamada --- arch/mips/include

[PATCH 2/3] arch: msgbuf.h: make uapi asm/msgbuf.h self-contained

2019-10-30 Thread Masahiro Yamada
directive. Include to make it self-contained, and add it to the compile-test coverage. Signed-off-by: Masahiro Yamada --- arch/mips/include/uapi/asm/msgbuf.h| 1 + arch/parisc/include/uapi/asm/msgbuf.h | 1 + arch/powerpc/include/uapi/asm/msgbuf.h | 2 ++ arch/sparc/include/uapi/asm

[PATCH 1/3] arch: ipcbuf.h: make uapi asm/ipcbuf.h self-contained

2019-10-30 Thread Masahiro Yamada
; ^~~~ It is just a matter of missing include directive. Include to make it self-contained, and add it to the compile-test coverage. Signed-off-by: Masahiro Yamada --- arch/s390/include/uapi/asm/ipcbuf.h | 2 ++ arch/sparc/include/uapi/asm/ipcbuf.h | 2 ++ arch/xtensa/include/uapi/asm/ipcbuf.h | 2

Re: [PATCH v2 2/3] ARM: decompressor: simplify libfdt builds

2019-11-04 Thread Masahiro Yamada
On Tue, Nov 5, 2019 at 10:04 AM Rob Herring wrote: > > On Fri, Nov 1, 2019 at 3:12 AM Masahiro Yamada > wrote: > > > > Copying source files during the build time may not end up with > > as clean code as you expect. > > > > lib/fdt*.c simply wrap scripts/dtc

Re: [PATCH 1/3] libfdt: add SPDX-License-Identifier to libfdt wrappers

2019-11-04 Thread Masahiro Yamada
Hi Rob, (+CC: David Daney) On Mon, Nov 4, 2019 at 11:00 PM Rob Herring wrote: > > On Fri, Nov 1, 2019 at 1:19 AM Masahiro Yamada > wrote: > > > > These are kernel source code even though they are just two-line wrappers. > > > > Files without explicit license

Re: [PATCH 3/3] arch: sembuf.h: make uapi asm/sembuf.h self-contained

2019-11-07 Thread Masahiro Yamada
Hi Andrew, I think you modified the commit log before applying this patch. I just noticed a typo. commit 411865d8dd2c31f56eefc54bc16fabb47e1bfb73 Author: Masahiro Yamada Date: Wed Nov 6 16:07:08 2019 +1100 arch: sembuf.h: make uapi asm/sembuf.h self-contained Uuserspace cannot

[PATCH 3/3] libfdt: define INT32_MAX and UINT32_MAX in libfdt_env.h

2019-11-01 Thread Masahiro Yamada
n't add (U)INT32_MAX to any more. Instead, add them to the in-kernel libfdt_env.h to compile fdt.c and fdt_addresses.c Signed-off-by: Masahiro Yamada --- arch/powerpc/boot/libfdt_env.h | 2 ++ include/linux/libfdt_env.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/arch/powerpc/boot

[PATCH 1/3] libfdt: add SPDX-License-Identifier to libfdt wrappers

2019-11-01 Thread Masahiro Yamada
These are kernel source code even though they are just two-line wrappers. Files without explicit license information fall back to GPL-2.0-only, which is the project default. Signed-off-by: Masahiro Yamada --- lib/fdt.c| 1 + lib/fdt_empty_tree.c | 1 + lib/fdt_ro.c | 1

[PATCH v2 1/3] libfdt: add SPDX-License-Identifier to libfdt wrappers

2019-11-01 Thread Masahiro Yamada
These are kernel source code even though they are just two-line wrappers. Files without explicit license information fall back to GPL-2.0-only, which is the project default. Signed-off-by: Masahiro Yamada --- Changes in v2: None lib/fdt.c| 1 + lib/fdt_empty_tree.c | 1 + lib

[PATCH v2 0/3] libfdt: prepare for (U)INT32_MAX addition

2019-11-01 Thread Masahiro Yamada
libfdt_env.h Masahiro Yamada (3): libfdt: add SPDX-License-Identifier to libfdt wrappers ARM: decompressor: simplify libfdt builds libfdt: define INT32_MAX and UINT32_MAX in libfdt_env.h arch/arm/boot/compressed/.gitignore | 9 --- arch/arm/boot/compressed/Makefile | 33

[PATCH 2/3] ARM: decompressor: simplify libfdt builds

2019-11-01 Thread Masahiro Yamada
messes. Another nice thing is we no longer need to maintain the separate libfdt_env.h since we can include , and the diff stat also looks nice. Signed-off-by: Masahiro Yamada --- arch/arm/boot/compressed/.gitignore | 9 --- arch/arm/boot/compressed/Makefile | 33

[PATCH v2 2/3] ARM: decompressor: simplify libfdt builds

2019-11-01 Thread Masahiro Yamada
messes. Another nice thing is we no longer need to maintain the separate libfdt_env.h since we can include , and the diff stat also looks nice. Signed-off-by: Masahiro Yamada --- Changes in v2: None arch/arm/boot/compressed/.gitignore | 9 --- arch/arm/boot/compressed/Makefile

[PATCH 0/3] libfdt: prepare for (U)INT32_MAX addition

2019-11-01 Thread Masahiro Yamada
, it is pretty easy to refactor the ARM decompressor to reuse So, 2/3 simplifies the Makefile and deletes its own libfdt_env.h On the other hand, the PPC boot-wrapper is a can of worms. I give up refactoring it. Let's keep it closed, and just update arch/powerpc/boot/libfdt_env.h Masahiro Yamada (3

[PATCH v2 3/3] libfdt: define INT32_MAX and UINT32_MAX in libfdt_env.h

2019-11-01 Thread Masahiro Yamada
n't add (U)INT32_MAX to any more. Instead, add them to the in-kernel libfdt_env.h to compile fdt.c and fdt_addresses.c Signed-off-by: Masahiro Yamada --- Changes in v2: - Fix ppc libfdt_env.h arch/powerpc/boot/libfdt_env.h | 2 ++ include/linux/libfdt_env.h | 3 +++ 2 files changed, 5 inser

Re: [PATCH 1/3] arch: ipcbuf.h: make uapi asm/ipcbuf.h self-contained

2019-10-30 Thread Masahiro Yamada
Hi Andrew, I think this patch has already been picked up to your tree, but I noticed a typo in the commit message just now. Please see below. On Wed, Oct 30, 2019 at 3:40 PM Masahiro Yamada wrote: > > The user-space cannot compile due to some missing type > definitions. For example,

[PATCH v3] libfdt: define INT32_MAX and UINT32_MAX in libfdt_env.h

2019-11-12 Thread Masahiro Yamada
for the fixed-width types. Accordingly, we already have S/U32_MAX for their max values. So, we should not add (U)INT32_MAX to any more. Instead, add them to the in-kernel libfdt_env.h to compile the latest libfdt. Signed-off-by: Masahiro Yamada --- My initial plan was to change this in a series of 3

Re: [PATCH 1/2] asm-generic: Make msi.h a mandatory include/asm header

2019-10-24 Thread Masahiro Yamada
On Thu, Oct 24, 2019 at 7:13 PM Michal Simek wrote: > > msi.h is generic for all architectures expect of x86 which has own version. Maybe a typo? "except" Anyway, the code looks good to me. Reviewed-by: Masahiro Yamada > Enabling MSI by including msi.h to architec

Re: [PATCH v3] libfdt: define INT32_MAX and UINT32_MAX in libfdt_env.h

2019-11-24 Thread Masahiro Yamada
On Wed, Nov 13, 2019 at 4:13 PM Masahiro Yamada wrote: > > The DTC v1.5.1 added references to (U)INT32_MAX. > > This is no problem for user-space programs since defines > (U)INT32_MAX along with (u)int32_t. > > For the kernel space, libfdt_env.h needs to be adju

Re: [PATCH v2] powerpc/Makefile: Mark phony targets as PHONY

2020-03-05 Thread Masahiro Yamada
tall > > $ make install > > make: 'install' is up to date. > > $ > > > > Fix it by adding them to the PHONY variable which is marked phony in > > the top-level Makefile, or in scripts/Makefile.build for the boot > > Makefile. > > > > Sugge

Re: [PATCH] powerpc/Makefile: Mark phony targets as PHONY

2020-02-18 Thread Masahiro Yamada
adding them to the PHONY variable which is marked phony in > the top-level Makefile. In arch/powerpc/boot/Makefile we do it > manually. You can do likewise in arch/powerpc/boot/Makefile because it is marked phony in scripts/Makefile.build -- Best Regards Masahiro Yamada

Re: [PATCH v2] powerpc/Makefile: Mark phony targets as PHONY

2020-02-18 Thread Masahiro Yamada
adding them to the PHONY variable which is marked phony in > the top-level Makefile, or in scripts/Makefile.build for the boot > Makefile. > > Suggested-by: Masahiro Yamada > Signed-off-by: Michael Ellerman > --- Reviewed-by: Masahiro Yamada -- Best Regards Masahiro Yamada

Re: [PATCH] kbuild: reuse vmlinux.o in vmlinux_link

2020-05-23 Thread Masahiro Yamada
ion mismatch only. For a defconfig build this is instant but for an allyesconfig this add two minutes to a full build (that anyways takes ~2 hours). Signed-off-by: Sam Ravnborg > > Thanks, > Nick > > > > > > > On Sat, May 23, 2020 at 2:41 AM Masahir

[PATCH v2] kbuild: preprocess module linker script

2020-09-07 Thread Masahiro Yamada
is fine because 'make clean' keeps all the build artifacts under scripts/. You can add arch-specific sections in . Signed-off-by: Masahiro Yamada Tested-by: Jessica Yu Acked-by: Will Deacon --- Changes in v2: - Fix the race between the two targets 'scripts' and 'asm-generic' Makefile

[PATCH] kbuild: preprocess module linker script

2020-09-04 Thread Masahiro Yamada
' keeps all the build artifacts under scripts/. You can add arch-specific sections in . Signed-off-by: Masahiro Yamada Tested-by: Jessica Yu --- Makefile | 1 - arch/arm/Makefile | 4 .../{kernel/module.lds

[PATCH] arch: vdso: add vdso linker script to 'targets' instead of extra-y

2020-08-31 Thread Masahiro Yamada
The vdso linker script is preprocessed on demand. Adding it to 'targets' is enough to include the .cmd file. Signed-off-by: Masahiro Yamada --- arch/arm64/kernel/vdso/Makefile | 2 +- arch/arm64/kernel/vdso32/Makefile | 2 +- arch/nds32/kernel/vdso/Makefile | 2 +- arch/powerpc

Re: [PATCH] arch: vdso: add vdso linker script to 'targets' instead of extra-y

2020-09-07 Thread Masahiro Yamada
On Tue, Sep 1, 2020 at 3:23 AM Masahiro Yamada wrote: > > The vdso linker script is preprocessed on demand. > Adding it to 'targets' is enough to include the .cmd file. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild. > arch/arm64/kernel/vdso/Makefi

Re: [PATCH] kbuild: reuse vmlinux.o in vmlinux_link

2020-05-25 Thread Masahiro Yamada
Hi Sam, Thanks for the comments. On Sun, May 24, 2020 at 1:54 AM Sam Ravnborg wrote: > > Hi Masahiro. > > On Sun, May 24, 2020 at 12:12:35AM +0900, Masahiro Yamada wrote: > > Hi Nicholas, > > (+CC: Sam Ravnborg) > > > > > > On Sat, May

Re: [PATCH] kbuild: reuse vmlinux.o in vmlinux_link

2020-05-22 Thread Masahiro Yamada
+ Michael, and PPC ML. They may know something about the reason of failure. On Sat, May 23, 2020 at 2:41 AM Masahiro Yamada wrote: > > On Fri, May 22, 2020 at 5:27 AM Sami Tolvanen wrote: > > > > Instead of linking all compilation units again each time vmlinux_link is

Re: [PATCH] kbuild: introduce ccflags-remove-y and asflags-remove-y

2020-06-29 Thread Masahiro Yamada
On Mon, Jun 29, 2020 at 2:55 PM Michael Ellerman wrote: > > Masahiro Yamada writes: > > CFLAGS_REMOVE_.o works per object, that is, there is no > > convenient way to filter out flags for every object in a directory. > > > > Add ccflags-remove-y and asflags-remove-y

Re: [PATCH 10/20] Documentation: kbuild/kconfig-language: eliminate duplicated word

2020-07-09 Thread Masahiro Yamada
On Wed, Jul 8, 2020 at 3:06 AM Randy Dunlap wrote: > > Drop the doubled word "the". > > Signed-off-by: Randy Dunlap > Cc: Jonathan Corbet > Cc: linux-...@vger.kernel.org > Cc: Masahiro Yamada I guess this series will go in via the doc sub-system. If so,

[PATCH v2 1/2] kbuild: introduce ccflags-remove-y and asflags-remove-y

2020-07-07 Thread Masahiro Yamada
2464a609ded0 ("ftrace: do not trace library functions") excluded too much. In later commit, I will try to remove ccflags-remove-y from sub-directory Makefiles. Suggested-by: Sami Tolvanen Signed-off-by: Masahiro Yamada Acked-by: Steven Rostedt (VMware) Acked-by: Michael Ellerman

Re: [PATCH] kbuild: introduce ccflags-remove-y and asflags-remove-y

2020-07-06 Thread Masahiro Yamada
t_dynamic. > While with this patch it looks like we add the flag (even though it is > already there), and then > removes the flag for all files in kernel/trace/* . You are right. I will drop this patch, and send v2. Thank you. -- Best Regards Masahiro Yamada

[PATCH] powerpc/boot: add DTB to 'targets'

2020-07-13 Thread Masahiro Yamada
builds DTB on demand. You need to add DTB to 'targets' explicitly so .*.cmd files are included. Signed-off-by: Masahiro Yamada --- I want to apply this to kbuild tree because this is needed to fix the build error caused by another kbuild patch: https://lkml.org/lkml/2020/7/7/134 arch/powerpc/boot

Re: [PATCH] kbuild: reuse vmlinux.o in vmlinux_link

2020-06-15 Thread Masahiro Yamada
On Tue, Jun 16, 2020 at 6:47 AM Sami Tolvanen wrote: > > On Sat, May 23, 2020 at 8:13 AM Masahiro Yamada wrote: > > > > Hi Nicholas, > > (+CC: Sam Ravnborg) > > > > > > On Sat, May 23, 2020 at 7:06 PM Nicholas Piggin wrote: > > > > > &g

[PATCH] kbuild: introduce ccflags-remove-y and asflags-remove-y

2020-06-27 Thread Masahiro Yamada
CFLAGS_REMOVE_.o works per object, that is, there is no convenient way to filter out flags for every object in a directory. Add ccflags-remove-y and asflags-remove-y to make it easily. Use ccflags-remove-y to clean up some Makefiles. Suggested-by: Sami Tolvanen Signed-off-by: Masahiro Yamada

Re: [PATCH v2 13/16] scripts/kallsyms: move ignored symbol types to is_ignored_symbol()

2020-07-19 Thread Masahiro Yamada
On Mon, Jul 20, 2020 at 10:46 AM Finn Thain wrote: > > On Sun, 24 Nov 2019, Masahiro Yamada wrote: > > > Collect the ignored patterns to is_ignored_symbol(). > > > > Signed-off-by: Masahiro Yamada > > This commit (887df76de67f5) caused a regression in my pow

Re: [PATCH v2 2/2] kbuild: Disable CONFIG_LD_ORPHAN_WARN for ld.lld 10.0.1

2020-12-01 Thread Masahiro Yamada
On Wed, Dec 2, 2020 at 5:56 AM Kees Cook wrote: > > On Tue, Dec 01, 2020 at 10:31:37PM +0900, Masahiro Yamada wrote: > > On Wed, Nov 25, 2020 at 7:22 AM Kees Cook wrote: > > > > > > On Thu, Nov 19, 2020 at 01:13:27PM -0800, Nick Desaulniers wrote: > > > &g

Re: [PATCH v2 1/2] kbuild: Hoist '--orphan-handling' into Kconfig

2020-12-01 Thread Masahiro Yamada
t; > -- > Kees Cook > > -- > You received this message because you are subscribed to the Google Groups > "Clang Built Linux" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clang-built-linux+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/clang-built-linux/202011201607.75FA476%40keescook. -- Best Regards Masahiro Yamada

Re: [PATCH v2 2/2] kbuild: Disable CONFIG_LD_ORPHAN_WARN for ld.lld 10.0.1

2020-12-01 Thread Masahiro Yamada
athan Chancellor > > > > Thanks for the additions in v2. > > Reviewed-by: Nick Desaulniers > > I'm going to carry this for a few days in -next, and if no one screams, > ask Linus to pull it for v5.10-rc6. > > Thanks! > > -- > Kees Cook Sorry for the delay. Applied to linux-kbuild. But, I already see this in linux-next. Please let me know if I should drop it from my tree. -- Best Regards Masahiro Yamada

Re: powerpc VDSO files being unnecessarily rebuilt

2020-12-17 Thread Masahiro Yamada
)$(MAKE) \ $(build)=arch/powerpc/kernel/vdso32 include/generated/vdso32-offsets.h) $(if $(CONFIG_PPC64),$(Q)$(MAKE) \ $(build)=arch/powerpc/kernel/vdso64 include/generated/vdso64-offsets.h) Second time: from arch/powerpc/kernel/Makefile For the firs

Re: powerpc VDSO files being unnecessarily rebuilt

2020-12-17 Thread Masahiro Yamada
On Thu, Dec 17, 2020 at 6:23 PM Masahiro Yamada wrote: > > On Thu, Dec 17, 2020 at 11:56 AM Michael Ellerman wrote: > > > > Hi all, > > > > Since the merge of the C VDSO I see we are repeatedly rebuilding some > > files in the VDSO, eg: > > > >

[PATCH 2/3] kbuild: LD_VERSION redenomination

2020-12-12 Thread Masahiro Yamada
and 5th version components"). Since then, the last 4-digits returned by this script is always zeros. Remove the meaningless last 4-digits. This makes the version format consistent with GCC_VERSION, CLANG_VERSION, LLD_VERSION. Signed-off-by: Masahiro Yamada --- arch/arm64/Kconfig

[PATCH 1/2] powerpc/vdso: fix unnecessary rebuilds of vgettimeofday.o

2020-12-23 Thread Masahiro Yamada
in the embedded vdso images. Removing the unneeded second descend solves the problem. Link: https://lore.kernel.org/linuxppc-dev/87tuslxhry@mpe.ellerman.id.au/ Reported-by: Michael Ellerman Signed-off-by: Masahiro Yamada --- arch/powerpc/kernel/Makefile | 4 ++-- arch

[PATCH 2/2] powerpc/vdso64: remove meaningless vgettimeofday.o build rule

2020-12-23 Thread Masahiro Yamada
VDSO64 is only built for the 64-bit kernel, hence vgettimeofday.o is built by the generic rule in scripts/Makefile.build. This line does not provide anything useful. Signed-off-by: Masahiro Yamada --- arch/powerpc/kernel/vdso64/Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git

Re: [PATCH] powerpc/boot: Fix build of dts/fsl

2020-12-15 Thread Masahiro Yamada
ry. I do not understand the policy. If "fsl/" is a very special case, I just thought we could add a new syntax, fslimage-y, but I do not mind either way. fslimage-$(CONFIG_MPC8540_ADS) += cuImage.mpc8540ads targets += $(foreach x, dtbImage uImage cuImage simpleImage treeImage, \ $(patsubst $(x).%, dts/fsl/%.dtb, $(filter $(x).%, $(fslimage-y This Makefile is wrong over-all anyway. -- Best Regards Masahiro Yamada

Re: [PATCH] powerpc/boot: Fix build of dts/fsl

2020-12-15 Thread Masahiro Yamada
On Wed, Dec 16, 2020 at 11:41 AM Michael Ellerman wrote: > > Masahiro Yamada writes: > > On Tue, Dec 15, 2020 at 12:29 PM Michael Ellerman > > wrote: > >> > >> The lkp robot reported that some configs fail to build, for example > >> mpc85xx_smp_

[PATCH 20/27] sh: syscalls: switch to generic syscalltbl.sh

2021-01-27 Thread Masahiro Yamada
As of v5.11-rc1, 12 architectures duplicate similar shell scripts in order to generate syscall table headers. My goal is to unify them into the single scripts/syscalltbl.sh. This commit converts sh to use scripts/syscalltbl.sh. Signed-off-by: Masahiro Yamada --- arch/sh/kernel/syscalls

Re: [PATCH 02/27] x86/syscalls: fix -Wmissing-prototypes warnings from COND_SYSCALL()

2021-01-27 Thread Masahiro Yamada
On Thu, Jan 28, 2021 at 9:52 AM Masahiro Yamada wrote: > > Building kernel/sys_ni.c with W=1 omits tons of -Wmissing-prototypes This is a typo. "omits" -> "emits" > warnings. > > $ make W=1 kernel/sys_ni.o > [ snip ] > CC kernel/sys_ni.

[PATCH 04/27] x86/entry/x32: rename __x32_compat_sys_* to __x64_compat_sys_*

2021-01-27 Thread Masahiro Yamada
s redefined __x32_sys_* to __x64_sys_* because there is no stub like __x32_sys_*. I think defining as follows is sensible and cleaner. __SYSCALL_COMMON(nr, sym) --> __x64_ __SYSCALL_X32(nr, sym) --> __x64_ The ugly #define __x32_sys_* will go away. Signed-off-by: Masahiro Yamad

[PATCH 05/27] x86/syscalls: switch to generic syscalltbl.sh

2021-01-27 Thread Masahiro Yamada
. This commit separates syscall_64.h and syscall_x32.h. Signed-off-by: Masahiro Yamada --- arch/x86/entry/syscall_32.c | 12 +-- arch/x86/entry/syscall_64.c | 9 ++ arch/x86/entry/syscall_x32.c | 15 +++-- arch/x86/entry/syscalls/Makefile | 10

[PATCH 23/27] sparc: syscalls: switch to generic syscalltbl.sh

2021-01-27 Thread Masahiro Yamada
. Signed-off-by: Masahiro Yamada --- arch/sparc/include/asm/Kbuild| 1 - arch/sparc/kernel/syscalls/Makefile | 19 - arch/sparc/kernel/syscalls/syscalltbl.sh | 36 arch/sparc/kernel/systbls_32.S | 4 +-- arch/sparc/kernel/systbls_64.S

[PATCH 27/27] xtensa: syscalls: switch to generic syscalltbl.sh

2021-01-27 Thread Masahiro Yamada
As of v5.11-rc1, 12 architectures duplicate similar shell scripts in order to generate syscall table headers. My goal is to unify them into the single scripts/syscalltbl.sh. This commit converts xtensa to use scripts/syscalltbl.sh. Signed-off-by: Masahiro Yamada --- arch/xtensa/kernel

[PATCH 14/27] microblaze: syscalls: switch to generic syscalltbl.sh

2021-01-27 Thread Masahiro Yamada
As of v5.11-rc1, 12 architectures duplicate similar shell scripts in order to generate syscall table headers. My goal is to unify them into the single scripts/syscalltbl.sh. This commit converts microblaze to use scripts/syscalltbl.sh. Signed-off-by: Masahiro Yamada --- arch/microblaze/kernel

[PATCH 19/27] sh: add missing FORCE and fix 'targets' to make if_changed work

2021-01-27 Thread Masahiro Yamada
all of them so the if_changed rules work correctly. Signed-off-by: Masahiro Yamada --- arch/sh/kernel/syscalls/Makefile | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/sh/kernel/syscalls/Makefile b/arch/sh/kernel/syscalls/Makefile index 659faefdcb1d

[PATCH 22/27] sparc: add missing FORCE and fix 'targets' to make if_changed work

2021-01-27 Thread Masahiro Yamada
all of them so the if_changed rules work correctly. Signed-off-by: Masahiro Yamada --- arch/sparc/kernel/syscalls/Makefile | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/arch/sparc/kernel/syscalls/Makefile b/arch/sparc/kernel/syscalls/Makefile index

[PATCH 01/27] scripts: add generic syscalltbl.sh

2021-01-27 Thread Masahiro Yamada
, but a single generic script should work for this case. Signed-off-by: Masahiro Yamada --- scripts/syscalltbl.sh | 52 +++ 1 file changed, 52 insertions(+) create mode 100644 scripts/syscalltbl.sh diff --git a/scripts/syscalltbl.sh b/scripts/syscalltbl.sh new file

[PATCH 06/27] ARM: syscalls: switch to generic syscalltbl.sh

2021-01-27 Thread Masahiro Yamada
As of v5.11-rc1, 12 architectures duplicate similar shell scripts in order to generate syscall table headers. My goal is to unify them into the single scripts/syscalltbl.sh. This commit converts ARM to use scripts/syscalltbl.sh. Signed-off-by: Masahiro Yamada --- arch/arm/kernel/entry

[PATCH 08/27] alpha: syscalls: switch to generic syscalltbl.sh

2021-01-27 Thread Masahiro Yamada
As of v5.11-rc1, 12 architectures duplicate similar shell scripts in order to generate syscall table headers. My goal is to unify them into the single scripts/syscalltbl.sh. This commit converts alpha to use scripts/syscalltbl.sh. Signed-off-by: Masahiro Yamada --- arch/alpha/kernel/syscalls

[PATCH 24/27] powerpc: add missing FORCE and fix 'targets' to make if_changed work

2021-01-27 Thread Masahiro Yamada
all of them so the if_changed rules work correctly. Signed-off-by: Masahiro Yamada --- arch/powerpc/kernel/syscalls/Makefile | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/kernel/syscalls/Makefile b/arch/powerpc/kernel/syscalls/Makefile

[PATCH 25/27] powerpc: syscalls: switch to generic syscalltbl.sh

2021-01-27 Thread Masahiro Yamada
As of v5.11-rc1, 12 architectures duplicate similar shell scripts in order to generate syscall table headers. My goal is to unify them into the single scripts/syscalltbl.sh. This commit converts powerpc to use scripts/syscalltbl.sh. Signed-off-by: Masahiro Yamada --- arch/powerpc/include/asm

Re: [PATCH 01/27] scripts: add generic syscalltbl.sh

2021-01-27 Thread Masahiro Yamada
On Thu, Jan 28, 2021 at 9:51 AM Masahiro Yamada wrote: > > Most of architectures generate syscall headers at the compile time > in the almost same way. > > The syscall table has the same format for all architectures. Each line > has 3, 4 or 5 fields; syscall number, ABI, sy

Re: [PATCH 2/2] powerpc/vdso64: remove meaningless vgettimeofday.o build rule

2021-01-27 Thread Masahiro Yamada
On Thu, Dec 24, 2020 at 2:12 AM Masahiro Yamada wrote: > > VDSO64 is only built for the 64-bit kernel, hence vgettimeofday.o is > built by the generic rule in scripts/Makefile.build. > > This line does not provide anything useful. > > Signed-off-by: Masahiro Yamada Michael

[PATCH 03/27] x86/build: add missing FORCE and fix 'targets' to make if_changed work

2021-01-27 Thread Masahiro Yamada
all of them so the if_changed rules work correctly. Signed-off-by: Masahiro Yamada --- arch/x86/entry/syscalls/Makefile | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/arch/x86/entry/syscalls/Makefile b/arch/x86/entry/syscalls/Makefile index

[PATCH 07/27] alpha: add missing FORCE and fix 'targets' to make if_changed work

2021-01-27 Thread Masahiro Yamada
all of them so the if_changed rules work correctly. Signed-off-by: Masahiro Yamada --- arch/alpha/kernel/syscalls/Makefile | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/alpha/kernel/syscalls/Makefile b/arch/alpha/kernel/syscalls/Makefile index

[PATCH 17/27] parisc: add missing FORCE and fix 'targets' to make if_changed work

2021-01-27 Thread Masahiro Yamada
all of them so the if_changed rules work correctly. Signed-off-by: Masahiro Yamada --- arch/parisc/kernel/syscalls/Makefile | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/arch/parisc/kernel/syscalls/Makefile b/arch/parisc/kernel/syscalls/Makefile index

[PATCH 10/27] ia64: syscalls: switch to generic syscalltbl.sh

2021-01-27 Thread Masahiro Yamada
As of v5.11-rc1, 12 architectures duplicate similar shell scripts in order to generate syscall table headers. My goal is to unify them into the single scripts/syscalltbl.sh. This commit converts ia64 to use scripts/syscalltbl.sh. Signed-off-by: Masahiro Yamada --- arch/ia64/kernel/entry.S

[PATCH 11/27] m68k: add missing FORCE and fix 'targets' to make if_changed work

2021-01-27 Thread Masahiro Yamada
all of them so the if_changed rules work correctly. Signed-off-by: Masahiro Yamada --- arch/m68k/kernel/syscalls/Makefile | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/m68k/kernel/syscalls/Makefile b/arch/m68k/kernel/syscalls/Makefile index 659faefdcb1d

[PATCH 13/27] microblaze: add missing FORCE and fix 'targets' to make if_changed work

2021-01-27 Thread Masahiro Yamada
all of them so the if_changed rules work correctly. Signed-off-by: Masahiro Yamada --- arch/microblaze/kernel/syscalls/Makefile | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/microblaze/kernel/syscalls/Makefile b/arch/microblaze/kernel/syscalls/Makefile

[PATCH 26/27] xtensa: add missing FORCE and fix 'targets' to make if_changed work

2021-01-27 Thread Masahiro Yamada
all of them so the if_changed rules work correctly. Signed-off-by: Masahiro Yamada --- arch/xtensa/kernel/syscalls/Makefile | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/xtensa/kernel/syscalls/Makefile b/arch/xtensa/kernel/syscalls/Makefile index

[PATCH 15/27] mips: add missing FORCE and fix 'targets' to make if_changed work

2021-01-27 Thread Masahiro Yamada
all of them so the if_changed rules work correctly. Signed-off-by: Masahiro Yamada --- arch/mips/kernel/syscalls/Makefile | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/arch/mips/kernel/syscalls/Makefile b/arch/mips/kernel/syscalls/Makefile

Re: [PATCH 1/2] powerpc/vdso: fix unnecessary rebuilds of vgettimeofday.o

2021-01-27 Thread Masahiro Yamada
On Thu, Dec 24, 2020 at 2:12 AM Masahiro Yamada wrote: > > vgettimeofday.o is unnecessarily rebuilt. Adding it to 'targets' is not > enough to fix the issue. Kbuild is correctly rebuilding it because the > command line is changed. > > PowerPC builds each vdso dire

[PATCH 00/27] arch: syscalls: unifiy all syscalltbl.sh into scripts/syscalltbl.sh

2021-01-27 Thread Masahiro Yamada
without changing the functionality. Masahiro Yamada (27): scripts: add generic syscalltbl.sh x86/syscalls: fix -Wmissing-prototypes warnings from COND_SYSCALL() x86/build: add missing FORCE and fix 'targets' to make if_changed work x86/entry/x32: rename __x32_compat_sys_

[PATCH 02/27] x86/syscalls: fix -Wmissing-prototypes warnings from COND_SYSCALL()

2021-01-27 Thread Masahiro Yamada
); | ^~~~ ... __SYS_STUB0() and __SYS_STUBx() defined a few lines above have forward declarations. Let's do likewise for __COND_SYSCALL() to fix the warnings. Signed-off-by: Masahiro Yamada --- arch/x86/include/asm/syscall_wrapper.h | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 09/27] ia64: add missing FORCE and fix 'targets' to make if_changed work

2021-01-27 Thread Masahiro Yamada
all of them so the if_changed rules work correctly. Signed-off-by: Masahiro Yamada --- arch/ia64/kernel/syscalls/Makefile | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/ia64/kernel/syscalls/Makefile b/arch/ia64/kernel/syscalls/Makefile index 813a58cba39c

[PATCH 12/27] m68k: syscalls: switch to generic syscalltbl.sh

2021-01-27 Thread Masahiro Yamada
As of v5.11-rc1, 12 architectures duplicate similar shell scripts in order to generate syscall table headers. My goal is to unify them into the single scripts/syscalltbl.sh. This commit converts m68k to use scripts/syscalltbl.sh. Signed-off-by: Masahiro Yamada --- arch/m68k/kernel/syscalls

[PATCH 18/27] parisc: syscalls: switch to generic syscalltbl.sh

2021-01-27 Thread Masahiro Yamada
. Signed-off-by: Masahiro Yamada --- arch/parisc/include/asm/Kbuild| 1 - arch/parisc/kernel/syscall.S | 16 +- arch/parisc/kernel/syscalls/Makefile | 19 arch/parisc/kernel/syscalls/syscalltbl.sh | 36 --- 4 files changed, 12

[PATCH 21/27] sparc: remove wrong comment from arch/sparc/include/asm/Kbuild

2021-01-27 Thread Masahiro Yamada
These are NOT exported to userspace. The headers listed in arch/sparc/include/uapi/asm/Kbuild are exported. Signed-off-by: Masahiro Yamada --- arch/sparc/include/asm/Kbuild | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/sparc/include/asm/Kbuild b/arch/sparc/include/asm/Kbuild index

[PATCH 16/27] mips: syscalls: switch to generic syscalltbl.sh

2021-01-27 Thread Masahiro Yamada
into syscall_table_o32.h. Signed-off-by: Masahiro Yamada --- arch/mips/include/asm/Kbuild| 7 +++-- arch/mips/kernel/scall32-o32.S | 4 +-- arch/mips/kernel/scall64-n32.S | 3 +-- arch/mips/kernel/scall64-n64.S | 3 +-- arch/mips/kernel/scall64-o32.S

Re: [PATCH 2/3] kbuild: LD_VERSION redenomination

2021-01-27 Thread Masahiro Yamada
On Sun, Dec 13, 2020 at 1:54 AM Masahiro Yamada wrote: > > Commit ccbef1674a15 ("Kbuild, lto: add ld-version and ld-ifversion > macros") introduced scripts/ld-version.sh for GCC LTO. > > At that time, this script handled 5 version fields because GCC LTO > needed the

[PATCH 1/5] kbuild: require all architectures to have arch/$(SRCARCH)/Kbuild

2021-05-12 Thread Masahiro Yamada
arch/$(SRCARCH)/Kbuild is useful for Makefile cleanups because you can use the obj-y syntax. Add an empty file if it is missing in arch/$(SRCARCH)/. Signed-off-by: Masahiro Yamada --- Makefile | 2 +- arch/alpha/Kbuild | 1 + arch/arc/Makefile | 3 --- arch/arm

Re: [PATCH kernel v3] powerpc/makefile: Do not redefine $(CPP) for preprocessor

2021-05-13 Thread Masahiro Yamada
[7] Clang, target with little endian only , -mbig-endian is ignored masahiro@grover:~$ echo | clang -E -dM -x c - | grep ENDIAN #define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__ #define __LITTLE_ENDIAN__ 1 #define __ORDER_BIG_ENDIAN__ 4321 #define __ORDER_LITTLE_ENDIAN__ 1234 #define __ORDER_PDP_ENDIAN__ 3412 masahiro@grover:~$ echo | clang -E -dM -x c - -mbig-endian | grep ENDIAN #define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__ #define __LITTLE_ENDIAN__ 1 #define __ORDER_BIG_ENDIAN__ 4321 #define __ORDER_LITTLE_ENDIAN__ 1234 #define __ORDER_PDP_ENDIAN__ 3412 -- Best Regards Masahiro Yamada

Re: [PATCH kernel v2] powerpc/makefile: Do not redefine $(CPP) for preprocessor

2021-05-13 Thread Masahiro Yamada
from scripts/Makefile.build commit 5cb0512c02ecd7e6214e912e4c150f4219ac78e0 Author: Linus Torvalds Date: Thu Nov 2 14:10:37 2017 -0700 Kbuild: don't pass "-C" to preprocessor when processing linker scripts You can entirely remove CPPFLAGS_vdso32.lds += -P -C -Upowerpc -- Best Regards Masahiro Yamada

Re: [PATCH 1/5] kbuild: require all architectures to have arch/$(SRCARCH)/Kbuild

2021-05-26 Thread Masahiro Yamada
On Wed, May 12, 2021 at 5:00 PM Masahiro Yamada wrote: > > arch/$(SRCARCH)/Kbuild is useful for Makefile cleanups because you can > use the obj-y syntax. > > Add an empty file if it is missing in arch/$(SRCARCH)/. > > Signed-off-by: Masahiro Yamada > --- Applied to linu

[PATCH] kbuild: replace LANG=C with LC_ALL=C

2021-04-24 Thread Masahiro Yamada
to get the deterministic result. LANG=C is not strong enough to override LC_* that may be set by end users. [1]: https://reproducible-builds.org/docs/locales/ Signed-off-by: Masahiro Yamada --- arch/powerpc/boot/wrapper | 2 +- scripts/nsdeps

[PATCH v2] kbuild: replace LANG=C with LC_ALL=C

2021-04-29 Thread Masahiro Yamada
to get the deterministic result. LANG=C is not strong enough to override LC_* that may be set by end users. [1]: https://reproducible-builds.org/docs/locales/ Signed-off-by: Masahiro Yamada Acked-by: Michael Ellerman (powerpc) Reviewed-by: Matthias Maennich Acked-by: Matthieu Baerts (mptcp) --- C

<    1   2   3   4   5   >