Linux XFS filesystem development
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@kernel.org>
To: Christoph Hellwig <hch@lst.de>
Cc: Carlos Maiolino <cem@kernel.org>, linux-xfs@vger.kernel.org
Subject: Re: [PATCH 4/6] xfs: remove pointless externs in xfs_error.h
Date: Mon, 15 Sep 2025 11:55:49 -0700	[thread overview]
Message-ID: <20250915185549.GW8096@frogsfrogsfrogs> (raw)
In-Reply-To: <20250915133104.161037-5-hch@lst.de>

On Mon, Sep 15, 2025 at 06:30:40AM -0700, Christoph Hellwig wrote:
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>

--D

> ---
>  fs/xfs/xfs_error.h | 33 ++++++++++++++-------------------
>  1 file changed, 14 insertions(+), 19 deletions(-)
> 
> diff --git a/fs/xfs/xfs_error.h b/fs/xfs/xfs_error.h
> index 8429c1ee86e7..fe6a71bbe9cd 100644
> --- a/fs/xfs/xfs_error.h
> +++ b/fs/xfs/xfs_error.h
> @@ -8,22 +8,17 @@
>  
>  struct xfs_mount;
>  
> -extern void xfs_error_report(const char *tag, int level, struct xfs_mount *mp,
> -			const char *filename, int linenum,
> -			xfs_failaddr_t failaddr);
> -extern void xfs_corruption_error(const char *tag, int level,
> -			struct xfs_mount *mp, const void *buf, size_t bufsize,
> -			const char *filename, int linenum,
> -			xfs_failaddr_t failaddr);
> +void xfs_error_report(const char *tag, int level, struct xfs_mount *mp,
> +		const char *filename, int linenum, xfs_failaddr_t failaddr);
> +void xfs_corruption_error(const char *tag, int level, struct xfs_mount *mp,
> +		const void *buf, size_t bufsize, const char *filename,
> +		int linenum, xfs_failaddr_t failaddr);
>  void xfs_buf_corruption_error(struct xfs_buf *bp, xfs_failaddr_t fa);
> -extern void xfs_buf_verifier_error(struct xfs_buf *bp, int error,
> -			const char *name, const void *buf, size_t bufsz,
> -			xfs_failaddr_t failaddr);
> -extern void xfs_verifier_error(struct xfs_buf *bp, int error,
> -			xfs_failaddr_t failaddr);
> -extern void xfs_inode_verifier_error(struct xfs_inode *ip, int error,
> -			const char *name, const void *buf, size_t bufsz,
> -			xfs_failaddr_t failaddr);
> +void xfs_buf_verifier_error(struct xfs_buf *bp, int error, const char *name,
> +		const void *buf, size_t bufsz, xfs_failaddr_t failaddr);
> +void xfs_verifier_error(struct xfs_buf *bp, int error, xfs_failaddr_t failaddr);
> +void xfs_inode_verifier_error(struct xfs_inode *ip, int error, const char *name,
> +		const void *buf, size_t bufsz, xfs_failaddr_t failaddr);
>  
>  #define	XFS_ERROR_REPORT(e, lvl, mp)	\
>  	xfs_error_report(e, lvl, mp, __FILE__, __LINE__, __return_address)
> @@ -39,8 +34,8 @@ extern void xfs_inode_verifier_error(struct xfs_inode *ip, int error,
>  #define XFS_CORRUPTION_DUMP_LEN		(128)
>  
>  #ifdef DEBUG
> -extern int xfs_errortag_init(struct xfs_mount *mp);
> -extern void xfs_errortag_del(struct xfs_mount *mp);
> +int xfs_errortag_init(struct xfs_mount *mp);
> +void xfs_errortag_del(struct xfs_mount *mp);
>  bool xfs_errortag_test(struct xfs_mount *mp, const char *file, int line,
>  		unsigned int error_tag);
>  #define XFS_TEST_ERROR(mp, tag)		\
> @@ -58,8 +53,8 @@ bool xfs_errortag_enabled(struct xfs_mount *mp, unsigned int tag);
>  		mdelay((mp)->m_errortag[(tag)]); \
>  	} while (0)
>  
> -extern int xfs_errortag_add(struct xfs_mount *mp, unsigned int error_tag);
> -extern int xfs_errortag_clearall(struct xfs_mount *mp);
> +int xfs_errortag_add(struct xfs_mount *mp, unsigned int error_tag);
> +int xfs_errortag_clearall(struct xfs_mount *mp);
>  #else
>  #define xfs_errortag_init(mp)			(0)
>  #define xfs_errortag_del(mp)
> -- 
> 2.47.2
> 
> 

  reply	other threads:[~2025-09-15 18:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-15 13:30 cleanup error tags Christoph Hellwig
2025-09-15 13:30 ` [PATCH 1/6] xfs: remove xfs_errortag_get Christoph Hellwig
2025-09-15 18:54   ` Darrick J. Wong
2025-09-15 13:30 ` [PATCH 2/6] xfs: remove xfs_errortag_set Christoph Hellwig
2025-09-15 18:54   ` Darrick J. Wong
2025-09-15 13:30 ` [PATCH 3/6] xfs: remove the expr argument to XFS_TEST_ERROR Christoph Hellwig
2025-09-15 18:55   ` Darrick J. Wong
2025-09-15 13:30 ` [PATCH 4/6] xfs: remove pointless externs in xfs_error.h Christoph Hellwig
2025-09-15 18:55   ` Darrick J. Wong [this message]
2025-09-15 13:30 ` [PATCH 5/6] xfs: centralize error tag definitions Christoph Hellwig
2025-09-15 19:10   ` Darrick J. Wong
2025-09-15 20:53     ` Christoph Hellwig
2025-09-15 23:37       ` Darrick J. Wong
2025-09-15 13:30 ` [PATCH 6/6] xfs: constify xfs_errortag_random_default Christoph Hellwig
2025-09-15 19:10   ` Darrick J. Wong
  -- strict thread matches above, loose matches on Subject: below --
2025-09-16 16:28 cleanup error tags v2 Christoph Hellwig
2025-09-16 16:28 ` [PATCH 4/6] xfs: remove pointless externs in xfs_error.h Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250915185549.GW8096@frogsfrogsfrogs \
    --to=djwong@kernel.org \
    --cc=cem@kernel.org \
    --cc=hch@lst.de \
    --cc=linux-xfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox