Преглед изворни кода

lguest: Use explicit includes rateher than indirect

explicitly use ktime.h include
explicitly use hrtimer.h include
explicitly use sched.h include

This patch adds headers explicitly to lguest sources file,
to avoid depending on them being included somewhere else.

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Glauber de Oliveira Costa пре 17 година
родитељ
комит
ca94f2bdd1
3 измењених фајлова са 3 додато и 0 уклоњено
  1. 1 0
      drivers/lguest/hypercalls.c
  2. 1 0
      drivers/lguest/lg.h
  3. 1 0
      drivers/lguest/lguest_user.c

+ 1 - 0
drivers/lguest/hypercalls.c

@@ -23,6 +23,7 @@
 #include <linux/uaccess.h>
 #include <linux/uaccess.h>
 #include <linux/syscalls.h>
 #include <linux/syscalls.h>
 #include <linux/mm.h>
 #include <linux/mm.h>
+#include <linux/ktime.h>
 #include <asm/page.h>
 #include <asm/page.h>
 #include <asm/pgtable.h>
 #include <asm/pgtable.h>
 #include "lg.h"
 #include "lg.h"

+ 1 - 0
drivers/lguest/lg.h

@@ -8,6 +8,7 @@
 #include <linux/lguest.h>
 #include <linux/lguest.h>
 #include <linux/lguest_launcher.h>
 #include <linux/lguest_launcher.h>
 #include <linux/wait.h>
 #include <linux/wait.h>
+#include <linux/hrtimer.h>
 #include <linux/err.h>
 #include <linux/err.h>
 #include <asm/semaphore.h>
 #include <asm/semaphore.h>
 
 

+ 1 - 0
drivers/lguest/lguest_user.c

@@ -6,6 +6,7 @@
 #include <linux/uaccess.h>
 #include <linux/uaccess.h>
 #include <linux/miscdevice.h>
 #include <linux/miscdevice.h>
 #include <linux/fs.h>
 #include <linux/fs.h>
+#include <linux/sched.h>
 #include "lg.h"
 #include "lg.h"
 
 
 /*L:055 When something happens, the Waker process needs a way to stop the
 /*L:055 When something happens, the Waker process needs a way to stop the