tree:
https://github.com/0day-ci/linux/commits/UPDATE-20210210-181758/Chris-Wil...
head: 1f7d2908ed9121500324cfa7c81236dbf5f0d20d
commit: 1f7d2908ed9121500324cfa7c81236dbf5f0d20d drm/i915: Check for scratch page
scribbling
date: 6 hours ago
config: x86_64-randconfig-s021-20210209 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-215-g0fb77bb6-dirty
#
https://github.com/0day-ci/linux/commit/1f7d2908ed9121500324cfa7c81236dbf...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
UPDATE-20210210-181758/Chris-Wilson/drm-i915-Check-for-scratch-page-scribbling/20210210-180810
git checkout 1f7d2908ed9121500324cfa7c81236dbf5f0d20d
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/i915/gt/intel_gtt.c: In function 'poison_scratch_page':
> drivers/gpu/drm/i915/gt/intel_gtt.c:161:18: error:
'pages' undeclared (first use in this function); did you mean 'page'?
161 | set_page_dirty(pages); /* keep the poisoned contents */
| ^~~~~
| page
drivers/gpu/drm/i915/gt/intel_gtt.c:161:18: note: each undeclared identifier is
reported only once for each function it appears in
vim +161 drivers/gpu/drm/i915/gt/intel_gtt.c
145
146 static void poison_scratch_page(struct drm_i915_gem_object *scratch)
147 {
148 struct sgt_iter sgt;
149 struct page *page;
150 u8 val;
151
152 val = 0;
153 if (IS_ENABLED(CONFIG_DRM_I915_DEBUG_GEM))
154 val = POISON_FREE;
155
156 for_each_sgt_page(page, sgt, scratch->mm.pages) {
157 void *vaddr;
158
159 vaddr = kmap(page);
160 memset(vaddr, val, PAGE_SIZE);
161 set_page_dirty(pages); /* keep the poisoned contents */
162 kunmap(page);
163 }
164 }
165
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org