diff options
author | 2024-10-02 14:53:11 +0530 | |
---|---|---|
committer | 2024-10-10 14:56:46 +0300 | |
commit | a500f3751d3c861be7e4463c933cf467240cca5d (patch) | |
tree | fbd33928082c42d1a589fda9b74d52a82db1fe4f /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | drm/bochs: Return error from correct pointer (diff) | |
download | wireguard-linux-a500f3751d3c861be7e4463c933cf467240cca5d.tar.xz wireguard-linux-a500f3751d3c861be7e4463c933cf467240cca5d.zip |
drm/display: Fix building with GCC 15
GCC 15 enables -Werror=unterminated-string-initialization by default.
This results in the following build error
drivers/gpu/drm/display/drm_dp_dual_mode_helper.c: In function ‘is_hdmi_adaptor’:
drivers/gpu/drm/display/drm_dp_dual_mode_helper.c:164:17: error: initializer-string for array of
‘char’ is too long [-Werror=unterminated-string-initialization]
164 | "DP-HDMI ADAPTOR\x04";
| ^~~~~~~~~~~~~~~~~~~~~
After discussion with Ville, the fix was to increase the size of
dp_dual_mode_hdmi_id array by one, so that it can accommodate the NULL
line character. This should let us build the kernel with GCC 15.
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241002092311.942822-1-brahmajit.xyz@gmail.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions