* [PATCH] Fix section mismatch in the Adaptec DPT SCSI Raid driver
@ 2007-08-17 20:51 Joe Korty
2007-08-17 21:18 ` Andrew Morton
0 siblings, 1 reply; 3+ messages in thread
From: Joe Korty @ 2007-08-17 20:51 UTC (permalink / raw)
To: akpm; +Cc: aacraid, linux-scsi, linux-kernel
Fix section mismatch in the Adaptec DPT SCSI Raid driver.
Signed-off-by: Joe Korty <joe.korty@ccur.com>
Index: 2.6.23-rc3-git1/drivers/scsi/dpt_i2o.c
===================================================================
--- 2.6.23-rc3-git1.orig/drivers/scsi/dpt_i2o.c 2007-08-17 16:36:05.000000000 -0400
+++ 2.6.23-rc3-git1/drivers/scsi/dpt_i2o.c 2007-08-17 16:50:13.000000000 -0400
@@ -3351,7 +3351,7 @@
return count > 0 ? 0 : -ENODEV;
}
-static void __exit adpt_exit(void)
+static void adpt_exit(void)
{
while (hba_chain)
adpt_release(hba_chain);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix section mismatch in the Adaptec DPT SCSI Raid driver
2007-08-17 20:51 [PATCH] Fix section mismatch in the Adaptec DPT SCSI Raid driver Joe Korty
@ 2007-08-17 21:18 ` Andrew Morton
2007-08-17 23:01 ` Joe Korty
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2007-08-17 21:18 UTC (permalink / raw)
To: Joe Korty; +Cc: aacraid, linux-scsi, linux-kernel
On Fri, 17 Aug 2007 16:51:15 -0400
Joe Korty <joe.korty@ccur.com> wrote:
> Fix section mismatch in the Adaptec DPT SCSI Raid driver.
>
> Signed-off-by: Joe Korty <joe.korty@ccur.com>
>
> Index: 2.6.23-rc3-git1/drivers/scsi/dpt_i2o.c
> ===================================================================
> --- 2.6.23-rc3-git1.orig/drivers/scsi/dpt_i2o.c 2007-08-17 16:36:05.000000000 -0400
> +++ 2.6.23-rc3-git1/drivers/scsi/dpt_i2o.c 2007-08-17 16:50:13.000000000 -0400
> @@ -3351,7 +3351,7 @@
> return count > 0 ? 0 : -ENODEV;
> }
>
> -static void __exit adpt_exit(void)
> +static void adpt_exit(void)
> {
> while (hba_chain)
> adpt_release(hba_chain);
Please always provide at least a copy of the error message when providing
patches which fix warnings, or build errors, or section mismatches.
For section mismatches, an analysis of what caused the problem would help,
too. It saves others from having to do the same thing.
In this case, I'd need to see what error is being fixed so that I can judge
the seriousness of the problem. In this case I don't _think_ it'll be
terribly serious because iirc most architectures don't free exitcall memory.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix section mismatch in the Adaptec DPT SCSI Raid driver
2007-08-17 21:18 ` Andrew Morton
@ 2007-08-17 23:01 ` Joe Korty
0 siblings, 0 replies; 3+ messages in thread
From: Joe Korty @ 2007-08-17 23:01 UTC (permalink / raw)
To: Andrew Morton, Matthew Wilcox; +Cc: aacraid, linux-scsi, linux-kernel
On Fri, Aug 17, 2007 at 02:18:56PM -0700, Andrew Morton wrote:
> Please always provide at least a copy of the error message when providing
> patches which fix warnings, or build errors, or section mismatches.
>
> For section mismatches, an analysis of what caused the problem would help,
> too. It saves others from having to do the same thing.
>
> In this case, I'd need to see what error is being fixed so that I can judge
> the seriousness of the problem. In this case I don't _think_ it'll be
> terribly serious because iirc most architectures don't free exitcall memory.
Fix section mismatch in the Adaptec DPT SCSI Raid driver.
WARNING: vmlinux.o(.init.text+0x1fcd2): Section mismatch:
reference to .exit.text:adpt_exit (between 'adpt_init' and 'ahc_linux_init')
This warning is due to adaptec device detection calling the exit routine
on failure to properly register the adaptec device.
The exit routine + call was added on July 30 by
Commit: 55d9fcf57ba5ec427544fca7abc335cf3da78160
Author: Matthew Wilcox
Subject: [SCSI] dpt_i2o: convert to SCSI hotplug model.
Mathew: isn't a module exit routine a little too strong to be calling
on the failure of a single device? Module exit implies that other,
non-failing adaptec raid devices will also get shut down.
Signed-off-by: Joe Korty <joe.korty@ccur.com>
Index: 2.6.23-rc3-git1/drivers/scsi/dpt_i2o.c
===================================================================
--- 2.6.23-rc3-git1.orig/drivers/scsi/dpt_i2o.c 2007-08-17 16:36:05.000000000 -0400
+++ 2.6.23-rc3-git1/drivers/scsi/dpt_i2o.c 2007-08-17 16:50:13.000000000 -0400
@@ -3351,7 +3351,7 @@
return count > 0 ? 0 : -ENODEV;
}
-static void __exit adpt_exit(void)
+static void adpt_exit(void)
{
while (hba_chain)
adpt_release(hba_chain);
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-08-17 23:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-17 20:51 [PATCH] Fix section mismatch in the Adaptec DPT SCSI Raid driver Joe Korty
2007-08-17 21:18 ` Andrew Morton
2007-08-17 23:01 ` Joe Korty
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox