staging/lustre: lloop depends on BLOCK
authorXiong Zhou <jencce.kernel@gmail.com>
Fri, 2 Aug 2013 05:50:48 +0000 (13:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Aug 2013 07:30:46 +0000 (15:30 +0800)
commit49126e47bf418081a4eb3686a8c736ca80da152c
treeb62a6a33b3c394586b97e0d42e3d8a18573b07e5
parentb50c460a6c03284f7e1b4cfe9266df0f9169ad24
staging/lustre: lloop depends on BLOCK

Add a config option for llite/lloop in lustre driver, making it depends
on BLOCK to fix this better:
drivers/staging/lustre/lustre/fid/../include/linux/lustre_compat25.h:117:2:
error: implicit declaration of function â€˜unregister_blkdev'

Also, remove the wrapper ll_unregister_blkdev which depends on BLOCK in
the header and just call unregister_blkdev in lloop.c based on Peng Tao's
comment. Drop the redundant dependency on STAGING for LUSTRE_FS, remove
some unnecessary jdb header files which depends on BLOCK btw.

Signed-off-by: Xiong Zhou <jencce.kernel@gmail.com>
Reviewed-by: Peng Tao <tao.peng@emc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/Kconfig
drivers/staging/lustre/lustre/fld/fld_cache.c
drivers/staging/lustre/lustre/fld/fld_request.c
drivers/staging/lustre/lustre/include/linux/lustre_compat25.h
drivers/staging/lustre/lustre/llite/Makefile
drivers/staging/lustre/lustre/llite/lloop.c
drivers/staging/lustre/lustre/lvfs/fsfilt.c