From: kbuild test robot <lkp@intel.com>
To: Nicholas Piggin <npiggin@gmail.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
tipbuild@zytor.com, Ingo Molnar <mingo@kernel.org>,
"Peter Zijlstra (Intel)" <peterz@infradead.org>
Subject: [tip:sched/core 24/27] kernel/power/hibernate.c:284:10: error: implicit declaration of function 'suspend_disable_secondary_cpus'
Date: Fri, 3 May 2019 21:00:58 +0800 [thread overview]
Message-ID: <201905032142.YVCdv1Lz%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3751 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core
head: 65874bd36e6ae3028539e989bfb5c28ad457368e
commit: c2cb30bfceceba8a2a0d5713230a250dd6140e22 [24/27] power/suspend: Add function to disable secondaries for suspend
config: x86_64-randconfig-l2-05031806 (attached as .config)
compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010
reproduce:
git checkout c2cb30bfceceba8a2a0d5713230a250dd6140e22
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
kernel/power/hibernate.c: In function 'create_image':
>> kernel/power/hibernate.c:284:10: error: implicit declaration of function 'suspend_disable_secondary_cpus' [-Werror=implicit-function-declaration]
error = suspend_disable_secondary_cpus();
^
>> kernel/power/hibernate.c:326:2: error: implicit declaration of function 'suspend_enable_secondary_cpus' [-Werror=implicit-function-declaration]
suspend_enable_secondary_cpus();
^
cc1: some warnings being treated as errors
vim +/suspend_disable_secondary_cpus +284 kernel/power/hibernate.c
260
261 /**
262 * create_image - Create a hibernation image.
263 * @platform_mode: Whether or not to use the platform driver.
264 *
265 * Execute device drivers' "late" and "noirq" freeze callbacks, create a
266 * hibernation image and run the drivers' "noirq" and "early" thaw callbacks.
267 *
268 * Control reappears in this routine after the subsequent restore.
269 */
270 static int create_image(int platform_mode)
271 {
272 int error;
273
274 error = dpm_suspend_end(PMSG_FREEZE);
275 if (error) {
276 pr_err("Some devices failed to power down, aborting hibernation\n");
277 return error;
278 }
279
280 error = platform_pre_snapshot(platform_mode);
281 if (error || hibernation_test(TEST_PLATFORM))
282 goto Platform_finish;
283
> 284 error = suspend_disable_secondary_cpus();
285 if (error || hibernation_test(TEST_CPUS))
286 goto Enable_cpus;
287
288 local_irq_disable();
289
290 system_state = SYSTEM_SUSPEND;
291
292 error = syscore_suspend();
293 if (error) {
294 pr_err("Some system devices failed to power down, aborting hibernation\n");
295 goto Enable_irqs;
296 }
297
298 if (hibernation_test(TEST_CORE) || pm_wakeup_pending())
299 goto Power_up;
300
301 in_suspend = 1;
302 save_processor_state();
303 trace_suspend_resume(TPS("machine_suspend"), PM_EVENT_HIBERNATE, true);
304 error = swsusp_arch_suspend();
305 /* Restore control flow magically appears here */
306 restore_processor_state();
307 trace_suspend_resume(TPS("machine_suspend"), PM_EVENT_HIBERNATE, false);
308 if (error)
309 pr_err("Error %d creating hibernation image\n", error);
310
311 if (!in_suspend) {
312 events_check_enabled = false;
313 clear_free_pages();
314 }
315
316 platform_leave(platform_mode);
317
318 Power_up:
319 syscore_resume();
320
321 Enable_irqs:
322 system_state = SYSTEM_RUNNING;
323 local_irq_enable();
324
325 Enable_cpus:
> 326 suspend_enable_secondary_cpus();
327
328 Platform_finish:
329 platform_finish(platform_mode);
330
331 dpm_resume_start(in_suspend ?
332 (error ? PMSG_RECOVER : PMSG_THAW) : PMSG_RESTORE);
333
334 return error;
335 }
336
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 26791 bytes --]
reply other threads:[~2019-05-03 13: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=201905032142.YVCdv1Lz%lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=npiggin@gmail.com \
--cc=peterz@infradead.org \
--cc=tipbuild@zytor.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome