Re: [PATCH 1/2] efi: Iterate over efi->memmap in for_each_efi_memory_desc

From: kbuild test robot
Date: Mon Apr 11 2016 - 09:28:16 EST


Hi Matt,

[auto build test ERROR on efi/next]
[cannot apply to v4.6-rc3 next-20160411]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url: https://github.com/0day-ci/linux/commits/Matt-Fleming/efi-Delete-global-memmap-variable/20160411-210837
base: https://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git next
config: ia64-allyesconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=ia64

Note: the linux-review/Matt-Fleming/efi-Delete-global-memmap-variable/20160411-210837 HEAD 8fc82e8aa63ce89d26d143cce41530319212f7d8 builds fine.
It only hurts bisectibility.

All error/warnings (new ones prefixed by >>):

drivers/firmware/efi/efi.c: In function 'efi_mem_desc_lookup':
>> drivers/firmware/efi/efi.c:259:31: warning: initialization from incompatible pointer type
struct efi_memory_map *map = &efi.memmap;
^
In file included from drivers/firmware/efi/efi.c:22:0:
drivers/firmware/efi/efi.c: In function 'efi_mem_attributes':
>> include/linux/efi.h:973:37: error: invalid type argument of '->' (have 'struct efi')
for_each_efi_memory_desc_in_map(efi->memmap, md)
^
include/linux/efi.h:962:15: note: in definition of macro 'for_each_efi_memory_desc_in_map'
for ((md) = (m)->map; \
^
>> drivers/firmware/efi/efi.c:628:2: note: in expansion of macro 'for_each_efi_memory_desc'
for_each_efi_memory_desc(md) {
^
>> include/linux/efi.h:973:37: error: invalid type argument of '->' (have 'struct efi')
for_each_efi_memory_desc_in_map(efi->memmap, md)
^
include/linux/efi.h:963:38: note: in definition of macro 'for_each_efi_memory_desc_in_map'
(md) <= (efi_memory_desc_t *)((m)->map_end - (m)->desc_size); \
^
>> drivers/firmware/efi/efi.c:628:2: note: in expansion of macro 'for_each_efi_memory_desc'
for_each_efi_memory_desc(md) {
^
>> include/linux/efi.h:973:37: error: invalid type argument of '->' (have 'struct efi')
for_each_efi_memory_desc_in_map(efi->memmap, md)
^
include/linux/efi.h:963:53: note: in definition of macro 'for_each_efi_memory_desc_in_map'
(md) <= (efi_memory_desc_t *)((m)->map_end - (m)->desc_size); \
^
>> drivers/firmware/efi/efi.c:628:2: note: in expansion of macro 'for_each_efi_memory_desc'
for_each_efi_memory_desc(md) {
^
>> include/linux/efi.h:973:37: error: invalid type argument of '->' (have 'struct efi')
for_each_efi_memory_desc_in_map(efi->memmap, md)
^
include/linux/efi.h:964:30: note: in definition of macro 'for_each_efi_memory_desc_in_map'
(md) = (void *)(md) + (m)->desc_size)
^
>> drivers/firmware/efi/efi.c:628:2: note: in expansion of macro 'for_each_efi_memory_desc'
for_each_efi_memory_desc(md) {
^

vim +973 include/linux/efi.h

967 * for_each_efi_memory_desc - iterate over descriptors in efi->memmap
968 * @md: the efi_memory_desc_t * iterator
969 *
970 * Once the loop finishes @md must not be accessed.
971 */
972 #define for_each_efi_memory_desc(md) \
> 973 for_each_efi_memory_desc_in_map(efi->memmap, md)
974
975 /*
976 * Format an EFI memory descriptor's type and attributes to a user-provided

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data