Re: [PATCH] kbuild: use objcopy to generate asm-offsets

2024-09-03 Thread Masahiro Yamada
On Tue, Sep 3, 2024 at 4:21 PM Vegard Nossum wrote: > > > On 03/09/2024 01:45, Michael Ellerman wrote: > > Vegard Nossum writes: > >> Remove the sed script and compile the C source listing structs and > >> offsets to an object file (instead of assembly code) that embeds C source > >> directly. Th

Re: [PATCH] kbuild: use objcopy to generate asm-offsets

2024-09-03 Thread Vegard Nossum
On 03/09/2024 01:45, Michael Ellerman wrote: Vegard Nossum writes: Remove the sed script and compile the C source listing structs and offsets to an object file (instead of assembly code) that embeds C source directly. Then extract the C source using objcopy. I threw some builders at this an

Re: [PATCH] kbuild: use objcopy to generate asm-offsets

2024-09-02 Thread Michael Ellerman
Vegard Nossum writes: > In order to give assembly code access to C structs without having to > hardcore member offsets, the kernel compiles a C source file listing all > the structs and offsets that are needed in assembly code. Using some > C preprocessor trickery and a sed script, the compiled as

Re: [PATCH] kbuild: use objcopy to generate asm-offsets

2024-08-29 Thread kernel test robot
Hi Vegard, kernel test robot noticed the following build warnings: [auto build test WARNING on masahiroy-kbuild/for-next] [also build test WARNING on masahiroy-kbuild/fixes soc/for-next kvmarm/next kvm/queue uml/next krzk-mem-ctrl/for-next bpf-next/master bpf/master linus/master v6.11-rc5 next-

Re: [PATCH] kbuild: use objcopy to generate asm-offsets

2024-08-29 Thread kernel test robot
Hi Vegard, kernel test robot noticed the following build errors: [auto build test ERROR on masahiroy-kbuild/for-next] [also build test ERROR on masahiroy-kbuild/fixes soc/for-next kvmarm/next kvm/queue uml/next krzk-mem-ctrl/for-next bpf-next/master bpf/master linus/master v6.11-rc5 next-202408

Re: [PATCH] kbuild: use objcopy to generate asm-offsets

2024-08-29 Thread kernel test robot
Hi Vegard, kernel test robot noticed the following build errors: [auto build test ERROR on masahiroy-kbuild/for-next] [also build test ERROR on masahiroy-kbuild/fixes soc/for-next kvmarm/next kvm/queue uml/next krzk-mem-ctrl/for-next bpf-next/master bpf/master linus/master v6.11-rc5 next-202408

Re: [PATCH] kbuild: use objcopy to generate asm-offsets

2024-08-28 Thread Vegard Nossum
On 28/08/2024 10:36, Vegard Nossum wrote: In order to give assembly code access to C structs without having to hardcore member offsets, the kernel compiles a C source file listing all the structs and offsets that are needed in assembly code. Using some C preprocessor trickery and a sed script,