linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scsi: arm: cumana_1.c:  Remove unused function
@ 2014-12-20 16:36 Rickard Strandqvist
  2014-12-20 16:50 ` Jeremiah Mahler
  2014-12-30 12:45 ` Christoph Hellwig
  0 siblings, 2 replies; 7+ messages in thread
From: Rickard Strandqvist @ 2014-12-20 16:36 UTC (permalink / raw)
  To: linux-arm-kernel

Remove the function cumanascsi_setup() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
---
 drivers/scsi/arm/cumana_1.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/scsi/arm/cumana_1.c b/drivers/scsi/arm/cumana_1.c
index 8ef810a..7c90d9c 100644
--- a/drivers/scsi/arm/cumana_1.c
+++ b/drivers/scsi/arm/cumana_1.c
@@ -38,10 +38,6 @@
 
 #include "../NCR5380.h"
 
-void cumanascsi_setup(char *str, int *ints)
-{
-}
-
 const char *cumanascsi_info(struct Scsi_Host *spnt)
 {
 	return "";
-- 
1.7.10.4

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

* [PATCH] scsi: arm: cumana_1.c:  Remove unused function
  2014-12-20 16:36 [PATCH] scsi: arm: cumana_1.c: Remove unused function Rickard Strandqvist
@ 2014-12-20 16:50 ` Jeremiah Mahler
  2014-12-20 16:55   ` Rickard Strandqvist
  2014-12-20 16:58   ` Russell King - ARM Linux
  2014-12-30 12:45 ` Christoph Hellwig
  1 sibling, 2 replies; 7+ messages in thread
From: Jeremiah Mahler @ 2014-12-20 16:50 UTC (permalink / raw)
  To: linux-arm-kernel

On Sat, Dec 20, 2014 at 05:36:15PM +0100, Rickard Strandqvist wrote:
> Remove the function cumanascsi_setup() that is not used anywhere.
> 
> This was partially found by using a static code analysis program called cppcheck.
> 
> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
> ---
>  drivers/scsi/arm/cumana_1.c |    4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/drivers/scsi/arm/cumana_1.c b/drivers/scsi/arm/cumana_1.c
> index 8ef810a..7c90d9c 100644
> --- a/drivers/scsi/arm/cumana_1.c
> +++ b/drivers/scsi/arm/cumana_1.c
> @@ -38,10 +38,6 @@
>  
>  #include "../NCR5380.h"
>  
> -void cumanascsi_setup(char *str, int *ints)
> -{
> -}
> -
>  const char *cumanascsi_info(struct Scsi_Host *spnt)
>  {
>  	return "";
[...]

You can blame Linus for this one :-)

~/linux-next$ git blame -L 38,40 drivers/scsi/arm/cumana_1.c 
^1da177e (Linus Torvalds 2005-04-16 15:20:36 -0700 38) void
cumanascsi_setup(char *str, int *ints)
^1da177e (Linus Torvalds 2005-04-16 15:20:36 -0700 39) {
^1da177e (Linus Torvalds 2005-04-16 15:20:36 -0700 40) }
~/linux-next$

-- 
- Jeremiah Mahler

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

* [PATCH] scsi: arm: cumana_1.c: Remove unused function
  2014-12-20 16:50 ` Jeremiah Mahler
@ 2014-12-20 16:55   ` Rickard Strandqvist
  2014-12-20 16:58   ` Russell King - ARM Linux
  1 sibling, 0 replies; 7+ messages in thread
From: Rickard Strandqvist @ 2014-12-20 16:55 UTC (permalink / raw)
  To: linux-arm-kernel

2014-12-20 17:50 GMT+01:00 Jeremiah Mahler <jmmahler@gmail.com>:
> On Sat, Dec 20, 2014 at 05:36:15PM +0100, Rickard Strandqvist wrote:
>> Remove the function cumanascsi_setup() that is not used anywhere.
>>
>> This was partially found by using a static code analysis program called cppcheck.
>>
>> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
>> ---
>>  drivers/scsi/arm/cumana_1.c |    4 ----
>>  1 file changed, 4 deletions(-)
>>
>> diff --git a/drivers/scsi/arm/cumana_1.c b/drivers/scsi/arm/cumana_1.c
>> index 8ef810a..7c90d9c 100644
>> --- a/drivers/scsi/arm/cumana_1.c
>> +++ b/drivers/scsi/arm/cumana_1.c
>> @@ -38,10 +38,6 @@
>>
>>  #include "../NCR5380.h"
>>
>> -void cumanascsi_setup(char *str, int *ints)
>> -{
>> -}
>> -
>>  const char *cumanascsi_info(struct Scsi_Host *spnt)
>>  {
>>       return "";
> [...]
>
> You can blame Linus for this one :-)
>
> ~/linux-next$ git blame -L 38,40 drivers/scsi/arm/cumana_1.c
> ^1da177e (Linus Torvalds 2005-04-16 15:20:36 -0700 38) void
> cumanascsi_setup(char *str, int *ints)
> ^1da177e (Linus Torvalds 2005-04-16 15:20:36 -0700 39) {
> ^1da177e (Linus Torvalds 2005-04-16 15:20:36 -0700 40) }
> ~/linux-next$
>
> --
> - Jeremiah Mahler



It just shows, Linus!
What he has contributed lately  ;-)

Kind regards
Rickard Strandqvist

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

* [PATCH] scsi: arm: cumana_1.c:  Remove unused function
  2014-12-20 16:50 ` Jeremiah Mahler
  2014-12-20 16:55   ` Rickard Strandqvist
@ 2014-12-20 16:58   ` Russell King - ARM Linux
  2014-12-20 17:35     ` James Bottomley
  1 sibling, 1 reply; 7+ messages in thread
From: Russell King - ARM Linux @ 2014-12-20 16:58 UTC (permalink / raw)
  To: linux-arm-kernel

On Sat, Dec 20, 2014 at 08:50:45AM -0800, Jeremiah Mahler wrote:
> On Sat, Dec 20, 2014 at 05:36:15PM +0100, Rickard Strandqvist wrote:
> > Remove the function cumanascsi_setup() that is not used anywhere.
> > 
> > This was partially found by using a static code analysis program called cppcheck.
> > 
> > Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
>
> You can blame Linus for this one :-)
> 
> ~/linux-next$ git blame -L 38,40 drivers/scsi/arm/cumana_1.c 
> ^1da177e (Linus Torvalds 2005-04-16 15:20:36 -0700 38) void
> cumanascsi_setup(char *str, int *ints)
> ^1da177e (Linus Torvalds 2005-04-16 15:20:36 -0700 39) {
> ^1da177e (Linus Torvalds 2005-04-16 15:20:36 -0700 40) }
> ~/linux-next$

Great, that gets me off the hook :)

Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>

-- 
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.

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

* [PATCH] scsi: arm: cumana_1.c:  Remove unused function
  2014-12-20 16:58   ` Russell King - ARM Linux
@ 2014-12-20 17:35     ` James Bottomley
  2014-12-20 17:39       ` Russell King - ARM Linux
  0 siblings, 1 reply; 7+ messages in thread
From: James Bottomley @ 2014-12-20 17:35 UTC (permalink / raw)
  To: linux-arm-kernel

On Sat, 2014-12-20 at 16:58 +0000, Russell King - ARM Linux wrote:
> On Sat, Dec 20, 2014 at 08:50:45AM -0800, Jeremiah Mahler wrote:
> > On Sat, Dec 20, 2014 at 05:36:15PM +0100, Rickard Strandqvist wrote:
> > > Remove the function cumanascsi_setup() that is not used anywhere.
> > > 
> > > This was partially found by using a static code analysis program called cppcheck.
> > > 
> > > Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
> >
> > You can blame Linus for this one :-)
> > 
> > ~/linux-next$ git blame -L 38,40 drivers/scsi/arm/cumana_1.c 
> > ^1da177e (Linus Torvalds 2005-04-16 15:20:36 -0700 38) void
> > cumanascsi_setup(char *str, int *ints)
> > ^1da177e (Linus Torvalds 2005-04-16 15:20:36 -0700 39) {
> > ^1da177e (Linus Torvalds 2005-04-16 15:20:36 -0700 40) }
> > ~/linux-next$
> 
> Great, that gets me off the hook :)

