linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] random: Add missing linux/device.h include
@ 2013-11-06 13:06 Thierry Reding
  0 siblings, 0 replies; only message in thread
From: Thierry Reding @ 2013-11-06 13:06 UTC (permalink / raw)
  To: Theodore Ts'o; +Cc: Arnd Bergmann, Greg Kroah-Hartman, linux-kernel

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-11-06 13:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-06 13:06 [PATCH] random: Add missing linux/device.h include Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).