From: "Randy.Dunlap" <rddunlap@osdl.org>
To: Jesper Juhl <juhl-lkml@dif.dk>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
Achim Leubner <achim_leubner@adaptec.com>,
Boji Tony Kannanthanam <boji.t.kannanthanam@intel.com>,
Johannes Dinner <johannes_dinner@adaptec.com>,
linux-scsi@vger.kernel.org
Subject: Re: shouldn't "irq" be module_param_array instead of module_param in scsi/gdth.c ?
Date: Sun, 30 Jan 2005 09:01:11 -0800 [thread overview]
Message-ID: <41FD12D7.90108@osdl.org> (raw)
In-Reply-To: <Pine.LNX.4.62.0501301805390.2731@dragon.hygekrogen.localhost>
Jesper Juhl wrote:
> On Sun, 30 Jan 2005, Randy.Dunlap wrote:
>
>
>>Jesper Juhl wrote:
>>
>>>This little warning made me take a closer look : drivers/scsi/gdth.c:645:
>>>warning: return from incompatible pointer type
>>>
>>>And line 645 looks like this :
>>>
>>>module_param(irq, int, 0);
>>>
>>>looking a bit up in the file I find :
>>>
>>>/* IRQ list for GDT3000/3020 EISA controllers */
>>>static int irq[MAXHA] __initdata =
>>>{0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
>>> 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff};
>>>
>>>That certainly looks like an array to me, so I'm wondering if something like
>>>this patch would be correct? I'm not familliar enough with module_param* to
>>>be completely confident, but this silences the warning.
>>>
>>>Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
>>>
>>>--- linux-2.6.11-rc2-bk7-orig/drivers/scsi/gdth.c 2005-01-22
>>>21:59:46.000000000 +0100
>>>+++ linux-2.6.11-rc2-bk7/drivers/scsi/gdth.c 2005-01-30 16:52:45.000000000
>>>+0100
>>>@@ -642,7 +642,7 @@ static int probe_eisa_isa = 0;
>>> static int force_dma32 = 0;
>>> /* parameters for modprobe/insmod */
>>>-module_param(irq, int, 0);
>>>+module_param_array(irq, int, NULL, 0);
>>> module_param(disable, int, 0);
>>> module_param(reserve_mode, int, 0);
>>> module_param_array(reserve_list, int, NULL, 0);
>>
>>Yep, same as:
>>http://marc.theaimsgroup.com/?l=linux-scsi&m=110540330511653&w=2
>>
>
> Ohh, I was not aware of that patch, guess I should have searched the
> archives before posting. Thank you for the info.
Or I should have added to my reply:
Acked-by: Randy Dunlap <rddunlap@osdl.org> 8:}
--
~Randy
prev parent reply other threads:[~2005-01-30 17:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-30 16:01 shouldn't "irq" be module_param_array instead of module_param in scsi/gdth.c ? Jesper Juhl
2005-01-30 16:48 ` Randy.Dunlap
2005-01-30 17:06 ` Jesper Juhl
2005-01-30 17:01 ` Randy.Dunlap [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=41FD12D7.90108@osdl.org \
--to=rddunlap@osdl.org \
--cc=achim_leubner@adaptec.com \
--cc=boji.t.kannanthanam@intel.com \
--cc=johannes_dinner@adaptec.com \
--cc=juhl-lkml@dif.dk \
--cc=linux-kernel@vger.kernel.org \
--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