]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Use __printf markup to silence compiler
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 14 Jan 2017 10:51:12 +0000 (10:51 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Jan 2017 12:20:17 +0000 (12:20 +0000)
commitdda35931ef2ee74faa535d17368b5a26daad143f
treebe8ad57f5012b5a4df640a0dc7b54eb528c1d013
parent47a8e3f6aebd4d6048572b3aeaef1dd51acb0d82
drm/i915: Use __printf markup to silence compiler

drivers/gpu/drm/i915/i915_gpu_error.c: In function ‘i915_error_vprintf’:
drivers/gpu/drm/i915/i915_gpu_error.c:137:3: warning:
function might be possible candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format]
   len = vsnprintf(NULL, 0, f, tmp);
   ^~~
drivers/gpu/drm/i915/i915_gpu_error.c:144:2: warning:
function might be possible candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format]
  len = vsnprintf(e->buf + e->bytes, e->size - e->bytes, f, args);
  ^~~

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170114105113.1231-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gpu_error.c