Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [jpoimboe:asm-call 33/42] arch/x86/include/asm/xen/hypercall.h:270:9: error: expected ';' after asm statement
@ 2025-03-09 11:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-09 11:37 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: 96d3258b6cb6c042087f728a1aff88caaf36cfe4 [33/42] x86/xen: Use asm_call() in __hypercall*()
config: x86_64-buildonly-randconfig-006-20250309 (https://download.01.org/0day-ci/archive/20250309/202503091928.NPL4UWrM-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/202503091928.NPL4UWrM-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/202503091928.NPL4UWrM-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/xen/features.c:14:
>> arch/x86/include/asm/xen/hypercall.h:270:9: error: expected ';' after asm statement
     270 |         return _hypercall4(int, mmu_update, req, count, success_count, domid);
         |                ^
   arch/x86/include/asm/xen/hypercall.h:207:25: note: expanded from macro '_hypercall4'
     207 |                  __HYPERCALL_CLOBBER4));                                \
         |                                       ^
   arch/x86/include/asm/xen/hypercall.h:277:9: error: expected ';' after asm statement
     277 |         return _hypercall4(int, mmuext_op, op, count, success_count, domid);
         |                ^
   arch/x86/include/asm/xen/hypercall.h:207:25: note: expanded from macro '_hypercall4'
     207 |                  __HYPERCALL_CLOBBER4));                                \
         |                                       ^
   2 errors generated.
--
   In file included from drivers/xen/gntdev.c:44:
   In file included from include/xen/events.h:12:
>> arch/x86/include/asm/xen/hypercall.h:270:9: error: expected ';' after asm statement
     270 |         return _hypercall4(int, mmu_update, req, count, success_count, domid);
         |                ^
   arch/x86/include/asm/xen/hypercall.h:207:25: note: expanded from macro '_hypercall4'
     207 |                  __HYPERCALL_CLOBBER4));                                \
         |                                       ^
   arch/x86/include/asm/xen/hypercall.h:277:9: error: expected ';' after asm statement
     277 |         return _hypercall4(int, mmuext_op, op, count, success_count, domid);
         |                ^
   arch/x86/include/asm/xen/hypercall.h:207:25: note: expanded from macro '_hypercall4'
     207 |                  __HYPERCALL_CLOBBER4));                                \
         |                                       ^
   In file included from drivers/xen/gntdev.c:49:
   In file included from drivers/xen/gntdev-common.h:15:
   include/linux/mman.h:159:9: warning: division by zero is undefined [-Wdivision-by-zero]
     159 |                _calc_vm_trans(flags, MAP_SYNC,       VM_SYNC      ) |
         |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/mman.h:137:21: note: expanded from macro '_calc_vm_trans'
     137 |    : ((x) & (bit1)) / ((bit1) / (bit2))))
         |                     ^ ~~~~~~~~~~~~~~~~~
   include/linux/mman.h:160:9: warning: division by zero is undefined [-Wdivision-by-zero]
     160 |                _calc_vm_trans(flags, MAP_STACK,      VM_NOHUGEPAGE) |
         |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/mman.h:137:21: note: expanded from macro '_calc_vm_trans'
     137 |    : ((x) & (bit1)) / ((bit1) / (bit2))))
         |                     ^ ~~~~~~~~~~~~~~~~~
   drivers/xen/gntdev.c:600:46: warning: shift count >= width of type [-Wshift-count-overflow]
     600 |         dma_coerce_mask_and_coherent(priv->dma_dev, 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))
         |                                                      ^ ~~~
   3 warnings and 2 errors generated.
--
   In file included from drivers/xen/mem-reservation.c:13:
