* [dinguyen:hssi_patch_v2 5/5] drivers/net/ethernet/altera/hssiss/altera_hssiss_debug.c:43:45: error: too many arguments provided to function-like macro invocation
@ 2026-04-15 12:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-15 12:59 UTC (permalink / raw)
To: Subhransu S. Prusty; +Cc: llvm, oe-kbuild-all, Dinh Nguyen
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux.git hssi_patch_v2
head: c2839fb083f7b0c330a385cc42be70bb2961b9cf
commit: c2839fb083f7b0c330a385cc42be70bb2961b9cf [5/5] net: altr: hssiss: Add debugfs support
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20260415/202604152043.3xJRQQD5-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/20260415/202604152043.3xJRQQD5-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/202604152043.3xJRQQD5-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/net/ethernet/altera/hssiss/altera_hssiss_debug.c:43:45: error: too many arguments provided to function-like macro invocation
43 | static ssize_t csr_read(struct file *filep, char __user *ubuf,
| ^
arch/loongarch/include/asm/loongarch.h:197:9: note: macro 'csr_read' defined here
197 | #define csr_read(reg) csr_read64(reg)
| ^
>> drivers/net/ethernet/altera/hssiss/altera_hssiss_debug.c:43:24: error: expected ';' after top level declarator
43 | static ssize_t csr_read(struct file *filep, char __user *ubuf,
| ^
| ;
drivers/net/ethernet/altera/hssiss/altera_hssiss_debug.c:65:5: error: too many arguments provided to function-like macro invocation
65 | size_t count, loff_t *offp)
| ^
arch/loongarch/include/asm/loongarch.h:198:9: note: macro 'csr_write' defined here
198 | #define csr_write(val, reg) csr_write64(val, reg)
| ^
drivers/net/ethernet/altera/hssiss/altera_hssiss_debug.c:64:25: error: expected ';' after top level declarator
64 | static ssize_t csr_write(struct file *filep, const char __user *ubuf,
| ^
| ;
>> drivers/net/ethernet/altera/hssiss/altera_hssiss_debug.c:680:11: error: incompatible integer to pointer conversion initializing 'ssize_t (*)(struct file *, const char *, size_t, loff_t *)' (aka 'long (*)(struct file *, const char *, unsigned long, long long *)') with an expression of type 'ssize_t' (aka 'long') [-Wint-conversion]
680 | .write = csr_write,
| ^~~~~~~~~
>> drivers/net/ethernet/altera/hssiss/altera_hssiss_debug.c:681:10: error: incompatible integer to pointer conversion initializing 'ssize_t (*)(struct file *, char *, size_t, loff_t *)' (aka 'long (*)(struct file *, char *, unsigned long, long long *)') with an expression of type 'ssize_t' (aka 'long') [-Wint-conversion]
681 | .read = csr_read
| ^~~~~~~~
>> drivers/net/ethernet/altera/hssiss/altera_hssiss_debug.c:681:10: error: initializer element is not a compile-time constant
681 | .read = csr_read
| ^~~~~~~~
7 errors generated.
vim +43 drivers/net/ethernet/altera/hssiss/altera_hssiss_debug.c
42
> 43 static ssize_t csr_read(struct file *filep, char __user *ubuf,
44 size_t count, loff_t *offp)
45 {
46 struct altera_hssiss_dbg *d = filep->private_data;
47 char buf[10];
48 int size;
49
50 size = snprintf(buf, sizeof(buf), "%x\n", d->read.data);
51
52 return simple_read_from_buffer(ubuf, count, offp, buf, size);
53 }
54
--
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:[~2026-04-15 13:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-15 12:59 [dinguyen:hssi_patch_v2 5/5] drivers/net/ethernet/altera/hssiss/altera_hssiss_debug.c:43:45: error: too many arguments provided to function-like macro invocation 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.