Well, no, it doesn't: 1da177e is the git tree root commit which was
created by importing the existing bitkeeper version 2.6.12-rc2 into git.
It means this code predates the git import.  You might be able to chase
it through the history tree if you want, but that only goes back as far
as bitkeeper history.

James

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

* [PATCH] scsi: arm: cumana_1.c:  Remove unused function
  2014-12-20 17:35     ` James Bottomley
@ 2014-12-20 17:39       ` Russell King - ARM Linux
  0 siblings, 0 replies; 7+ messages in thread
From: Russell King - ARM Linux @ 2014-12-20 17:39 UTC (permalink / raw)
  To: linux-arm-kernel

On Sat, Dec 20, 2014 at 09:35:53AM -0800, James Bottomley wrote:
> On Sat, 2014-12-20 at 16:58 +0000, Russell King - ARM Linux wrote:
> > On Sat, Dec 20, 2014 at 08:50:45AM -0800, Jeremiah Mahler wrote:
> > > On Sat, Dec 20, 2014 at 05:36:15PM +0100, Rickard Strandqvist wrote:
> > > > Remove the function cumanascsi_setup() that is not used anywhere.
> > > > 
> > > > This was partially found by using a static code analysis program called cppcheck.
> > > > 
> > > > Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
> > >
> > > You can blame Linus for this one :-)
> > > 
> > > ~/linux-next$ git blame -L 38,40 drivers/scsi/arm/cumana_1.c 
> > > ^1da177e (Linus Torvalds 2005-04-16 15:20:36 -0700 38) void
> > > cumanascsi_setup(char *str, int *ints)
> > > ^1da177e (Linus Torvalds 2005-04-16 15:20:36 -0700 39) {
> > > ^1da177e (Linus Torvalds 2005-04-16 15:20:36 -0700 40) }
> > > ~/linux-next$
> > 
> > Great, that gets me off the hook :)
> 
> Well, no, it doesn't: 1da177e is the git tree root commit which was
> created by importing the existing bitkeeper version 2.6.12-rc2 into git.
> It means this code predates the git import.  You might be able to chase
> it through the history tree if you want, but that only goes back as far
> as bitkeeper history.

James, please see the smilie on the end of the comment, I wasn't being
serious.  Thanks.

-- 
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.

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

* [PATCH] scsi: arm: cumana_1.c:  Remove unused function
  2014-12-20 16:36 [PATCH] scsi: arm: cumana_1.c: Remove unused function Rickard Strandqvist
  2014-12-20 16:50 ` Jeremiah Mahler
@ 2014-12-30 12:45 ` Christoph Hellwig
  1 sibling, 0 replies; 7+ messages in thread
From: Christoph Hellwig @ 2014-12-30 12:45 UTC (permalink / raw)
  To: linux-arm-kernel

This one doesn't apply anymore after the 5380 cleanups.

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

end of thread, other threads:[~2014-12-30 12:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-20 16:36 [PATCH] scsi: arm: cumana_1.c: Remove unused function Rickard Strandqvist
2014-12-20 16:50 ` Jeremiah Mahler
2014-12-20 16:55   ` Rickard Strandqvist
2014-12-20 16:58   ` Russell King - ARM Linux
2014-12-20 17:35     ` James Bottomley
2014-12-20 17:39       ` Russell King - ARM Linux
2014-12-30 12:45 ` Christoph Hellwig

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