Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+1
+1
drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h
··· 480 480 struct seq_file *sf); 481 481 482 482 /* component APIs */ 483 + extern __printf(10, 11) 483 484 struct komeda_component * 484 485 komeda_component_add(struct komeda_pipeline *pipe, 485 486 size_t comp_sz, u32 id, u32 hw_id,