Hi Masayoshi,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on efi/next]
[cannot apply to v5.4-rc7 next-20191112]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see
https://stackoverflow.com/a/37406982]
url:
https://github.com/0day-ci/linux/commits/Masayoshi-Mizuma/efi-arm64-Intro...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git next
config: i386-defconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/firmware/efi/efi.c: In function 'memreserve_show':
> drivers/firmware/efi/efi.c:163:28: warning: format '%llx'
expects argument of type 'long long unsigned int', but argument 3 has type
'phys_addr_t {aka unsigned int}' [-Wformat=]
str += sprintf(str,
"%llx-%llx\n",
~~~^
%x
rsv->entry[i].base,
~~~~~~~~~~~~~~~~~~
drivers/firmware/efi/efi.c:163:33: warning: format '%llx' expects argument of
type 'long long unsigned int', but argument 4 has type 'phys_addr_t {aka
unsigned int}' [-Wformat=]
str += sprintf(str, "%llx-%llx\n",
~~~^
%x
drivers/firmware/efi/efi.c:165:5:
rsv->entry[i].base + rsv->entry[i].size - 1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +163 drivers/firmware/efi/efi.c
143
144 static struct linux_efi_memreserve *efi_memreserve_root __ro_after_init;
145 static ssize_t memreserve_show(struct kobject *kobj,
146 struct kobj_attribute *attr, char *buf)
147 {
148 struct linux_efi_memreserve *rsv;
149 unsigned long prsv;
150 char *str = buf;
151 int index, i;
152
153 if (!kobj || !buf)
154 return -EINVAL;
155
156 if (!efi_memreserve_root)
157 return -ENODEV;
158
159 for (prsv = efi_memreserve_root->next; prsv; prsv = rsv->next) {
160 rsv = memremap(prsv, sizeof(*rsv), MEMREMAP_WB);
161 index = atomic_read(&rsv->count);
162 for (i = 0; i < index; i++)
163 str += sprintf(str, "%llx-%llx\n",
164 rsv->entry[i].base,
165 rsv->entry[i].base + rsv->entry[i].size - 1);
166 memunmap(rsv);
167 }
168
169 return str - buf;
170 }
171
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation