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: 20 hours ago
config: x86_64-randconfig-a013-20210209 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
c9439ca36342fb6013187d0a69aef92736951476)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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:161:18: error: use of
undeclared identifier 'pages'; did you mean 'page'?
set_page_dirty(pages); /* keep the poisoned contents */
^~~~~
page
drivers/gpu/drm/i915/gt/intel_gtt.c:149:15: note: 'page' declared here
struct page *page;
^
1 error generated.
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