drm/komeda: Clean warning 'komeda_component_add' might be a candidate for 'gnu_printf'
authorjames qian wang (Arm Technology China) <james.qian.wang@arm.com>
Tue, 13 Aug 2019 11:08:20 +0000 (11:08 +0000)
committerjames qian wang (Arm Technology China) <james.qian.wang@arm.com>
Fri, 23 Aug 2019 11:41:45 +0000 (19:41 +0800)
commit95abcd33ad513faf9cf3f54a28fb4982407e5a92
tree784a4e2b07e9f48508db72e20fa1638ee96a7583
parent61d05b184963523e50729af8466b72e9c8a4f8be
drm/komeda: Clean warning 'komeda_component_add' might be a candidate for 'gnu_printf'

komeda/komeda_pipeline.c: In function 'komeda_component_add':
komeda/komeda_pipeline.c:212:3: warning: function 'komeda_component_add' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
   vsnprintf(c->name, sizeof(c->name), name_fmt, args);
   ^~~~~~~~~

Signed-off-by: james qian wang (Arm Technology China) <james.qian.wang@arm.com>
Reviewed-by: Ayan Kumar Halder <ayan.halder@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190813110759.10425-1-james.qian.wang@arm.com
drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h