]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
xfs: remove inst_t
authorChristoph Hellwig <hch@lst.de>
Sun, 21 Jun 2015 23:44:02 +0000 (09:44 +1000)
committerDave Chinner <david@fromorbit.com>
Sun, 21 Jun 2015 23:44:02 +0000 (09:44 +1000)
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>
fs/xfs/xfs_error.c
fs/xfs/xfs_error.h
fs/xfs/xfs_linux.h

index 338e50bbfd1ec8bc8345fbbd84cdc56b82d5f43a..74d0e5966ebca70f2ba489532b9ebfaae693c288 100644 (file)
@@ -127,7 +127,7 @@ xfs_error_report(
        struct xfs_mount        *mp,
        const char              *filename,
        int                     linenum,
-       inst_t                  *ra)
+       void                    *ra)
 {
        if (level <= xfs_error_level) {
                xfs_alert_tag(mp, XFS_PTAG_ERROR_REPORT,
@@ -146,7 +146,7 @@ xfs_corruption_error(
        void                    *p,
        const char              *filename,
        int                     linenum,
-       inst_t                  *ra)
+       void                    *ra)
 {
        if (level <= xfs_error_level)
                xfs_hex_dump(p, 64);
index c0394ed126fcc891df140fb6536b94ebdb520d01..4ed3042a0f1602945c884c60b7d3f7bb6c687a20 100644 (file)
 struct xfs_mount;
 
 extern void xfs_error_report(const char *tag, int level, struct xfs_mount *mp,
-                       const char *filename, int linenum, inst_t *ra);
+                       const char *filename, int linenum, void *ra);
 extern void xfs_corruption_error(const char *tag, int level,
                        struct xfs_mount *mp, void *p, const char *filename,
-                       int linenum, inst_t *ra);
+                       int linenum, void *ra);
 extern void xfs_verifier_error(struct xfs_buf *bp);
 
 #define        XFS_ERROR_REPORT(e, lvl, mp)    \
index 1637a95c1e0ce1ef6a9a7e3e22623bba3d93958d..3f48263a325c2286494dafefd6be51fefd683d60 100644 (file)
@@ -32,8 +32,6 @@ typedef unsigned int          __uint32_t;
 typedef signed long long int   __int64_t;
 typedef unsigned long long int __uint64_t;
 
-typedef __uint32_t             inst_t;         /* an instruction */
-
 typedef __s64                  xfs_off_t;      /* <file offset> type */
 typedef unsigned long long     xfs_ino_t;      /* <inode> type */
 typedef __s64                  xfs_daddr_t;    /* <disk address> type */