drm/qxl: use flexible-array member instead of zero-length array
authorTian Tao <tiantao6@hisilicon.com>
Fri, 11 Dec 2020 01:32:29 +0000 (09:32 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 22 Dec 2020 12:43:29 +0000 (13:43 +0100)
commitd1f66f054b7a62cd171e3bb7c4075e6d111089a1
tree574275d4f441c37e284544150a90f79fd2933b6b
parent2077ec340c4850067c3581d7a83c7313b56ddaf3
drm/qxl: use flexible-array member instead of zero-length array

Use flexible-array member introduced in C99 instead of zero-length
array. Most of zero-length array was already taken care in previous
patch [1]. Now modified few more cases which were not handled earlier.

[1]. https://patchwork.kernel.org/patch/11394197/

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1607650349-28513-1-git-send-email-tiantao6@hisilicon.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/qxl/qxl_dev.h