aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorChuck Lever <[email protected]>2023-10-01 17:25:09 +0000
committerChuck Lever <[email protected]>2023-10-16 16:44:39 +0000
commit5ec39944f874e1ecc09f624a70dfaa8ac3bf9d08 (patch)
tree1235581ec30ef9f365d9298ca0a6b909e549ae5f /fs/btrfs/dev-replace.c
parentnfsd: Clean up errors in nfs3proc.c (diff)
downloadkernel-5ec39944f874e1ecc09f624a70dfaa8ac3bf9d08.tar.gz
kernel-5ec39944f874e1ecc09f624a70dfaa8ac3bf9d08.zip
NFSD: Rewrite synopsis of nfsd_percpu_counters_init()
In function ‘export_stats_init’, inlined from ‘svc_export_alloc’ at fs/nfsd/export.c:866:6: fs/nfsd/export.c:337:16: warning: ‘nfsd_percpu_counters_init’ accessing 40 bytes in a region of size 0 [-Wstringop-overflow=] 337 | return nfsd_percpu_counters_init(&stats->counter, EXP_STATS_COUNTERS_NUM); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/nfsd/export.c:337:16: note: referencing argument 1 of type ‘struct percpu_counter[0]’ fs/nfsd/stats.h: In function ‘svc_export_alloc’: fs/nfsd/stats.h:40:5: note: in a call to function ‘nfsd_percpu_counters_init’ 40 | int nfsd_percpu_counters_init(struct percpu_counter counters[], int num); | ^~~~~~~~~~~~~~~~~~~~~~~~~ Cc: Amir Goldstein <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions