[Intel-gfx] [PATCH] drm/i915: Unwind conversion to i915_gem_phys_ops on failure

kbuild test robot lkp at intel.com
Wed Feb 15 20:45:56 UTC 2017


Hi Chris,

[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on v4.10-rc8 next-20170215]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Chris-Wilson/drm-i915-Unwind-conversion-to-i915_gem_phys_ops-on-failure/20170215-225207
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-b0-02160137 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/agp_backend.h:33,
                    from include/drm/drmP.h:35,
                    from drivers/gpu/drm/i915/i915_gem.c:28:
   drivers/gpu/drm/i915/i915_gem.c: In function 'i915_gem_object_attach_phys':
   drivers/gpu/drm/i915/i915_gem.c:588:26: error: 'i915_gem_object_ops' undeclared (first use in this function)
     GEM_BUG_ON(obj->ops != &i915_gem_object_ops);
                             ^
   include/linux/compiler.h:168:42: note: in definition of macro 'unlikely'
    # define unlikely(x) __builtin_expect(!!(x), 0)
                                             ^
>> drivers/gpu/drm/i915/i915_gem.h:29:26: note: in expansion of macro 'BUG_ON'
    #define GEM_BUG_ON(expr) BUG_ON(expr)
                             ^~~~~~
   drivers/gpu/drm/i915/i915_gem.c:588:2: note: in expansion of macro 'GEM_BUG_ON'
     GEM_BUG_ON(obj->ops != &i915_gem_object_ops);
     ^~~~~~~~~~
   drivers/gpu/drm/i915/i915_gem.c:588:26: note: each undeclared identifier is reported only once for each function it appears in
     GEM_BUG_ON(obj->ops != &i915_gem_object_ops);
                             ^
   include/linux/compiler.h:168:42: note: in definition of macro 'unlikely'
    # define unlikely(x) __builtin_expect(!!(x), 0)
                                             ^
>> drivers/gpu/drm/i915/i915_gem.h:29:26: note: in expansion of macro 'BUG_ON'
    #define GEM_BUG_ON(expr) BUG_ON(expr)
                             ^~~~~~
   drivers/gpu/drm/i915/i915_gem.c:588:2: note: in expansion of macro 'GEM_BUG_ON'
     GEM_BUG_ON(obj->ops != &i915_gem_object_ops);
     ^~~~~~~~~~

vim +/BUG_ON +29 drivers/gpu/drm/i915/i915_gem.h

d501b1d2b Chris Wilson 2016-04-13  13   * Software.
d501b1d2b Chris Wilson 2016-04-13  14   *
d501b1d2b Chris Wilson 2016-04-13  15   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
d501b1d2b Chris Wilson 2016-04-13  16   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
d501b1d2b Chris Wilson 2016-04-13  17   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
d501b1d2b Chris Wilson 2016-04-13  18   * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
d501b1d2b Chris Wilson 2016-04-13  19   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
d501b1d2b Chris Wilson 2016-04-13  20   * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
d501b1d2b Chris Wilson 2016-04-13  21   * IN THE SOFTWARE.
d501b1d2b Chris Wilson 2016-04-13  22   *
d501b1d2b Chris Wilson 2016-04-13  23   */
d501b1d2b Chris Wilson 2016-04-13  24  
d501b1d2b Chris Wilson 2016-04-13  25  #ifndef __I915_GEM_H__
d501b1d2b Chris Wilson 2016-04-13  26  #define __I915_GEM_H__
d501b1d2b Chris Wilson 2016-04-13  27  
d501b1d2b Chris Wilson 2016-04-13  28  #ifdef CONFIG_DRM_I915_DEBUG_GEM
d501b1d2b Chris Wilson 2016-04-13 @29  #define GEM_BUG_ON(expr) BUG_ON(expr)
17cfde60a Matthew Auld 2016-12-13  30  #define GEM_WARN_ON(expr) WARN_ON(expr)
d501b1d2b Chris Wilson 2016-04-13  31  #else
4cfa20c83 Matthew Auld 2016-12-02  32  #define GEM_BUG_ON(expr) BUILD_BUG_ON_INVALID(expr)
17cfde60a Matthew Auld 2016-12-13  33  #define GEM_WARN_ON(expr) (BUILD_BUG_ON_INVALID(expr), 0)
d501b1d2b Chris Wilson 2016-04-13  34  #endif
d501b1d2b Chris Wilson 2016-04-13  35  
73cb97010 Chris Wilson 2016-10-28  36  #define I915_NUM_ENGINES 5
73cb97010 Chris Wilson 2016-10-28  37  

:::::: The code at line 29 was first introduced by commit
:::::: d501b1d2b19d87f216510fcf12b1b56b3c4545ef drm/i915: Add GEM debugging Kconfig option

:::::: TO: Chris Wilson <chris at chris-wilson.co.uk>
:::::: CC: Chris Wilson <chris at chris-wilson.co.uk>

---
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: 26050 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20170216/8ffdbaf0/attachment-0001.gz>


More information about the Intel-gfx mailing list