ubifs: Fix build error without CONFIG_UBIFS_FS_XATTR
authorYueHaibing <yuehaibing@huawei.com>
Fri, 10 May 2019 03:21:44 +0000 (11:21 +0800)
committerRichard Weinberger <richard@nod.at>
Wed, 15 May 2019 19:56:48 +0000 (21:56 +0200)
commit481a9b8073a448f0bd151b7171dbab18b35de55c
treeb799b8ea04636d4c33ac5eb7dc045352562da0a2
parent2bbacd1a92788ee334c7e92b765ea16ebab68dfe
ubifs: Fix build error without CONFIG_UBIFS_FS_XATTR

Fix gcc build error while CONFIG_UBIFS_FS_XATTR
is not set

fs/ubifs/dir.o: In function `ubifs_unlink':
dir.c:(.text+0x260): undefined reference to `ubifs_purge_xattrs'
fs/ubifs/dir.o: In function `do_rename':
dir.c:(.text+0x1edc): undefined reference to `ubifs_purge_xattrs'
fs/ubifs/dir.o: In function `ubifs_rmdir':
dir.c:(.text+0x2638): undefined reference to `ubifs_purge_xattrs'

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 9ca2d7326444 ("ubifs: Limit number of xattrs per inode")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/ubifs.h