From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF0BB611C for ; Tue, 6 Jun 2023 07:54:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686038050; x=1717574050; h=date:from:to:cc:subject:message-id:mime-version; bh=FgRD4sEbvzTFM7CXT+/yRwcKLVFhV3dR0qtWTGSbiYM=; b=iDxJ9GR9HVHDx1uu0smHvLxL0CDClKAWCcViFfwkJFiV+CuHbljgD0/M ZVErNlbbFvLXEqRBoBKb+PC2eUPez0WgQUvaIkebVr2sCeqLtta1N6xhy 27UuOEmVDN7yqyN0gmnovsAC3KvG4AYe5z0J5TX1WedgAI6m6gVhN8eEC KHkmtoTgZEm+PEuGwiBJJ8K8DI+I5Re9JooGYAO6xij4SZaSY0iwIe/Ne yBvVnCndU/Uc3vSX5zjsAdCgWmqzFmCgxrW32lBswW1kS9ejiuhUg8lMT WaoibuUFGP1uGvDRJK2cW1pAAvD1wzYZGub4fbr86uFTlLuPViUaZxIIh Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10732"; a="346192937" X-IronPort-AV: E=Sophos;i="6.00,219,1681196400"; d="scan'208";a="346192937" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2023 00:54:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10732"; a="853307884" X-IronPort-AV: E=Sophos;i="6.00,219,1681196400"; d="scan'208";a="853307884" Received: from lkp-server01.sh.intel.com (HELO 15ab08e44a81) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 06 Jun 2023 00:54:06 -0700 Received: from kbuild by 15ab08e44a81 with local (Exim 4.96) (envelope-from ) id 1q6RW1-000507-2A; Tue, 06 Jun 2023 07:54:05 +0000 Date: Tue, 6 Jun 2023 15:53:58 +0800 From: kernel test robot To: Arve =?iso-8859-1?B?SGr4bm5lduVn?= Cc: oe-kbuild-all@lists.linux.dev, Guenter Roeck , Nick Pelly , Amit Pundir 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? Message-ID: <202306061552.eTujUZ3J-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 | 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