drm/msm/dpu: Fix Wunused-const-variable
authorNathan Huckleberry <nhuck@google.com>
Fri, 14 Jun 2019 20:56:23 +0000 (13:56 -0700)
committerRob Clark <robdclark@chromium.org>
Tue, 18 Jun 2019 20:36:52 +0000 (13:36 -0700)
commit276b6f2e7911f90594e56815c0e629a92e9c83d3
tree8a700513e4446247dd4528fff8b1ccfa9f322662
parent9a4a153b092c9f89dfa2766d48b61af251ea5697
drm/msm/dpu: Fix Wunused-const-variable

Clang produces the following warning

drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c:477:32: warning: unused
variable 'dpu_format_map_tile' [-Wunused-const-variable] static const
struct dpu_format dpu_format_map_tile[] = { ^

drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c:602:32: warning: unused
variable 'dpu_format_map_p010' [-Wunused-const-variable] static const
struct dpu_format dpu_format_map_p010[] = { ^

drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c:610:32: warning: unused
variable 'dpu_format_map_p010_ubwc' [-Wunused-const-variable] static
const struct dpu_format dpu_format_map_p010_ubwc[] = { ^

drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c:619:32: warning: unused
variable 'dpu_format_map_tp10_ubwc' [-Wunused-const-variable] static
const struct dpu_format dpu_format_map_tp10_ubwc[] = { ^

Removing the unimplemented modifiers that cause the warning.

Cc: clang-built-linux@googlegroups.com
Link: https://github.com/ClangBuiltLinux/linux/issues/528
Signed-off-by: Nathan Huckleberry <nhuck@google.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c