Skip to content

Commit e0cd360

Browse files
author
Paul Gortmaker
committed
gpu: add module.h to drivers/gpu files as required.
So that we don't get build failures once the implicit module.h presence is removed. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
1 parent 2d1a8a4 commit e0cd360

27 files changed

Lines changed: 41 additions & 0 deletions

‎drivers/gpu/drm/drm_encoder_slave.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
*
2525
*/
2626

27+
#include <linux/module.h>
28+
2729
#include "drm_encoder_slave.h"
2830

2931
/**

‎drivers/gpu/drm/drm_fb_helper.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <linux/sysrq.h>
3232
#include <linux/slab.h>
3333
#include <linux/fb.h>
34+
#include <linux/module.h>
3435
#include "drmP.h"
3536
#include "drm_crtc.h"
3637
#include "drm_fb_helper.h"

‎drivers/gpu/drm/drm_fops.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include "drmP.h"
3838
#include <linux/poll.h>
3939
#include <linux/slab.h>
40+
#include <linux/module.h>
4041

4142
/* from BKL pushdown: note that nothing else serializes idr_find() */
4243
DEFINE_MUTEX(drm_global_mutex);

‎drivers/gpu/drm/i2c/ch7006_drv.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
*
2525
*/
2626

27+
#include <linux/module.h>
28+
2729
#include "ch7006_priv.h"
2830

2931
/* DRM encoder functions */

‎drivers/gpu/drm/i2c/sil164_drv.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
*
2525
*/
2626

27+
#include <linux/module.h>
28+
2729
#include "drmP.h"
2830
#include "drm_crtc_helper.h"
2931
#include "drm_encoder_slave.h"

‎drivers/gpu/drm/i810/i810_drv.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
* Gareth Hughes <gareth@valinux.com>
3131
*/
3232

33+
#include <linux/module.h>
34+
3335
#include "drmP.h"
3436
#include "drm.h"
3537
#include "i810_drm.h"

‎drivers/gpu/drm/i915/i915_dma.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#include <linux/pnp.h>
4242
#include <linux/vga_switcheroo.h>
4343
#include <linux/slab.h>
44+
#include <linux/module.h>
4445
#include <acpi/video.h>
4546

4647
static void i915_write_hws_pga(struct drm_device *dev)

‎drivers/gpu/drm/i915/i915_drv.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include "intel_drv.h"
3636

3737
#include <linux/console.h>
38+
#include <linux/module.h>
3839
#include "drm_crtc_helper.h"
3940

4041
static int i915_modeset __read_mostly = -1;

‎drivers/gpu/drm/mga/mga_drv.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
* Gareth Hughes <gareth@valinux.com>
3030
*/
3131

32+
#include <linux/module.h>
33+
3234
#include "drmP.h"
3335
#include "drm.h"
3436
#include "mga_drm.h"

‎drivers/gpu/drm/mga/mga_warp.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <linux/firmware.h>
3131
#include <linux/ihex.h>
3232
#include <linux/platform_device.h>
33+
#include <linux/module.h>
3334

3435
#include "drmP.h"
3536
#include "drm.h"

0 commit comments

Comments
 (0)