summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/lzo.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-02-14 17:58:04 +0100
committerDavid Sterba <dsterba@suse.com>2017-02-28 14:26:07 +0100
commit14a3357b4097d94ac6401c597abc2d02965e0fdd (patch)
tree93f5982319bbfe08810185052ce6b1e3b1aa13a2 /fs/btrfs/lzo.c
parent9ed573674ae607bc616c804657bfaf5b6ea5889d (diff)
downloadlinux-14a3357b4097d94ac6401c597abc2d02965e0fdd.tar.gz
linux-14a3357b4097d94ac6401c597abc2d02965e0fdd.tar.bz2
linux-14a3357b4097d94ac6401c597abc2d02965e0fdd.zip
btrfs: constify buffers used by compression helpers
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/lzo.c')
-rw-r--r--fs/btrfs/lzo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/lzo.c b/fs/btrfs/lzo.c
index 45d26980caf9..e074b85aa054 100644
--- a/fs/btrfs/lzo.c
+++ b/fs/btrfs/lzo.c
@@ -76,7 +76,7 @@ static inline void write_compress_length(char *buf, size_t len)
memcpy(buf, &dlen, LZO_LEN);
}
-static inline size_t read_compress_length(char *buf)
+static inline size_t read_compress_length(const char *buf)
{
__le32 dlen;