]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b428beeccecfc417fe541fb71a4e2040c93f31b
tree574275d4f441c37e284544150a90f79fd2933b6b
parent081d98fa241f37729396b93a2d92aa8675750903
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