Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xfs: remove inst_t

We can simply use a void pointer to pass a long return addresses in the
debugging helpers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>

authored by

Christoph Hellwig and committed by
Dave Chinner
fc51c2b5 db9d67d6

+4 -6
+2 -2
fs/xfs/xfs_error.c
··· 127 127 struct xfs_mount *mp, 128 128 const char *filename, 129 129 int linenum, 130 - inst_t *ra) 130 + void *ra) 131 131 { 132 132 if (level <= xfs_error_level) { 133 133 xfs_alert_tag(mp, XFS_PTAG_ERROR_REPORT, ··· 146 146 void *p, 147 147 const char *filename, 148 148 int linenum, 149 - inst_t *ra) 149 + void *ra) 150 150 { 151 151 if (level <= xfs_error_level) 152 152 xfs_hex_dump(p, 64);
+2 -2
fs/xfs/xfs_error.h
··· 21 21 struct xfs_mount; 22 22 23 23 extern void xfs_error_report(const char *tag, int level, struct xfs_mount *mp, 24 - const char *filename, int linenum, inst_t *ra); 24 + const char *filename, int linenum, void *ra); 25 25 extern void xfs_corruption_error(const char *tag, int level, 26 26 struct xfs_mount *mp, void *p, const char *filename, 27 - int linenum, inst_t *ra); 27 + int linenum, void *ra); 28 28 extern void xfs_verifier_error(struct xfs_buf *bp); 29 29 30 30 #define XFS_ERROR_REPORT(e, lvl, mp) \
-2
fs/xfs/xfs_linux.h
··· 32 32 typedef signed long long int __int64_t; 33 33 typedef unsigned long long int __uint64_t; 34 34 35 - typedef __uint32_t inst_t; /* an instruction */ 36 - 37 35 typedef __s64 xfs_off_t; /* <file offset> type */ 38 36 typedef unsigned long long xfs_ino_t; /* <inode> type */ 39 37 typedef __s64 xfs_daddr_t; /* <disk address> type */