[drm-intel:for-linux-next 3/4] drivers/gpu/drm/i915/intel_engine_cs.c:1620:30: error: 'dev_priv' undeclared

kbuild test robot fengguang.wu at intel.com
Wed Nov 1 15:45:39 UTC 2017


tree:   git://anongit.freedesktop.org/drm-intel for-linux-next
head:   3265124a2d3744d789ede58452ab6f8a9b454be8
commit: 680273879d125d644831b8de42c66576e6290378 [3/4] drm/i915: Move parking-while-active warning to intel_engines_park()
config: i386-randconfig-x003-201744 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 680273879d125d644831b8de42c66576e6290378
        # save the attached .config to linux build tree
        make ARCH=i386 

Note: the drm-intel/for-linux-next HEAD 3265124a2d3744d789ede58452ab6f8a9b454be8 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   drivers/gpu/drm/i915/intel_engine_cs.c: In function 'intel_engines_park':
>> drivers/gpu/drm/i915/intel_engine_cs.c:1620:30: error: 'dev_priv' undeclared (first use in this function)
     if (!intel_engines_are_idle(dev_priv))
                                 ^~~~~~~~
   drivers/gpu/drm/i915/intel_engine_cs.c:1620:30: note: each undeclared identifier is reported only once for each function it appears in

vim +/dev_priv +1620 drivers/gpu/drm/i915/intel_engine_cs.c

  1602	
  1603	/**
  1604	 * intel_engines_park: called when the GT is transitioning from busy->idle
  1605	 * @i915: the i915 device
  1606	 *
  1607	 * The GT is now idle and about to go to sleep (maybe never to wake again?).
  1608	 * Time for us to tidy and put away our toys (release resources back to the
  1609	 * system).
  1610	 */
  1611	void intel_engines_park(struct drm_i915_private *i915)
  1612	{
  1613		struct intel_engine_cs *engine;
  1614		enum intel_engine_id id;
  1615	
  1616		/*
  1617		 * We are committed now to parking the engines, make sure there
  1618		 * will be no more interrupts arriving later.
  1619		 */
> 1620		if (!intel_engines_are_idle(dev_priv))
  1621			DRM_ERROR("Timeout waiting for engines to idle\n");
  1622	
  1623		for_each_engine(engine, i915, id) {
  1624			if (engine->park)
  1625				engine->park(engine);
  1626	
  1627			intel_engine_disarm_breadcrumbs(engine);
  1628			tasklet_kill(&engine->execlists.irq_tasklet);
  1629	
  1630			i915_gem_batch_pool_fini(&engine->batch_pool);
  1631			engine->execlists.no_priolist = false;
  1632		}
  1633	}
  1634	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 24997 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20171101/19848601/attachment-0001.gz>


More information about the dri-devel mailing list