All of lore.kernel.org
 help / color / mirror / Atom feed
* [linuxppc:merge-test 8/28] arch/powerpc/kexec/crash.c:425:38: error: 'struct kimage' has no member named 'arch'
@ 2026-03-04 11:15 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-03-04 11:15 UTC (permalink / raw)
  To: Sourabh Jain; +Cc: oe-kbuild-all, Madhavan Srinivasan

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-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260304/202603041251.fEtyajDg-lkp@intel.com/config)
compiler: powerpc64-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260304/202603041251.fEtyajDg-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/202603041251.fEtyajDg-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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [linuxppc:merge-test 8/28] arch/powerpc/kexec/crash.c:425:38: error: 'struct kimage' has no member named 'arch'
@ 2026-03-05  8:22 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-03-05  8:22 UTC (permalink / raw)
  To: Sourabh Jain; +Cc: oe-kbuild-all, Madhavan Srinivasan

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-03-05  8:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05  8:22 [linuxppc:merge-test 8/28] arch/powerpc/kexec/crash.c:425:38: error: 'struct kimage' has no member named 'arch' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-03-04 11:15 kernel test robot

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.