Skip to contentSkip to conversation

usb: hcd: remove unused including <linux/version.h>

PATCH In review Tian Tao 3 participants 4 messages Mar 3, 2021 USB

lore
Share & tools
lore

Tian Tao

author
#0 lore raw

PATCH 1/1 usb: hcd: remove unused including <linux/version.h>

Remove including <linux/version.h> that don't need it.

---
 drivers/usb/core/hcd.c | 1 -
 1 file changed, 1 deletion(-)
drivers/usb/core/hcd.c +0 -1
index 3f03813..53bc93d 100644
@@ -11,7 +11,6 @@
 
 #include <linux/bcd.h>
 #include <linux/module.h>
-#include <linux/version.h>
 #include <linux/kernel.h>
 #include <linux/sched/task_stack.h>
 #include <linux/slab.h>
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 12 lines · Tian Tao

Remove including <linux/version.h> that don't need it.

---
 drivers/usb/core/hcd.c | 1 -
 1 file changed, 1 deletion(-)
drivers/usb/core/hcd.c +0 -0
index 3f03813..53bc93d 100644

drivers/usb/core/hcd.c line 16

Quoted 7 lines
drivers/usb/core/hcd.c +0 -1
@@ -11,7 +11,6 @@
 
 #include <linux/bcd.h>
 #include <linux/module.h>
-#include <linux/version.h>
 #include <linux/kernel.h>
 #include <linux/sched/task_stack.h>
 #include <linux/slab.h>

You obviously did not even test-build this patch, which is very odd when submitting something to the community. Why did you not do this?

This file _DOES_ need this .h file, whatever tool you are using to detect this is completely broken. Please fix it and be more careful before sending new patches.

thanks,

greg k-h

#2 lore raw
Quoted 23 lines · Greg KH
Quoted 12 lines · Tian Tao

Remove including <linux/version.h> that don't need it.

---
  drivers/usb/core/hcd.c | 1 -
  1 file changed, 1 deletion(-)
drivers/usb/core/hcd.c +0 -0
index 3f03813..53bc93d 100644

drivers/usb/core/hcd.c line 16

Quoted 7 lines
drivers/usb/core/hcd.c +0 -1
@@ -11,7 +11,6 @@
 
  #include <linux/bcd.h>
  #include <linux/module.h>
-#include <linux/version.h>
  #include <linux/kernel.h>
  #include <linux/sched/task_stack.h>
  #include <linux/slab.h>

You obviously did not even test-build this patch, which is very odd when submitting something to the community. Why did you not do this?

Quoted 3 lines

This file _DOES_ need this .h file, whatever tool you are using to detect this is completely broken. Please fix it and be more careful before sending new patches.

this is reported by command “make versioncheck”

Quoted 5 lines

thanks,

greg k-h
.

maintainer
#3 lore raw
Quoted 24 lines · tiantao (H)
Quoted 22 lines · Greg KH
Quoted 12 lines · Tian Tao

Remove including <linux/version.h> that don't need it.

---
  drivers/usb/core/hcd.c | 1 -
  1 file changed, 1 deletion(-)
drivers/usb/core/hcd.c +0 -0
index 3f03813..53bc93d 100644

drivers/usb/core/hcd.c line 15

Quoted 6 lines
drivers/usb/core/hcd.c +0 -1
@@ -11,7 +11,6 @@
  #include <linux/bcd.h>
  #include <linux/module.h>
-#include <linux/version.h>
  #include <linux/kernel.h>
  #include <linux/sched/task_stack.h>
  #include <linux/slab.h>

You obviously did not even test-build this patch, which is very odd when submitting something to the community. Why did you not do this?

Quoted 4 lines
Quoted 3 lines

This file _DOES_ need this .h file, whatever tool you are using to detect this is completely broken. Please fix it and be more careful before sending new patches.

this is reported by command “make versioncheck”

Then the tool is broken. Why did you not test-build your change before sending it? Did you read the checklist of "what to do before sending a patch" that we have in our documentation? If not, please do so.

thanks,

greg k-h