Re: [PATCH v3 1/1] ceph: add getvxattr op
by kernel test robot
Hi Milind,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on fd84bfdddd169c219c3a637889a8b87f70a072c2]
url: https://github.com/0day-ci/linux/commits/Milind-Changire/ceph-add-support...
base: fd84bfdddd169c219c3a637889a8b87f70a072c2
config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20220117/202201171456.wqUIG50D-lk...)
compiler: riscv64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/2c3b424994ab41a8d52471eb5a6721f46...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Milind-Changire/ceph-add-support-for-getvxattr-op/20220117-120129
git checkout 2c3b424994ab41a8d52471eb5a6721f466d515dc
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash fs/ceph/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
fs/ceph/inode.c: In function 'ceph_do_getvxattr':
>> <command-line>: warning: format '%u' expects argument of type 'unsigned int', but argument 7 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
include/linux/ceph/ceph_debug.h:5:21: note: in expansion of macro 'KBUILD_MODNAME'
5 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
include/linux/dynamic_debug.h:134:29: note: in expansion of macro 'pr_fmt'
134 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:152:9: note: in expansion of macro '__dynamic_func_call'
152 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:162:9: note: in expansion of macro '_dynamic_func_call'
162 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:574:9: note: in expansion of macro 'dynamic_pr_debug'
574 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
include/linux/ceph/ceph_debug.h:19:9: note: in expansion of macro 'pr_debug'
19 | pr_debug("%.*s %12.12s:%-4d : " fmt, \
| ^~~~~~~~
fs/ceph/inode.c:2326:9: note: in expansion of macro 'dout'
2326 | dout("do_getvxattr xattr_value_len:%u, size:%u\n", xattr_value_len, size);
| ^~~~
<command-line>: warning: format '%u' expects argument of type 'unsigned int', but argument 8 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
include/linux/ceph/ceph_debug.h:5:21: note: in expansion of macro 'KBUILD_MODNAME'
5 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
include/linux/dynamic_debug.h:134:29: note: in expansion of macro 'pr_fmt'
134 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:152:9: note: in expansion of macro '__dynamic_func_call'
152 | __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:162:9: note: in expansion of macro '_dynamic_func_call'
162 | _dynamic_func_call(fmt, __dynamic_pr_debug, \
| ^~~~~~~~~~~~~~~~~~
include/linux/printk.h:574:9: note: in expansion of macro 'dynamic_pr_debug'
574 | dynamic_pr_debug(fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~
include/linux/ceph/ceph_debug.h:19:9: note: in expansion of macro 'pr_debug'
19 | pr_debug("%.*s %12.12s:%-4d : " fmt, \
| ^~~~~~~~
fs/ceph/inode.c:2326:9: note: in expansion of macro 'dout'
2326 | dout("do_getvxattr xattr_value_len:%u, size:%u\n", xattr_value_len, size);
| ^~~~
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
Re: [PATCH v2 6/6] ASoC: amd: renoir: Add check for acp configuration flags.
by kernel test robot
Hi Ajit,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on broonie-sound/for-next]
[also build test ERROR on next-20220117]
[cannot apply to v5.16]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Ajit-Kumar-Pandey/ASOC-amd-acp-A...
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: x86_64-randconfig-r014-20211215 (https://download.01.org/0day-ci/archive/20220117/202201171356.6vrZs5rw-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/bc740a222d4191f55c5f7a197e919e94a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ajit-Kumar-Pandey/ASOC-amd-acp-Add-generic-PDM-and-PCI-driver-support-for-ACP/20220114-003620
git checkout bc740a222d4191f55c5f7a197e919e94a5f63419
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
vmlinux.o: warning: objtool: do_machine_check()+0xb08: call to queue_task_work() leaves .noinstr.text section
vmlinux.o: warning: objtool: enter_from_user_mode()+0x52: call to on_thread_stack() leaves .noinstr.text section
vmlinux.o: warning: objtool: syscall_enter_from_user_mode()+0x59: call to on_thread_stack() leaves .noinstr.text section
vmlinux.o: warning: objtool: syscall_enter_from_user_mode_prepare()+0x52: call to on_thread_stack() leaves .noinstr.text section
vmlinux.o: warning: objtool: irqentry_enter_from_user_mode()+0x52: call to on_thread_stack() leaves .noinstr.text section
ld: sound/soc/amd/renoir/rn-pci-acp3x.o: in function `snd_rn_acp_probe':
>> sound/soc/amd/renoir/rn-pci-acp3x.c:220: undefined reference to `snd_amd_acp_find_config'
vim +220 sound/soc/amd/renoir/rn-pci-acp3x.c
204
205 static int snd_rn_acp_probe(struct pci_dev *pci,
206 const struct pci_device_id *pci_id)
207 {
208 struct acp_dev_data *adata;
209 struct platform_device_info pdevinfo[ACP_DEVS];
210 #if defined(CONFIG_ACPI)
211 acpi_handle handle;
212 acpi_integer dmic_status;
213 #endif
214 const struct dmi_system_id *dmi_id;
215 unsigned int irqflags, flag;
216 int ret, index;
217 u32 addr;
218
219 /* Return if acp config flag is defined */
> 220 flag = snd_amd_acp_find_config(pci);
221 if (flag)
222 return -ENODEV;
223
224 /* Renoir device check */
225 if (pci->revision != 0x01)
226 return -ENODEV;
227
228 if (pci_enable_device(pci)) {
229 dev_err(&pci->dev, "pci_enable_device failed\n");
230 return -ENODEV;
231 }
232
233 ret = pci_request_regions(pci, "AMD ACP3x audio");
234 if (ret < 0) {
235 dev_err(&pci->dev, "pci_request_regions failed\n");
236 goto disable_pci;
237 }
238
239 adata = devm_kzalloc(&pci->dev, sizeof(struct acp_dev_data),
240 GFP_KERNEL);
241 if (!adata) {
242 ret = -ENOMEM;
243 goto release_regions;
244 }
245
246 /* check for msi interrupt support */
247 ret = pci_enable_msi(pci);
248 if (ret)
249 /* msi is not enabled */
250 irqflags = IRQF_SHARED;
251 else
252 /* msi is enabled */
253 irqflags = 0;
254
255 addr = pci_resource_start(pci, 0);
256 adata->acp_base = devm_ioremap(&pci->dev, addr,
257 pci_resource_len(pci, 0));
258 if (!adata->acp_base) {
259 ret = -ENOMEM;
260 goto disable_msi;
261 }
262 pci_set_master(pci);
263 pci_set_drvdata(pci, adata);
264 ret = rn_acp_init(adata->acp_base);
265 if (ret)
266 goto disable_msi;
267
268 if (!dmic_acpi_check) {
269 ret = -ENODEV;
270 goto de_init;
271 } else if (dmic_acpi_check == ACP_DMIC_AUTO) {
272 #if defined(CONFIG_ACPI)
273 handle = ACPI_HANDLE(&pci->dev);
274 ret = acpi_evaluate_integer(handle, "_WOV", NULL, &dmic_status);
275 if (ACPI_FAILURE(ret)) {
276 ret = -ENODEV;
277 goto de_init;
278 }
279 if (!dmic_status) {
280 ret = -ENODEV;
281 goto de_init;
282 }
283 #endif
284 dmi_id = dmi_first_match(rn_acp_quirk_table);
285 if (dmi_id && !dmi_id->driver_data) {
286 dev_info(&pci->dev, "ACPI settings override using DMI (ACP mic is not present)");
287 ret = -ENODEV;
288 goto de_init;
289 }
290 }
291
292 adata->res = devm_kzalloc(&pci->dev,
293 sizeof(struct resource) * 2,
294 GFP_KERNEL);
295 if (!adata->res) {
296 ret = -ENOMEM;
297 goto de_init;
298 }
299
300 adata->res[0].name = "acp_pdm_iomem";
301 adata->res[0].flags = IORESOURCE_MEM;
302 adata->res[0].start = addr;
303 adata->res[0].end = addr + (ACP_REG_END - ACP_REG_START);
304 adata->res[1].name = "acp_pdm_irq";
305 adata->res[1].flags = IORESOURCE_IRQ;
306 adata->res[1].start = pci->irq;
307 adata->res[1].end = pci->irq;
308
309 memset(&pdevinfo, 0, sizeof(pdevinfo));
310 pdevinfo[0].name = "acp_rn_pdm_dma";
311 pdevinfo[0].id = 0;
312 pdevinfo[0].parent = &pci->dev;
313 pdevinfo[0].num_res = 2;
314 pdevinfo[0].res = adata->res;
315 pdevinfo[0].data = &irqflags;
316 pdevinfo[0].size_data = sizeof(irqflags);
317
318 pdevinfo[1].name = "dmic-codec";
319 pdevinfo[1].id = 0;
320 pdevinfo[1].parent = &pci->dev;
321 pdevinfo[2].name = "acp_pdm_mach";
322 pdevinfo[2].id = 0;
323 pdevinfo[2].parent = &pci->dev;
324 for (index = 0; index < ACP_DEVS; index++) {
325 adata->pdev[index] =
326 platform_device_register_full(&pdevinfo[index]);
327 if (IS_ERR(adata->pdev[index])) {
328 dev_err(&pci->dev, "cannot register %s device\n",
329 pdevinfo[index].name);
330 ret = PTR_ERR(adata->pdev[index]);
331 goto unregister_devs;
332 }
333 }
334 pm_runtime_set_autosuspend_delay(&pci->dev, ACP_SUSPEND_DELAY_MS);
335 pm_runtime_use_autosuspend(&pci->dev);
336 pm_runtime_put_noidle(&pci->dev);
337 pm_runtime_allow(&pci->dev);
338 return 0;
339
340 unregister_devs:
341 for (index = 0; index < ACP_DEVS; index++)
342 platform_device_unregister(adata->pdev[index]);
343 de_init:
344 if (rn_acp_deinit(adata->acp_base))
345 dev_err(&pci->dev, "ACP de-init failed\n");
346 disable_msi:
347 pci_disable_msi(pci);
348 release_regions:
349 pci_release_regions(pci);
350 disable_pci:
351 pci_disable_device(pci);
352
353 return ret;
354 }
355
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
drivers/media/v4l2-core/v4l2-ioctl.c:303:28: warning: taking address of packed member 'pixelformat' of class or structure 'v4l2_pix_format_mplane' may result in an unaligned pointer value
by kernel test robot
Hi Sakari,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 79e06c4c4950be2abd8ca5d2428a8c915aa62c24
commit: e927e1e0f0dd3e353d5556503a71484008692c82 v4l: ioctl: Use %p4cc printk modifier to print FourCC codes
date: 11 months ago
config: mips-randconfig-r002-20220116 (https://download.01.org/0day-ci/archive/20220117/202201171150.wl8T3ge0-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c63a3175c2947e8c1a2d3bbe16a8586600705c54)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e927e1e0f0dd3e353d5556503a71484008692c82
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/hid/ drivers/iio/adc/ drivers/media/v4l2-core/ drivers/usb/gadget/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/media/v4l2-core/v4l2-ioctl.c:303:28: warning: taking address of packed member 'pixelformat' of class or structure 'v4l2_pix_format_mplane' may result in an unaligned pointer value [-Waddress-of-packed-member]
mp->width, mp->height, &mp->pixelformat,
^~~~~~~~~~~~~~~
include/linux/printk.h:385:26: note: expanded from macro 'pr_cont'
printk(KERN_CONT fmt, ##__VA_ARGS__)
^~~~~~~~~~~
>> drivers/media/v4l2-core/v4l2-ioctl.c:347:37: warning: taking address of packed member 'pixelformat' of class or structure 'v4l2_sdr_format' may result in an unaligned pointer value [-Waddress-of-packed-member]
pr_cont(", pixelformat=%p4cc\n", &sdr->pixelformat);
^~~~~~~~~~~~~~~~
include/linux/printk.h:385:26: note: expanded from macro 'pr_cont'
printk(KERN_CONT fmt, ##__VA_ARGS__)
^~~~~~~~~~~
>> drivers/media/v4l2-core/v4l2-ioctl.c:353:5: warning: taking address of packed member 'dataformat' of class or structure 'v4l2_meta_format' may result in an unaligned pointer value [-Waddress-of-packed-member]
&meta->dataformat, meta->buffersize);
^~~~~~~~~~~~~~~~
include/linux/printk.h:385:26: note: expanded from macro 'pr_cont'
printk(KERN_CONT fmt, ##__VA_ARGS__)
^~~~~~~~~~~
3 warnings generated.
vim +303 drivers/media/v4l2-core/v4l2-ioctl.c
273
274 static void v4l_print_format(const void *arg, bool write_only)
275 {
276 const struct v4l2_format *p = arg;
277 const struct v4l2_pix_format *pix;
278 const struct v4l2_pix_format_mplane *mp;
279 const struct v4l2_vbi_format *vbi;
280 const struct v4l2_sliced_vbi_format *sliced;
281 const struct v4l2_window *win;
282 const struct v4l2_sdr_format *sdr;
283 const struct v4l2_meta_format *meta;
284 u32 planes;
285 unsigned i;
286
287 pr_cont("type=%s", prt_names(p->type, v4l2_type_names));
288 switch (p->type) {
289 case V4L2_BUF_TYPE_VIDEO_CAPTURE:
290 case V4L2_BUF_TYPE_VIDEO_OUTPUT:
291 pix = &p->fmt.pix;
292 pr_cont(", width=%u, height=%u, pixelformat=%p4cc, field=%s, bytesperline=%u, sizeimage=%u, colorspace=%d, flags=0x%x, ycbcr_enc=%u, quantization=%u, xfer_func=%u\n",
293 pix->width, pix->height, &pix->pixelformat,
294 prt_names(pix->field, v4l2_field_names),
295 pix->bytesperline, pix->sizeimage,
296 pix->colorspace, pix->flags, pix->ycbcr_enc,
297 pix->quantization, pix->xfer_func);
298 break;
299 case V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE:
300 case V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE:
301 mp = &p->fmt.pix_mp;
302 pr_cont(", width=%u, height=%u, format=%p4cc, field=%s, colorspace=%d, num_planes=%u, flags=0x%x, ycbcr_enc=%u, quantization=%u, xfer_func=%u\n",
> 303 mp->width, mp->height, &mp->pixelformat,
304 prt_names(mp->field, v4l2_field_names),
305 mp->colorspace, mp->num_planes, mp->flags,
306 mp->ycbcr_enc, mp->quantization, mp->xfer_func);
307 planes = min_t(u32, mp->num_planes, VIDEO_MAX_PLANES);
308 for (i = 0; i < planes; i++)
309 printk(KERN_DEBUG "plane %u: bytesperline=%u sizeimage=%u\n", i,
310 mp->plane_fmt[i].bytesperline,
311 mp->plane_fmt[i].sizeimage);
312 break;
313 case V4L2_BUF_TYPE_VIDEO_OVERLAY:
314 case V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY:
315 win = &p->fmt.win;
316 /* Note: we can't print the clip list here since the clips
317 * pointer is a userspace pointer, not a kernelspace
318 * pointer. */
319 pr_cont(", wxh=%dx%d, x,y=%d,%d, field=%s, chromakey=0x%08x, clipcount=%u, clips=%p, bitmap=%p, global_alpha=0x%02x\n",
320 win->w.width, win->w.height, win->w.left, win->w.top,
321 prt_names(win->field, v4l2_field_names),
322 win->chromakey, win->clipcount, win->clips,
323 win->bitmap, win->global_alpha);
324 break;
325 case V4L2_BUF_TYPE_VBI_CAPTURE:
326 case V4L2_BUF_TYPE_VBI_OUTPUT:
327 vbi = &p->fmt.vbi;
328 pr_cont(", sampling_rate=%u, offset=%u, samples_per_line=%u, sample_format=%p4cc, start=%u,%u, count=%u,%u\n",
329 vbi->sampling_rate, vbi->offset,
330 vbi->samples_per_line, &vbi->sample_format,
331 vbi->start[0], vbi->start[1],
332 vbi->count[0], vbi->count[1]);
333 break;
334 case V4L2_BUF_TYPE_SLICED_VBI_CAPTURE:
335 case V4L2_BUF_TYPE_SLICED_VBI_OUTPUT:
336 sliced = &p->fmt.sliced;
337 pr_cont(", service_set=0x%08x, io_size=%d\n",
338 sliced->service_set, sliced->io_size);
339 for (i = 0; i < 24; i++)
340 printk(KERN_DEBUG "line[%02u]=0x%04x, 0x%04x\n", i,
341 sliced->service_lines[0][i],
342 sliced->service_lines[1][i]);
343 break;
344 case V4L2_BUF_TYPE_SDR_CAPTURE:
345 case V4L2_BUF_TYPE_SDR_OUTPUT:
346 sdr = &p->fmt.sdr;
> 347 pr_cont(", pixelformat=%p4cc\n", &sdr->pixelformat);
348 break;
349 case V4L2_BUF_TYPE_META_CAPTURE:
350 case V4L2_BUF_TYPE_META_OUTPUT:
351 meta = &p->fmt.meta;
352 pr_cont(", dataformat=%p4cc, buffersize=%u\n",
> 353 &meta->dataformat, meta->buffersize);
354 break;
355 }
356 }
357
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
[mingo-tip:sched/headers 168/2384] include/linux/sched/affinity.h:32:9: error: incomplete definition of type 'struct task_struct'
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 4c707c1c0de83967079b4e385012fa5b00e2cd11
commit: 92675dd8b872d91539f60f7dc7ddf7e2a1c70361 [168/2384] headers/deps: Move CPU affinity APIs from <linux/sched.h> to <linux/sched/affinity.h>
config: i386-randconfig-a014-20220109 (https://download.01.org/0day-ci/archive/20220117/202201171113.5k8tKBGY-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5f782d25a742302d25ef3c8b84b54f7483c2deb9)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=...
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout 92675dd8b872d91539f60f7dc7ddf7e2a1c70361
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the mingo-tip/sched/headers HEAD 4c707c1c0de83967079b4e385012fa5b00e2cd11 builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
In file included from lib/syscall.c:2:
>> include/linux/sched/affinity.h:32:9: error: incomplete definition of type 'struct task_struct'
if (src->user_cpus_ptr)
~~~^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
include/linux/sched/affinity.h:8:8: note: forward declaration of 'struct task_struct'
struct task_struct;
^
>> include/linux/sched/affinity.h:32:9: error: incomplete definition of type 'struct task_struct'
if (src->user_cpus_ptr)
~~~^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:61: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
include/linux/sched/affinity.h:8:8: note: forward declaration of 'struct task_struct'
struct task_struct;
^
>> include/linux/sched/affinity.h:32:9: error: incomplete definition of type 'struct task_struct'
if (src->user_cpus_ptr)
~~~^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
(cond) ? \
^~~~
include/linux/sched/affinity.h:8:8: note: forward declaration of 'struct task_struct'
struct task_struct;
^
include/linux/sched/affinity.h:38:11: error: incomplete definition of type 'struct task_struct'
WARN_ON(p->user_cpus_ptr);
~^
include/asm-generic/bug.h:121:25: note: expanded from macro 'WARN_ON'
int __ret_warn_on = !!(condition); \
^~~~~~~~~
include/linux/sched/affinity.h:8:8: note: forward declaration of 'struct task_struct'
struct task_struct;
^
4 errors generated.
--
>> kernel/sched/core.c:3571:9: error: implicit declaration of function 'set_cpus_allowed_ptr' [-Werror,-Wimplicit-function-declaration]
return set_cpus_allowed_ptr(p, new_mask);
^
kernel/sched/core.c:3571:9: note: did you mean '__set_cpus_allowed_ptr'?
kernel/sched/core.c:3567:19: note: '__set_cpus_allowed_ptr' declared here
static inline int __set_cpus_allowed_ptr(struct task_struct *p,
^
>> kernel/sched/core.c:8017:11: error: implicit declaration of function 'dl_task_check_affinity' [-Werror,-Wimplicit-function-declaration]
retval = dl_task_check_affinity(p, new_mask);
^
kernel/sched/core.c:9369:13: warning: no previous prototype for function 'per_task_init' [-Wmissing-prototypes]
void __init per_task_init(void)
^
kernel/sched/core.c:9369:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __init per_task_init(void)
^
static
1 warning and 2 errors generated.
--
In file included from arch/x86/kernel/cpu/resctrl/pseudo_lock.c:14:
>> include/linux/sched/affinity.h:32:9: error: incomplete definition of type 'struct task_struct'
if (src->user_cpus_ptr)
~~~^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
include/linux/sched/affinity.h:8:8: note: forward declaration of 'struct task_struct'
struct task_struct;
^
>> include/linux/sched/affinity.h:32:9: error: incomplete definition of type 'struct task_struct'
if (src->user_cpus_ptr)
~~~^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:61: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
include/linux/sched/affinity.h:8:8: note: forward declaration of 'struct task_struct'
struct task_struct;
^
>> include/linux/sched/affinity.h:32:9: error: incomplete definition of type 'struct task_struct'
if (src->user_cpus_ptr)
~~~^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^~~~
include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
(cond) ? \
^~~~
include/linux/sched/affinity.h:8:8: note: forward declaration of 'struct task_struct'
struct task_struct;
^
include/linux/sched/affinity.h:38:11: error: incomplete definition of type 'struct task_struct'
WARN_ON(p->user_cpus_ptr);
~^
include/asm-generic/bug.h:121:25: note: expanded from macro 'WARN_ON'
int __ret_warn_on = !!(condition); \
^~~~~~~~~
include/linux/sched/affinity.h:8:8: note: forward declaration of 'struct task_struct'
struct task_struct;
^
In file included from arch/x86/kernel/cpu/resctrl/pseudo_lock.c:20:
include/linux/mman.h:158:9: warning: division by zero is undefined [-Wdivision-by-zero]
_calc_vm_trans(flags, MAP_SYNC, VM_SYNC ) |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/mman.h:136:21: note: expanded from macro '_calc_vm_trans'
: ((x) & (bit1)) / ((bit1) / (bit2))))
^ ~~~~~~~~~~~~~~~~~
1 warning and 4 errors generated.
vim +32 include/linux/sched/affinity.h
9
10 extern int cpuset_cpumask_can_shrink(const struct cpumask *cur, const struct cpumask *trial);
11 extern int task_can_attach(struct task_struct *p, const struct cpumask *cs_cpus_allowed);
12 #ifdef CONFIG_SMP
13 extern void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask);
14 extern int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask);
15 extern int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node);
16 extern void release_user_cpus_ptr(struct task_struct *p);
17 extern int dl_task_check_affinity(struct task_struct *p, const struct cpumask *mask);
18 extern void force_compatible_cpus_allowed_ptr(struct task_struct *p);
19 extern void relax_compatible_cpus_allowed_ptr(struct task_struct *p);
20 #else
21 static inline void do_set_cpus_allowed(struct task_struct *p, const struct cpumask *new_mask)
22 {
23 }
24 static inline int set_cpus_allowed_ptr(struct task_struct *p, const struct cpumask *new_mask)
25 {
26 if (!cpumask_test_cpu(0, new_mask))
27 return -EINVAL;
28 return 0;
29 }
30 static inline int dup_user_cpus_ptr(struct task_struct *dst, struct task_struct *src, int node)
31 {
> 32 if (src->user_cpus_ptr)
33 return -EINVAL;
34 return 0;
35 }
36 static inline void release_user_cpus_ptr(struct task_struct *p)
37 {
38 WARN_ON(p->user_cpus_ptr);
39 }
40
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
Re: [PATCHv7 5/5] asm-generic/io: Add logging support for MMIO accessors
by kernel test robot
Hi Sai,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on next-20220115]
[cannot apply to arm64/for-next/core arnd-asm-generic/master arm-perf/for-next/perf linus/master v5.16 v5.16-rc8 v5.16-rc7 v5.16]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Sai-Prakash-Ranjan/lib-rwmmio-ar...
base: bd8d9cef2a7932e688ca267ea1adf5ea6557c777
config: nios2-defconfig (https://download.01.org/0day-ci/archive/20220116/202201160019.hrsMYj6V-lk...)
compiler: nios2-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/0757812bba83a756f73ce1a84c86ded3e...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sai-Prakash-Ranjan/lib-rwmmio-arm64-Add-support-to-trace-register-reads-writes/20220115-211708
git checkout 0757812bba83a756f73ce1a84c86ded3e276cd0f
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/nios2/include/asm/io.h:41,
from include/linux/io.h:13,
from arch/nios2/include/asm/pgtable.h:18,
from include/linux/pgtable.h:6,
from arch/nios2/kernel/nios2_ksyms.c:11:
include/asm-generic/io.h: In function 'readb':
>> include/asm-generic/io.h:181:32: error: '_THIS_IP_' undeclared (first use in this function)
181 | log_read_mmio(8, addr, _THIS_IP_);
| ^~~~~~~~~
include/asm-generic/io.h:181:32: note: each undeclared identifier is reported only once for each function it appears in
include/asm-generic/io.h: In function 'readw':
include/asm-generic/io.h:196:33: error: '_THIS_IP_' undeclared (first use in this function)
196 | log_read_mmio(16, addr, _THIS_IP_);
| ^~~~~~~~~
include/asm-generic/io.h: In function 'readl':
include/asm-generic/io.h:211:33: error: '_THIS_IP_' undeclared (first use in this function)
211 | log_read_mmio(32, addr, _THIS_IP_);
| ^~~~~~~~~
include/asm-generic/io.h: In function 'writeb':
include/asm-generic/io.h:241:40: error: '_THIS_IP_' undeclared (first use in this function)
241 | log_write_mmio(value, 8, addr, _THIS_IP_);
| ^~~~~~~~~
include/asm-generic/io.h: In function 'writew':
include/asm-generic/io.h:253:41: error: '_THIS_IP_' undeclared (first use in this function)
253 | log_write_mmio(value, 16, addr, _THIS_IP_);
| ^~~~~~~~~
include/asm-generic/io.h: In function 'writel':
include/asm-generic/io.h:265:41: error: '_THIS_IP_' undeclared (first use in this function)
265 | log_write_mmio(value, 32, addr, _THIS_IP_);
| ^~~~~~~~~
vim +/_THIS_IP_ +181 include/asm-generic/io.h
169
170 /*
171 * {read,write}{b,w,l,q}() access little endian memory and return result in
172 * native endianness.
173 */
174
175 #ifndef readb
176 #define readb readb
177 static inline u8 readb(const volatile void __iomem *addr)
178 {
179 u8 val;
180
> 181 log_read_mmio(8, addr, _THIS_IP_);
182 __io_br();
183 val = __raw_readb(addr);
184 __io_ar(val);
185 log_post_read_mmio(val, 8, addr, _THIS_IP_);
186 return val;
187 }
188 #endif
189
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
[chrome-os:chromeos-5.10 9551/9999] drivers/cpufreq/intel_pstate.c:1484:6: sparse: sparse: symbol 'notify_hwp_interrupt' was not declared. Should it be static?
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: a34fc0a18f7e71d743c7231ef8186bf3779b5b11
commit: 121d08a011e0315614d6f9018585815c5fab305c [9551/9999] UPSTREAM: cpufreq: intel_pstate: Process HWP Guaranteed change notification
config: x86_64-randconfig-s022 (https://download.01.org/0day-ci/archive/20220117/202201171020.cDwgFpX4-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout 121d08a011e0315614d6f9018585815c5fab305c
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/cpufreq/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/cpufreq/intel_pstate.c:1484:6: sparse: sparse: symbol 'notify_hwp_interrupt' was not declared. Should it be static?
vim +/notify_hwp_interrupt +1484 drivers/cpufreq/intel_pstate.c
1483
> 1484 void notify_hwp_interrupt(void)
1485 {
1486 unsigned int this_cpu = smp_processor_id();
1487 struct cpudata *cpudata;
1488 unsigned long flags;
1489 u64 value;
1490
1491 if (!READ_ONCE(hwp_active) || !boot_cpu_has(X86_FEATURE_HWP_NOTIFY))
1492 return;
1493
1494 rdmsrl_safe(MSR_HWP_STATUS, &value);
1495 if (!(value & 0x01))
1496 return;
1497
1498 spin_lock_irqsave(&hwp_notify_lock, flags);
1499
1500 if (!cpumask_test_cpu(this_cpu, &hwp_intr_enable_mask))
1501 goto ack_intr;
1502
1503 /*
1504 * Currently we never free all_cpu_data. And we can't reach here
1505 * without this allocated. But for safety for future changes, added
1506 * check.
1507 */
1508 if (unlikely(!READ_ONCE(all_cpu_data)))
1509 goto ack_intr;
1510
1511 /*
1512 * The free is done during cleanup, when cpufreq registry is failed.
1513 * We wouldn't be here if it fails on init or switch status. But for
1514 * future changes, added check.
1515 */
1516 cpudata = READ_ONCE(all_cpu_data[this_cpu]);
1517 if (unlikely(!cpudata))
1518 goto ack_intr;
1519
1520 schedule_delayed_work(&cpudata->hwp_notify_work, msecs_to_jiffies(10));
1521
1522 spin_unlock_irqrestore(&hwp_notify_lock, flags);
1523
1524 return;
1525
1526 ack_intr:
1527 wrmsrl_safe(MSR_HWP_STATUS, 0);
1528 spin_unlock_irqrestore(&hwp_notify_lock, flags);
1529 }
1530
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
[linusw-nomadik:ux500-href-charging-v5.16-rc1 47/58] drivers/power/supply/ab8500_chargalg.c:822:13: warning: variable 'delta_i_ua' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ux500-href-charging-v5.16-rc1
head: 1e846b0b60ac01cac4f283975a1bc395ff73d995
commit: e067307b004b5f2699464dd37d10817677ce9bf3 [47/58] power: supply: ab8500_chargalg: Drop charging step
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20220117/202201171004.E3chM4HB-lk...)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git/...
git remote add linusw-nomadik https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git
git fetch --no-tags linusw-nomadik ux500-href-charging-v5.16-rc1
git checkout e067307b004b5f2699464dd37d10817677ce9bf3
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/power/supply/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/power/supply/ab8500_chargalg.c: In function 'ab8500_chargalg_chg_curr_maxim':
>> drivers/power/supply/ab8500_chargalg.c:822:13: warning: variable 'delta_i_ua' set but not used [-Wunused-but-set-variable]
822 | int delta_i_ua;
| ^~~~~~~~~~
vim +/delta_i_ua +822 drivers/power/supply/ab8500_chargalg.c
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 810
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 811 /**
c5b64a990e7f3b drivers/power/supply/ab8500_chargalg.c Linus Walleij 2021-07-13 812 * ab8500_chargalg_chg_curr_maxim - increases the charger current to
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 813 * compensate for the system load
c5b64a990e7f3b drivers/power/supply/ab8500_chargalg.c Linus Walleij 2021-07-13 814 * @di pointer to the ab8500_chargalg structure
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 815 *
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 816 * This maximization function is used to raise the charger current to get the
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 817 * battery current as close to the optimal value as possible. The battery
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 818 * current during charging is affected by the system load
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 819 */
c5b64a990e7f3b drivers/power/supply/ab8500_chargalg.c Linus Walleij 2021-07-13 820 static enum maxim_ret ab8500_chargalg_chg_curr_maxim(struct ab8500_chargalg *di)
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 821 {
d3e41d1547389a drivers/power/supply/ab8500_chargalg.c Linus Walleij 2021-11-13 @822 int delta_i_ua;
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 823
b0284de05e07d5 drivers/power/abx500_chargalg.c Lee Jones 2012-11-30 824 if (!di->bm->maxi->ena_maxi)
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 825 return MAXIM_RET_NOACTION;
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 826
d3e41d1547389a drivers/power/supply/ab8500_chargalg.c Linus Walleij 2021-11-13 827 delta_i_ua = di->ccm.original_iset_ua - di->batt_data.inst_curr_ua;
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 828
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 829 if (di->events.vbus_collapsed) {
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 830 dev_dbg(di->dev, "Charger voltage has collapsed %d\n",
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 831 di->ccm.wait_cnt);
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 832 if (di->ccm.wait_cnt == 0) {
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 833 dev_dbg(di->dev, "lowering current\n");
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 834 di->ccm.wait_cnt++;
b0284de05e07d5 drivers/power/abx500_chargalg.c Lee Jones 2012-11-30 835 di->ccm.condition_cnt = di->bm->maxi->wait_cycles;
e067307b004b5f drivers/power/supply/ab8500_chargalg.c Linus Walleij 2022-01-04 836 di->ccm.max_current_ua = di->ccm.current_iset_ua;
d3e41d1547389a drivers/power/supply/ab8500_chargalg.c Linus Walleij 2021-11-13 837 di->ccm.current_iset_ua = di->ccm.max_current_ua;
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 838 di->ccm.level--;
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 839 return MAXIM_RET_CHANGE;
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 840 } else {
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 841 dev_dbg(di->dev, "waiting\n");
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 842 /* Let's go in here twice before lowering curr again */
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 843 di->ccm.wait_cnt = (di->ccm.wait_cnt + 1) % 3;
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 844 return MAXIM_RET_NOACTION;
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 845 }
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 846 }
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 847
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 848 di->ccm.wait_cnt = 0;
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 849
d3e41d1547389a drivers/power/supply/ab8500_chargalg.c Linus Walleij 2021-11-13 850 if (di->batt_data.inst_curr_ua > di->ccm.original_iset_ua) {
d3e41d1547389a drivers/power/supply/ab8500_chargalg.c Linus Walleij 2021-11-13 851 dev_dbg(di->dev, " Maximization Ibat (%duA) too high"
d3e41d1547389a drivers/power/supply/ab8500_chargalg.c Linus Walleij 2021-11-13 852 " (limit %duA) (current iset: %duA)!\n",
d3e41d1547389a drivers/power/supply/ab8500_chargalg.c Linus Walleij 2021-11-13 853 di->batt_data.inst_curr_ua, di->ccm.original_iset_ua,
d3e41d1547389a drivers/power/supply/ab8500_chargalg.c Linus Walleij 2021-11-13 854 di->ccm.current_iset_ua);
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 855
d3e41d1547389a drivers/power/supply/ab8500_chargalg.c Linus Walleij 2021-11-13 856 if (di->ccm.current_iset_ua == di->ccm.original_iset_ua)
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 857 return MAXIM_RET_NOACTION;
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 858
b0284de05e07d5 drivers/power/abx500_chargalg.c Lee Jones 2012-11-30 859 di->ccm.condition_cnt = di->bm->maxi->wait_cycles;
d3e41d1547389a drivers/power/supply/ab8500_chargalg.c Linus Walleij 2021-11-13 860 di->ccm.current_iset_ua = di->ccm.original_iset_ua;
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 861 di->ccm.level = 0;
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 862
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 863 return MAXIM_RET_IBAT_TOO_HIGH;
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 864 }
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 865
b0284de05e07d5 drivers/power/abx500_chargalg.c Lee Jones 2012-11-30 866 di->ccm.condition_cnt = di->bm->maxi->wait_cycles;
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 867 return MAXIM_RET_NOACTION;
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 868 }
1668f81159fb72 drivers/power/abx500_chargalg.c Arun Murthy 2012-02-29 869
:::::: The code at line 822 was first introduced by commit
:::::: d3e41d1547389a87ac7b6c311ed8243d0fc9fa7b power: supply: ab8500: Standardize CC current
:::::: TO: Linus Walleij <linus.walleij(a)linaro.org>
:::::: CC: Linus Walleij <linus.walleij(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
Re: [PATCH v3 3/3] dmaengine: sf-pdma: Get number of channel by device tree
by kernel test robot
Hi Zong,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on vkoul-dmaengine/next]
[also build test ERROR on v5.16]
[cannot apply to robh/for-next next-20220114]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Zong-Li/Determine-the-number-of-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git next
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220115/202201150313.YDVezSOq-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/efa33512fd463fd6e29750992df1d4051...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Zong-Li/Determine-the-number-of-DMA-channels-by-dma-channels-property/20220114-172017
git checkout efa33512fd463fd6e29750992df1d40513eb5a7c
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/linux/compiler_types.h:85,
from <command-line>:
arch/x86/include/asm/jump_label.h: In function 'vchan_cookie_complete':
>> include/linux/compiler-gcc.h:86:38: warning: asm operand 0 probably doesn't match constraints
86 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
| ^~~
arch/x86/include/asm/jump_label.h:27:2: note: in expansion of macro 'asm_volatile_goto'
27 | asm_volatile_goto("1:"
| ^~~~~~~~~~~~~~~~~
include/linux/compiler-gcc.h:86:38: warning: asm operand 1 probably doesn't match constraints
86 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
| ^~~
arch/x86/include/asm/jump_label.h:27:2: note: in expansion of macro 'asm_volatile_goto'
27 | asm_volatile_goto("1:"
| ^~~~~~~~~~~~~~~~~
>> include/linux/compiler-gcc.h:86:38: error: impossible constraint in 'asm'
86 | #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
| ^~~
arch/x86/include/asm/jump_label.h:27:2: note: in expansion of macro 'asm_volatile_goto'
27 | asm_volatile_goto("1:"
| ^~~~~~~~~~~~~~~~~
vim +/asm +86 include/linux/compiler-gcc.h
313dd1b629219d Kees Cook 2017-05-05 76
cb984d101b30eb Joe Perches 2015-06-25 77 /*
cb984d101b30eb Joe Perches 2015-06-25 78 * GCC 'asm goto' miscompiles certain code sequences:
cb984d101b30eb Joe Perches 2015-06-25 79 *
cb984d101b30eb Joe Perches 2015-06-25 80 * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58670
cb984d101b30eb Joe Perches 2015-06-25 81 *
cb984d101b30eb Joe Perches 2015-06-25 82 * Work it around via a compiler barrier quirk suggested by Jakub Jelinek.
cb984d101b30eb Joe Perches 2015-06-25 83 *
cb984d101b30eb Joe Perches 2015-06-25 84 * (asm goto is automatically volatile - the naming reflects this.)
cb984d101b30eb Joe Perches 2015-06-25 85 */
cb984d101b30eb Joe Perches 2015-06-25 @86 #define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0)
cb984d101b30eb Joe Perches 2015-06-25 87
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months