-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
: 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
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
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
vive
GNUTARGET=elf$(BITS)-$(GNUTARGET)
in a *separate* patch, correct?
--
Best Regards
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
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
$(wildcard
$(srctree)/arch/$(SRCARCH)/include/asm/asm-prototypes.h)
--
Best Regards
Masahiro Yamada
check = \
$(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh
"$(OBJDUMP)" "$@"
> --
> Cheers,
> Stephen Rothwell
--
Best Regards
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
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
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
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
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
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
/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
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
;
^~~~
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
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
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
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
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
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
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
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
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
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
,
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
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
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,
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
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
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
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
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
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
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
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
' 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
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
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
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
+ 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
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
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,
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
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
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
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
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
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
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
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
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
)$(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
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:
> >
> >
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
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
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
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
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_
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
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.
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
. 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
.
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
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
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
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
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
, 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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_
);
| ^~~~
...
__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
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
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
.
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
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
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
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
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
[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
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
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
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
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
201 - 300 of 451 matches
Mail list logo