All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/gpu/drm/i915/gt/intel_gtt.c:161:18: error: 'pages' undeclared; did you mean
@ 2021-02-10 16:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-10 16:17 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2385 bytes --]

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20210210-181758/Chris-Wilson/drm-i915-Check-for-scratch-page-scribbling/20210210-180810
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/1f7d2908ed9121500324cfa7c81236dbf5f0d20d
        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@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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 38987 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-10 16:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-10 16:17 drivers/gpu/drm/i915/gt/intel_gtt.c:161:18: error: 'pages' undeclared; did you mean kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.