]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: lustre: move files out of lustre/lnet/libcfs/linux/
authorNeilBrown <neilb@suse.com>
Mon, 21 May 2018 04:35:12 +0000 (14:35 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 16:29:09 +0000 (18:29 +0200)
There is no longer any value in having this separate
subdirectory, so promote the files in it.
Also tidy the Makefile a little to use the common "*-obj-y"
macro name.  This will allow individual files to be conditionally
compiled.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/libcfs/Makefile
drivers/staging/lustre/lnet/libcfs/linux-crypto-adler.c [moved from drivers/staging/lustre/lnet/libcfs/linux/linux-crypto-adler.c with 100% similarity]
drivers/staging/lustre/lnet/libcfs/linux-crypto.c [moved from drivers/staging/lustre/lnet/libcfs/linux/linux-crypto.c with 100% similarity]
drivers/staging/lustre/lnet/libcfs/linux-crypto.h [moved from drivers/staging/lustre/lnet/libcfs/linux/linux-crypto.h with 100% similarity]
drivers/staging/lustre/lnet/libcfs/linux-debug.c [moved from drivers/staging/lustre/lnet/libcfs/linux/linux-debug.c with 99% similarity]
drivers/staging/lustre/lnet/libcfs/linux-tracefile.c [moved from drivers/staging/lustre/lnet/libcfs/linux/linux-tracefile.c with 99% similarity]

index e73515789a115b6bde8b2d739c3a3523d5eed3c2..6335f909d22b617a84b07595398ad5bd40bab790 100644 (file)
@@ -4,14 +4,13 @@ subdir-ccflags-y += -I$(srctree)/drivers/staging/lustre/lustre/include
 
 obj-$(CONFIG_LNET) += libcfs.o
 
-libcfs-linux-objs := linux-tracefile.o linux-debug.o
-libcfs-linux-objs += linux-crypto.o
-libcfs-linux-objs += linux-crypto-adler.o
+libcfs-obj-y += linux-tracefile.o linux-debug.o
+libcfs-obj-y += linux-crypto.o
+libcfs-obj-y += linux-crypto-adler.o
 
-libcfs-linux-objs := $(addprefix linux/,$(libcfs-linux-objs))
+libcfs-obj-y += debug.o fail.o module.o tracefile.o
+libcfs-obj-y += libcfs_string.o hash.o
+libcfs-obj-y += libcfs_cpu.o
+libcfs-obj-y += libcfs_mem.o libcfs_lock.o
 
-libcfs-all-objs := debug.o fail.o module.o tracefile.o \
-                  libcfs_string.o hash.o \
-                  libcfs_cpu.o libcfs_mem.o libcfs_lock.o
-
-libcfs-objs := $(libcfs-linux-objs) $(libcfs-all-objs)
+libcfs-objs := $(libcfs-obj-y)
similarity index 99%
rename from drivers/staging/lustre/lnet/libcfs/linux/linux-debug.c
rename to drivers/staging/lustre/lnet/libcfs/linux-debug.c
index 1d728f18e52981663235f776778358a8623ef377..2ca385cbea92f48a5a6f74db7483aa0168b50ee6 100644 (file)
@@ -53,7 +53,7 @@
 
 #include <linux/libcfs/libcfs.h>
 
-#include "../tracefile.h"
+#include "tracefile.h"
 
 #include <linux/kallsyms.h>
 
similarity index 99%
rename from drivers/staging/lustre/lnet/libcfs/linux/linux-tracefile.c
rename to drivers/staging/lustre/lnet/libcfs/linux-tracefile.c
index 7928d71826346a3d47185745f8bd8122481116a9..3366ae6411eeceed6f682cd61d1a793a60a5b273 100644 (file)
@@ -35,7 +35,7 @@
 #define LUSTRE_TRACEFILE_PRIVATE
 
 #include <linux/libcfs/libcfs.h>
-#include "../tracefile.h"
+#include "tracefile.h"
 
 /* percents to share the total debug memory for each type */
 static unsigned int pages_factor[CFS_TCD_TYPE_MAX] = {