@@ -20,6 +20,13 @@ TAGS := ctags
PROGRAM := kvm
+OBJS += builtin-balloon.o
+OBJS += builtin-debug.o
+OBJS += builtin-help.o
+OBJS += builtin-list.o
+OBJS += builtin-pause.o
+OBJS += builtin-run.o
+OBJS += builtin-version.o
OBJS += cpuid.o
OBJS += disk/core.o
OBJS += framebuffer.o
@@ -55,13 +62,6 @@ OBJS += uip/udp.o
OBJS += uip/buf.o
OBJS += uip/csum.o
OBJS += kvm-cmd.o
-OBJS += kvm-debug.o
-OBJS += kvm-help.o
-OBJS += kvm-pause.o
-OBJS += kvm-balloon.o
-OBJS += kvm-list.o
-OBJS += kvm-run.o
-OBJS += kvm-version.o
OBJS += mptable.o
OBJS += rbtree.o
OBJS += threadpool.o
@@ -167,8 +167,8 @@ $(DEPS):
%.d: %.c
$(Q) $(CC) -M -MT $(patsubst %.d,%.o,$@) $(CFLAGS) $< -o $@
-# The header file common-cmds.h is needed for compilation of kvm-help.c.
-kvm-help.d: $(KVM_INCLUDE)/common-cmds.h
+# The header file common-cmds.h is needed for compilation of builtin-help.c.
+builtin-help.d: $(KVM_INCLUDE)/common-cmds.h
$(OBJS):
similarity index 95%
rename from tools/kvm/kvm-balloon.c
rename to tools/kvm/builtin-balloon.c
@@ -4,7 +4,7 @@
#include <kvm/util.h>
#include <kvm/kvm-cmd.h>
-#include <kvm/kvm-balloon.h>
+#include <kvm/builtin-balloon.h>
#include <kvm/kvm.h>
int kvm_cmd_balloon(int argc, const char **argv, const char *prefix)
similarity index 94%
rename from tools/kvm/kvm-debug.c
rename to tools/kvm/builtin-debug.c
@@ -1,6 +1,6 @@
#include <kvm/util.h>
#include <kvm/kvm-cmd.h>
-#include <kvm/kvm-debug.h>
+#include <kvm/builtin-debug.h>
#include <kvm/kvm.h>
#include <stdio.h>
similarity index 97%
rename from tools/kvm/kvm-help.c
rename to tools/kvm/builtin-help.c
@@ -6,7 +6,7 @@
#include <kvm/util.h>
#include <kvm/kvm-cmd.h>
-#include <kvm/kvm-help.h>
+#include <kvm/builtin-help.h>
const char kvm_usage_string[] =
similarity index 96%
rename from tools/kvm/kvm-list.c
rename to tools/kvm/builtin-list.c
@@ -1,6 +1,6 @@
#include <kvm/util.h>
#include <kvm/kvm-cmd.h>
-#include <kvm/kvm-list.h>
+#include <kvm/builtin-list.h>
#include <kvm/kvm.h>
#include <stdio.h>
similarity index 94%
rename from tools/kvm/kvm-pause.c
rename to tools/kvm/builtin-pause.c
@@ -4,7 +4,7 @@
#include <kvm/util.h>
#include <kvm/kvm-cmd.h>
-#include <kvm/kvm-pause.h>
+#include <kvm/builtin-pause.h>
#include <kvm/kvm.h>
static void do_pause(const char *name, int pid)
similarity index 99%
rename from tools/kvm/kvm-run.c
rename to tools/kvm/builtin-run.c
@@ -37,7 +37,7 @@
#include <kvm/framebuffer.h>
/* header files for gitish interface */
-#include <kvm/kvm-run.h>
+#include <kvm/builtin-run.h>
#include <kvm/parse-options.h>
#include <kvm/mutex.h>
similarity index 88%
rename from tools/kvm/kvm-version.c
rename to tools/kvm/builtin-version.c
@@ -1,6 +1,6 @@
#include <kvm/util.h>
#include <kvm/kvm-cmd.h>
-#include <kvm/kvm-version.h>
+#include <kvm/builtin-version.h>
#include <kvm/kvm.h>
#include <stdio.h>
similarity index 100%
rename from tools/kvm/include/kvm/kvm-balloon.h
rename to tools/kvm/include/kvm/builtin-balloon.h
similarity index 100%
rename from tools/kvm/include/kvm/kvm-debug.h
rename to tools/kvm/include/kvm/builtin-debug.h
similarity index 100%
rename from tools/kvm/include/kvm/kvm-help.h
rename to tools/kvm/include/kvm/builtin-help.h
similarity index 100%
rename from tools/kvm/include/kvm/kvm-list.h
rename to tools/kvm/include/kvm/builtin-list.h
similarity index 100%
rename from tools/kvm/include/kvm/kvm-pause.h
rename to tools/kvm/include/kvm/builtin-pause.h
similarity index 100%
rename from tools/kvm/include/kvm/kvm-run.h
rename to tools/kvm/include/kvm/builtin-run.h
similarity index 100%
rename from tools/kvm/include/kvm/kvm-version.h
rename to tools/kvm/include/kvm/builtin-version.h
@@ -5,14 +5,14 @@
#include <assert.h>
/* user defined header files */
-#include "kvm/kvm-debug.h"
-#include "kvm/kvm-pause.h"
-#include "kvm/kvm-balloon.h"
-#include "kvm/kvm-list.h"
-#include "kvm/kvm-version.h"
-#include "kvm/kvm-help.h"
+#include "kvm/builtin-debug.h"
+#include "kvm/builtin-pause.h"
+#include "kvm/builtin-balloon.h"
+#include "kvm/builtin-list.h"
+#include "kvm/builtin-version.h"
+#include "kvm/builtin-help.h"
#include "kvm/kvm-cmd.h"
-#include "kvm/kvm-run.h"
+#include "kvm/builtin-run.h"
struct cmd_struct kvm_commands[] = {
{ "pause", kvm_cmd_pause, NULL, 0 },
Rename kvm-[command] into builtin-[command] to prevent clashes with non-command files such as kvm-cpu.h Suggested-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: Sasha Levin <levinsasha928@gmail.com> --- tools/kvm/Makefile | 18 +++++++++--------- tools/kvm/{kvm-balloon.c => builtin-balloon.c} | 2 +- tools/kvm/{kvm-debug.c => builtin-debug.c} | 2 +- tools/kvm/{kvm-help.c => builtin-help.c} | 2 +- tools/kvm/{kvm-list.c => builtin-list.c} | 2 +- tools/kvm/{kvm-pause.c => builtin-pause.c} | 2 +- tools/kvm/{kvm-run.c => builtin-run.c} | 2 +- tools/kvm/{kvm-version.c => builtin-version.c} | 2 +- .../kvm/{kvm-balloon.h => builtin-balloon.h} | 0 .../include/kvm/{kvm-debug.h => builtin-debug.h} | 0 .../kvm/include/kvm/{kvm-help.h => builtin-help.h} | 0 .../kvm/include/kvm/{kvm-list.h => builtin-list.h} | 0 .../include/kvm/{kvm-pause.h => builtin-pause.h} | 0 tools/kvm/include/kvm/{kvm-run.h => builtin-run.h} | 0 .../kvm/{kvm-version.h => builtin-version.h} | 0 tools/kvm/kvm-cmd.c | 14 +++++++------- 16 files changed, 23 insertions(+), 23 deletions(-) rename tools/kvm/{kvm-balloon.c => builtin-balloon.c} (95%) rename tools/kvm/{kvm-debug.c => builtin-debug.c} (94%) rename tools/kvm/{kvm-help.c => builtin-help.c} (97%) rename tools/kvm/{kvm-list.c => builtin-list.c} (96%) rename tools/kvm/{kvm-pause.c => builtin-pause.c} (94%) rename tools/kvm/{kvm-run.c => builtin-run.c} (99%) rename tools/kvm/{kvm-version.c => builtin-version.c} (88%) rename tools/kvm/include/kvm/{kvm-balloon.h => builtin-balloon.h} (100%) rename tools/kvm/include/kvm/{kvm-debug.h => builtin-debug.h} (100%) rename tools/kvm/include/kvm/{kvm-help.h => builtin-help.h} (100%) rename tools/kvm/include/kvm/{kvm-list.h => builtin-list.h} (100%) rename tools/kvm/include/kvm/{kvm-pause.h => builtin-pause.h} (100%) rename tools/kvm/include/kvm/{kvm-run.h => builtin-run.h} (100%) rename tools/kvm/include/kvm/{kvm-version.h => builtin-version.h} (100%)