From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v16 02/12] of: Add a common kexec FDT setup function
Date: Sun, 07 Feb 2021 07:38:00 +0800 [thread overview]
Message-ID: <202102070723.Amd4fdVr-lkp@intel.com> (raw)
In-Reply-To: <20210204164135.29856-3-nramas@linux.microsoft.com>
[-- Attachment #1: Type: text/plain, Size: 4444 bytes --]
Hi Lakshmi,
I love your patch! Yet something to improve:
[auto build test ERROR on powerpc/next]
[also build test ERROR on robh/for-next arm64/for-next/core v5.11-rc6 next-20210125]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Lakshmi-Ramasubramanian/Carry-forward-IMA-measurement-log-on-kexec-on-ARM64/20210205-010018
base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: x86_64-randconfig-a006-20210205 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/029dfec178c52eaec7d685d81c9b0a08da337d66
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Lakshmi-Ramasubramanian/Carry-forward-IMA-measurement-log-on-kexec-on-ARM64/20210205-010018
git checkout 029dfec178c52eaec7d685d81c9b0a08da337d66
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from arch/x86/include/asm/user_64.h:6,
from arch/x86/include/asm/user.h:8,
from include/linux/user.h:1,
from include/linux/elfcore.h:5,
from include/linux/crash_core.h:6,
from include/linux/kexec.h:18,
from drivers/of/kexec.c:13:
drivers/of/kexec.c: In function 'of_kexec_setup_new_fdt':
>> drivers/of/kexec.c:86:43: error: 'initial_boot_params' undeclared (first use in this function)
86 | ret = fdt_find_and_del_mem_rsv(fdt, __pa(initial_boot_params),
| ^~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/page.h:42:46: note: in definition of macro '__pa'
42 | #define __pa(x) __phys_addr((unsigned long)(x))
| ^
drivers/of/kexec.c:86:43: note: each undeclared identifier is reported only once for each function it appears in
86 | ret = fdt_find_and_del_mem_rsv(fdt, __pa(initial_boot_params),
| ^~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/page.h:42:46: note: in definition of macro '__pa'
42 | #define __pa(x) __phys_addr((unsigned long)(x))
| ^
drivers/of/kexec.c:163:17: error: 'const struct kimage_arch' has no member named 'elf_headers_mem'; did you mean 'elf_headers_sz'?
163 | image->arch.elf_headers_mem,
| ^~~~~~~~~~~~~~~
| elf_headers_sz
drivers/of/kexec.c:172:42: error: 'const struct kimage_arch' has no member named 'elf_headers_mem'; did you mean 'elf_headers_sz'?
172 | ret = fdt_add_mem_rsv(fdt, image->arch.elf_headers_mem,
| ^~~~~~~~~~~~~~~
| elf_headers_sz
vim +/initial_boot_params +86 drivers/of/kexec.c
65
66 /*
67 * of_kexec_setup_new_fdt - modify /chosen and memory reservation for the next kernel
68 *
69 * @image: kexec image being loaded.
70 * @fdt: Flattened device tree for the next kernel.
71 * @initrd_load_addr: Address where the next initrd will be loaded.
72 * @initrd_len: Size of the next initrd, or 0 if there will be none.
73 * @cmdline: Command line for the next kernel, or NULL if there will
74 * be none.
75 *
76 * Return: 0 on success, or negative errno on error.
77 */
78 int of_kexec_setup_new_fdt(const struct kimage *image, void *fdt,
79 unsigned long initrd_load_addr, unsigned long initrd_len,
80 const char *cmdline)
81 {
82 int ret, chosen_node;
83 const void *prop;
84
85 /* Remove memory reservation for the current device tree. */
> 86 ret = fdt_find_and_del_mem_rsv(fdt, __pa(initial_boot_params),
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34394 bytes --]
next prev parent reply other threads:[~2021-02-06 23:38 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-04 16:41 [PATCH v16 00/12] Carry forward IMA measurement log on kexec on ARM64 Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` [PATCH v16 01/12] powerpc: Rename kexec elfcorehdr_addr to elf_headers_mem Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` [PATCH v16 02/12] of: Add a common kexec FDT setup function Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-06 23:38 ` kernel test robot [this message]
2021-02-04 16:41 ` [PATCH v16 03/12] arm64: Use common of_kexec_setup_new_fdt() Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` [PATCH v16 04/12] powerpc: " Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` [PATCH v16 05/12] powerpc: Move ima buffer fields to struct kimage Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` [PATCH v16 06/12] powerpc: Move arch independent ima kexec functions to drivers/of/kexec.c Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` [PATCH v16 07/12] kexec: Use fdt_appendprop_addrrange() to add ima buffer to FDT Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` [PATCH v16 08/12] powerpc: Delete unused function delete_fdt_mem_rsv() Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` [PATCH v16 09/12] of: Define functions to allocate and free FDT Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` [PATCH v16 10/12] arm64: Use OF alloc and free functions for FDT Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 18:00 ` Will Deacon
2021-02-04 18:00 ` Will Deacon
2021-02-04 18:00 ` Will Deacon
2021-02-04 16:41 ` [PATCH v16 11/12] powerpc: Use OF alloc and free " Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 19:26 ` Rob Herring
2021-02-04 19:26 ` Rob Herring
2021-02-04 19:26 ` Rob Herring
2021-02-04 23:23 ` Lakshmi Ramasubramanian
2021-02-04 23:23 ` Lakshmi Ramasubramanian
2021-02-04 23:23 ` Lakshmi Ramasubramanian
2021-02-04 23:36 ` Rob Herring
2021-02-04 23:36 ` Rob Herring
2021-02-04 23:36 ` Rob Herring
2021-02-04 23:42 ` Lakshmi Ramasubramanian
2021-02-04 23:42 ` Lakshmi Ramasubramanian
2021-02-04 23:42 ` Lakshmi Ramasubramanian
2021-02-08 4:12 ` Michael Ellerman
2021-02-08 4:12 ` Michael Ellerman
2021-02-08 4:12 ` Michael Ellerman
2021-02-04 16:41 ` [PATCH v16 12/12] arm64: Enable passing IMA log to next kernel on kexec Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
2021-02-04 16:41 ` Lakshmi Ramasubramanian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202102070723.Amd4fdVr-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.