From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (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 E4333525C for ; Thu, 20 Apr 2023 09:45:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681983946; x=1713519946; h=date:from:to:cc:subject:message-id:mime-version; bh=VQqq4KmVOVer6LB7CPK1rb8M17DTfvVTac6ImBoshJY=; b=LsIWsFVbk0OyegvwJ1qfMPymbo5tbp90FnF6iXrNIb3X0ymL6J5d3Xse SDvV5o7oZHgaY8TzkgkLuezDHBb44/Y6alyceZ1+S0Y+m2u/dmF7/ySki 4mtmqanxvOR7YOmlOR1nOp3Lq5oIM4091ugmv2p2LLUbJBlQaL2XxtDgA bcyJ5ETJ1Zo87aDmHI9hl3dBTr5UDR/x27fzWyqVEjZ3W0S0U1T7+hgmu v/UbWHkmPc6KvtOHgocSDJWMehmT3arjzPhWK5RkdKkn2S4U+1lf66bLV AIAc5wKATTVQi6bJhtvBR3QT79iiW+Axov1XulrNuOQk34sxbRVG9t71s Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10685"; a="347550938" X-IronPort-AV: E=Sophos;i="5.99,212,1677571200"; d="scan'208";a="347550938" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2023 02:45:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10685"; a="722313504" X-IronPort-AV: E=Sophos;i="5.99,212,1677571200"; d="scan'208";a="722313504" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 20 Apr 2023 02:45:45 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1ppQr9-000fhE-08; Thu, 20 Apr 2023 09:45:35 +0000 Date: Thu, 20 Apr 2023 17:44:58 +0800 From: kernel test robot To: Daniel Bristot de Oliveira Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, "Steven Rostedt (Google)" Subject: kernel/trace/rv/monitors/wip/wip.c:20:1: sparse: sparse: symbol 'da_mon_wip' was not declared. Should it be static? Message-ID: <202304201725.w4hn3u46-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 Hi Daniel, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: cb0856346a60fe3eb837ba5e73588a41f81ac05f commit: 10bde81c74863472047f31304064018c40f488ee rv/monitor: Add the wip monitor date: 9 months ago config: arc-randconfig-s053-20230420 (https://download.01.org/0day-ci/archive/20230420/202304201725.w4hn3u46-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 12.1.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-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=10bde81c74863472047f31304064018c40f488ee git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 10bde81c74863472047f31304064018c40f488ee # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arc SHELL=/bin/bash kernel/trace/rv/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304201725.w4hn3u46-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) kernel/trace/rv/monitors/wip/wip.c: note: in included file: kernel/trace/rv/monitors/wip/wip.h:30:22: sparse: sparse: symbol 'automaton_wip' was not declared. Should it be static? vim +/da_mon_wip +20 kernel/trace/rv/monitors/wip/wip.c 8812d21219b9c6 Daniel Bristot de Oliveira 2022-07-29 18 8812d21219b9c6 Daniel Bristot de Oliveira 2022-07-29 19 struct rv_monitor rv_wip; 8812d21219b9c6 Daniel Bristot de Oliveira 2022-07-29 @20 DECLARE_DA_MON_PER_CPU(wip, unsigned char); 8812d21219b9c6 Daniel Bristot de Oliveira 2022-07-29 21 :::::: The code at line 20 was first introduced by commit :::::: 8812d21219b9c649dd25eb93915e00939944aeb7 rv/monitor: Add the wip monitor skeleton created by dot2k :::::: TO: Daniel Bristot de Oliveira :::::: CC: Steven Rostedt (Google) -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests