* [omap:droid4-pending-v5.7 3/27] drivers/input/keyboard/omap4-keypad.c:161:6: warning: variable 'keys_up' set but not used
@ 2020-05-22 20:03 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-22 20:03 UTC (permalink / raw)
To: Tony Lindgren; +Cc: kbuild-all, linux-omap
[-- Attachment #1: Type: text/plain, Size: 2532 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git droid4-pending-v5.7
head: c79f709cdba38b9a054d444f4eabc0e1126f06cc
commit: c711eebb37dcf40648df3723e43ef028b7304bc0 [3/27] Input: omap4-keypad - Scan keys in two phases and simplify with bitmask
config: alpha-randconfig-r033-20200522 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout c711eebb37dcf40648df3723e43ef028b7304bc0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/input/keyboard/omap4-keypad.c: In function 'omap4_keypad_irq_thread_fn':
drivers/input/keyboard/omap4-keypad.c:161:15: warning: variable 'keys_down' set but not used [-Wunused-but-set-variable]
161 | int keys_up, keys_down;
| ^~~~~~~~~
>> drivers/input/keyboard/omap4-keypad.c:161:6: warning: variable 'keys_up' set but not used [-Wunused-but-set-variable]
161 | int keys_up, keys_down;
| ^~~~~~~
vim +/keys_up +161 drivers/input/keyboard/omap4-keypad.c
156
157 static irqreturn_t omap4_keypad_irq_thread_fn(int irq, void *dev_id)
158 {
159 struct omap4_keypad *keypad_data = dev_id;
160 struct input_dev *input_dev = keypad_data->input;
> 161 int keys_up, keys_down;
162 u32 low, high;
163 u64 keys;
164
165 low = kbd_readl(keypad_data, OMAP4_KBD_FULLCODE31_0);
166 high = kbd_readl(keypad_data, OMAP4_KBD_FULLCODE63_32);
167 keys = low | (u64)high << 32;
168
169 /* Scan for key up events for lost key-up interrupts */
170 keys_up = omap4_keypad_scan_state(keypad_data, keys, false);
171
172 /* Scan for key down events */
173 keys_down = omap4_keypad_scan_state(keypad_data, keys, true);
174
175 input_sync(input_dev);
176
177 keypad_data->keys = keys;
178
179 /* clear pending interrupts */
180 kbd_write_irqreg(keypad_data, OMAP4_KBD_IRQSTATUS,
181 kbd_read_irqreg(keypad_data, OMAP4_KBD_IRQSTATUS));
182
183 return IRQ_HANDLED;
184 }
185
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35556 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-22 20:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-22 20:03 [omap:droid4-pending-v5.7 3/27] drivers/input/keyboard/omap4-keypad.c:161:6: warning: variable 'keys_up' set but not used kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).