summaryrefslogtreecommitdiff
path: root/drivers/misc/cxl/pci.c
diff options
context:
space:
mode:
authorSeth Forshee <seth.forshee@canonical.com>2017-09-28 09:34:26 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2017-10-06 20:51:10 +1100
commit06755a871314c7443a89c09650cdb3982466e1a8 (patch)
tree62c6f08d3b7b9b3091940eea17a7bd82cfaa44c7 /drivers/misc/cxl/pci.c
parent186b8f1587c79c2fa04bfa392fdf084443e398c1 (diff)
selftests/powerpc: Use snprintf to construct DSCR sysfs interface paths
Currently sprintf is used, and while paths should never exceed the size of the buffer it is theoretically possible since dirent.d_name is 256 bytes. As a result this trips -Wformat-overflow, and since the test is built with -Wall -Werror the causes the build to fail. Switch to using snprintf and skip any paths which are too long for the filename buffer. Signed-off-by: Seth Forshee <seth.forshee@canonical.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/cxl/pci.c')
0 files changed, 0 insertions, 0 deletions