btrfs: constify strings passed to assertion helper
authorDavid Sterba <dsterba@suse.com>
Fri, 20 Jul 2018 14:30:23 +0000 (16:30 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:59 +0000 (13:12 +0200)
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h

index 5f6ec80d374fea519539022236e5fb943f36a6f0..2e32584c635ff43591546252e86a77cb61788ade 100644 (file)
@@ -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);