From 8ab025dbfd1646a57303eaeb3ea198d231fd5b65 Mon Sep 17 00:00:00 2001 From: Boris Ostrovsky Date: Tue, 23 Jan 2018 11:02:46 -0500 Subject: [PATCH] x86: Include linux/device.h in bugs_64.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Krish Sadhukhan Reviewed-by: Konrad Rzeszutek Wilk Signed-off-by: Konrad Rzeszutek Wilk --- arch/x86/kernel/cpu/bugs_64.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/kernel/cpu/bugs_64.c b/arch/x86/kernel/cpu/bugs_64.c index 0d471c667860..6dfbcadd74e4 100644 --- a/arch/x86/kernel/cpu/bugs_64.c +++ b/arch/x86/kernel/cpu/bugs_64.c @@ -5,6 +5,9 @@ #include #include +#ifdef CONFIG_SYSFS +#include +#endif #include #include #include -- 2.50.1