From: Christoph Hellwig <hch@infradead.org>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Christoph Hellwig <hch@infradead.org>,
linux-scsi@vger.kernel.org,
James Bottomley <James.Bottomley@steeleye.com>
Subject: Re: [PATCH 3/3] tmscsim: Remove the last bus_to_virt()
Date: Sun, 6 May 2007 12:23:39 +0100 [thread overview]
Message-ID: <20070506112339.GB1597@infradead.org> (raw)
In-Reply-To: <Pine.LNX.4.60.0705060052100.9593@poirot.grange>
On Sun, May 06, 2007 at 01:06:51AM +0200, Guennadi Liakhovetski wrote:
> On Sat, 5 May 2007, Christoph Hellwig wrote:
>
> > On Fri, May 04, 2007 at 11:00:49PM +0200, Guennadi Liakhovetski wrote:
> > > Dynamically map the buffer for PIO for the residue byte.
> >
> > This look okay. Btw, is there a chance you could run tmscsim.c
> > through scripts/Lindent before your next round of bigger changes?
>
> Well, I just did that - ran tmscsim.[ch] through Lindent... A couple of
> things I wouldn't do there. Like:
Lindent is not perfect unfortunately and usually needs some
hand tuning. It does very strange placement of goto labels, breaks
lines unfortunate when they are too long, etc.
> -static int tmscsim[] = {-2, -2, -2, -2, -2, -2};
> +static int tmscsim[] = { -2, -2, -2, -2, -2, -2 };
>
> (why extra spaces?)
Normal style is to have braces around literal numbers. I don't care
about whether we have it for a case like this or not.
>
> - ptr[EE_ADAPT_SCSI_ID] = (u8)tmscsim[0]; /* Adapter ID */
> + ptr[EE_ADAPT_SCSI_ID] = (u8) tmscsim[0]; /* Adapter ID */
>
> (ditto)
I preer to not having the space here, but lots of other kernel developers
like it.
> -MODULE_DESCRIPTION("SCSI host adapter driver for Tekram DC390 and other AMD53C974A based PCI SCSI adapters");
> +MODULE_DESCRIPTION
> + ("SCSI host adapter driver for Tekram DC390 and other AMD53C974A based PCI SCSI adapters");
>
> (doesn't look nice. Would be better to split into two strings?)
The script doesn't know enough C to be able to split a string. Splitting
it manyally would be nicer.
> +static void dc390_Command_0(struct dc390_acb *pACB, struct dc390_srb *pSRB,
> + u8 * psstatus);
Does it really leave the space after the '*'? Odd.
prev parent reply other threads:[~2007-05-06 11:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-04 21:00 [PATCH 3/3] tmscsim: Remove the last bus_to_virt() Guennadi Liakhovetski
2007-05-05 9:38 ` Christoph Hellwig
2007-05-05 21:19 ` Guennadi Liakhovetski
2007-05-05 23:06 ` Guennadi Liakhovetski
2007-05-06 11:23 ` Christoph Hellwig [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=20070506112339.GB1597@infradead.org \
--to=hch@infradead.org \
--cc=James.Bottomley@steeleye.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox