struct device_attribute is defined there. Without this file we get
arch/x86/kernel/cpu/bugs_64.c:125: warning: `struct device_attribute¿
declared inside parameter list
Orabug:
27448330
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
#include <linux/kernel.h>
#include <linux/init.h>
+#ifdef CONFIG_SYSFS
+#include <linux/device.h>
+#endif
#include <asm/alternative.h>
#include <asm/bugs.h>
#include <asm/processor.h>