[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070914033216.858d12e0.akpm@linux-foundation.org>
Date: Fri, 14 Sep 2007 03:32:16 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: linux-box <bo.yang@....com>
Cc: linux-scsi@...r.kernel.org, James.Bottomley@...elEye.com,
linux-kernel@...r.kernel.org, sumant.patro@....com
Subject: Re: [PATCH 3/4] scsi: megaraid_sas - add module param max_sectors,
cmd_per_lun
On Tue, 11 Sep 2007 08:34:33 -0400 linux-box <bo.yang@....com> wrote:
> + struct megasas_instance *instance =
> + (struct megasas_instance *)host->hostdata;
y'know, if some brave soul were to write
static inline void *scsi_host_data(struct Scsi_Host *host)
{
return (void *)host->hostdata;
}
we could remove about 100000000000 ugly casts from scsi.
Just a thought...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists