On Fri 2022-03-25 10:19:45, Jonathan Lassoff wrote: > Rather than have a constructor to define many nearly-identical > functions, use preprocessor macros to pass down a kernel logging level > to a common function. > > diff --git a/fs/xfs/xfs_message.h b/fs/xfs/xfs_message.h > index bb9860ec9a93..2f609800e806 100644 > --- a/fs/xfs/xfs_message.h > +++ b/fs/xfs/xfs_message.h > @@ -6,33 +6,36 @@ > -void xfs_debug(const struct xfs_mount *mp, const char *fmt, ...) > -{ > -} > +#define xfs_debug(mp, fmt, ...) do {} while (0) > #endif > > +extern __printf(3, 4) > +void xfs_alert_tag(const struct xfs_mount *mp, int tag, const char *fmt, ...); The trend is to avoid "extern" because it just creates noise. Well, I am not sure what are the preferences in the XFS code. Otherwise the changes look fine to me. Feel free to use: Reviewed-by: Petr Mladek <pmladek@xxxxxxxx> Best Regards, Petr