aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/structleak_plugin.c
diff options
context:
space:
mode:
authorHeiko Carstens <[email protected]>2021-09-06 20:20:05 +0000
committerHeiko Carstens <[email protected]>2021-09-08 12:23:31 +0000
commitff8a58b0ae735f32fe87d0d07e98751ff9dcaed0 (patch)
tree869407762ced338493b9977e49938d833d16c664 /scripts/gcc-plugins/structleak_plugin.c
parents390/hmcdrv_ftp: fix kernel doc comment (diff)
downloadkernel-ff8a58b0ae735f32fe87d0d07e98751ff9dcaed0.tar.gz
kernel-ff8a58b0ae735f32fe87d0d07e98751ff9dcaed0.zip
s390/sclp: add __nonstring annotation
Add __nonstring annotation, since the missing string termination for id member of sclp_trace_entry is intended. This way we get rid of this warning: drivers/s390/char/sclp.c:84:9: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 84 | strncpy(e.id, id, sizeof(e.id)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reported-by: kernel test robot <[email protected]> Reviewed-by: Peter Oberparleiter <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
0 files changed, 0 insertions, 0 deletions