Skip to contentSkip to conversation

random: Add missing linux/device.h include

PATCH New Thierry Reding 1 participant 1 message Nov 6, 2013 Random number driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 random: Add missing linux/device.h include

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.

---
 drivers/char/random.c | 1 +
 1 file changed, 1 insertion(+)
drivers/char/random.c +1 -0
index 26649ba..4f172f9 100644
@@ -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>
Signature · 1 line
1.8.4