x86: Remove Fix me in main.c and add include statement for kvm_para.h
Subsystems (3)
PATCH 1/1 x86: Remove Fix me in main.c and add include statement for kvm_para.h
This patch removes a fix me by including linux/types.h in kvm_para.h as stated by the fix me in main.c and also removes the comment from main.c too.
--- arch/x86/kernel/cpu/mtrr/main.c | 2 +- include/linux/kvm_para.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)
arch/x86/kernel/cpu/mtrr/main.c +1 -1
@@ -33,7 +33,7 @@#define DEBUG -#include <linux/types.h> /* FIXME: kvm_para.h needs this */ +#include <linux/types.h> #include <linux/stop_machine.h> #include <linux/kvm_para.h>
include/linux/kvm_para.h +1 -2
@@ -2,8 +2,7 @@#define __LINUX_KVM_PARA_H#include <uapi/linux/kvm_para.h> - - +#include <linux/types.h> static inline int kvm_para_has_feature (unsigned int feature) {if (kvm_arch_para_features () & (1UL << feature))
Signature · 1 line
1.9.1
Quoted 28 lines · Nicholas Krause
This patch removes a fix me by including
linux/types.hinkvm_para.has stated by the fix me inmain.cand also removes the comment frommain.ctoo.Signed-off-by Nicholas Krause <[email protected]>--- arch/x86/kernel/cpu/mtrr/main.c | 2 +- include/linux/kvm_para.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)arch/x86/kernel/cpu/mtrr/main.c +1
-1@@ -33,7 +33,7 @@#define DEBUG -#include <linux/types.h> /* FIXME: kvm_para.h needs this */ +#include <linux/types.h> #include <linux/stop_machine.h> #include <linux/kvm_para.h> include/linux/kvm_para.h +0
-0
include/linux/kvm_para.h line 8
Quoted 9 lines
include/linux/kvm_para.h +1
-2@@ -2,8 +2,7 @@#define __LINUX_KVM_PARA_H#include <uapi/linux/kvm_para.h> - - +#include <linux/types.h> static inline int kvm_para_has_feature (unsigned int feature) {if (kvm_arch_para_features () & (1UL << feature))
There's no build error reported that would indicate that this is needed, so this patch isn't justifiable.
Quoted 32 lines · David Rientjes
Quoted 30 lines · Nicholas Krause
This patch removes a fix me by including
linux/types.hinkvm_para.has stated by the fix me inmain.cand also removes the comment frommain.ctoo.Signed-off-by Nicholas Krause <[email protected]>--- arch/x86/kernel/cpu/mtrr/main.c | 2 +- include/linux/kvm_para.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)arch/x86/kernel/cpu/mtrr/main.c +1
-1@@ -33,7 +33,7 @@#define DEBUG -#include <linux/types.h> /* FIXME: kvm_para.h needs this */ +#include <linux/types.h> #include <linux/stop_machine.h> #include <linux/kvm_para.h> include/linux/kvm_para.h +0
-0@@ -2,8 +2,7 @@#define __LINUX_KVM_PARA_H
Quoted 10 lines
include/linux/kvm_para.h line 8
Quoted 7 lines
include/linux/kvm_para.h +1
-2#include <uapi/linux/kvm_para.h> - - +#include <linux/types.h> static inline int kvm_para_has_feature (unsigned int feature) {if (kvm_arch_para_features () & (1UL << feature))There's no build error reported that would indicate that this is needed, so this patch isn't justifiable.
David,
Good to hear a nicer reply after my stupid patch with page shifts. Would you like me to send in a patch that removes this fix me then?
Nick :)
Quoted 42 lines · Nick Krause
Quoted 30 lines
Quoted 30 lines
This patch removes a fix me by including
linux/types.hinkvm_para.has stated by the fix me inmain.cand also removes the comment frommain.ctoo.Signed-off-by Nicholas Krause <[email protected]>--- arch/x86/kernel/cpu/mtrr/main.c | 2 +- include/linux/kvm_para.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)arch/x86/kernel/cpu/mtrr/main.c +1
-1@@ -33,7 +33,7 @@#define DEBUG -#include <linux/types.h> /* FIXME: kvm_para.h needs this */ +#include <linux/types.h> #include <linux/stop_machine.h> #include <linux/kvm_para.h> include/linux/kvm_para.h +0
-0@@ -2,8 +2,7 @@#define __LINUX_KVM_PARA_HQuoted 10 lines
include/linux/kvm_para.h line 8
Quoted 7 lines
include/linux/kvm_para.h +1
-2#include <uapi/linux/kvm_para.h> - - +#include <linux/types.h> static inline int kvm_para_has_feature (unsigned int feature) {if (kvm_arch_para_features () & (1UL << feature))There's no build error reported that would indicate that this is needed, so this patch isn't justifiable.
Quoted 5 lines
David,
Good to hear a nicer reply after my stupid patch with page shifts. Would you like me to send in a patch that removes this fix me then?
The comment is not the only thing that can be removed in the above patch. If you test the change and can prove why it's not needed in the changelog, then such a patch would be worthwhile.
Quoted 46 lines · David Rientjes
Quoted 44 lines · Nick Krause
Quoted 30 lines
Quoted 30 lines
This patch removes a fix me by including
linux/types.hinkvm_para.has stated by the fix me inmain.cand also removes the comment frommain.ctoo.Signed-off-by Nicholas Krause <[email protected]>--- arch/x86/kernel/cpu/mtrr/main.c | 2 +- include/linux/kvm_para.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)arch/x86/kernel/cpu/mtrr/main.c +1
-1@@ -33,7 +33,7 @@#define DEBUG -#include <linux/types.h> /* FIXME: kvm_para.h needs this */ +#include <linux/types.h> #include <linux/stop_machine.h> #include <linux/kvm_para.h> include/linux/kvm_para.h +0
-0@@ -2,8 +2,7 @@#define __LINUX_KVM_PARA_HQuoted 10 lines
include/linux/kvm_para.h line 8
Quoted 7 lines
include/linux/kvm_para.h +1
-2#include <uapi/linux/kvm_para.h> - - +#include <linux/types.h> static inline int kvm_para_has_feature (unsigned int feature) {if (kvm_arch_para_features () & (1UL << feature))There's no build error reported that would indicate that this is needed, so this patch isn't justifiable.
David,
Quoted 7 lines
Quoted 3 lines
Good to hear a nicer reply after my stupid patch with page shifts. Would you like me to send in a patch that removes this fix me then?
The comment is not the only thing that can be removed in the above patch. If you test the change and can prove why it's not needed in the changelog, then such a patch would be worthwhile.
I will rewrite this patch removing the comment and explain why. Sounds good or should I remove this file too?
Nick