From: Jeff Garzik <jeff@garzik.org>
To: Eric Moore <eric.moore@lsi.com>
Cc: linux-scsi@vger.kernel.org, James.Bottomley@SteelEye.com
Subject: Re: [PATCH] - export scsilun_to_int
Date: Thu, 01 Feb 2007 12:35:12 -0500 [thread overview]
Message-ID: <45C224D0.7080407@garzik.org> (raw)
In-Reply-To: <20070201172442.GA8322@lsil.com>
Eric Moore wrote:
> On Wednesday, January 31, 2007 6:52 PM, James Bottomley wrote:
>> what's wrong with
>>
>> memcmp(lun1->scsi_lun, lun2->scsi_lun, 8)
>>
>> rather than introducing a wrapper? The compiler can even optimise
>> memcmp for a fixed size nicely.
>>
>> James
>>
>
>
> Changed to using memcmp. This replaces the prevous patch.
>
>
> Signed-off-by: Eric Moore <Eric.Moore@lsi.com>
IMO a wrapper is better.
memcmp() is not type-safe nor type-aware, and we have already created a
type for SCSI LUNs.
Jeff
next prev parent reply other threads:[~2007-02-01 17:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-01 17:24 [PATCH] - export scsilun_to_int Eric Moore
2007-02-01 17:35 ` Jeff Garzik [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-01-31 22:54 Eric Moore
2007-02-01 1:51 ` James Bottomley
2007-02-01 8:35 ` Jeff Garzik
2007-01-31 19:44 Moore, Eric
2007-01-31 20:48 ` James Bottomley
2007-01-29 16:40 Eric Moore
2007-01-31 17:01 ` James Bottomley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45C224D0.7080407@garzik.org \
--to=jeff@garzik.org \
--cc=James.Bottomley@SteelEye.com \
--cc=eric.moore@lsi.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.