tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 736b6d81d93cf61a0601af90bd552103ef997b3f commit: a10234fda4664f9ffe9608abe1e99b51815113f5 [5909/10068] drm/i915: Partial abandonment of legacy DRM logging macros config: i386-randconfig-s001 compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=a10234fda4664f9ffe9608abe1e99b51815113f5 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout a10234fda4664f9ffe9608abe1e99b51815113f5 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot Note: the linux-next/master HEAD 736b6d81d93cf61a0601af90bd552103ef997b3f builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): In file included from include/drm/drm_mm.h:51, from include/drm/drm_vma_manager.h:26, from include/drm/drm_gem.h:40, from drivers/gpu/drm/i915/i915_vma.c:27: drivers/gpu/drm/i915/i915_vma.c: In function 'vma_print_allocator': >> drivers/gpu/drm/i915/i915_vma.c:77:25: error: expected ')' before string constant 77 | "vma.node [%08llx + %08llx] %s: unknown owner\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/drm/drm_print.h:410:29: note: in definition of macro 'drm_dev_dbg' 410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__) | ^~~ include/drm/drm_print.h:510:33: note: in expansion of macro 'drm_dbg_driver' 510 | #define drm_dbg(drm, fmt, ...) drm_dbg_driver(drm, fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~ drivers/gpu/drm/i915/i915_vma.c:76:17: note: in expansion of macro 'drm_dbg' 76 | drm_dbg(&to_i915(vma->obj->base.dev)->drm | ^~~~~~~ include/drm/drm_print.h:492:21: note: to match this '(' 492 | drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRIVER, fmt, ##__VA_ARGS__) | ^ include/drm/drm_print.h:410:29: note: in definition of macro 'drm_dev_dbg' 410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__) | ^~~ include/drm/drm_print.h:510:33: note: in expansion of macro 'drm_dbg_driver' 510 | #define drm_dbg(drm, fmt, ...) drm_dbg_driver(drm, fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~ drivers/gpu/drm/i915/i915_vma.c:76:17: note: in expansion of macro 'drm_dbg' 76 | drm_dbg(&to_i915(vma->obj->base.dev)->drm | ^~~~~~~ >> drivers/gpu/drm/i915/i915_vma.c:77:25: error: expected ')' before string constant 77 | "vma.node [%08llx + %08llx] %s: unknown owner\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/drm/drm_print.h:410:29: note: in definition of macro 'drm_dev_dbg' 410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__) | ^~~ include/drm/drm_print.h:510:33: note: in expansion of macro 'drm_dbg_driver' 510 | #define drm_dbg(drm, fmt, ...) drm_dbg_driver(drm, fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~ drivers/gpu/drm/i915/i915_vma.c:76:17: note: in expansion of macro 'drm_dbg' 76 | drm_dbg(&to_i915(vma->obj->base.dev)->drm | ^~~~~~~ include/drm/drm_print.h:492:29: note: to match this '(' 492 | drm_dev_dbg((drm) ? (drm)->dev : NULL, DRM_UT_DRIVER, fmt, ##__VA_ARGS__) | ^ include/drm/drm_print.h:410:29: note: in definition of macro 'drm_dev_dbg' 410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__) | ^~~ include/drm/drm_print.h:510:33: note: in expansion of macro 'drm_dbg_driver' 510 | #define drm_dbg(drm, fmt, ...) drm_dbg_driver(drm, fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~ drivers/gpu/drm/i915/i915_vma.c:76:17: note: in expansion of macro 'drm_dbg' 76 | drm_dbg(&to_i915(vma->obj->base.dev)->drm | ^~~~~~~ >> drivers/gpu/drm/i915/i915_vma.c:78:34: error: passing argument 4 of '__drm_dev_dbg' makes pointer from integer without a cast [-Werror=int-conversion] 78 | vma->node.start, vma->node.size, reason); | ~~~~~~~~~^~~~~~ | | | u64 {aka long long unsigned int} include/drm/drm_print.h:410:39: note: in definition of macro 'drm_dev_dbg' 410 | __drm_dev_dbg(NULL, dev, cat, fmt, ##__VA_ARGS__) | ^~~ include/drm/drm_print.h:510:33: note: in expansion of macro 'drm_dbg_driver' 510 | #define drm_dbg(drm, fmt, ...) drm_dbg_driver(drm, fmt, ##__VA_ARGS__) | ^~~~~~~~~~~~~~ drivers/gpu/drm/i915/i915_vma.c:76:17: note: in expansion of macro 'drm_dbg' 76 | drm_dbg(&to_i915(vma->obj->base.dev)->drm | ^~~~~~~ include/drm/drm_print.h:360:66: note: expected 'const char *' but argument is of type 'u64' {aka 'long long unsigned int'} 360 | enum drm_debug_category category, const char *format, ...); | ~~~~~~~~~~~~^~~~~~ cc1: all warnings being treated as errors vim +77 drivers/gpu/drm/i915/i915_vma.c > 27 #include 28 29 #include "display/intel_frontbuffer.h" 30 #include "gem/i915_gem_lmem.h" 31 #include "gem/i915_gem_tiling.h" 32 #include "gt/intel_engine.h" 33 #include "gt/intel_engine_heartbeat.h" 34 #include "gt/intel_gt.h" 35 #include "gt/intel_gt_requests.h" 36 37 #include "i915_drv.h" 38 #include "i915_gem_evict.h" 39 #include "i915_sw_fence_work.h" 40 #include "i915_trace.h" 41 #include "i915_vma.h" 42 #include "i915_vma_resource.h" 43 44 static inline void assert_vma_held_evict(const struct i915_vma *vma) 45 { 46 /* 47 * We may be forced to unbind when the vm is dead, to clean it up. 48 * This is the only exception to the requirement of the object lock 49 * being held. 50 */ 51 if (kref_read(&vma->vm->ref)) 52 assert_object_held_shared(vma->obj); 53 } 54 55 static struct kmem_cache *slab_vmas; 56 57 static struct i915_vma *i915_vma_alloc(void) 58 { 59 return kmem_cache_zalloc(slab_vmas, GFP_KERNEL); 60 } 61 62 static void i915_vma_free(struct i915_vma *vma) 63 { 64 return kmem_cache_free(slab_vmas, vma); 65 } 66 67 #if IS_ENABLED(CONFIG_DRM_I915_ERRLOG_GEM) && IS_ENABLED(CONFIG_DRM_DEBUG_MM) 68 69 #include 70 71 static void vma_print_allocator(struct i915_vma *vma, const char *reason) 72 { 73 char buf[512]; 74 75 if (!vma->node.stack) { > 76 drm_dbg(&to_i915(vma->obj->base.dev)->drm > 77 "vma.node [%08llx + %08llx] %s: unknown owner\n", > 78 vma->node.start, vma->node.size, reason); 79 return; 80 } 81 82 stack_depot_snprint(vma->node.stack, buf, sizeof(buf), 0); 83 drm_dbg(&to_i915(vma->obj->base.dev)->drm, 84 "vma.node [%08llx + %08llx] %s: inserted at %s\n", 85 vma->node.start, vma->node.size, reason, buf); 86 } 87 -- 0-DAY CI Kernel Test Service https://01.org/lkp