* [PATCH] missing gendisk initialization in cpqarray.c (Linux-2.2.20)
@ 2001-12-02 18:17 Andreas Haumer
2001-12-02 19:00 ` Alan Cox
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Haumer @ 2001-12-02 18:17 UTC (permalink / raw)
To: arrays; +Cc: linux-kernel
Hi!
The following patch adds code to initialize gendisk.fops
in cpqarray.c. It's needed to avoid a kernel warning message
when using devfs with the Compaq RAID Controller.
--- linux-2.2.20/drivers/block/cpqarray.c Fri Nov 2 17:39:06
2001
+++ linux/drivers/block/cpqarray.c Sun Dec 2 19:05:11 2001
@@ -513,6 +513,7 @@
ida_gendisk[i].init = ida_geninit;
ida_gendisk[i].part = ida + (i*256);
ida_gendisk[i].sizes = ida_sizes + (i*256);
+ ida_gendisk[i].fops = &ida_fops;
/* ida_gendisk[i].nr_real is handled by getgeometry */
blk_dev[MAJOR_NR+i].request_fn = request_fns[i];
HTH
- andreas
--
Andreas Haumer | mailto:andreas@xss.co.at
*x Software + Systeme | http://www.xss.co.at/
Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0
A-1100 Vienna, Austria | Fax: +43-1-6060114-71
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] missing gendisk initialization in cpqarray.c (Linux-2.2.20)
2001-12-02 18:17 [PATCH] missing gendisk initialization in cpqarray.c (Linux-2.2.20) Andreas Haumer
@ 2001-12-02 19:00 ` Alan Cox
2001-12-02 19:11 ` Andreas Haumer
0 siblings, 1 reply; 3+ messages in thread
From: Alan Cox @ 2001-12-02 19:00 UTC (permalink / raw)
To: Andreas Haumer; +Cc: arrays, linux-kernel
> The following patch adds code to initialize gendisk.fops
> in cpqarray.c. It's needed to avoid a kernel warning message
> when using devfs with the Compaq RAID Controller.
>
> --- linux-2.2.20/drivers/block/cpqarray.c Fri Nov 2 17:39:06
> 2001
Im confused. Linux 2.2 doesn't include devfs. This patch therefore seems
nonsense
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] missing gendisk initialization in cpqarray.c (Linux-2.2.20)
2001-12-02 19:00 ` Alan Cox
@ 2001-12-02 19:11 ` Andreas Haumer
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Haumer @ 2001-12-02 19:11 UTC (permalink / raw)
To: Alan Cox; +Cc: arrays, linux-kernel, rgooch
Alan Cox wrote:
>
> > The following patch adds code to initialize gendisk.fops
> > in cpqarray.c. It's needed to avoid a kernel warning message
> > when using devfs with the Compaq RAID Controller.
> >
> > --- linux-2.2.20/drivers/block/cpqarray.c Fri Nov 2 17:39:06
> > 2001
>
> Im confused. Linux 2.2 doesn't include devfs. This patch therefore seems
> nonsense
Hm, ok...
Then this patch (and the one for cciss.c) should better
go to Richard for inclusion in the 2.2.20 devfs patch?
Regards,
- andreas
--
Andreas Haumer | mailto:andreas@xss.co.at
*x Software + Systeme | http://www.xss.co.at/
Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0
A-1100 Vienna, Austria | Fax: +43-1-6060114-71
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-12-02 19:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-02 18:17 [PATCH] missing gendisk initialization in cpqarray.c (Linux-2.2.20) Andreas Haumer
2001-12-02 19:00 ` Alan Cox
2001-12-02 19:11 ` Andreas Haumer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox