All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-tdx:guest-kexec 13/13] arch/x86/kernel/acpi/madt_wakeup.c:149:2: error: 'smp_ops' undeclared
@ 2023-09-30  3:01 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-09-30  3:01 UTC (permalink / raw)
  To: Kirill A. Shutemov; +Cc: oe-kbuild-all

tree:   https://github.com/intel/tdx.git guest-kexec
head:   34488d4fd2b299a51196e878575dd1e83cbbbc7f
commit: 34488d4fd2b299a51196e878575dd1e83cbbbc7f [13/13] x86/acpi: Add support for CPU offlining for ACPI MADT wakeup method
config: x86_64-buildonly-randconfig-006-20230930 (https://download.01.org/0day-ci/archive/20230930/202309301018.JdWROPS5-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230930/202309301018.JdWROPS5-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/202309301018.JdWROPS5-lkp@intel.com/

All errors (new ones prefixed by >>):

   arch/x86/kernel/acpi/madt_wakeup.c: In function 'acpi_mp_setup_reset':
>> arch/x86/kernel/acpi/madt_wakeup.c:149:2: error: 'smp_ops' undeclared (first use in this function)
     149 |  smp_ops.play_dead = acpi_mp_play_dead;
         |  ^~~~~~~
   arch/x86/kernel/acpi/madt_wakeup.c:149:2: note: each undeclared identifier is reported only once for each function it appears in


vim +/smp_ops +149 arch/x86/kernel/acpi/madt_wakeup.c

   120	
   121	static int __init acpi_mp_setup_reset(u64 reset_vector)
   122	{
   123		pgd_t *pgd;
   124		struct x86_mapping_info info = {
   125			.alloc_pgt_page = alloc_pgt_page,
   126			.page_flag      = __PAGE_KERNEL_LARGE_EXEC,
   127			.kernpg_flag    = _KERNPG_TABLE_NOENC,
   128		};
   129	
   130		pgd = alloc_pgt_page(NULL);
   131	
   132		for (int i = 0; i < nr_pfn_mapped; i++) {
   133			unsigned long mstart, mend;
   134			mstart = pfn_mapped[i].start << PAGE_SHIFT;
   135			mend   = pfn_mapped[i].end << PAGE_SHIFT;
   136			if (kernel_ident_mapping_init(&info, pgd, mstart, mend))
   137				return -ENOMEM;
   138		}
   139	
   140		if (kernel_ident_mapping_init(&info, pgd,
   141					      PAGE_ALIGN_DOWN(reset_vector),
   142					      PAGE_ALIGN(reset_vector + 1))) {
   143			return -ENOMEM;
   144		}
   145	
   146		if (init_transition_pgtable(pgd))
   147			return -ENOMEM;
   148	
 > 149		smp_ops.play_dead = acpi_mp_play_dead;
   150		smp_ops.cpu_die = acpi_mp_cpu_die;
   151		smp_ops.stop_other_cpus = acpi_mp_stop_other_cpus;
   152		smp_ops.crash_stop_other_cpus = acpi_mp_crash_stop_other_cpus;
   153	
   154		acpi_mp_reset_vector_paddr = reset_vector;
   155		acpi_mp_pgd = __pa(pgd);
   156	
   157		return 0;
   158	}
   159	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-30  3:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-30  3:01 [intel-tdx:guest-kexec 13/13] arch/x86/kernel/acpi/madt_wakeup.c:149:2: error: 'smp_ops' undeclared 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.