[Intel-gfx] [PATCH v3] drm/i915/debugfs: Show context objects in i915_gem_objects

kbuild test robot lkp at intel.com
Mon May 23 13:50:11 UTC 2016


Hi,

[auto build test ERROR on next-20160523]
[cannot apply to drm-intel/for-linux-next v4.6-rc7 v4.6-rc6 v4.6-rc5 v4.6]
[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-debugfs-Show-context-objects-in-i915_gem_objects/20160523-210704
config: i386-randconfig-x011-201621 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

Note: the linux-review/Chris-Wilson/drm-i915-debugfs-Show-context-objects-in-i915_gem_objects/20160523-210704 HEAD 3dfdb2b9e47b5ee4dfd9a21f80014bd9de87c4cb builds fine.
      It only hurts bisectibility.

All error/warnings (new ones prefixed by >>):

   In file included from include/asm-generic/bug.h:13:0,
                    from arch/x86/include/asm/bug.h:35,
                    from include/linux/bug.h:4,
                    from include/linux/seq_file.h:6,
                    from drivers/gpu/drm/i915/i915_debugfs.c:29:
   drivers/gpu/drm/i915/i915_debugfs.c: In function 'per_file_ctx_stats':
>> drivers/gpu/drm/i915/i915_debugfs.c:432:32: error: dereferencing pointer to incomplete type 'struct i915_gem_context'
     for (n = 0; n < ARRAY_SIZE(ctx->engine); n++) {
                                   ^
   include/linux/kernel.h:54:33: note: in definition of macro 'ARRAY_SIZE'
    #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                    ^~~
   In file included from include/linux/seq_file.h:6:0,
                    from drivers/gpu/drm/i915/i915_debugfs.c:29:
>> include/linux/bug.h:34:45: error: bit-field '<anonymous>' width not an integer constant
    #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
                                                ^
   include/linux/compiler-gcc.h:64:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
    #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
                               ^~~~~~~~~~~~~~~~~
   include/linux/kernel.h:54:59: note: in expansion of macro '__must_be_array'
    #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                                              ^~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/i915_debugfs.c:432:18: note: in expansion of macro 'ARRAY_SIZE'
     for (n = 0; n < ARRAY_SIZE(ctx->engine); n++) {
                     ^~~~~~~~~~
   drivers/gpu/drm/i915/i915_debugfs.c: In function 'i915_dump_lrc':
   drivers/gpu/drm/i915/i915_debugfs.c:2139:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
      if (ctx != dev_priv->kernel_context)
         ^

vim +432 drivers/gpu/drm/i915/i915_debugfs.c

   426	
   427	static int per_file_ctx_stats(int id, void *ptr, void *data)
   428	{
   429		struct i915_gem_context *ctx = ptr;
   430		int n;
   431	
 > 432		for (n = 0; n < ARRAY_SIZE(ctx->engine); n++) {
   433			if (ctx->engine[n].state)
   434				per_file_stats(0, ctx->engine[n].state, data);
   435			if (ctx->engine[n].ringbuf)

---
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/octet-stream
Size: 27555 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20160523/1bf2b8a4/attachment-0001.obj>


More information about the Intel-gfx mailing list