浏览代码

drivers/char: Add module.h to those who were using it implicitly

A pending cleanup will mean that module.h won't be implicitly
everywhere anymore.  Make sure the modular drivers in char are
actually calling out for <module.h> explicitly in advance.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Paul Gortmaker 14 年之前
父节点
当前提交
c22405c98d
共有 3 个文件被更改,包括 3 次插入0 次删除
  1. 1 0
      drivers/char/hw_random/virtio-rng.c
  2. 1 0
      drivers/char/ps3flash.c
  3. 1 0
      drivers/char/virtio_console.c

+ 1 - 0
drivers/char/hw_random/virtio-rng.c

@@ -23,6 +23,7 @@
 #include <linux/spinlock.h>
 #include <linux/virtio.h>
 #include <linux/virtio_rng.h>
+#include <linux/module.h>
 
 static struct virtqueue *vq;
 static unsigned int data_avail;

+ 1 - 0
drivers/char/ps3flash.c

@@ -22,6 +22,7 @@
 #include <linux/miscdevice.h>
 #include <linux/slab.h>
 #include <linux/uaccess.h>
+#include <linux/module.h>
 
 #include <asm/lv1call.h>
 #include <asm/ps3stor.h>

+ 1 - 0
drivers/char/virtio_console.c

@@ -32,6 +32,7 @@
 #include <linux/virtio_console.h>
 #include <linux/wait.h>
 #include <linux/workqueue.h>
+#include <linux/module.h>
 #include "../tty/hvc/hvc_console.h"
 
 /*