random: Add missing linux/device.h include
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.
Signed-off-by Thierry Reding <[email protected]>
--- drivers/char/random.c | 1 + 1 file changed, 1 insertion(+)
drivers/char/random.c +1 -0
@@ -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