]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/perf: Fix compiler warning for string truncation
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Feb 2018 10:24:02 +0000 (10:24 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Feb 2018 11:16:48 +0000 (11:16 +0000)
commit6d9121fc738737e4a004914590010518fbe0aebb
treec82e3f7e0a0e657062fb8cc3812e27849b6b2373
parentd7b2a21e5f1276eb20cd5d80a127d55687fb818e
drm/i915/perf: Fix compiler warning for string truncation

drivers/gpu/drm/i915/i915_oa_cflgt3.c: In function ‘i915_perf_load_test_config_cflgt3’:
drivers/gpu/drm/i915/i915_oa_cflgt3.c:87:2: error: ‘strncpy’ output truncated before terminating nul copying 36 bytes from a string of the same length [-Werror=stringop-truncation]

v2: strlcpy

Fixes: 12cc6d2eefc2 ("drm/i915/perf: add support for Coffeelake GT3")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180208102403.5587-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_oa_cflgt3.c