Skip to contentSkip to conversation

x86: Remove Fix me in main.c and add include statement for kvm_para.h

PATCH In review Nicholas Krause 2 participants 5 messages Jul 22, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
index f961de9..7ba314b 100644
@@ -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
index 00a97bb..21d1be2 100644
@@ -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
#1 lore raw
Quoted 28 lines · Nicholas Krause

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
index f961de9..7ba314b 100644
@@ -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
index 00a97bb..21d1be2 100644

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.

#2 lore raw
Quoted 32 lines · David Rientjes
Quoted 30 lines · Nicholas Krause

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
index f961de9..7ba314b 100644
@@ -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
index 00a97bb..21d1be2 100644
@@ -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 :)

#3 lore raw
Quoted 42 lines · Nick Krause
Quoted 30 lines
Quoted 30 lines

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
index f961de9..7ba314b 100644
@@ -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
index 00a97bb..21d1be2 100644
@@ -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.

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.

#4 lore raw
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.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
index f961de9..7ba314b 100644
@@ -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
index 00a97bb..21d1be2 100644
@@ -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,

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