[drm-intel:drm-intel-next-queued 2/2] drivers/gpu/drm/i915/i915_gem_stolen.c:516:20: error: unused variable 'ggtt'

kbuild test robot fengguang.wu at intel.com
Thu Nov 17 19:16:26 UTC 2016


tree:   git://anongit.freedesktop.org/drm-intel drm-intel-next-queued
head:   95a2e2be952c3c3a643b8e0504f2ceef15294d4d
commit: 95a2e2be952c3c3a643b8e0504f2ceef15294d4d [2/2] drm/i915: Remove stolen object spam
config: x86_64-randconfig-in0-11180217 (attached as .config)
compiler: gcc-4.6 (Debian 4.6.4-7) 4.6.4
reproduce:
        git checkout 95a2e2be952c3c3a643b8e0504f2ceef15294d4d
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/i915/i915_gem_stolen.c: In function 'i915_pages_create_for_stolen':
>> drivers/gpu/drm/i915/i915_gem_stolen.c:516:20: error: unused variable 'ggtt' [-Werror=unused-variable]
   cc1: all warnings being treated as errors

vim +/ggtt +516 drivers/gpu/drm/i915/i915_gem_stolen.c

0104fdbb8 Chris Wilson    2012-11-15  510  
0104fdbb8 Chris Wilson    2012-11-15  511  static struct sg_table *
0104fdbb8 Chris Wilson    2012-11-15  512  i915_pages_create_for_stolen(struct drm_device *dev,
0104fdbb8 Chris Wilson    2012-11-15  513  			     u32 offset, u32 size)
0104fdbb8 Chris Wilson    2012-11-15  514  {
72e96d645 Joonas Lahtinen 2016-03-30  515  	struct drm_i915_private *dev_priv = to_i915(dev);
72e96d645 Joonas Lahtinen 2016-03-30 @516  	struct i915_ggtt *ggtt = &dev_priv->ggtt;
0104fdbb8 Chris Wilson    2012-11-15  517  	struct sg_table *st;
0104fdbb8 Chris Wilson    2012-11-15  518  	struct scatterlist *sg;
0104fdbb8 Chris Wilson    2012-11-15  519  

:::::: The code at line 516 was first introduced by commit
:::::: 72e96d6450c067f58b65224bb5e73914e2cc43ab drm/i915: Refer to GGTT {,VM} consistently

:::::: TO: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
:::::: CC: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>

---
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: 24666 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161118/924cb5f4/attachment-0001.gz>


More information about the dri-devel mailing list