Skip to content

Commit

Permalink
drm/vmwgfx/vmwgfx_validation: Use flexible-array member instead of ze…
Browse files Browse the repository at this point in the history
…ro-length array

Suppresses the following coccinelle warning:

drivers/gpu/drm/vmwgfx/vmwgfx_validation.c:85:15-22: WARNING use flexible-array member instead

Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Zack Rusin <zackr@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210323130204.45439-1-zou_wei@huawei.com
  • Loading branch information
Zou Wei authored and Zack Rusin committed Apr 29, 2021
1 parent 82cc3b0 commit ae57b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/vmwgfx/vmwgfx_validation.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ struct vmw_validation_res_node {
u32 reserved : 1;
u32 dirty : 1;
u32 dirty_set : 1;
unsigned long private[0];
unsigned long private[];
};

/**
Expand Down

0 comments on commit ae57b21

Please sign in to comment.