Skip to content

Commit c22405c

Browse files
author
Paul Gortmaker
committed
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>
1 parent aaf1954 commit c22405c

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/char/hw_random/virtio-rng.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <linux/spinlock.h>
2424
#include <linux/virtio.h>
2525
#include <linux/virtio_rng.h>
26+
#include <linux/module.h>
2627

2728
static struct virtqueue *vq;
2829
static unsigned int data_avail;

‎drivers/char/ps3flash.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <linux/miscdevice.h>
2323
#include <linux/slab.h>
2424
#include <linux/uaccess.h>
25+
#include <linux/module.h>
2526

2627
#include <asm/lv1call.h>
2728
#include <asm/ps3stor.h>

‎drivers/char/virtio_console.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <linux/virtio_console.h>
3333
#include <linux/wait.h>
3434
#include <linux/workqueue.h>
35+
#include <linux/module.h>
3536
#include "../tty/hvc/hvc_console.h"
3637

3738
/*

0 commit comments

Comments
 (0)