From: David Sterba Date: Fri, 20 Jul 2018 14:30:23 +0000 (+0200) Subject: btrfs: constify strings passed to assertion helper X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2ffad70ed3b6fbc946bc102f9d11c0e7c1cd380f;p=openwrt%2Fstaging%2Fblogic.git btrfs: constify strings passed to assertion helper Signed-off-by: David Sterba --- diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 5f6ec80d374f..2e32584c635f 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -3425,7 +3425,7 @@ do { \ #ifdef CONFIG_BTRFS_ASSERT __cold -static inline void assfail(char *expr, char *file, int line) +static inline void assfail(const char *expr, const char *file, int line) { pr_err("assertion failed: %s, file: %s, line: %d\n", expr, file, line);