From: kernel test robot <lkp@intel.com>
To: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [jpoimboe:asm-call 27/42] arch/x86/include/asm/mshyperv.h:142:9: error: expected ')'
Date: Sun, 9 Mar 2025 18:34:13 +0800 [thread overview]
Message-ID: <202503091841.vKh4oa5M-lkp@intel.com> (raw)
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
reply other threads:[~2025-03-09 10:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202503091841.vKh4oa5M-lkp@intel.com \
--to=lkp@intel.com \
--cc=jpoimboe@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox