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 4C0CCC00140 for ; Fri, 5 Aug 2022 13:19:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238070AbiHENT0 (ORCPT ); Fri, 5 Aug 2022 09:19:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230169AbiHENTX (ORCPT ); Fri, 5 Aug 2022 09:19:23 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E98328E00 for ; Fri, 5 Aug 2022 06:19:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659705562; x=1691241562; h=date:from:to:cc:subject:message-id:mime-version; bh=ARlvhJInnfvdCOPFnSbHX5nHoDKCV1RJixQI6NU0UM0=; b=Bc1+4qvccG3CR1esb4ZcJH5vnL/bH2w2wA/19cmf0EyPi2SQYK4Z2XTG uhm0TNz+jdooRuohknaBT9G+u1V0wzDXT+cLVYpq3pnKQ7+GP0igYfAw2 0iPF4sEpjd6IgHn1pjuLWIT8rUxIbYZKRdkyahl36fwU0vPgTytB6zZXr /OXdXO9mkfSIpCpdEVTG5/RvSib/UfCFUPElkwe+pLnmpvcpqUhCN59AZ AhxymXGYF/gUkiu3xr3zE4Zgp/KnbUMCrZ11pDTe7xsZBlesWfGa+lQ2e 2j/zDK6NSXfrTRiP8vRX+sxl2iC5O5wk1Ui0xNtsrImGIPiLVgd8oyifw A==; X-IronPort-AV: E=McAfee;i="6400,9594,10430"; a="354193725" X-IronPort-AV: E=Sophos;i="5.93,216,1654585200"; d="scan'208";a="354193725" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2022 06:19:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,216,1654585200"; d="scan'208";a="632010043" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 05 Aug 2022 06:19:19 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oJxEV-000JPb-0Q; Fri, 05 Aug 2022 13:19:19 +0000 Date: Fri, 5 Aug 2022 21:18:27 +0800 From: kernel test robot To: Mikko Perttunen Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Thierry Reding Subject: drivers/gpu/drm/tegra/submit.c:107:28: sparse: sparse: symbol 'gather_bo_ops' was not declared. Should it be static? Message-ID: <202208052102.Ns7gQs4s-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: b2a88c212e652e94f1e4b635910972ac57ba4e97 commit: 13abe0bb15ceac2fb8e8853bd30c278426d95ad0 drm/tegra: Implement job submission part of new UAPI date: 12 months ago config: arm-randconfig-s031-20220805 (https://download.01.org/0day-ci/archive/20220805/202208052102.Ns7gQs4s-lkp@intel.com/config) compiler: arm-linux-gnueabi-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=13abe0bb15ceac2fb8e8853bd30c278426d95ad0 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 13abe0bb15ceac2fb8e8853bd30c278426d95ad0 # 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=arm SHELL=/bin/bash arch/arm/kernel/ drivers/gpu/drm/msm/ drivers/gpu/drm/tegra/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/gpu/drm/tegra/submit.c:107:28: sparse: sparse: symbol 'gather_bo_ops' was not declared. Should it be static? vim +/gather_bo_ops +107 drivers/gpu/drm/tegra/submit.c 66 67 static struct host1x_bo_mapping * 68 gather_bo_pin(struct device *dev, struct host1x_bo *bo, enum dma_data_direction direction) 69 { 70 struct gather_bo *gather = container_of(bo, struct gather_bo, base); 71 struct host1x_bo_mapping *map; 72 int err; 73 74 map = kzalloc(sizeof(*map), GFP_KERNEL); 75 if (!map) 76 return ERR_PTR(-ENOMEM); 77 78 kref_init(&map->ref); 79 map->bo = host1x_bo_get(bo); 80 map->direction = direction; 81 map->dev = dev; 82 83 map->sgt = kzalloc(sizeof(*map->sgt), GFP_KERNEL); 84 if (!map->sgt) { 85 err = -ENOMEM; 86 goto free; 87 } 88 89 err = dma_get_sgtable(gather->dev, map->sgt, gather->gather_data, gather->gather_data_dma, 90 gather->gather_data_words * 4); 91 if (err) 92 goto free_sgt; 93 94 err = dma_map_sgtable(dev, map->sgt, direction, 0); 95 if (err) 96 goto free_sgt; 97 98 map->phys = sg_dma_address(map->sgt->sgl); 99 map->size = gather->gather_data_words * 4; 100 map->chunks = err; 101 102 return map; 103 104 free_sgt: 105 sg_free_table(map->sgt); 106 kfree(map->sgt); > 107 free: 108 kfree(map); 109 return ERR_PTR(err); 110 } 111 -- 0-DAY CI Kernel Test Service https://01.org/lkp