From: kernel test robot <lkp@intel.com>
To: "Arve Hjønnevåg" <arve@android.com>
Cc: oe-kbuild-all@lists.linux.dev,
Guenter Roeck <groeck@chromium.org>,
Nick Pelly <npelly@google.com>,
Amit Pundir <amit.pundir@linaro.org>
Subject: [jsarha:topic/cros-sof-v4.19 58/6555] drivers/input/misc/gpio_axis.c:28:10: sparse: sparse: symbol 'gpio_axis_4bit_gray_map_table' was not declared. Should it be static?
Date: Tue, 6 Jun 2023 15:53:58 +0800 [thread overview]
Message-ID: <202306061552.eTujUZ3J-lkp@intel.com> (raw)
tree: https://github.com/jsarha/linux topic/cros-sof-v4.19
head: d7a3e91d8d16d1ef8653deec5a1fffc4de034a0c
commit: 67d0f63b5a28037a7bcb777d9fb1e80f6e760ccc [58/6555] ANDROID: input: Generic GPIO Input devices
config: sparc64-randconfig-s041-20230606 (https://download.01.org/0day-ci/archive/20230606/202306061552.eTujUZ3J-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 12.3.0
reproduce:
mkdir -p ~/bin
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# https://github.com/jsarha/linux/commit/67d0f63b5a28037a7bcb777d9fb1e80f6e760ccc
git remote add jsarha https://github.com/jsarha/linux
git fetch --no-tags jsarha topic/cros-sof-v4.19
git checkout 67d0f63b5a28037a7bcb777d9fb1e80f6e760ccc
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 SHELL=/bin/bash drivers/input/misc/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306061552.eTujUZ3J-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/input/misc/gpio_axis.c:28:10: sparse: sparse: symbol 'gpio_axis_4bit_gray_map_table' was not declared. Should it be static?
>> drivers/input/misc/gpio_axis.c:43:10: sparse: sparse: symbol 'gpio_axis_5bit_singletrack_map_table' was not declared. Should it be static?
vim +/gpio_axis_4bit_gray_map_table +28 drivers/input/misc/gpio_axis.c
27
> 28 uint16_t gpio_axis_4bit_gray_map_table[] = {
29 [0x0] = 0x0, [0x1] = 0x1, /* 0000 0001 */
30 [0x3] = 0x2, [0x2] = 0x3, /* 0011 0010 */
31 [0x6] = 0x4, [0x7] = 0x5, /* 0110 0111 */
32 [0x5] = 0x6, [0x4] = 0x7, /* 0101 0100 */
33 [0xc] = 0x8, [0xd] = 0x9, /* 1100 1101 */
34 [0xf] = 0xa, [0xe] = 0xb, /* 1111 1110 */
35 [0xa] = 0xc, [0xb] = 0xd, /* 1010 1011 */
36 [0x9] = 0xe, [0x8] = 0xf, /* 1001 1000 */
37 };
38 uint16_t gpio_axis_4bit_gray_map(struct gpio_event_axis_info *info, uint16_t in)
39 {
40 return gpio_axis_4bit_gray_map_table[in];
41 }
42
> 43 uint16_t gpio_axis_5bit_singletrack_map_table[] = {
44 [0x10] = 0x00, [0x14] = 0x01, [0x1c] = 0x02, /* 10000 10100 11100 */
45 [0x1e] = 0x03, [0x1a] = 0x04, [0x18] = 0x05, /* 11110 11010 11000 */
46 [0x08] = 0x06, [0x0a] = 0x07, [0x0e] = 0x08, /* 01000 01010 01110 */
47 [0x0f] = 0x09, [0x0d] = 0x0a, [0x0c] = 0x0b, /* 01111 01101 01100 */
48 [0x04] = 0x0c, [0x05] = 0x0d, [0x07] = 0x0e, /* 00100 00101 00111 */
49 [0x17] = 0x0f, [0x16] = 0x10, [0x06] = 0x11, /* 10111 10110 00110 */
50 [0x02] = 0x12, [0x12] = 0x13, [0x13] = 0x14, /* 00010 10010 10011 */
51 [0x1b] = 0x15, [0x0b] = 0x16, [0x03] = 0x17, /* 11011 01011 00011 */
52 [0x01] = 0x18, [0x09] = 0x19, [0x19] = 0x1a, /* 00001 01001 11001 */
53 [0x1d] = 0x1b, [0x15] = 0x1c, [0x11] = 0x1d, /* 11101 10101 10001 */
54 };
55 uint16_t gpio_axis_5bit_singletrack_map(
56 struct gpio_event_axis_info *info, uint16_t in)
57 {
58 return gpio_axis_5bit_singletrack_map_table[in];
59 }
60
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2023-06-06 7:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-06 7:53 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-02-10 12:02 [jsarha:topic/cros-sof-v4.19 58/6555] drivers/input/misc/gpio_axis.c:28:10: sparse: sparse: symbol 'gpio_axis_4bit_gray_map_table' was not declared. Should it be static? kernel test robot
2022-12-03 19:12 kernel test robot
2022-11-01 1:30 kernel test robot
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=202306061552.eTujUZ3J-lkp@intel.com \
--to=lkp@intel.com \
--cc=amit.pundir@linaro.org \
--cc=arve@android.com \
--cc=groeck@chromium.org \
--cc=npelly@google.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.