From: Christof Schmitt <christof.schmitt@de.ibm.com>
To: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [RFC] Set functions for scsi_cmnd result
Date: Mon, 16 Jun 2008 10:58:33 +0200 [thread overview]
Message-ID: <20080616085833.GA7228@schmichrtp.de.ibm.com> (raw)
In-Reply-To: <1213286142.3426.26.camel@localhost.localdomain>
On Thu, Jun 12, 2008 at 10:55:41AM -0500, James Bottomley wrote:
> > --- a/include/scsi/scsi.h 2008-06-10 17:30:49.000000000 +0200
> > +++ b/include/scsi/scsi.h 2008-06-12 11:06:34.000000000 +0200
> > @@ -425,6 +425,16 @@ struct scsi_lun {
> > #define driver_byte(result) (((result) >> 24) & 0xff)
> > #define suggestion(result) (driver_byte(result) & SUGGEST_MASK)
> >
> > +static inline void set_host_byte(int *result, char status)
> > +{
> > + *result |= status << 16;
> > +}
> > +
> > +static inline void set_driver_byte(int *result, char status)
> > +{
> > + *result |= status << 24;
> > +}
> > +
>
> If we're making accessors, it might be better if they took a struct
> scsi_cmnd rather than a pointer to one of its elements. Other than
> that, this looks fine.
Ok. I will update the patch and send it with the next batch of zfcp
patches.
Christof
prev parent reply other threads:[~2008-06-16 8:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-12 9:29 [RFC] Set functions for scsi_cmnd result Christof Schmitt
2008-06-12 15:55 ` James Bottomley
2008-06-16 8:58 ` Christof Schmitt [this message]
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=20080616085833.GA7228@schmichrtp.de.ibm.com \
--to=christof.schmitt@de.ibm.com \
--cc=James.Bottomley@HansenPartnership.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox