From: kernel test robot <lkp@intel.com>
To: Ivan Gorinov <linux-kernel@altimeter.info>
Cc: oe-kbuild-all@lists.linux.dev, linux-input@vger.kernel.org,
Jiri Kosina <jikos@kernel.org>
Subject: [hid:for-6.10/winwing 1/1] drivers/hid/hid-winwing.c:123:22: warning: variable 'minor' set but not used
Date: Thu, 4 Apr 2024 10:22:31 +0800 [thread overview]
Message-ID: <202404041038.aQ0aRTSK-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-6.10/winwing
head: 266c990debad2f9589c7a412e897a8e312b09766
commit: 266c990debad2f9589c7a412e897a8e312b09766 [1/1] HID: Add WinWing Orion2 throttle support
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20240404/202404041038.aQ0aRTSK-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240404/202404041038.aQ0aRTSK-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/202404041038.aQ0aRTSK-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/hid/hid-winwing.c: In function 'winwing_probe':
>> drivers/hid/hid-winwing.c:123:22: warning: variable 'minor' set but not used [-Wunused-but-set-variable]
123 | unsigned int minor;
| ^~~~~
vim +/minor +123 drivers/hid/hid-winwing.c
119
120 static int winwing_probe(struct hid_device *hdev,
121 const struct hid_device_id *id)
122 {
> 123 unsigned int minor;
124 int ret;
125
126 ret = hid_parse(hdev);
127 if (ret) {
128 hid_err(hdev, "parse failed\n");
129 return ret;
130 }
131
132 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
133 if (ret) {
134 hid_err(hdev, "hw start failed\n");
135 return ret;
136 }
137
138 minor = ((struct hidraw *) hdev->hidraw)->minor;
139
140 return 0;
141 }
142
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2024-04-04 2:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-04 2:22 kernel test robot [this message]
2024-04-12 11:17 ` [hid:for-6.10/winwing 1/1] drivers/hid/hid-winwing.c:123:22: warning: variable 'minor' set but not used Jiri Kosina
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=202404041038.aQ0aRTSK-lkp@intel.com \
--to=lkp@intel.com \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@altimeter.info \
--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