[efi:efi/memmap 7/12] arch/x86/platform/efi/efi.c:954:5: warning: cast to pointer from integer of different size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi.git efi/memmap
head:   a75e961a4d2765033d97d9ffb9d080d9db0b5e85
commit: 61ab5fa1ec32e8e8ce283e2bbdea9983a06ef983 [7/12] x86/efi: Call efi_memmap_init_late() for permanent EFI memmap
config: i386-randconfig-b0-06220207 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout 61ab5fa1ec32e8e8ce283e2bbdea9983a06ef983
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   arch/x86/platform/efi/efi.c: In function '__efi_enter_virtual_mode':
>> arch/x86/platform/efi/efi.c:954:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
        (efi_memory_desc_t *)pa);
        ^
   arch/x86/platform/efi/efi.c:961:5: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
        (efi_memory_desc_t *)pa);
        ^

vim +954 arch/x86/platform/efi/efi.c

   938		save_runtime_map();
   939	
   940		BUG_ON(!efi.systab);
   941	
   942		if (efi_setup_page_tables(pa, 1 << pg_shift)) {
   943			clear_bit(EFI_RUNTIME_SERVICES, &efi.flags);
   944			return;
   945		}
   946	
   947		efi_sync_low_kernel_mappings();
   948	
   949		if (efi_is_native()) {
   950			status = phys_efi_set_virtual_address_map(
   951					efi.memmap.desc_size * count,
   952					efi.memmap.desc_size,
   953					efi.memmap.desc_version,
 > 954					(efi_memory_desc_t *)pa);
   955		} else {
   956			status = efi_thunk_set_virtual_address_map(
   957					efi_phys.set_virtual_address_map,
   958					efi.memmap.desc_size * count,
   959					efi.memmap.desc_size,
   960					efi.memmap.desc_version,
   961					(efi_memory_desc_t *)pa);
   962		}

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux