From: Christoph Hellwig <hch@lst.de>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Christoph Hellwig <hch@lst.de>, linux-scsi@vger.kernel.org
Subject: Re: [PATCH] kill obsolete typedefs and wrappers from tmscsim
Date: Fri, 25 Jun 2004 11:50:22 +0200 [thread overview]
Message-ID: <20040625095022.GA28822@lst.de> (raw)
In-Reply-To: <Pine.LNX.4.60.0406242247500.4258@poirot.grange>
On Fri, Jun 25, 2004 at 12:44:56AM +0200, Guennadi Liakhovetski wrote:
> Why don't we remove all UCHAR / USHORT / UINT / ULONG... types altogether?
One thing at a time, the patch is already huge enough.
> PUCHAR == (UCHAR*), and you replace PUCHAR with (u8*), although it is not
> obvious, that UCHAR == u8... I know, many scsi (at least) drivers use
> them, and each of them defines them itself, but... As well as all those
> PACB, PSRB, PDCB,...
That'll happen sooner or later :)
> >- ptr = (PSCSI_INQDATA) (pcmd->request_buffer);
> >- if( pcmd->use_sg )
> >- ptr = (PSCSI_INQDATA) (page_address(((PSGL) ptr)->page) + ((PSGL)
> >ptr)->offset);
> >+ if (pcmd->use_sg) {
> >+ ptr2 = (struct scatterlist *) ptr;
> >+ ptr = (PSCSI_INQDATA) (page_address(ptr2->page) + ptr2->offset);
> >+ } else
> >+ ptr = (PSCSI_INQDATA) (pcmd->request_buffer);
> >
> > DEBUG0(printk (" SRBdone (%02x,%08x), SRB %p, pid %li\n", status,
> > pcmd->result,\
> > pSRB, pcmd->pid));
>
> This seems a typo (ptr uninitialised).
Indeed, thanks. I wonder why gcc didn't spit a warning.
> Attaching a new, extended, and, hopefully, fixed version of your patch.
> Please, have a look. I think, it is better to push all this cleanup as a
> single patch, even though it looks horribly big... It compiles, will
> run-test tomorrow (well, already today, but in about 20 hours).
We hsould probably call the types dc390_acb and dc390_dcb instead of the
shouting names? Or maybe even better dc390_hba and dc390_lun so the
names are descriptive?
next prev parent reply other threads:[~2004-06-25 9:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-24 8:15 [PATCH] kill obsolete typedefs and wrappers from tmscsim Christoph Hellwig
2004-06-24 22:44 ` Guennadi Liakhovetski
2004-06-25 9:50 ` Christoph Hellwig [this message]
2004-06-25 19:42 ` Guennadi Liakhovetski
2004-06-26 11:17 ` Christoph Hellwig
2004-06-26 22:32 ` Guennadi Liakhovetski
2004-07-04 21:37 ` Guennadi Liakhovetski
2004-07-19 20:09 ` Guennadi Liakhovetski
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=20040625095022.GA28822@lst.de \
--to=hch@lst.de \
--cc=g.liakhovetski@gmx.de \
--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.