• Nathan Huckleberry's avatar
    drm/msm/dpu: Fix Wunused-const-variable · 276b6f2e
    Nathan Huckleberry authored
    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/528Signed-off-by: default avatarNathan Huckleberry <nhuck@google.com>
    Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
    276b6f2e
dpu_formats.c 33.4 KB