Commit-ID: d088fb680ad14d243d03cc4a3b91e283b5f2ee70 Gitweb: http://git.kernel.org/tip/d088fb680ad14d243d03cc4a3b91e283b5f2ee70 Author: Pekka Enberg <penberg@xxxxxxxxxx> AuthorDate: Thu, 11 Aug 2011 18:15:18 +0300 Committer: Pekka Enberg <penberg@xxxxxxxxxx> CommitDate: Thu, 11 Aug 2011 18:15:18 +0300 kvm tools: Organize includes in builtin-run.c This patch organizes the includes in builtin-run.c so that KVM tool local headers are included first, then Linux kernel headers, and finally system headers. This helps in keeping headers dependencies in check so that they can be included by themselves. Cc: Asias He <asias.hejun@xxxxxxxxx> Cc: Cyrill Gorcunov <gorcunov@xxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: Prasad Joshi <prasadjoshi124@xxxxxxxxx> Cc: Sasha Levin <levinsasha928@xxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- tools/kvm/builtin-run.c | 77 ++++++++++++++++----------------- tools/kvm/include/kvm/parse-options.h | 2 + 2 files changed, 40 insertions(+), 39 deletions(-) diff --git a/tools/kvm/builtin-run.c b/tools/kvm/builtin-run.c index 4c0bb82..be61304 100644 --- a/tools/kvm/builtin-run.c +++ b/tools/kvm/builtin-run.c @@ -1,46 +1,45 @@ -#include <stdio.h> -#include <string.h> -#include <signal.h> -#include <unistd.h> -#include <stdlib.h> -#include <termios.h> +#include "kvm/builtin-run.h" + +#include "kvm/virtio-balloon.h" +#include "kvm/virtio-console.h" +#include "kvm/parse-options.h" +#include "kvm/8250-serial.h" +#include "kvm/framebuffer.h" +#include "kvm/disk-image.h" +#include "kvm/threadpool.h" +#include "kvm/virtio-blk.h" +#include "kvm/virtio-net.h" +#include "kvm/virtio-rng.h" +#include "kvm/ioeventfd.h" +#include "kvm/virtio-9p.h" +#include "kvm/barrier.h" +#include "kvm/kvm-cpu.h" +#include "kvm/ioport.h" +#include "kvm/symbol.h" +#include "kvm/i8042.h" +#include "kvm/mutex.h" +#include "kvm/term.h" +#include "kvm/util.h" +#include "kvm/vesa.h" +#include "kvm/irq.h" +#include "kvm/kvm.h" +#include "kvm/pci.h" +#include "kvm/rtc.h" +#include "kvm/sdl.h" +#include "kvm/vnc.h" + +#include <linux/types.h> + #include <sys/utsname.h> #include <sys/types.h> #include <sys/stat.h> +#include <termios.h> +#include <signal.h> +#include <stdlib.h> +#include <string.h> +#include <unistd.h> #include <ctype.h> - -/* user defined header files */ -#include <linux/types.h> -#include <kvm/kvm.h> -#include <kvm/kvm-cpu.h> -#include <kvm/8250-serial.h> -#include <kvm/virtio-blk.h> -#include <kvm/virtio-net.h> -#include <kvm/virtio-console.h> -#include <kvm/virtio-rng.h> -#include <kvm/virtio-balloon.h> -#include <kvm/disk-image.h> -#include <kvm/util.h> -#include <kvm/pci.h> -#include <kvm/rtc.h> -#include <kvm/term.h> -#include <kvm/ioport.h> -#include <kvm/threadpool.h> -#include <kvm/barrier.h> -#include <kvm/symbol.h> -#include <kvm/virtio-9p.h> -#include <kvm/vesa.h> -#include <kvm/ioeventfd.h> -#include <kvm/i8042.h> -#include <kvm/vnc.h> -#include <kvm/sdl.h> -#include <kvm/framebuffer.h> -#include <kvm/irq.h> - -/* header files for gitish interface */ -#include <kvm/builtin-run.h> -#include <kvm/parse-options.h> -#include <kvm/mutex.h> +#include <stdio.h> #define DEFAULT_KVM_DEV "/dev/kvm" #define DEFAULT_CONSOLE "serial" diff --git a/tools/kvm/include/kvm/parse-options.h b/tools/kvm/include/kvm/parse-options.h index 6bf9a1d..b65820d 100644 --- a/tools/kvm/include/kvm/parse-options.h +++ b/tools/kvm/include/kvm/parse-options.h @@ -1,6 +1,8 @@ #ifndef __PARSE_OPTIONS_H__ #define __PARSE_OPTIONS_H__ +#include <inttypes.h> + enum parse_opt_type { /* special types */ OPTION_END, -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html