All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [intel-tdx:guest-kexec 13/13] arch/x86/kernel/acpi/madt_wakeup.c:149:2: error: 'smp_ops' undeclared
Date: Sat, 30 Sep 2023 11:01:26 +0800	[thread overview]
Message-ID: <202309301018.JdWROPS5-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-09-30  3:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202309301018.JdWROPS5-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.