summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKent Gibson <warthog618@gmail.com>2020-09-28 02:27:49 +0200
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2020-09-30 10:56:27 +0200
commit69e4e1368803266d0e06dba86868f64f7b277cde (patch)
tree6aa889fff1d2424090eac673aa9e018da76f7aab /Makefile
parentgpiolib: cdev: gpio_desc_to_lineinfo() should set info offset (diff)
downloadlinux-69e4e1368803266d0e06dba86868f64f7b277cde.tar.xz
linux-69e4e1368803266d0e06dba86868f64f7b277cde.zip
gpiolib: cdev: replace strncpy() with strscpy()
Replace usage of strncpy() with strscpy() to remove -Wstringop-truncation warnings. The structures being populated are zeroed, to prevent stack leakage as they are returned to userspace, so strscpy() performs the equivalent function without the warnings. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Kent Gibson <warthog618@gmail.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions