diff options
author | Chris Wilson <[email protected]> | 2018-02-08 10:24:02 +0000 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2018-02-12 23:34:50 -0800 |
commit | 75b0e73023ef7994348d619e9adadab0e96bb195 (patch) | |
tree | eeb75370d7afe3a4ee56bf5a6baa24be47536ecf /net/unix/af_unix.c | |
parent | 7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff) |
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: 4407eaa9b0cc ("drm/i915/perf: add support for Coffeelake GT3")
Signed-off-by: Chris Wilson <[email protected]>
Cc: Lionel Landwerlin <[email protected]>
Cc: Matthew Auld <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 43df81d324cdd7056ad0ce3df709aff8dce856b7)
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions