linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usb: hcd: remove unused including <linux/version.h>
@ 2021-03-03  1:09 Tian Tao
  2021-03-03  7:02 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Tian Tao @ 2021-03-03  1:09 UTC (permalink / raw)
  To: gregkh, linux-usb

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

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
 drivers/usb/core/hcd.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index 3f03813..53bc93d 100644
--- a/drivers/usb/core/hcd.c
+++ b/drivers/usb/core/hcd.c
@@ -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>
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] usb: hcd: remove unused including <linux/version.h>
  2021-03-03  1:09 [PATCH] usb: hcd: remove unused including <linux/version.h> Tian Tao
@ 2021-03-03  7:02 ` Greg KH
  2021-03-03  7:15   ` tiantao (H)
  0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2021-03-03  7:02 UTC (permalink / raw)
  To: Tian Tao; +Cc: linux-usb

On Wed, Mar 03, 2021 at 09:09:12AM +0800, Tian Tao wrote:
> Remove including <linux/version.h> that don't need it.
> 
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
> ---
>  drivers/usb/core/hcd.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
> index 3f03813..53bc93d 100644
> --- a/drivers/usb/core/hcd.c
> +++ b/drivers/usb/core/hcd.c
> @@ -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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] usb: hcd: remove unused including <linux/version.h>
  2021-03-03  7:02 ` Greg KH
@ 2021-03-03  7:15   ` tiantao (H)
  2021-03-03  7:31     ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: tiantao (H) @ 2021-03-03  7:15 UTC (permalink / raw)
  To: Greg KH, Tian Tao; +Cc: linux-usb


在 2021/3/3 15:02, Greg KH 写道:
> On Wed, Mar 03, 2021 at 09:09:12AM +0800, Tian Tao wrote:
>> Remove including <linux/version.h> that don't need it.
>>
>> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
>> ---
>>   drivers/usb/core/hcd.c | 1 -
>>   1 file changed, 1 deletion(-)
>>
>> diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
>> index 3f03813..53bc93d 100644
>> --- a/drivers/usb/core/hcd.c
>> +++ b/drivers/usb/core/hcd.c
>> @@ -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.
this is reported by command “make versioncheck”
> thanks,
>
> greg k-h
> .
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] usb: hcd: remove unused including <linux/version.h>
  2021-03-03  7:15   ` tiantao (H)
@ 2021-03-03  7:31     ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2021-03-03  7:31 UTC (permalink / raw)
  To: tiantao (H); +Cc: Tian Tao, linux-usb

On Wed, Mar 03, 2021 at 03:15:53PM +0800, tiantao (H) wrote:
> 
> 在 2021/3/3 15:02, Greg KH 写道:
> > On Wed, Mar 03, 2021 at 09:09:12AM +0800, Tian Tao wrote:
> > > Remove including <linux/version.h> that don't need it.
> > > 
> > > Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
> > > ---
> > >   drivers/usb/core/hcd.c | 1 -
> > >   1 file changed, 1 deletion(-)
> > > 
> > > diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
> > > index 3f03813..53bc93d 100644
> > > --- a/drivers/usb/core/hcd.c
> > > +++ b/drivers/usb/core/hcd.c
> > > @@ -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.
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-03 11:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-03  1:09 [PATCH] usb: hcd: remove unused including <linux/version.h> Tian Tao
2021-03-03  7:02 ` Greg KH
2021-03-03  7:15   ` tiantao (H)
2021-03-03  7:31     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).