From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gnuweeb.org (Postfix) with ESMTPS id 10B0080866 for ; Sun, 18 Sep 2022 07:06:23 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=FbRZz6gS; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663484783; x=1695020783; h=date:from:to:cc:subject:message-id:mime-version; bh=fpx55cjNxAWcn3rrN3kxY765Vm6S5ixhjcsE+n0fHdE=; b=FbRZz6gSqN0ghdV9ksQQGHb9JwUaYOz8fqTiCHXK2D1RCAwvqQRxYkSZ vO36WZk4gokUPTvMO2VJHVa5uivECRNcOzp5XScEXeAvAXBDOP9CSVh7N E1roNrVcJXQCf2pcBjDcsexmv+Eq9kP4/vpaf/GjDVo5jAIAGoINLHOBY uCTTUVo1jFubJ+P7oqphlqAiqqRRoJ7MvM+Bwz4snmIsF9jwj5s/E3sv7 ru+qI7Q5BK+xsi8ELMpI77GV/QNwGWKVRp5TuSKENZJR/4SMWel+3+Npy n4LYyPCDWA11SrZcekvH00+pWz5WbXJu+EmPaW0ui3VpMEtFgwZLi4Y8e A==; X-IronPort-AV: E=McAfee;i="6500,9779,10473"; a="385500867" X-IronPort-AV: E=Sophos;i="5.93,325,1654585200"; d="scan'208";a="385500867" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2022 00:06:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,325,1654585200"; d="scan'208";a="760509164" Received: from lkp-server01.sh.intel.com (HELO c0a60f19fe7e) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 18 Sep 2022 00:06:21 -0700 Received: from kbuild by c0a60f19fe7e with local (Exim 4.96) (envelope-from ) id 1oZoNg-0000yj-22; Sun, 18 Sep 2022 07:06:20 +0000 Date: Sun, 18 Sep 2022 15:05:24 +0800 From: kernel test robot To: Ammar Faizi , GNU/Weeb Mailing List Cc: kbuild-all@lists.01.org Subject: [ammarfaizi2-block:google/android/kernel/common/android12-5.4 2811/9999] drivers/dma-buf/heaps/page_pool.c:236:17: sparse: sparse: symbol 'pool_shrinker' was not declared. Should it be static? Message-ID: <202209181430.gtXbzvwt-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android12-5.4 head: 61c005f0f1663789612bbe039932620f51779526 commit: 44008f99d9ca0793e2562967e1da01fa74ee4a41 [2811/9999] ANDROID: dma-buf: system_heap: Add pagepool support to system heap config: x86_64-randconfig-s023 (https://download.01.org/0day-ci/archive/20220918/202209181430.gtXbzvwt-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/ammarfaizi2/linux-block/commit/44008f99d9ca0793e2562967e1da01fa74ee4a41 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android12-5.4 git checkout 44008f99d9ca0793e2562967e1da01fa74ee4a41 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/dma-buf/heaps/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/dma-buf/heaps/page_pool.c:236:17: sparse: sparse: symbol 'pool_shrinker' was not declared. Should it be static? drivers/dma-buf/heaps/page_pool.c:243:5: sparse: sparse: symbol 'dmabuf_page_pool_init_shrinker' was not declared. Should it be static? vim +/pool_shrinker +236 drivers/dma-buf/heaps/page_pool.c bd4db96bfc247a John Stultz 2020-10-02 235 bd4db96bfc247a John Stultz 2020-10-02 @236 struct shrinker pool_shrinker = { bd4db96bfc247a John Stultz 2020-10-02 237 .count_objects = dmabuf_page_pool_shrink_count, bd4db96bfc247a John Stultz 2020-10-02 238 .scan_objects = dmabuf_page_pool_shrink_scan, bd4db96bfc247a John Stultz 2020-10-02 239 .seeks = DEFAULT_SEEKS, bd4db96bfc247a John Stultz 2020-10-02 240 .batch = 0, bd4db96bfc247a John Stultz 2020-10-02 241 }; bd4db96bfc247a John Stultz 2020-10-02 242 :::::: The code at line 236 was first introduced by commit :::::: bd4db96bfc247afdaf7a4cfde85fd8147522f3e6 ANDROID: dma-buf: heaps: Add a shrinker controlled page pool :::::: TO: John Stultz :::::: CC: John Stultz -- 0-DAY CI Kernel Test Service https://01.org/lkp