tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.15
head: b4852fbf90916fdc2f1e0e282e100f7e0e889d77
commit: a3678c46956afeb8357cb08148bc1057f26f538b [994/2818] CHROMIUM: input: Add walker
for buttons/switches map
config:
arm-chromiumos-arm-customedconfig-chrome-os:chromeos-5.15:b4852fbf90916fdc2f1e0e282e100f7e0e889d77
(
https://download.01.org/0day-ci/archive/20211212/202112121128.Wokvza3l-lk...)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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 remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.15
git checkout a3678c46956afeb8357cb08148bc1057f26f538b
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir
ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/input/keyboard/cros_ec_keyb.c:212:6: error: no previous
prototype for 'cros_ec_keyb_bs_event' [-Werror=missing-prototypes]
212
| void cros_ec_keyb_bs_event(struct cros_ec_keyb *ckdev,
| ^~~~~~~~~~~~~~~~~~~~~
> drivers/input/keyboard/cros_ec_keyb.c:224:6: error: no previous
prototype for 'cros_ec_keyb_bs_set' [-Werror=missing-prototypes]
224 |
void cros_ec_keyb_bs_set(struct cros_ec_keyb *ckdev,
| ^~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/cros_ec_keyb_bs_event +212 drivers/input/keyboard/cros_ec_keyb.c
208
209 /**
210 * cros_ec_keyb_bs_event - Report a given button switch event
211 */
212 void cros_ec_keyb_bs_event(struct cros_ec_keyb *ckdev,
213 const struct cros_ec_bs_map *map,
214 u32 mask)
215 {
216 input_event(ckdev->bs_idev, map->ev_type, map->code,
217 !!(mask & BIT(map->bit)) ^ map->inverted);
218 }
219
220
221 /**
222 * cros_ec_keyb_bs_set - Set capability for a given button switch
223 */
224 void cros_ec_keyb_bs_set(struct cros_ec_keyb *ckdev,
225 const struct cros_ec_bs_map *map,
226 u32 mask)
227 {
228 if (mask & BIT(map->bit))
229 input_set_capability(ckdev->bs_idev, map->ev_type, map->code);
230 }
231
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org