All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: xujiahao <xujiahao@cmss.chinamobile.com>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-input@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	xujiahao <xujiahao@cmss.chinamobile.com>
Subject: Re: [PATCH v2] Input: sidewinder - use scnprintf() for the port names
Date: Tue, 10 Nov 2026 04:08:39 +0800	[thread overview]
Message-ID: <202611100328.QAelfSpD-lkp@intel.com> (raw)
In-Reply-To: <20261109010548.438699-1-xujiahao@cmss.chinamobile.com>

Hi xujiahao,

kernel test robot noticed the following build errors:

[auto build test ERROR on dtor-input/next]
[also build test ERROR on dtor-input/for-linus hid/for-next linus/master v7.4-rc2 next-20261109]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/xujiahao/Input-sidewinder-use-scnprintf-for-the-port-names/20261109-090548
base:   https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
patch link:    https://lore.kernel.org/r/20261109010548.438699-1-xujiahao%40cmss.chinamobile.com
patch subject: [PATCH v2] Input: sidewinder - use scnprintf() for the port names
config: i386-randconfig-1006-20261109 (https://download.01.org/0day-ci/archive/20261110/202611100328.QAelfSpD-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261110/202611100328.QAelfSpD-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/202611100328.QAelfSpD-lkp@intel.com/

All errors (new ones prefixed by >>):

   ld: drivers/input/joystick/sidewinder.o: in function `sw_3dp_id':
>> drivers/input/joystick/sidewinder.c:542:(.text+0x1630): undefined reference to `__umoddi3'
>> ld: drivers/input/joystick/sidewinder.c:540:(.text+0x1652): undefined reference to `__udivdi3'


vim +542 drivers/input/joystick/sidewinder.c

   519	
   520	/*
   521	 * sw_3dp_id() translates the 3DP id into a human legible string.
   522	 * Unfortunately I don't know how to do this for the other SW types.
   523	 */
   524	
   525	static void sw_3dp_id(unsigned char *buf, char *comment, size_t size)
   526	{
   527		int i;
   528		char pnp[8], rev[9];
   529	
   530		for (i = 0; i < 7; i++)						/* ASCII PnP ID */
   531			pnp[i] = sw_get_bits(buf, 24+8*i, 8, 1);
   532	
   533		for (i = 0; i < 8; i++)						/* ASCII firmware revision */
   534			rev[i] = sw_get_bits(buf, 88+8*i, 8, 1);
   535	
   536		pnp[7] = rev[8] = 0;
   537	
   538		scnprintf(comment, size, " [PnP %d.%02d id %s rev %s]",
   539			  (int)(((sw_get_bits(buf, 8, 6, 1) << 6) |	/* Two 6-bit values */
 > 540				  sw_get_bits(buf, 16, 6, 1)) / 100),
   541			  (int)(((sw_get_bits(buf, 8, 6, 1) << 6) |
 > 542				  sw_get_bits(buf, 16, 6, 1)) % 100),
   543			  pnp, rev);
   544	}
   545	

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

  parent reply	other threads:[~2026-11-09 20:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-06  3:33 [PATCH] Input: sidewinder - size the name buffers to their formats xujiahao
2026-11-08  6:33 ` Dmitry Torokhov
2026-11-09  1:05 ` [PATCH v2] Input: sidewinder - use scnprintf() for the port names xujiahao
2026-11-09  1:31   ` sashiko-bot
2026-11-09 10:45   ` kernel test robot
2026-11-09 20:08   ` kernel test robot [this message]
2026-11-10  1:48   ` [PATCH v3] " xujiahao

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=202611100328.QAelfSpD-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=xujiahao@cmss.chinamobile.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 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.