tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge head: 89eba9e38dc4ed4576eaf7711c60403568663291 commit: bf6910abf54871b0e976e52f56fb3b3dd1b90e48 [59/60] power: avs: Add support for CPR (Core Power Reduction) config: m68k-allmodconfig (attached as .config) compiler: m68k-linux-gcc (GCC) 7.5.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout bf6910abf54871b0e976e52f56fb3b3dd1b90e48 # save the attached .config to linux build tree GCC_VERSION=7.5.0 make.cross ARCH=m68k If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): In file included from include/linux/printk.h:331:0, from include/linux/kernel.h:15, from include/linux/list.h:9, from include/linux/module.h:12, from drivers/power/avs/qcom-cpr.c:7: drivers/power/avs/qcom-cpr.c: In function 'cpr_read_efuse': >> drivers/power/avs/qcom-cpr.c:838:15: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'ssize_t {aka int}' [-Wformat=] dev_dbg(dev, "efuse read(%s) = %x, bytes %ld\n", cname, *data, len); ^ include/linux/dynamic_debug.h:125:15: note: in definition of macro '__dynamic_func_call' func(&id, ##__VA_ARGS__); \ ^~~~~~~~~~~ include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call' _dynamic_func_call(fmt,__dynamic_dev_dbg, \ ^~~~~~~~~~~~~~~~~~ include/linux/device.h:1784:2: note: in expansion of macro 'dynamic_dev_dbg' dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~~~~~~ include/linux/device.h:1784:23: note: in expansion of macro 'dev_fmt' dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) ^~~~~~~ >> drivers/power/avs/qcom-cpr.c:838:2: note: in expansion of macro 'dev_dbg' dev_dbg(dev, "efuse read(%s) = %x, bytes %ld\n", cname, *data, len); ^~~~~~~ vim +838 drivers/power/avs/qcom-cpr.c 810 811 static int cpr_read_efuse(struct device *dev, const char *cname, u32 *data) 812 { 813 struct nvmem_cell *cell; 814 ssize_t len; 815 char *ret; 816 int i; 817 818 *data = 0; 819 820 cell = nvmem_cell_get(dev, cname); 821 if (IS_ERR(cell)) { 822 if (PTR_ERR(cell) != -EPROBE_DEFER) 823 dev_err(dev, "undefined cell %s\n", cname); 824 return PTR_ERR(cell); 825 } 826 827 ret = nvmem_cell_read(cell, &len); 828 nvmem_cell_put(cell); 829 if (IS_ERR(ret)) { 830 dev_err(dev, "can't read cell %s\n", cname); 831 return PTR_ERR(ret); 832 } 833 834 for (i = 0; i < len; i++) 835 *data |= ret[i] << (8 * i); 836 837 kfree(ret); > 838 dev_dbg(dev, "efuse read(%s) = %x, bytes %ld\n", cname, *data, len); 839 840 return 0; 841 } 842 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx Intel Corporation
Attachment:
.config.gz
Description: application/gzip