>> arch/x86/include/asm/xen/hypercall.h:270:9: error: expected ';' after asm statement
     270 |         return _hypercall4(int, mmu_update, req, count, success_count, domid);
         |                ^
   arch/x86/include/asm/xen/hypercall.h:207:25: note: expanded from macro '_hypercall4'
     207 |                  __HYPERCALL_CLOBBER4));                                \
         |                                       ^
   arch/x86/include/asm/xen/hypercall.h:277:9: error: expected ';' after asm statement
     277 |         return _hypercall4(int, mmuext_op, op, count, success_count, domid);
         |                ^
   arch/x86/include/asm/xen/hypercall.h:207:25: note: expanded from macro '_hypercall4'
     207 |                  __HYPERCALL_CLOBBER4));                                \
         |                                       ^
   In file included from drivers/xen/mem-reservation.c:16:
   In file included from include/xen/mem-reservation.h:16:
   In file included from include/linux/highmem.h:5:
   In file included from include/linux/fs.h:33:
   In file included from include/linux/percpu-rwsem.h:7:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
      98 |                 return (set->sig[3] | set->sig[2] |
         |                         ^        ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from drivers/xen/mem-reservation.c:16:
   In file included from include/xen/mem-reservation.h:16:
   In file included from include/linux/highmem.h:5:
   In file included from include/linux/fs.h:33:
   In file included from include/linux/percpu-rwsem.h:7:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
      98 |                 return (set->sig[3] | set->sig[2] |
         |                                       ^        ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from drivers/xen/mem-reservation.c:16:
   In file included from include/xen/mem-reservation.h:16:
   In file included from include/linux/highmem.h:5:
   In file included from include/linux/fs.h:33:
   In file included from include/linux/percpu-rwsem.h:7:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:99:4: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
      99 |                         set->sig[1] | set->sig[0]) == 0;
         |                         ^        ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from drivers/xen/mem-reservation.c:16:
   In file included from include/xen/mem-reservation.h:16:
   In file included from include/linux/highmem.h:5:
   In file included from include/linux/fs.h:33:
   In file included from include/linux/percpu-rwsem.h:7:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:101:11: warning: array index 1 is past the end of the array (that has type 'unsigned long[1]') [-Warray-bounds]
     101 |                 return (set->sig[1] | set->sig[0]) == 0;
         |                         ^        ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from drivers/xen/mem-reservation.c:16:
   In file included from include/xen/mem-reservation.h:16:
   In file included from include/linux/highmem.h:5:
   In file included from include/linux/fs.h:33:
   In file included from include/linux/percpu-rwsem.h:7:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
     114 |                 return  (set1->sig[3] == set2->sig[3]) &&
         |                          ^         ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from drivers/xen/mem-reservation.c:16:
   In file included from include/xen/mem-reservation.h:16:
   In file included from include/linux/highmem.h:5:
   In file included from include/linux/fs.h:33:
   In file included from include/linux/percpu-rwsem.h:7:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:114:27: warning: array index 3 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
     114 |                 return  (set1->sig[3] == set2->sig[3]) &&
         |                                          ^         ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here
      24 |         unsigned long sig[_NSIG_WORDS];
         |         ^
   In file included from drivers/xen/mem-reservation.c:16:
   In file included from include/xen/mem-reservation.h:16:
   In file included from include/linux/highmem.h:5:
   In file included from include/linux/fs.h:33:
   In file included from include/linux/percpu-rwsem.h:7:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:6:
   include/linux/signal.h:115:5: warning: array index 2 is past the end of the array (that has type 'const unsigned long[1]') [-Warray-bounds]
     115 |                         (set1->sig[2] == set2->sig[2]) &&
         |                          ^         ~
   arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here


vim +270 arch/x86/include/asm/xen/hypercall.h

a42089dd358a76 include/asm-i386/xen/hypercall.h Jeremy Fitzhardinge 2007-07-17  265  
a42089dd358a76 include/asm-i386/xen/hypercall.h Jeremy Fitzhardinge 2007-07-17  266  static inline int
a42089dd358a76 include/asm-i386/xen/hypercall.h Jeremy Fitzhardinge 2007-07-17  267  HYPERVISOR_mmu_update(struct mmu_update *req, int count,
a42089dd358a76 include/asm-i386/xen/hypercall.h Jeremy Fitzhardinge 2007-07-17  268  		      int *success_count, domid_t domid)
a42089dd358a76 include/asm-i386/xen/hypercall.h Jeremy Fitzhardinge 2007-07-17  269  {
a42089dd358a76 include/asm-i386/xen/hypercall.h Jeremy Fitzhardinge 2007-07-17 @270  	return _hypercall4(int, mmu_update, req, count, success_count, domid);
a42089dd358a76 include/asm-i386/xen/hypercall.h Jeremy Fitzhardinge 2007-07-17  271  }
a42089dd358a76 include/asm-i386/xen/hypercall.h Jeremy Fitzhardinge 2007-07-17  272  

:::::: The code at line 270 was first introduced by commit
:::::: a42089dd358a7673a0a23126589a9029e57c2049 xen: Add Xen interface header files

:::::: TO: Jeremy Fitzhardinge <jeremy@xensource.com>
:::::: CC: Jeremy Fitzhardinge <jeremy@goop.org>

-- 
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 11:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-09 11:37 [jpoimboe:asm-call 33/42] arch/x86/include/asm/xen/hypercall.h:270:9: error: expected ';' after asm statement 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