x86/cpu: Include missing header v2 PROPOSED

Luciano Leão: 1
 x86/cpu: Include missing header

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~lkcamp/patches/patches/35326/mbox | git am -3
Learn more about email & git

[PATCH v2] x86/cpu: Include missing header Export this patch

Includes the header containing the prototype of a global function,
solving the following warning:

 arch/x86/kernel/cpu/feat_ctl.c:112:6: warning: no previous prototype for

This warning appeared after 5d5103595e9e5 had moved function
init_ia32_feat_ctl()'s prototype from arch/x86/kernel/cpu/cpu.h to
Note that header "cpu.h" (arch/x86/kernel/cpu/cpu.h) was added by
0e79ad863df43 (before 5d5103595e9e5) solely to fix init_ia32_feat_ctl()'s
missing prototype. So, header "cpu.h" is no longer necessary.

Signed-off-by: Luciano Leão <lucianorsleao@gmail.com>
 arch/x86/kernel/cpu/feat_ctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/feat_ctl.c b/arch/x86/kernel/cpu/feat_ctl.c
index 993697e71854..809f873b5b2f 100644
--- a/arch/x86/kernel/cpu/feat_ctl.c
+++ b/arch/x86/kernel/cpu/feat_ctl.c
@@ -5,7 +5,7 @@
#include <asm/msr-index.h>
#include <asm/processor.h>
#include <asm/vmx.h>
#include "cpu.h"
#include <asm/cpu.h>

#undef pr_fmt
#define pr_fmt(fmt)	"x86/cpu: " fmt
Hi Luciano,

Thanks for your patch ;)
Hi Luciano,

thanks for the patch. See my comment below.