From 67b1362f0492dc398b842d17d8aab59aa2272802 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Sat, 27 Jun 2020 17:33:30 -0700 Subject: [PATCH] Style fixes * Fix cstyle issue in shrinker.h which exceeded 80 columns. * Silence shellcheck warning in zpool.d/smart script. Signed-off-by: Brian Behlendorf --- cmd/zpool/zpool.d/smart | 1 + include/os/linux/spl/sys/shrinker.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/zpool/zpool.d/smart b/cmd/zpool/zpool.d/smart index 874528d66e..f8854b7522 100755 --- a/cmd/zpool/zpool.d/smart +++ b/cmd/zpool/zpool.d/smart @@ -71,6 +71,7 @@ fi smartctl_path=$(command -v smartctl) +# shellcheck disable=SC2015 if [ -b "$VDEV_UPATH" ] && [ -x "$smartctl_path" ] || [ -n "$samples" ] ; then if [ -n "$samples" ] ; then # cat a smartctl output text file instead of running smartctl diff --git a/include/os/linux/spl/sys/shrinker.h b/include/os/linux/spl/sys/shrinker.h index e608cd30c7..e519a527cd 100644 --- a/include/os/linux/spl/sys/shrinker.h +++ b/include/os/linux/spl/sys/shrinker.h @@ -97,7 +97,7 @@ static struct shrinker varname = { \ static struct shrinker varname = { \ .count_objects = countfunc, \ .scan_objects = scanfunc, \ - .seeks = seek_cost \ + .seeks = seek_cost \ } #else