Linux kernel staging patches
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Mohammed Guermoud <mohammed.guermoud@gmail.com>,
	marvin24@gmx.de, gregkh@linuxfoundation.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	ac100@lists.launchpad.net, linux-tegra@vger.kernel.org,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
	Mohammed Guermoud <mohammed.guermoud@gmail.com>
Subject: Re: [PATCH] staging: nvec: Silence unused argument warning in NVEC_PHD macro
Date: Mon, 18 Aug 2025 21:43:26 +0800	[thread overview]
Message-ID: <202508182005.4PiKxXcN-lkp@intel.com> (raw)
In-Reply-To: <20250817192425.12983-1-mohammed.guermoud@gmail.com>

Hi Mohammed,

kernel test robot noticed the following build errors:

[auto build test ERROR on staging/staging-testing]

url:    https://github.com/intel-lab-lkp/linux/commits/Mohammed-Guermoud/staging-nvec-Silence-unused-argument-warning-in-NVEC_PHD-macro/20250818-032647
base:   staging/staging-testing
patch link:    https://lore.kernel.org/r/20250817192425.12983-1-mohammed.guermoud%40gmail.com
patch subject: [PATCH] staging: nvec: Silence unused argument warning in NVEC_PHD macro
config: arm-defconfig (https://download.01.org/0day-ci/archive/20250818/202508182005.4PiKxXcN-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 93d24b6b7b148c47a2fa228a4ef31524fa1d9f3f)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250818/202508182005.4PiKxXcN-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/202508182005.4PiKxXcN-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/staging/nvec/nvec_ps2.c:80:51: error: invalid operands to binary expression ('void' and 'int')
      80 |                         NVEC_PHD("ps/2 mouse reply: ", &msg[4], msg[1] - 2);
         |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
   drivers/staging/nvec/nvec_ps2.c:31:66: note: expanded from macro 'NVEC_PHD'
      31 | #define NVEC_PHD(str, buf, len) do { (void)str; (void)buf; (void)len; } while (0)
         |                                                            ~~~~~~^~~
   drivers/staging/nvec/nvec_ps2.c:84:52: error: invalid operands to binary expression ('void' and 'int')
      84 |                         NVEC_PHD("unhandled mouse event: ", msg, msg[1] + 2);
         |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
   drivers/staging/nvec/nvec_ps2.c:31:66: note: expanded from macro 'NVEC_PHD'
      31 | #define NVEC_PHD(str, buf, len) do { (void)str; (void)buf; (void)len; } while (0)
         |                                                            ~~~~~~^~~
   2 errors generated.


vim +80 drivers/staging/nvec/nvec_ps2.c

32890b98308613 Marc Dietrich       2011-05-19  62  
32890b98308613 Marc Dietrich       2011-05-19  63  static int nvec_ps2_notifier(struct notifier_block *nb,
32890b98308613 Marc Dietrich       2011-05-19  64  			     unsigned long event_type, void *data)
32890b98308613 Marc Dietrich       2011-05-19  65  {
32890b98308613 Marc Dietrich       2011-05-19  66  	int i;
0df8f51eed5067 Ben Marsh           2016-03-10  67  	unsigned char *msg = data;
32890b98308613 Marc Dietrich       2011-05-19  68  
32890b98308613 Marc Dietrich       2011-05-19  69  	switch (event_type) {
32890b98308613 Marc Dietrich       2011-05-19  70  	case NVEC_PS2_EVT:
1e46e6273bc62d Julian Andres Klode 2011-09-27  71  		for (i = 0; i < msg[1]; i++)
1e46e6273bc62d Julian Andres Klode 2011-09-27  72  			serio_interrupt(ps2_dev.ser_dev, msg[2 + i], 0);
0eedab704ed93d Marc Dietrich       2011-12-26  73  		NVEC_PHD("ps/2 mouse event: ", &msg[2], msg[1]);
32890b98308613 Marc Dietrich       2011-05-19  74  		return NOTIFY_STOP;
32890b98308613 Marc Dietrich       2011-05-19  75  
32890b98308613 Marc Dietrich       2011-05-19  76  	case NVEC_PS2:
0eedab704ed93d Marc Dietrich       2011-12-26  77  		if (msg[2] == 1) {
32890b98308613 Marc Dietrich       2011-05-19  78  			for (i = 0; i < (msg[1] - 2); i++)
32890b98308613 Marc Dietrich       2011-05-19  79  				serio_interrupt(ps2_dev.ser_dev, msg[i + 4], 0);
0eedab704ed93d Marc Dietrich       2011-12-26 @80  			NVEC_PHD("ps/2 mouse reply: ", &msg[4], msg[1] - 2);
32890b98308613 Marc Dietrich       2011-05-19  81  		}
32890b98308613 Marc Dietrich       2011-05-19  82  
0eedab704ed93d Marc Dietrich       2011-12-26  83  		else if (msg[1] != 2) /* !ack */
0eedab704ed93d Marc Dietrich       2011-12-26  84  			NVEC_PHD("unhandled mouse event: ", msg, msg[1] + 2);
32890b98308613 Marc Dietrich       2011-05-19  85  		return NOTIFY_STOP;
32890b98308613 Marc Dietrich       2011-05-19  86  	}
32890b98308613 Marc Dietrich       2011-05-19  87  
32890b98308613 Marc Dietrich       2011-05-19  88  	return NOTIFY_DONE;
32890b98308613 Marc Dietrich       2011-05-19  89  }
32890b98308613 Marc Dietrich       2011-05-19  90  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2025-08-18 13:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-17 19:24 [PATCH] staging: nvec: Silence unused argument warning in NVEC_PHD macro Mohammed Guermoud
2025-08-18  6:29 ` Dan Carpenter
2025-08-18  6:36 ` Greg KH
2025-08-18 13:43 ` kernel test robot [this message]
2025-08-18 15:36 ` Geert Uytterhoeven
2025-08-18 19:52   ` Mohammed Guermoud

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=202508182005.4PiKxXcN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ac100@lists.launchpad.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=linux-tegra@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=marvin24@gmx.de \
    --cc=mohammed.guermoud@gmail.com \
    --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