All of lore.kernel.org
 help / color / mirror / Atom feed
* [efi:urgent 1/1] drivers/firmware/efi/libstub/fdt.c:303:9: warning: cast from pointer to integer of different size
@ 2016-12-19 23:04 kbuild test robot
       [not found] ` <201612200741.F41hYqms%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: kbuild test robot @ 2016-12-19 23:04 UTC (permalink / raw)
  To: Ard Biesheuvel
  Cc: kbuild-all-JC7UmRfGjtg, linux-efi-u79uwXL29TY76Z2rM5mHXA,
	Matt Fleming, James Morse

[-- Attachment #1: Type: text/plain, Size: 2056 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git urgent
head:   5615742edc64c99bbdec5e98bf9d9d872756d99c
commit: 5615742edc64c99bbdec5e98bf9d9d872756d99c [1/1] efi/libstub: arm*: Pass latest memory map to the kernel
config: arm-multi_v7_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
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
        git checkout 5615742edc64c99bbdec5e98bf9d9d872756d99c
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

   drivers/firmware/efi/libstub/fdt.c: In function 'allocate_new_fdt_and_exit_boot':
>> drivers/firmware/efi/libstub/fdt.c:303:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
            (u64)memory_map, (u32)map_size);
            ^

vim +303 drivers/firmware/efi/libstub/fdt.c

   287				new_fdt_size += EFI_PAGE_SIZE;
   288			} else {
   289				pr_efi_err(sys_table, "Unable to construct new device tree.\n");
   290				goto fail_free_new_fdt;
   291			}
   292		}
   293	
   294		priv.runtime_map = runtime_map;
   295		priv.runtime_entry_count = &runtime_entry_count;
   296		status = efi_exit_boot_services(sys_table, handle, &map, &priv,
   297						exit_boot_func);
   298	
   299		if (status == EFI_SUCCESS) {
   300			efi_set_virtual_address_map_t *svam;
   301	
   302			status = update_fdt_memmap((void *)*new_fdt_addr,
 > 303						   (u64)memory_map, (u32)map_size);
   304			if (status != EFI_SUCCESS) {
   305				/*
   306				 * The kernel won't get far without the memory map, but
   307				 * may still be able to print something meaningful so
   308				 * return success here.
   309				 */
   310				return EFI_SUCCESS;
   311			}

---
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: 39253 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-01-04 13:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-19 23:04 [efi:urgent 1/1] drivers/firmware/efi/libstub/fdt.c:303:9: warning: cast from pointer to integer of different size kbuild test robot
     [not found] ` <201612200741.F41hYqms%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2016-12-20 11:39   ` Matt Fleming
     [not found]     ` <20161220113956.GB2225-mF/unelCI9GS6iBeEJttW/XRex20P6io@public.gmane.org>
2016-12-20 13:35       ` James Morse
2016-12-20 13:52       ` [PATCH] efi/libstub: arm*: double cast memory_map to hide compiler warning James Morse
     [not found]         ` <20161220135207.32492-1-james.morse-5wv7dgnIgG8@public.gmane.org>
2016-12-20 14:07           ` Matt Fleming
     [not found]             ` <20161220140728.GE2225-mF/unelCI9GS6iBeEJttW/XRex20P6io@public.gmane.org>
2017-01-03 21:11               ` Jeffrey Hugo
     [not found]                 ` <976c2a58-7522-96d5-7b37-2baffdaa409d-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2017-01-04 13:37                   ` Ard Biesheuvel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.