All of lore.kernel.org
 help / color / mirror / Atom feed
* [cornelisnetworks:pr/1 1/1] drivers/infiniband/sw/rdmavt/qp.c:107:50: error: too many arguments to function call, expected 3, have 4
@ 2024-11-09 18:26 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-11-09 18:26 UTC (permalink / raw)
  To: Christopher Taylor; +Cc: oe-kbuild-all, Dennis Dalessandro

tree:   https://github.com/cornelisnetworks/linux.git pr/1
head:   6f9ce1f156a4d597e2e447443a2655fb0b288337
commit: 6f9ce1f156a4d597e2e447443a2655fb0b288337 [1/1] initial import
config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20241110/202411100235.doMAci33-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241110/202411100235.doMAci33-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/202411100235.doMAci33-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/infiniband/sw/rdmavt/qp.c:13:
   In file included from include/rdma/ib_verbs.h:15:
   In file included from include/linux/ethtool.h:18:
   In file included from include/linux/if_ether.h:19:
   In file included from include/linux/skbuff.h:17:
   In file included from include/linux/bvec.h:10:
   In file included from include/linux/highmem.h:8:
   In file included from include/linux/cacheflush.h:5:
   In file included from arch/x86/include/asm/cacheflush.h:5:
   In file included from include/linux/mm.h:2213:
   include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     504 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     505 |                            item];
         |                            ~~~~
   include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     511 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     512 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     518 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     524 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     525 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
>> drivers/infiniband/sw/rdmavt/qp.c:107:50: error: too many arguments to function call, expected 3, have 4
     107 |         __copy_user_nocache(dst, (void __user *)src, n, 0);
         |         ~~~~~~~~~~~~~~~~~~~                             ^
   arch/x86/include/asm/uaccess_64.h:150:13: note: '__copy_user_nocache' declared here
     150 | extern long __copy_user_nocache(void *dst, const void __user *src, unsigned size);
         |             ^                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   4 warnings and 1 error generated.


vim +107 drivers/infiniband/sw/rdmavt/qp.c

    96	
    97	/* platform specific: cacheless copy */
    98	static void cacheless_memcpy(void *dst, void *src, size_t n)
    99	{
   100	#if defined(CONFIG_X86_64)
   101		/*
   102		 * Use the only available X64 cacheless copy.  Add a __user cast
   103		 * to quiet sparse.  The src agument is already in the kernel so
   104		 * there are no security issues.  The extra fault recovery machinery
   105		 * is not invoked.
   106		 */
 > 107		__copy_user_nocache(dst, (void __user *)src, n, 0);
   108	#endif
   109	}
   110	

-- 
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:[~2024-11-09 18:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-09 18:26 [cornelisnetworks:pr/1 1/1] drivers/infiniband/sw/rdmavt/qp.c:107:50: error: too many arguments to function call, expected 3, have 4 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.