Skip to contentSkip to conversation

x86/intel_rdt: Add a missing include

PATCH New Borislav Petkov 2 participants 2 messages Nov 2, 2016 – Nov 7, 2016 x86

lore
Share & tools
lore

Borislav Petkov

author maintainer
#0 lore raw

PATCH 1/1 x86/intel_rdt: Add a missing include

From: Borislav Petkov <[email protected]>

... to fix:

In file included from arch/x86/kernel/cpu/intel_rdt.c:33:0:
./arch/x86/include/asm/intel_rdt.h:56:25: warning: ‘struct kernfs_open_file’ declared inside parameter list will not be visible outside of this definition or declaration
int (*seq_show)(struct kernfs_open_file *of,
^~~~~~~~~~~~~~~~
...

---
 arch/x86/include/asm/intel_rdt.h | 1 +
 1 file changed, 1 insertion(+)
arch/x86/include/asm/intel_rdt.h +1 -0
index 5bc72a4dbd5e..6e90e87eadfe 100644
@@ -3,6 +3,7 @@
 
 #ifdef CONFIG_INTEL_RDT_A
 
+#include <linux/kernfs.h>
 #include <linux/jump_label.h>
 
 #include <asm/intel_rdt_common.h>
Signature · 1 line
2.10.0
#1 lore raw

[tip:x86/cache] x86/intel_rdt: Add a missing #include

x86/intel_rdt: Add a missing #include
Commit-ID:  8ff42c02193150720815608ed03de8d45aeaf8a8
Gitweb:     http://git.kernel.org/tip/8ff42c02193150720815608ed03de8d45aeaf8a8
Author:     Borislav Petkov <[email protected]>
AuthorDate: Wed, 2 Nov 2016 17:51:17 +0100
Committer:  Ingo Molnar <[email protected]>
CommitDate: Mon, 7 Nov 2016 08:36:16 +0100

x86/intel_rdt: Add a missing #include

... to fix this build warning:

In file included from arch/x86/kernel/cpu/intel_rdt.c:33:0:
./arch/x86/include/asm/intel_rdt.h:56:25: warning: ‘struct kernfs_open_file’ declared inside parameter list will not be visible outside of this definition or declaration
int (*seq_show)(struct kernfs_open_file *of,
^~~~~~~~~~~~~~~~
...

Cc Dave Hansen <[email protected]>
Cc David Carrillo-Cisneros <[email protected]>
Cc Fenghua Yu <[email protected]>
Cc H. Peter Anvin <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Nilay Vaish <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Ravi V Shankar <[email protected]>
Cc Sai Prakhya <[email protected]>
Cc Shaohua Li <[email protected]>
Cc Stephane Eranian <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Tony Luck <[email protected]>
Cc Vikas Shivappa <[email protected]>
---
 arch/x86/include/asm/intel_rdt.h | 1 +
 1 file changed, 1 insertion(+)
arch/x86/include/asm/intel_rdt.h +1 -0
index 5bc72a4..6e90e87 100644
@@ -3,6 +3,7 @@
 
 #ifdef CONFIG_INTEL_RDT_A
 
+#include <linux/kernfs.h>
 #include <linux/jump_label.h>
 
 #include <asm/intel_rdt_common.h>