From c22405c98d3ff7042e369370d2bf54f9607d0f09 Mon Sep 17 00:00:00 2001 From: Paul Gortmaker Date: Sun, 3 Jul 2011 13:35:48 -0400 Subject: 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 explicitly in advance. Signed-off-by: Paul Gortmaker --- drivers/char/hw_random/virtio-rng.c | 1 + drivers/char/ps3flash.c | 1 + drivers/char/virtio_console.c | 1 + 3 files changed, 3 insertions(+) (limited to 'drivers/char') diff --git a/drivers/char/hw_random/virtio-rng.c b/drivers/char/hw_random/virtio-rng.c index 75f1cbd61c1..fd699ccecf5 100644 --- a/drivers/char/hw_random/virtio-rng.c +++ b/drivers/char/hw_random/virtio-rng.c @@ -23,6 +23,7 @@ #include #include #include +#include static struct virtqueue *vq; static unsigned int data_avail; diff --git a/drivers/char/ps3flash.c b/drivers/char/ps3flash.c index d0c57c2e290..6abdde4da2b 100644 --- a/drivers/char/ps3flash.c +++ b/drivers/char/ps3flash.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index fb68b129537..97044319bc7 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c @@ -32,6 +32,7 @@ #include #include #include +#include #include "../tty/hvc/hvc_console.h" /* -- cgit v1.2.3-70-g09d2 From 66300e66c680f7bcc43127627740f493ef0b05bc Mon Sep 17 00:00:00 2001 From: Paul Gortmaker Date: Sun, 10 Jul 2011 12:14:53 -0400 Subject: drivers/char: Add export.h for EXPORT_SYMBOL/THIS_MODULE as required They will need it called out explicitly in the near future due to a module.h usage cleanup that removes its implicit presence everywhere. Signed-off-by: Paul Gortmaker --- drivers/char/mem.c | 1 + drivers/char/ttyprintk.c | 1 + 2 files changed, 2 insertions(+) (limited to 'drivers/char') diff --git a/drivers/char/mem.c b/drivers/char/mem.c index 8fc04b4f311..14517903371 100644 --- a/drivers/char/mem.c +++ b/drivers/char/mem.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include diff --git a/drivers/char/ttyprintk.c b/drivers/char/ttyprintk.c index a1f68af4ccf..071003843f1 100644 --- a/drivers/char/ttyprintk.c +++ b/drivers/char/ttyprintk.c @@ -17,6 +17,7 @@ #include #include #include +#include struct ttyprintk_port { struct tty_port port; -- cgit v1.2.3-70-g09d2 From c05aa8fbcc21b1863085dde5cb3c97b32c52ce40 Mon Sep 17 00:00:00 2001 From: Paul Gortmaker Date: Wed, 27 Jul 2011 21:31:17 -0400 Subject: drivers/char: Fix implicit use of err.h in ramoops.c drivers/char/ramoops.c: In function 'ramoops_init': drivers/char/ramoops.c:221: error: implicit declaration of function 'IS_ERR' drivers/char/ramoops.c:222: error: implicit declaration of function 'PTR_ERR' make[3]: *** [drivers/char/ramoops.o] Error 1 Signed-off-by: Paul Gortmaker --- drivers/char/ramoops.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/char') diff --git a/drivers/char/ramoops.c b/drivers/char/ramoops.c index 810aff9e750..7c7f42a1f88 100644 --- a/drivers/char/ramoops.c +++ b/drivers/char/ramoops.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include -- cgit v1.2.3-70-g09d2