Re: [PATCH v3] btrfs: remove btrfs_err_str function from uapi/linux/btrfs.h

From: Dmitry V. Levin
Date: Thu Mar 02 2017 - 08:52:59 EST


On Thu, Mar 02, 2017 at 12:42:12PM +0100, David Sterba wrote:
> On Wed, Mar 01, 2017 at 03:54:35PM +0100, David Sterba wrote:
> > On Wed, Mar 01, 2017 at 02:12:50AM +0300, Dmitry V. Levin wrote:
> > > btrfs_err_str function is not called from anywhere and is replicated
> > > in the userspace headers for btrfs-progs.
> > >
> > > It's removal also fixes the following linux/btrfs.h userspace
> > > compilation error:
> > >
> > > /usr/include/linux/btrfs.h: In function 'btrfs_err_str':
> > > /usr/include/linux/btrfs.h:740:11: error: 'NULL' undeclared (first use in this function)
> > > return NULL;
> > >
> > > Suggested-by: Jeff Mahoney <jeffm@xxxxxxxx>
> > > Signed-off-by: Dmitry V. Levin <ldv@xxxxxxxxxxxx>
> > > Reviewed-by: David Sterba <dsterba@xxxxxxxx>
> > > ---
> > > v3: the patch seems to be lost, resending with updated list of addressees
> >
> > Indeed, I can't find how or where it got lost, sorry. Added to 4.11
> > again.
>
> So it's because you did not CC linux-btrfs@ , I have the mails in my
> inbox but haven't found it in the other folder while picking patches.

Thanks, I though so when Cc'ed linux-btrfs@ the last time.

Consider updating MAINTAINERS file so that scripts/get_maintainer.pl
would be able to print the right addressees for btrfs header files:

diff --git a/MAINTAINERS b/MAINTAINERS
index 0001835..04a758f 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -2905,4 +2905,6 @@ S: Maintained
F: Documentation/filesystems/btrfs.txt
F: fs/btrfs/
+F: include/linux/btrfs*
+F: include/uapi/linux/btrfs*

BTTV VIDEO4LINUX DRIVER

--
ldv