Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging/lustre: fix Lustre code link order

Change Makefiles to keep link order in match with Lustre module
dependency, so that when Lustre is built in kernel, we'll have
the same dependency. Otherwise we'll crash kernel if Lustre is
builtin due to missing internal dependency.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Peng Tao <tao.peng@emc.com>
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Peng Tao and committed by
Greg Kroah-Hartman
eba32e16 4f6cc9ab

+4 -4
+1 -1
drivers/staging/lustre/Makefile
··· 1 1 subdir-ccflags-y := -I$(src)/include/ 2 2 3 - obj-$(CONFIG_LUSTRE_FS) += lustre/ 4 3 obj-$(CONFIG_LNET) += lnet/ 4 + obj-$(CONFIG_LUSTRE_FS) += lustre/
+1 -1
drivers/staging/lustre/lnet/Makefile
··· 1 - obj-$(CONFIG_LNET) := klnds/ lnet/ selftest/ 1 + obj-$(CONFIG_LNET) += lnet/ klnds/ selftest/
+2 -2
drivers/staging/lustre/lustre/Makefile
··· 1 - obj-$(CONFIG_LUSTRE_FS) := fid/ lvfs/ obdclass/ ptlrpc/ obdecho/ mgc/ lov/ \ 2 - osc/ mdc/ lmv/ llite/ fld/ libcfs/ 1 + obj-$(CONFIG_LUSTRE_FS) += libcfs/ lvfs/ obdclass/ ptlrpc/ fld/ osc/ mgc/ \ 2 + fid/ lov/ mdc/ lmv/ llite/ obdecho/