lkml.org 
[lkml]   [2021]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subject[t-kristo-pm:usi-5.16-rfc-v2-bpf 24/30] drivers/hid/hid-debug.c:1029:57: sparse: sparse: obsolete array initializer, use C99 syntax
From
tree:   https://github.com/t-kristo/linux-pm usi-5.16-rfc-v2-bpf
head: 241207b4769fca049dfcc4dbde0bda92e4f67027
commit: f6d52d17b96916ae3e76774b1aec80d638dbf46c [24/30] HID: debug: Add USI usages
config: riscv-randconfig-s032-20211128 (https://download.01.org/0day-ci/archive/20211129/202111290200.V12OhjgD-lkp@intel.com/config)
compiler: riscv32-linux-gcc (GCC) 11.2.0
reproduce:
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-dirty
# https://github.com/t-kristo/linux-pm/commit/f6d52d17b96916ae3e76774b1aec80d638dbf46c
git remote add t-kristo-pm https://github.com/t-kristo/linux-pm
git fetch --no-tags t-kristo-pm usi-5.16-rfc-v2-bpf
git checkout f6d52d17b96916ae3e76774b1aec80d638dbf46c
# save the config file to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash drivers/hid/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
>> drivers/hid/hid-debug.c:1029:57: sparse: sparse: obsolete array initializer, use C99 syntax

vim +1029 drivers/hid/hid-debug.c

c080d89ad91e98 Jiri Kosina 2007-01-25 1025
0ce1ac3b3ca0f4 Joe Perches 2007-09-26 1026 static const char *misc[MSC_MAX + 1] = {
c080d89ad91e98 Jiri Kosina 2007-01-25 1027 [MSC_SERIAL] = "Serial", [MSC_PULSELED] = "Pulseled",
f6d52d17b96916 Mika Westerberg 2021-01-22 1028 [MSC_GESTURE] = "Gesture", [MSC_RAW] = "RawData",
f6d52d17b96916 Mika Westerberg 2021-01-22 @1029 [MSC_PEN_ID] = "PenID", [MSC_PEN_COLOR] "PenColor",
f6d52d17b96916 Mika Westerberg 2021-01-22 1030 [MSC_PEN_LINE_WIDTH] = "PenLineWidth",
f6d52d17b96916 Mika Westerberg 2021-01-22 1031 [MSC_PEN_LINE_STYLE] = "PenLineStyle",
c080d89ad91e98 Jiri Kosina 2007-01-25 1032 };
c080d89ad91e98 Jiri Kosina 2007-01-25 1033

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

\
 
 \ /
  Last update: 2021-12-07 09:45    [W:0.034 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site