public inbox for linux-input@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Hugo Villeneuve <hugo@hugovil.com>,
	hvilleneuve@dimonoff.com, dmitry.torokhov@gmail.com,
	robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org
Cc: oe-kbuild-all@lists.linux.dev, linux-input@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	hugo@hugovil.com
Subject: Re: [PATCH 2/2] Input: charlieplex_keypad: add GPIO charlieplex keypad
Date: Wed, 4 Feb 2026 07:17:08 +0800	[thread overview]
Message-ID: <202602040703.1Bu56Htu-lkp@intel.com> (raw)
In-Reply-To: <20260203155023.536103-3-hugo@hugovil.com>

Hi Hugo,

kernel test robot noticed the following build warnings:

[auto build test WARNING on ed8a4ef29da3821ee3155d3b1925fa67fc92aae2]

url:    https://github.com/intel-lab-lkp/linux/commits/Hugo-Villeneuve/dt-bindings-input-add-GPIO-charlieplex-keypad/20260204-001338
base:   ed8a4ef29da3821ee3155d3b1925fa67fc92aae2
patch link:    https://lore.kernel.org/r/20260203155023.536103-3-hugo%40hugovil.com
patch subject: [PATCH 2/2] Input: charlieplex_keypad: add GPIO charlieplex keypad
config: parisc-randconfig-r072-20260204 (https://download.01.org/0day-ci/archive/20260204/202602040703.1Bu56Htu-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 8.5.0
smatch version: v0.5.0-8994-gd50c5a4c
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260204/202602040703.1Bu56Htu-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/202602040703.1Bu56Htu-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/input/keyboard/charlieplex_keypad.c: In function 'charlieplex_keypad_init_gpio':
>> drivers/input/keyboard/charlieplex_keypad.c:120:6: warning: variable 'nkeys' set but not used [-Wunused-but-set-variable]
     int nkeys;
         ^~~~~


vim +/nkeys +120 drivers/input/keyboard/charlieplex_keypad.c

   115	
   116	static int charlieplex_keypad_init_gpio(struct platform_device *pdev,
   117						struct charlieplex_keypad *keypad)
   118	{
   119		bool active_low;
 > 120		int nkeys;
   121		int i;
   122	
   123		keypad->line_gpios = devm_gpiod_get_array(&pdev->dev, "line", GPIOD_IN);
   124		if (IS_ERR(keypad->line_gpios))
   125			return PTR_ERR(keypad->line_gpios);
   126	
   127		keypad->nlines = keypad->line_gpios->ndescs;
   128	
   129		if (keypad->nlines > MATRIX_MAX_ROWS)
   130			return -EINVAL;
   131	
   132		nkeys = (keypad->nlines * keypad->nlines) - keypad->nlines;
   133	
   134		active_low = device_property_read_bool(&pdev->dev, "gpio-activelow");
   135	
   136		for (i = 0; i < keypad->nlines; i++) {
   137			gpiod_set_consumer_name(keypad->line_gpios->desc[i], "charlieplex_kbd_line");
   138	
   139			if (active_low ^ gpiod_is_active_low(keypad->line_gpios->desc[i]))
   140				gpiod_toggle_active_low(keypad->line_gpios->desc[i]);
   141		}
   142	
   143		return 0;
   144	}
   145	

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

      reply	other threads:[~2026-02-03 23:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-03 15:49 [PATCH 0/2] input: add GPIO-based charlieplex keypad Hugo Villeneuve
2026-02-03 15:49 ` [PATCH 1/2] dt-bindings: input: add GPIO " Hugo Villeneuve
2026-02-03 18:17   ` Rob Herring (Arm)
2026-02-03 19:06     ` Hugo Villeneuve
2026-02-05  9:24   ` Dmitry Torokhov
2026-02-13 16:26     ` Hugo Villeneuve
2026-02-03 15:49 ` [PATCH 2/2] Input: charlieplex_keypad: " Hugo Villeneuve
2026-02-03 23:17   ` kernel test robot [this message]

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=202602040703.1Bu56Htu-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=hugo@hugovil.com \
    --cc=hvilleneuve@dimonoff.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=robh@kernel.org \
    /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