From: kernel test robot <lkp@intel.com>
To: Sourabh Jain <sourabhjain@linux.ibm.com>
Cc: oe-kbuild-all@lists.linux.dev, Madhavan Srinivasan <maddy@linux.ibm.com>
Subject: [linuxppc:merge-test 8/28] arch/powerpc/kexec/crash.c:425:38: error: 'struct kimage' has no member named 'arch'
Date: Thu, 05 Mar 2026 16:22:24 +0800 [thread overview]
Message-ID: <202603051636.SiLrBiuv-lkp@intel.com> (raw)
tree: https://github.com/linuxppc/linux merge-test
head: 51348d7aa6f1a90d45ecf693d94e7865439b09d1
commit: d1035200dfb801750f5fd8c3be2f61a37d2af884 [8/28] powerpc/crash: Update backup region offset in elfcorehdr on memory hotplug
config: powerpc64-randconfig-r051-20260305 (https://download.01.org/0day-ci/archive/20260305/202603051636.SiLrBiuv-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260305/202603051636.SiLrBiuv-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603051636.SiLrBiuv-lkp@intel.com/
All errors (new ones prefixed by >>):
arch/powerpc/kexec/crash.c: In function 'sync_backup_region_phdr':
>> arch/powerpc/kexec/crash.c:425:38: error: 'struct kimage' has no member named 'arch'
425 | image->arch.backup_start = phdr->p_offset;
| ^~
arch/powerpc/kexec/crash.c:427:55: error: 'struct kimage' has no member named 'arch'
427 | phdr->p_offset = image->arch.backup_start;
| ^~
In file included from include/asm-generic/bug.h:31,
from arch/powerpc/include/asm/bug.h:116,
from include/linux/bug.h:5,
from include/linux/instrumented.h:10,
from include/asm-generic/bitops/instrumented-atomic.h:14,
from arch/powerpc/include/asm/bitops.h:321,
from include/linux/bitops.h:67,
from include/linux/kernel.h:23,
from arch/powerpc/kexec/crash.c:10:
arch/powerpc/kexec/crash.c:430:44: error: 'struct kimage' has no member named 'arch'
430 | image->arch.backup_start);
| ^~
include/linux/printk.h:483:33: note: in definition of macro 'printk_index_wrap'
483 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/printk.h:584:9: note: in expansion of macro 'printk'
584 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
include/linux/kexec.h:531:40: note: in expansion of macro 'pr_info'
531 | do { if (kexec_file_dbg_print) pr_info(fmt, ##arg); } while (0)
| ^~~~~~~
arch/powerpc/kexec/crash.c:429:25: note: in expansion of macro 'kexec_dprintk'
429 | kexec_dprintk("Backup region offset updated to 0x%lx\n",
| ^~~~~~~~~~~~~
vim +425 arch/powerpc/kexec/crash.c
402
403 #ifdef CONFIG_CRASH_DUMP
404 /**
405 * sync_backup_region_phdr - synchronize backup region offset between
406 * kexec image and ELF core header.
407 * @image: Kexec image.
408 * @ehdr: ELF core header.
409 * @phdr_to_kimage: If true, read the offset from the ELF program header
410 * and update the kimage backup region. If false, update
411 * the ELF program header offset from the kimage backup
412 * region.
413 *
414 * Returns nothing.
415 */
416 void sync_backup_region_phdr(struct kimage *image, Elf64_Ehdr *ehdr, bool phdr_to_kimage)
417 {
418 Elf64_Phdr *phdr;
419 unsigned int i;
420
421 phdr = (Elf64_Phdr *)(ehdr + 1);
422 for (i = 0; i < ehdr->e_phnum; i++, phdr++) {
423 if (phdr->p_paddr == BACKUP_SRC_START) {
424 if (phdr_to_kimage)
> 425 image->arch.backup_start = phdr->p_offset;
426 else
427 phdr->p_offset = image->arch.backup_start;
428
429 kexec_dprintk("Backup region offset updated to 0x%lx\n",
430 image->arch.backup_start);
431 return;
432 }
433 }
434 }
435 #endif /* CONFIG_CRASH_DUMP */
436
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-03-05 8:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-05 8:22 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-03-04 11:15 [linuxppc:merge-test 8/28] arch/powerpc/kexec/crash.c:425:38: error: 'struct kimage' has no member named 'arch' kernel test robot
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=202603051636.SiLrBiuv-lkp@intel.com \
--to=lkp@intel.com \
--cc=maddy@linux.ibm.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sourabhjain@linux.ibm.com \
/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.