From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21D46C77B73 for ; Fri, 26 May 2023 22:06:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244316AbjEZWGx (ORCPT ); Fri, 26 May 2023 18:06:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235167AbjEZWGv (ORCPT ); Fri, 26 May 2023 18:06:51 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D084E49 for ; Fri, 26 May 2023 15:06:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685138775; x=1716674775; h=date:from:to:cc:subject:message-id:mime-version; bh=ZTvskO1phxhwpSxy7aULYomPUjfL3CuS0GL+NiBMb44=; b=eMmbsojV0JElqwLFk7IyanvtLiP1txvE9dt39MoQKkIzzNSxJsb9LFUb n0CEfNYXMzN0uQuxqODpktmgbcchYCFOqVCsQtK8xfmGPjXxQyW2zkIgn 0t5eytqFqNCc1uKyqbjCrTuwUOISAaCCpRjVc1xG7mF1RZRmZ5/sIKBSV 7eUqxkJZPcJEq0HyjFMcnXxdNarklowteFhtcxfan3jxCzjnelWt93cHX QFnQVx/GxQFfASOHcuu9ZIKSSdKWj0LEnRUVo/Jmt4YWyLI6NUmjmwIK+ DGrm02XWh+FFXDP+lH4MmcM7XgHYdyTV3aEx6tQ925sVBPjNedScIuTPg w==; X-IronPort-AV: E=McAfee;i="6600,9927,10722"; a="351822084" X-IronPort-AV: E=Sophos;i="6.00,195,1681196400"; d="scan'208";a="351822084" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2023 15:02:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10722"; a="699542640" X-IronPort-AV: E=Sophos;i="6.00,195,1681196400"; d="scan'208";a="699542640" Received: from lkp-server01.sh.intel.com (HELO dea6d5a4f140) ([10.239.97.150]) by orsmga007.jf.intel.com with ESMTP; 26 May 2023 15:02:45 -0700 Received: from kbuild by dea6d5a4f140 with local (Exim 4.96) (envelope-from ) id 1q2fWH-000Jci-0R; Fri, 26 May 2023 22:02:45 +0000 Date: Sat, 27 May 2023 06:02:33 +0800 From: kernel test robot To: Andrey Konovalov Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List , Marco Elver Subject: mm/kasan/kasan_test.c:36:6: sparse: sparse: symbol 'kasan_ptr_result' was not declared. Should it be static? Message-ID: <202305270548.Vm7uVozN-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 77af1f2b9a2464e4bce20cfd32bfb2390c67de7c commit: f7e01ab828fd4bf6d25b1f143a3994241e8572bf kasan: move tests to mm/kasan/ date: 8 months ago config: arm-randconfig-s051-20230526 (https://download.01.org/0day-ci/archive/20230527/202305270548.Vm7uVozN-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 12.1.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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f7e01ab828fd4bf6d25b1f143a3994241e8572bf git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout f7e01ab828fd4bf6d25b1f143a3994241e8572bf # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 ~/bin/make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 ~/bin/make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm SHELL=/bin/bash mm/kasan/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202305270548.Vm7uVozN-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> mm/kasan/kasan_test.c:36:6: sparse: sparse: symbol 'kasan_ptr_result' was not declared. Should it be static? >> mm/kasan/kasan_test.c:37:5: sparse: sparse: symbol 'kasan_int_result' was not declared. Should it be static? vim +/kasan_ptr_result +36 mm/kasan/kasan_test.c adb72ae1915db2 lib/test_kasan.c Daniel Axtens 2020-06-03 @36 void *kasan_ptr_result; 83c4e7a0363bdb lib/test_kasan.c Patricia Alfonso 2020-10-13 @37 int kasan_int_result; 83c4e7a0363bdb lib/test_kasan.c Patricia Alfonso 2020-10-13 38 83c4e7a0363bdb lib/test_kasan.c Patricia Alfonso 2020-10-13 39 static struct kunit_resource resource; ed6d74446cbfb8 lib/test_kasan.c Andrey Konovalov 2022-03-24 40 static struct kunit_kasan_status test_status; 83c4e7a0363bdb lib/test_kasan.c Patricia Alfonso 2020-10-13 41 static bool multishot; 83c4e7a0363bdb lib/test_kasan.c Patricia Alfonso 2020-10-13 42 :::::: The code at line 36 was first introduced by commit :::::: adb72ae1915db28f934e9e02c18bfcea2f3ed3b7 kasan: stop tests being eliminated as dead code with FORTIFY_SOURCE :::::: TO: Daniel Axtens :::::: CC: Linus Torvalds -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki