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

From: David Sterba
Date: Thu Feb 16 2017 - 09:16:16 EST

On Thu, Feb 16, 2017 at 01:55:03AM +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>