mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Leo L. Schwab" <ewhac@ewhac.org>, Hans de Goede <hansg@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, Kate Hsuan <hpa@redhat.com>,
	"Leo L. Schwab" <ewhac@ewhac.org>, Jiri Kosina <jikos@kernel.org>,
	Benjamin Tissoires <bentiss@kernel.org>,
	linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] HID: lg-g15 - Add support for Logitech G13.
Date: Wed, 13 Aug 2025 08:11:48 +0800	[thread overview]
Message-ID: <202508130759.HscxexZX-lkp@intel.com> (raw)
In-Reply-To: <20250812065327.515098-2-ewhac@ewhac.org>

Hi Leo,

kernel test robot noticed the following build warnings:

[auto build test WARNING on hid/for-next]
[also build test WARNING on linus/master v6.17-rc1 next-20250812]
[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/Leo-L-Schwab/HID-lg-g15-Add-support-for-Logitech-G13/20250812-151139
base:   https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next
patch link:    https://lore.kernel.org/r/20250812065327.515098-2-ewhac%40ewhac.org
patch subject: [PATCH v2] HID: lg-g15 - Add support for Logitech G13.
config: arm-randconfig-004-20250813 (https://download.01.org/0day-ci/archive/20250813/202508130759.HscxexZX-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250813/202508130759.HscxexZX-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/202508130759.HscxexZX-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/hid/hid-lg-g15.c: In function 'lg_g13_event':
>> drivers/hid/hid-lg-g15.c:660:7: warning: unused variable 'hw_brightness_changed' [-Wunused-variable]
     bool hw_brightness_changed;
          ^~~~~~~~~~~~~~~~~~~~~


vim +/hw_brightness_changed +660 drivers/hid/hid-lg-g15.c

   655	
   656	static int lg_g13_event(struct lg_g15_data *g15, u8 const *data)
   657	{
   658		struct g13_input_report const * const rep = (struct g13_input_report *) data;
   659		int i, val;
 > 660		bool hw_brightness_changed;
   661	
   662		/*
   663		 * Main macropad and menu keys.
   664		 * Emit key events defined for each bit position.
   665		 */
   666		for (i = 0;  i < ARRAY_SIZE(g13_keys_for_bits);  ++i) {
   667			if (g13_keys_for_bits[i]) {
   668				val = TEST_BIT(rep->keybits, i);
   669				input_report_key(g15->input, g13_keys_for_bits[i], val);
   670			}
   671		}
   672		input_sync(g15->input);
   673	
   674		/*
   675		 * Joystick.
   676		 * Emit button and deflection events.
   677		 */
   678		for (i = 0;  i < ARRAY_SIZE(g13_keys_for_bits_js);  ++i) {
   679			if (g13_keys_for_bits_js[i]) {
   680				val = TEST_BIT(rep->keybits, i + 33);
   681				input_report_key(g15->input_js, g13_keys_for_bits_js[i], val);
   682			}
   683		}
   684		input_report_abs(g15->input_js, ABS_X, rep->joy_x);
   685		input_report_abs(g15->input_js, ABS_Y, rep->joy_y);
   686		input_sync(g15->input_js);
   687	

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

  parent reply	other threads:[~2025-08-13  0:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-12  6:53 Leo L. Schwab
2025-08-12 11:24 ` Markus Elfring
2025-08-12 11:51 ` Markus Elfring
2025-08-12 12:55 ` Markus Elfring
2025-08-13  0:11 ` kernel test robot [this message]
2025-08-14  9:09 ` Kate Hsuan
2025-08-14 20:27   ` Leo L. Schwab

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=202508130759.HscxexZX-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=bentiss@kernel.org \
    --cc=ewhac@ewhac.org \
    --cc=hansg@kernel.org \
    --cc=hpa@redhat.com \
    --cc=jikos@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --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

all inboxes | Powered by JetHome®