From: kbuild test robot <lkp@intel.com>
To: Dongli Zhang <dongli.zhang@oracle.com>
Cc: kbuild-all@01.org, xen-devel@lists.xenproject.org,
linux-kernel@vger.kernel.org, boris.ostrovsky@oracle.com,
jgross@suse.com, joao.m.martins@oracle.com
Subject: Re: [PATCH v4 1/1] xen/time: do not decrease steal time after live migration on xen
Date: Thu, 2 Nov 2017 07:35:18 +0800 [thread overview]
Message-ID: <201711020750.4wfLfqpv%fengguang.wu@intel.com> (raw)
In-Reply-To: <1509341179-8802-1-git-send-email-dongli.zhang@oracle.com>
[-- Attachment #1: Type: text/plain, Size: 4313 bytes --]
Hi Dongli,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on xen-tip/linux-next]
[also build test ERROR on v4.14-rc7 next-20171018]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Dongli-Zhang/xen-time-do-not-decrease-steal-time-after-live-migration-on-xen/20171102-025719
base: https://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git linux-next
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=arm64
All errors (new ones prefixed by >>):
drivers/xen/time.c: In function 'xen_accumulate_runstate_time':
drivers/xen/time.c:92:25: error: implicit declaration of function 'kcalloc' [-Werror=implicit-function-declaration]
runstate_time_delta = kcalloc(num_possible_cpus(),
^~~~~~~
drivers/xen/time.c:92:23: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
runstate_time_delta = kcalloc(num_possible_cpus(),
^
>> drivers/xen/time.c:102:31: error: implicit declaration of function 'kmalloc_array' [-Werror=implicit-function-declaration]
runstate_time_delta[cpu] = kmalloc_array(RUNSTATE_max,
^~~~~~~~~~~~~
drivers/xen/time.c:102:29: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
runstate_time_delta[cpu] = kmalloc_array(RUNSTATE_max,
^
drivers/xen/time.c:141:5: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration]
kfree(runstate_time_delta[cpu]);
^~~~~
cc1: some warnings being treated as errors
vim +/kmalloc_array +102 drivers/xen/time.c
82
83 void xen_accumulate_runstate_time(int action)
84 {
85 struct vcpu_runstate_info state;
86 int cpu, i;
87
88 switch (action) {
89 case -1: /* backup runstate time before suspend */
90 WARN_ON_ONCE(unlikely(runstate_time_delta));
91
> 92 runstate_time_delta = kcalloc(num_possible_cpus(),
93 sizeof(*runstate_time_delta),
94 GFP_KERNEL);
95 if (unlikely(!runstate_time_delta)) {
96 pr_alert("%s: failed to allocate runstate_time_delta\n",
97 __func__);
98 return;
99 }
100
101 for_each_possible_cpu(cpu) {
> 102 runstate_time_delta[cpu] = kmalloc_array(RUNSTATE_max,
103 sizeof(**runstate_time_delta),
104 GFP_KERNEL);
105 if (unlikely(!runstate_time_delta[cpu])) {
106 pr_alert("%s: failed to allocate runstate_time_delta[%d]\n",
107 __func__, cpu);
108 action = 0;
109 goto reclaim_mem;
110 }
111
112 xen_get_runstate_snapshot_cpu_delta(&state, cpu);
113 memcpy(runstate_time_delta[cpu],
114 state.time,
115 RUNSTATE_max * sizeof(**runstate_time_delta));
116 }
117 break;
118
119 case 0: /* backup runstate time after resume */
120 if (unlikely(!runstate_time_delta)) {
121 pr_alert("%s: cannot accumulate runstate time as runstate_time_delta is NULL\n",
122 __func__);
123 return;
124 }
125
126 for_each_possible_cpu(cpu) {
127 for (i = 0; i < RUNSTATE_max; i++)
128 per_cpu(old_runstate_time, cpu)[i] +=
129 runstate_time_delta[cpu][i];
130 }
131 break;
132
133 default: /* do not accumulate runstate time for checkpointing */
134 break;
135 }
136
137 reclaim_mem:
138 if (action != -1 && runstate_time_delta) {
139 for_each_possible_cpu(cpu) {
140 if (likely(runstate_time_delta[cpu]))
141 kfree(runstate_time_delta[cpu]);
142 }
143 kfree(runstate_time_delta);
144 runstate_time_delta = NULL;
145 }
146 }
147
---
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: 57589 bytes --]
prev parent reply other threads:[~2017-11-01 23:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-30 5:26 Dongli Zhang
2017-10-30 6:28 ` Juergen Gross
2017-11-01 23:35 ` kbuild test robot [this message]
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=201711020750.4wfLfqpv%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=boris.ostrovsky@oracle.com \
--cc=dongli.zhang@oracle.com \
--cc=jgross@suse.com \
--cc=joao.m.martins@oracle.com \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xen-devel@lists.xenproject.org \
/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
all inboxes | Powered by JetHome®