lkml.org 
[lkml]   [2013]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] random: Add missing linux/device.h include
Date
Commit f0ed2b943a53 (random: use device attach events for entropy) uses
a member of struct device, which isn't always available and therefore
causes the xcep_defconfig build to break on ARM.

Explicitly including the linux/device.h header fixes this issue.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
drivers/char/random.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/char/random.c b/drivers/char/random.c
index 26649ba..4f172f9 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -257,6 +257,7 @@
#include <linux/kmemcheck.h>
#include <linux/irq.h>
#include <linux/workqueue.h>
+#include <linux/device.h>

#include <asm/processor.h>
#include <asm/uaccess.h>
--
1.8.4


\
 
 \ /
  Last update: 2013-11-06 14:41    [W:0.249 / U:0.804 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site