* [patch 01/19] scsi: add __init/__exit macros to ibmvstgt.c
@ 2009-12-22 0:27 akpm
2009-12-22 7:06 ` Peter Huewe
0 siblings, 1 reply; 5+ messages in thread
From: akpm @ 2009-12-22 0:27 UTC (permalink / raw)
To: James.Bottomley
Cc: linux-scsi, akpm, peterhuewe, James.Bottomley, fujita.tomonori,
sfr
From: Peter Huewe <peterhuewe@gmx.de>
Add the __init and __exit macros to the module_init / module_exit
functions from drivers/scsi/ibmvscsi/ibmvstgt.c
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: James Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/scsi/ibmvscsi/ibmvstgt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -puN drivers/scsi/ibmvscsi/ibmvstgt.c~scsi-add-__init-__exit-macros-to-ibmvstgtc drivers/scsi/ibmvscsi/ibmvstgt.c
--- a/drivers/scsi/ibmvscsi/ibmvstgt.c~scsi-add-__init-__exit-macros-to-ibmvstgtc
+++ a/drivers/scsi/ibmvscsi/ibmvstgt.c
@@ -955,7 +955,7 @@ static struct srp_function_template ibmv
.it_nexus_response = ibmvstgt_it_nexus_response,
};
-static int ibmvstgt_init(void)
+static int __init ibmvstgt_init(void)
{
int err = -ENOMEM;
@@ -986,7 +986,7 @@ release_transport:
return err;
}
-static void ibmvstgt_exit(void)
+static void __exit ibmvstgt_exit(void)
{
printk("Unregister IBM virtual SCSI driver\n");
_
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch 01/19] scsi: add __init/__exit macros to ibmvstgt.c
2009-12-22 0:27 [patch 01/19] scsi: add __init/__exit macros to ibmvstgt.c akpm
@ 2009-12-22 7:06 ` Peter Huewe
2009-12-22 16:46 ` James Bottomley
0 siblings, 1 reply; 5+ messages in thread
From: Peter Huewe @ 2009-12-22 7:06 UTC (permalink / raw)
To: akpm
Cc: James.Bottomley, linux-scsi, James.Bottomley, fujita.tomonori,
sfr, trivial
Am Dienstag 22 Dezember 2009 01:27:38 schrieb akpm@linux-foundation.org:
> From: Peter Huewe <peterhuewe@gmx.de>
>
> Add the __init and __exit macros to the module_init / module_exit
> functions from drivers/scsi/ibmvscsi/ibmvstgt.c
>
> Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
> Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> Cc: Stephen Rothwell <sfr@canb.auug.org.au>
> Cc: James Bottomley <James.Bottomley@SteelEye.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
> drivers/scsi/ibmvscsi/ibmvstgt.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff -puN
> drivers/scsi/ibmvscsi/ibmvstgt.c~scsi-add-__init-__exit-macros-to-ibmvstgt
> c drivers/scsi/ibmvscsi/ibmvstgt.c ---
> a/drivers/scsi/ibmvscsi/ibmvstgt.c~scsi-add-__init-__exit-macros-to-ibmvst
> gtc +++ a/drivers/scsi/ibmvscsi/ibmvstgt.c
> @@ -955,7 +955,7 @@ static struct srp_function_template ibmv
> .it_nexus_response = ibmvstgt_it_nexus_response,
> };
>
> -static int ibmvstgt_init(void)
> +static int __init ibmvstgt_init(void)
> {
> int err = -ENOMEM;
>
> @@ -986,7 +986,7 @@ release_transport:
> return err;
> }
>
> -static void ibmvstgt_exit(void)
> +static void __exit ibmvstgt_exit(void)
> {
> printk("Unregister IBM virtual SCSI driver\n");
>
> _
>
Hi,
this patch is floating around for almost half a year (2009/06/23) and I was
wondering if there is anything wrong with it, or why it doesn't get merged
upstream.
I know the patch is really trivial and maybe not even worth this email, but in
my opinion every single line counts :)
@James: Do you prefer if Jiri Kosina merges this one through his trivial tree?
Thanks,
Peter
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch 01/19] scsi: add __init/__exit macros to ibmvstgt.c
2009-12-22 7:06 ` Peter Huewe
@ 2009-12-22 16:46 ` James Bottomley
2009-12-22 18:56 ` Andrew Morton
2009-12-31 15:59 ` Bart Van Assche
0 siblings, 2 replies; 5+ messages in thread
From: James Bottomley @ 2009-12-22 16:46 UTC (permalink / raw)
To: Peter Huewe; +Cc: akpm, linux-scsi, fujita.tomonori, sfr, trivial
On Tue, 2009-12-22 at 08:06 +0100, Peter Huewe wrote:
> Am Dienstag 22 Dezember 2009 01:27:38 schrieb akpm@linux-foundation.org:
> > From: Peter Huewe <peterhuewe@gmx.de>
> >
> > Add the __init and __exit macros to the module_init / module_exit
> > functions from drivers/scsi/ibmvscsi/ibmvstgt.c
> >
> > Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
> > Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> > Cc: Stephen Rothwell <sfr@canb.auug.org.au>
> > Cc: James Bottomley <James.Bottomley@SteelEye.com>
> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> > ---
> >
> > drivers/scsi/ibmvscsi/ibmvstgt.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff -puN
> > drivers/scsi/ibmvscsi/ibmvstgt.c~scsi-add-__init-__exit-macros-to-ibmvstgt
> > c drivers/scsi/ibmvscsi/ibmvstgt.c ---
> > a/drivers/scsi/ibmvscsi/ibmvstgt.c~scsi-add-__init-__exit-macros-to-ibmvst
> > gtc +++ a/drivers/scsi/ibmvscsi/ibmvstgt.c
> > @@ -955,7 +955,7 @@ static struct srp_function_template ibmv
> > .it_nexus_response = ibmvstgt_it_nexus_response,
> > };
> >
> > -static int ibmvstgt_init(void)
> > +static int __init ibmvstgt_init(void)
> > {
> > int err = -ENOMEM;
> >
> > @@ -986,7 +986,7 @@ release_transport:
> > return err;
> > }
> >
> > -static void ibmvstgt_exit(void)
> > +static void __exit ibmvstgt_exit(void)
> > {
> > printk("Unregister IBM virtual SCSI driver\n");
> >
> > _
> >
>
> Hi,
>
> this patch is floating around for almost half a year (2009/06/23) and I was
> wondering if there is anything wrong with it, or why it doesn't get merged
> upstream.
well, it still has to be tested. I'd guess IBM is putting out other
fires, since it's really just cosmetic, even in terms of memory savings.
> I know the patch is really trivial and maybe not even worth this email, but in
> my opinion every single line counts :)
Unfortunately, a significant number of problems tend to come via
"trivial" patches, so I'd like someone who knows the driver to look at
it.
> @James: Do you prefer if Jiri Kosina merges this one through his trivial tree?
It's not really my call ... it's Brian's
James
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch 01/19] scsi: add __init/__exit macros to ibmvstgt.c
2009-12-22 16:46 ` James Bottomley
@ 2009-12-22 18:56 ` Andrew Morton
2009-12-31 15:59 ` Bart Van Assche
1 sibling, 0 replies; 5+ messages in thread
From: Andrew Morton @ 2009-12-22 18:56 UTC (permalink / raw)
To: James Bottomley; +Cc: Peter Huewe, linux-scsi, fujita.tomonori, sfr, trivial
On Tue, 22 Dec 2009 10:46:44 -0600 James Bottomley <James.Bottomley@suse.de> wrote:
> >
> > this patch is floating around for almost half a year (2009/06/23) and I was
> > wondering if there is anything wrong with it, or why it doesn't get merged
> > upstream.
>
> well, it still has to be tested. I'd guess IBM is putting out other
> fires, since it's really just cosmetic, even in terms of memory savings.
James, this is pathetic. Why not just read the darned code for eighteen
seconds? You can see that the patch is correct and safe - you don't
have to wait for some rigor-mortis-maintainer to read it for you.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch 01/19] scsi: add __init/__exit macros to ibmvstgt.c
2009-12-22 16:46 ` James Bottomley
2009-12-22 18:56 ` Andrew Morton
@ 2009-12-31 15:59 ` Bart Van Assche
1 sibling, 0 replies; 5+ messages in thread
From: Bart Van Assche @ 2009-12-31 15:59 UTC (permalink / raw)
To: James Bottomley
Cc: Peter Huewe, akpm, linux-scsi, fujita.tomonori, sfr, trivial
On Tue, Dec 22, 2009 at 5:46 PM, James Bottomley
<James.Bottomley@suse.de> wrote:
>
> On Tue, 2009-12-22 at 08:06 +0100, Peter Huewe wrote:
> > Am Dienstag 22 Dezember 2009 01:27:38 schrieb akpm@linux-foundation.org:
> > [ ... ]
> > this patch is floating around for almost half a year (2009/06/23) and I was
> > wondering if there is anything wrong with it, or why it doesn't get merged
> > upstream.
>
> well, it still has to be tested. I'd guess IBM is putting out other
> fires, since it's really just cosmetic, even in terms of memory savings.
I'm not sure that's a valid reason for holding up ibmvscsi patches. If
IBM not having time to retest ibmvscsi was a valid reason for blocking
ibmvscsi patches, then all patches that touch any kernel subsystem
used by ibmvscsi should be rejected. Examples of subsystems used by
ibmvscsi are libsrp and kfifo.
By the way, srp_iu_pool_alloc() in libsrp passes max * sizeof(void *)
to the size argument of kfifo_init(), and kfifo_init() tests the size
argument as follows:
BUG_ON(!is_power_of_2(size));
The function srp_iu_pool_alloc() in libsrp neither verifies that 'max'
is a power of two nor rounds up 'max' to the next power of two.
Doesn't look very good ...
Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-12-31 15:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-22 0:27 [patch 01/19] scsi: add __init/__exit macros to ibmvstgt.c akpm
2009-12-22 7:06 ` Peter Huewe
2009-12-22 16:46 ` James Bottomley
2009-12-22 18:56 ` Andrew Morton
2009-12-31 15:59 ` Bart Van Assche
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).