From: Christoph Hellwig <hch@infradead.org>
To: Markus Lidel <Markus.Lidel@shadowconnect.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: I2O enhancement for Adaptec management software
Date: Mon, 5 Apr 2004 11:18:43 +0100 [thread overview]
Message-ID: <20040405111843.B4077@infradead.org> (raw)
In-Reply-To: <40712A47.4090903@shadowconnect.com>; from Markus.Lidel@shadowconnect.com on Mon, Apr 05, 2004 at 11:43:35AM +0200
> --- a/drivers/message/i2o/i2o_config.c 2004-02-18 04:59:26.000000000 +0100
> +++ b/drivers/message/i2o/i2o_config.c 2004-03-03 17:14:38.035056342 +0100
> @@ -5,21 +5,24 @@
> *
> * Written by Alan Cox, Building Number Three Ltd
> *
> - * Modified 04/20/1999 by Deepak Saxena
> - * - Added basic ioctl() support
> - * Modified 06/07/1999 by Deepak Saxena
> - * - Added software download ioctl (still testing)
> - * Modified 09/10/1999 by Auvo Häkkinen
> - * - Changes to i2o_cfg_reply(), ioctl_parms()
> - * - Added ioct_validate()
Please separate gratious reformating from the actual patch.
> +static int ioctl_passthru(unsigned long arg)
> +{
> + /* FIX: we have to move it to i2o.h, but don't know if it's already
> + * defined there. so we make it quick and dirty.
> + */
> + #define MAX_MESSAGE_SIZE (128)
> + #define REPLY_FRAME_SIZE (17)
> + #define SG_TABLESIZE (30)
Well, for a kernel submission I'd suggest to move them where they belong.
> + c=i2o_find_controller(cmd->iop);
> + if(c == NULL)
> + return -ENXIO;
Codingstyle looks rather strange here and in a few other places.
Should be more like:
c = i2o_find_controller(cmd->iop);
if (!c)
return -ENXIO;
etc..
> + get_user(reply_size, &user_reply[0]);
You need to check the return value here.
Could you also please try to work out all the 64bit issues first?
-
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
next prev parent reply other threads:[~2004-04-05 10:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-05 9:43 I2O enhancement for Adaptec management software Markus Lidel
2004-04-05 10:02 ` Arjan van de Ven
2004-04-05 10:05 ` Christoph Hellwig
2004-04-05 10:10 ` Arjan van de Ven
2004-04-05 10:12 ` Christoph Hellwig
2004-04-07 21:10 ` James Bottomley
2004-04-08 9:27 ` Markus Lidel
2004-04-08 12:29 ` James Bottomley
2004-04-08 13:14 ` Markus Lidel
2004-04-23 8:31 ` Markus Lidel
2004-04-05 10:18 ` Christoph Hellwig [this message]
2004-04-05 10:37 ` Markus Lidel
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=20040405111843.B4077@infradead.org \
--to=hch@infradead.org \
--cc=Markus.Lidel@shadowconnect.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