All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-misc:hyperv-vmap 36/49] arch/x86/hyperv/ivm.c:77:33: warning: cast from pointer to integer of different size
@ 2021-08-30 20:24 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-30 20:24 UTC (permalink / raw)
  To: kbuild-all

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

tree:   git://git.infradead.org/users/hch/misc.git hyperv-vmap
head:   8248f295928aded3364a1e54a4e0022e93d3610c
commit: 19f6fa718bdd3c12c872065df1f726372a413f65 [36/49] HV: Add ghcb hvcall support for SNP VM
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        git remote add hch-misc git://git.infradead.org/users/hch/misc.git
        git fetch --no-tags hch-misc hyperv-vmap
        git checkout 19f6fa718bdd3c12c872065df1f726372a413f65
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   arch/x86/hyperv/ivm.c: In function 'hv_ghcb_hypercall':
>> arch/x86/hyperv/ivm.c:77:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      77 |  hv_ghcb->hypercall.outputgpa = (u64)output;
         |                                 ^
   arch/x86/hyperv/ivm.c: In function 'hv_ghcb_msr_write':
   arch/x86/hyperv/ivm.c:118:6: error: implicit declaration of function 'sev_es_ghcb_hv_call_simple' [-Werror=implicit-function-declaration]
     118 |  if (sev_es_ghcb_hv_call_simple(&hv_ghcb->ghcb, SVM_EXIT_MSR, 1, 0))
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for PHY_SPARX5_SERDES
   Depends on (ARCH_SPARX5 || COMPILE_TEST && OF && HAS_IOMEM
   Selected by
   - SPARX5_SWITCH && NETDEVICES && ETHERNET && NET_VENDOR_MICROCHIP && NET_SWITCHDEV && HAS_IOMEM


vim +77 arch/x86/hyperv/ivm.c

    54	
    55	u64 hv_ghcb_hypercall(u64 control, void *input, void *output, u32 input_size)
    56	{
    57		union hv_ghcb *hv_ghcb;
    58		void **ghcb_base;
    59		unsigned long flags;
    60	
    61		if (!hv_ghcb_pg)
    62			return -EFAULT;
    63	
    64		WARN_ON(in_nmi());
    65	
    66		local_irq_save(flags);
    67		ghcb_base = (void **)this_cpu_ptr(hv_ghcb_pg);
    68		hv_ghcb = (union hv_ghcb *)*ghcb_base;
    69		if (!hv_ghcb) {
    70			local_irq_restore(flags);
    71			return -EFAULT;
    72		}
    73	
    74		hv_ghcb->ghcb.protocol_version = GHCB_PROTOCOL_MAX;
    75		hv_ghcb->ghcb.ghcb_usage = GHCB_USAGE_HYPERV_CALL;
    76	
  > 77		hv_ghcb->hypercall.outputgpa = (u64)output;
    78		hv_ghcb->hypercall.hypercallinput.asuint64 = 0;
    79		hv_ghcb->hypercall.hypercallinput.callcode = control;
    80	
    81		if (input_size)
    82			memcpy(hv_ghcb->hypercall.hypercalldata, input, input_size);
    83	
    84		VMGEXIT();
    85	
    86		hv_ghcb->ghcb.ghcb_usage = 0xffffffff;
    87		memset(hv_ghcb->ghcb.save.valid_bitmap, 0,
    88		       sizeof(hv_ghcb->ghcb.save.valid_bitmap));
    89	
    90		local_irq_restore(flags);
    91	
    92		return hv_ghcb->hypercall.hypercalloutput.callstatus;
    93	}
    94	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 65155 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-30 20:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-30 20:24 [hch-misc:hyperv-vmap 36/49] arch/x86/hyperv/ivm.c:77:33: warning: cast from pointer to integer of different size kernel test robot

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.