[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202212160600.VUbOry3f-lkp@intel.com>
Date: Fri, 16 Dec 2022 07:01:46 +0800
From: kernel test robot <lkp@...el.com>
To: Ben Skeggs <bskeggs@...hat.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Lyude Paul <lyude@...hat.com>
Subject: drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c:178:1: sparse:
sparse: symbol 'gf100_fifo_nonstall_block' was not declared. Should it be
static?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 785d21ba2f447fb26df4b22f45653763beb767ea
commit: d67f3b96462922713e77cddb9d6f4965606918fc drm/nouveau/fifo: tidy up non-stall intr handling
date: 5 weeks ago
config: s390-randconfig-s052-20221214
compiler: s390-linux-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=d67f3b96462922713e77cddb9d6f4965606918fc
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout d67f3b96462922713e77cddb9d6f4965606918fc
# 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=s390 SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c:178:1: sparse: sparse: symbol 'gf100_fifo_nonstall_block' was not declared. Should it be static?
vim +/gf100_fifo_nonstall_block +178 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c
159
160 static void
161 gf100_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chan *chan)
162 {
163 u64 addr = 0ULL;
164 u32 ptr0;
165
166 switch (engn->engine->subdev.type) {
167 case NVKM_ENGINE_SW : return;
168 case NVKM_ENGINE_GR : ptr0 = 0x0210; break;
169 case NVKM_ENGINE_CE : ptr0 = 0x0230 + (engn->engine->subdev.inst * 0x10); break;
170 case NVKM_ENGINE_MSPDEC: ptr0 = 0x0250; break;
171 case NVKM_ENGINE_MSPPP : ptr0 = 0x0260; break;
172 case NVKM_ENGINE_MSVLD : ptr0 = 0x0270; break;
173 default:
174 WARN_ON(1);
175 return;
176 }
177
> 178 if (cctx) {
179 addr = cctx->vctx->vma->addr;
180 addr |= 4ULL;
181 }
182
183 nvkm_kmap(chan->inst);
184 nvkm_wo32(chan->inst, ptr0 + 0, lower_32_bits(addr));
185 nvkm_wo32(chan->inst, ptr0 + 4, upper_32_bits(addr));
186 nvkm_done(chan->inst);
187 }
188
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (174595 bytes)
Powered by blists - more mailing lists