btrfs: remove btrfs_err_str function from uapi/linux/btrfs.h
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 28 Feb 2017 23:12:50 +0000 (02:12 +0300)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Mar 2017 13:10:17 +0000 (14:10 +0100)
commit68598d2ea886322f9b4b0058e5b288418622de95
tree9cb29053352bf75f72f389e451720e6656ab139d
parente9f467d028cd7d8bee2a4d6c4fb806caf8cd580b
btrfs: remove btrfs_err_str function from uapi/linux/btrfs.h

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@suse.com>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
include/uapi/linux/btrfs.h