linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers/usb/storage/sddr55.c: Remove duplicate header
@ 2019-01-10  7:40 Sabyasachi Gupta
  2019-01-11  9:10 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Sabyasachi Gupta @ 2019-01-10  7:40 UTC (permalink / raw)
  To: stern, gregkh
  Cc: jrdr.linux, linux-usb, usb-storage, linux-kernel, brajeswar.linux

Remove unusual_sddr55.h which is included more than once

Signed-off-by: Sabyasachi Gupta <sabyasachi.linux@gmail.com>
---
 drivers/usb/storage/sddr55.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/usb/storage/sddr55.c b/drivers/usb/storage/sddr55.c
index b8527c5..96bf7ee 100644
--- a/drivers/usb/storage/sddr55.c
+++ b/drivers/usb/storage/sddr55.c
@@ -62,7 +62,6 @@ MODULE_DEVICE_TABLE(usb, sddr55_usb_ids);
 }
 
 static struct us_unusual_dev sddr55_unusual_dev_list[] = {
-#	include "unusual_sddr55.h"
 	{ }		/* Terminating entry */
 };
 
-- 
2.7.4


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

* Re: [PATCH] drivers/usb/storage/sddr55.c: Remove duplicate header
  2019-01-10  7:40 [PATCH] drivers/usb/storage/sddr55.c: Remove duplicate header Sabyasachi Gupta
@ 2019-01-11  9:10 ` Greg KH
  2019-01-11 10:59   ` Oliver Neukum
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2019-01-11  9:10 UTC (permalink / raw)
  To: Sabyasachi Gupta
  Cc: stern, jrdr.linux, linux-usb, usb-storage, linux-kernel, brajeswar.linux

On Thu, Jan 10, 2019 at 01:10:25PM +0530, Sabyasachi Gupta wrote:
> Remove unusual_sddr55.h which is included more than once
> 
> Signed-off-by: Sabyasachi Gupta <sabyasachi.linux@gmail.com>
> ---
>  drivers/usb/storage/sddr55.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/usb/storage/sddr55.c b/drivers/usb/storage/sddr55.c
> index b8527c5..96bf7ee 100644
> --- a/drivers/usb/storage/sddr55.c
> +++ b/drivers/usb/storage/sddr55.c
> @@ -62,7 +62,6 @@ MODULE_DEVICE_TABLE(usb, sddr55_usb_ids);
>  }
>  
>  static struct us_unusual_dev sddr55_unusual_dev_list[] = {
> -#	include "unusual_sddr55.h"
>  	{ }		/* Terminating entry */
>  };

As Oliver said on the other patch, this breaks the code.  Please do not
blindly make changes without understanding what the code does.

thanks,

greg k-h

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

* Re: [PATCH] drivers/usb/storage/sddr55.c: Remove duplicate header
  2019-01-11  9:10 ` Greg KH
@ 2019-01-11 10:59   ` Oliver Neukum
  0 siblings, 0 replies; 3+ messages in thread
From: Oliver Neukum @ 2019-01-11 10:59 UTC (permalink / raw)
  To: Greg KH, Sabyasachi Gupta
  Cc: brajeswar.linux, jrdr.linux, usb-storage, stern, linux-kernel, linux-usb

On Fr, 2019-01-11 at 10:10 +0100, Greg KH wrote:
> On Thu, Jan 10, 2019 at 01:10:25PM +0530, Sabyasachi Gupta wrote:
> > Remove unusual_sddr55.h which is included more than once
> > 
> > Signed-off-by: Sabyasachi Gupta <sabyasachi.linux@gmail.com>
> > ---
> >  drivers/usb/storage/sddr55.c | 1 -
> >  1 file changed, 1 deletion(-)
> > 
> > diff --git a/drivers/usb/storage/sddr55.c b/drivers/usb/storage/sddr55.c
> > index b8527c5..96bf7ee 100644
> > --- a/drivers/usb/storage/sddr55.c
> > +++ b/drivers/usb/storage/sddr55.c
> > @@ -62,7 +62,6 @@ MODULE_DEVICE_TABLE(usb, sddr55_usb_ids);
> >  }
> >  
> >  static struct us_unusual_dev sddr55_unusual_dev_list[] = {
> > -#	include "unusual_sddr55.h"
> >  	{ }		/* Terminating entry */
> >  };
> 
> As Oliver said on the other patch, this breaks the code.  Please do not
> blindly make changes without understanding what the code does.

Maybe this should be explained. The file that is included does have
a name ending in .h. But it is not simply declarations, for which
newer trendy languages would use a a statement like ¨import".

"unusual_sddr55.h" is a list of devices. This list is used in
multiple places. And it needs to be identical in all those places.
Hence it is included. These are true includes. There is nothing wrong
with that code.

Our complaint is not that your fix is wrong, but there is nothing wrong
with the code as is. Including this list is the good thing to do.
Your wish to clean up the kernel is appreciated. But please find a
place that actually needs to be cleaned up.

	Regards
		Oliver


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

end of thread, other threads:[~2019-01-11 11:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-10  7:40 [PATCH] drivers/usb/storage/sddr55.c: Remove duplicate header Sabyasachi Gupta
2019-01-11  9:10 ` Greg KH
2019-01-11 10:59   ` Oliver Neukum

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).