Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [jpoimboe:asm-call 27/42] arch/x86/include/asm/mshyperv.h:142:9: error: expected ')'
@ 2025-03-09 10:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-09 10:34 UTC (permalink / raw)
  To: Josh Poimboeuf; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git asm-call
head:   44613874d65bd54453e4f3c595459870cf4a8c9c
commit: aa81a7d76185c9d4373a1f1d5d0b101328e8b4ce [27/42] x86/hyperv: Use asm_call() in hypercall functions
config: x86_64-buildonly-randconfig-006-20250309 (https://download.01.org/0day-ci/archive/20250309/202503091841.vKh4oa5M-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250309/202503091841.vKh4oa5M-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202503091841.vKh4oa5M-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/hv/hv_balloon.c:33:
>> arch/x86/include/asm/mshyperv.h:142:9: error: expected ')'
     142 |                          ARG("cc", "r8", "r9", "r10", "r11"));
         |                              ^
   1 error generated.
--
   In file included from drivers/hv/vmbus_drv.c:40:
>> arch/x86/include/asm/mshyperv.h:142:9: error: expected ')'
     142 |                          ARG("cc", "r8", "r9", "r10", "r11"));
         |                              ^
   drivers/hv/vmbus_drv.c:1928:42: warning: shift count >= width of type [-Wshift-count-overflow]
    1928 |         dma_set_mask(&child_device_obj->device, DMA_BIT_MASK(64));
         |                                                 ^~~~~~~~~~~~~~~~
   include/linux/dma-mapping.h:73:54: note: expanded from macro 'DMA_BIT_MASK'
      73 | #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
         |                                                      ^ ~~~
   1 warning and 1 error generated.


vim +142 arch/x86/include/asm/mshyperv.h

   123	
   124	/* Fast hypercall with 8 bytes of input and no output */
   125	static inline u64 _hv_do_fast_hypercall8(u64 control, u64 input1)
   126	{
   127		u64 hv_status;
   128	
   129	#ifdef CONFIG_X86_64
   130		if (hv_isolation_type_tdx() && !hyperv_paravisor_present)
   131			return hv_tdx_hypercall(control, input1, 0);
   132	
   133		if (hv_isolation_type_snp() && !hyperv_paravisor_present) {
   134			asm_call("vmmcall",
   135				 ARG("=a" (hv_status), "+c" (control), "+d" (input1)),
   136				 ARG(),
   137				 ARG("cc", "r8", "r9", "r10", "r11"));
   138		} else {
   139			asm_call(CALL_NOSPEC,
   140				 ARG("=a" (hv_status), "+c" (control), "+d" (input1)),
   141				 ARG(THUNK_TARGET(hv_hypercall_pg))
 > 142				 ARG("cc", "r8", "r9", "r10", "r11"));
   143		}
   144	#else
   145		{
   146			u32 input1_hi = upper_32_bits(input1);
   147			u32 input1_lo = lower_32_bits(input1);
   148	
   149			asm_call(CALL_NOSPEC,
   150				 ARG("=A" (hv_status), "+c" (input1_lo)),
   151				 ARG("A" (control), "b" (input1_hi),
   152				     THUNK_TARGET(hv_hypercall_pg)),
   153				 ARG("cc", "edi", "esi"));
   154		}
   155	#endif
   156			return hv_status;
   157	}
   158	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2025-03-09 10:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-09 10:34 [jpoimboe:asm-call 27/42] arch/x86/include/asm/mshyperv.h:142:9: error: expected ')' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox