[pm:bleeding-edge 83/87] kernel/power/suspend_test.c:169:14: error: 'pm_labels' undeclared
From: kbuild test robot <hidden>
Date: 2016-11-21 15:04:45
Also in:
linux-acpi
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge head: 1a78c4a8b66e066fb9e8ddf8b1b3751419be4253 commit: 12c439fcb033d4442a92201f61643e79b53d10cf [83/87] PM / sleep: System sleep state selection interface rework config: x86_64-allyesdebian (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: git checkout 12c439fcb033d4442a92201f61643e79b53d10cf # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): kernel/power/suspend_test.c: In function 'setup_test_suspend':
quoted
kernel/power/suspend_test.c:169:14: error: 'pm_labels' undeclared (first use in this function)
for (i = 0; pm_labels[i]; i++)
^~~~~~~~~
kernel/power/suspend_test.c:169:14: note: each undeclared identifier is reported only once for each function it appears in
vim +/pm_labels +169 kernel/power/suspend_test.c
2ce98689 Srinivas Pandruvada 2014-09-02 163 repeat = strsep(&value, ",");
2ce98689 Srinivas Pandruvada 2014-09-02 164 if (repeat) {
2ce98689 Srinivas Pandruvada 2014-09-02 165 if (kstrtou32(repeat, 0, &test_repeat_count_max))
2ce98689 Srinivas Pandruvada 2014-09-02 166 return 0;
2ce98689 Srinivas Pandruvada 2014-09-02 167 }
2ce98689 Srinivas Pandruvada 2014-09-02 168
62109b43 Rafael J. Wysocki 2014-09-03 @169 for (i = 0; pm_labels[i]; i++)
2ce98689 Srinivas Pandruvada 2014-09-02 170 if (!strcmp(pm_labels[i], suspend_type)) {
62109b43 Rafael J. Wysocki 2014-09-03 171 test_state_label = pm_labels[i];
a9d70523 Rafael J. Wysocki 2009-06-10 172 return 0;
:::::: The code at line 169 was first introduced by commit
:::::: 62109b43176b87e78b2b6d91bcfe16128c30229b PM / sleep: Fix test_suspend= command line option
:::::: TO: Rafael J. Wysocki [off-list ref]
:::::: CC: Rafael J. Wysocki [off-list ref]
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation Attachments
- .config.gz [application/gzip] 37765 bytes