public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Subhransu S. Prusty" <subhransu.sekhar.prusty@altera.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Dinh Nguyen <dinguyen@kernel.org>
Subject: [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
Date: Wed, 15 Apr 2026 20:59:04 +0800	[thread overview]
Message-ID: <202604152043.3xJRQQD5-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-04-15 13:00 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=202604152043.3xJRQQD5-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dinguyen@kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=subhransu.sekhar.prusty@altera.com \
    /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