From: Andreas Haumer <andreas@xss.co.at>
To: arrays@compaq.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] missing gendisk initialization in cpqarray.c (Linux-2.2.20)
Date: Sun, 02 Dec 2001 19:17:04 +0100 [thread overview]
Message-ID: <3C0A7020.C177BEA8@xss.co.at> (raw)
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
next reply other threads:[~2001-12-02 18:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-02 18:17 Andreas Haumer [this message]
2001-12-02 19:00 ` [PATCH] missing gendisk initialization in cpqarray.c (Linux-2.2.20) Alan Cox
2001-12-02 19:11 ` Andreas Haumer
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=3C0A7020.C177BEA8@xss.co.at \
--to=andreas@xss.co.at \
--cc=arrays@compaq.com \
--cc=linux-kernel@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.