summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/util.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-02-20 04:52:44 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:24 -0400
commitd4b691522c4b60220087a01c276f3fa9781405b0 (patch)
tree9d0f71f559183ce1f2f3c025d365152020b5856d /fs/bcachefs/util.h
parent3117db99f30b26ebf09ecc323cbefcd51d83467b (diff)
downloadlinux-stable-d4b691522c4b60220087a01c276f3fa9781405b0.tar.gz
linux-stable-d4b691522c4b60220087a01c276f3fa9781405b0.tar.bz2
linux-stable-d4b691522c4b60220087a01c276f3fa9781405b0.zip
bcachefs: Kill bch_scnmemcpy()
bch_scnmemcpy was for printing length-limited strings that might not have a terminating null - turns out sprintf & pr_buf can do this with %.*s. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/util.h')
-rw-r--r--fs/bcachefs/util.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/bcachefs/util.h b/fs/bcachefs/util.h
index e047e7860584..fc8ffa61bbeb 100644
--- a/fs/bcachefs/util.h
+++ b/fs/bcachefs/util.h
@@ -281,8 +281,6 @@ static inline void printbuf_newline(struct printbuf *buf)
pr_buf(buf, " ");
}
-void bch_scnmemcpy(struct printbuf *, const char *, size_t);
-
int bch2_strtoint_h(const char *, int *);
int bch2_strtouint_h(const char *, unsigned int *);
int bch2_strtoll_h(const char *, long long *);