summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_message.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2019-11-02 17:40:36 +0100
committerDarrick J. Wong <darrick.wong@oracle.com>2019-11-04 22:55:34 +0100
commitd243b89a611e83dc97ce7102419360677a664076 (patch)
treea9aad445a63b6e49d72c7c2bbcd7005eaf3e6ef9 /fs/xfs/xfs_message.h
parentxfs: relax shortform directory size checks (diff)
downloadlinux-d243b89a611e83dc97ce7102419360677a664076.tar.xz
linux-d243b89a611e83dc97ce7102419360677a664076.zip
xfs: constify the buffer pointer arguments to error functions
Some of the xfs error message functions take a pointer to a buffer that will be dumped to the system log. The logging functions don't change the contents, so constify all the parameters. This enables the next patch to ensure that we log bad metadata when we encounter it. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_message.h')
-rw-r--r--fs/xfs/xfs_message.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_message.h b/fs/xfs/xfs_message.h
index 34447dca97d1..7f040b04b739 100644
--- a/fs/xfs/xfs_message.h
+++ b/fs/xfs/xfs_message.h
@@ -60,6 +60,6 @@ do { \
extern void assfail(char *expr, char *f, int l);
extern void asswarn(char *expr, char *f, int l);
-extern void xfs_hex_dump(void *p, int length);
+extern void xfs_hex_dump(const void *p, int length);
#endif /* __XFS_MESSAGE_H */