Skip to content

Commit 95abcd3

Browse files
committed
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) <[email protected]> Reviewed-by: Ayan Kumar Halder <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 61d05b1 commit 95abcd3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ void komeda_pipeline_dump_register(struct komeda_pipeline *pipe,
480480
struct seq_file *sf);
481481

482482
/* component APIs */
483+
extern __printf(10, 11)
483484
struct komeda_component *
484485
komeda_component_add(struct komeda_pipeline *pipe,
485486
size_t comp_sz, u32 id, u32 hw_id,

0 commit comments

Comments
 (0)