pdc4030: return needs value; function needs return;
PATCH 1/1 pdc4030: return needs value; function needs return;
Hi,
Please apply to 2.6.0-test5.
--
~Randy
drivers/ide/legacy/pdc4030.c renamed from drivers/ide/legacy/pdc4030.c~clean +2 -2
@@ -304,7 +304,7 @@ int __init ide_probe_for_pdc4030(void)#ifndef MODULE if (enable_promise_support ==0 ) -return ; +return 0 ;#endif for (index =0 ; index <MAX_HWIFS ; index++) {
@@ -317,7 +317,7 @@ int __init ide_probe_for_pdc4030(void)#endif } } -#ifdef MODULE +#ifndef MODULE return 0 ;#endif }
Hi,
drivers/ide/legacy/pdc4030.c int __init ide_probe_for_pdc4030(void) · line 323
Quoted 9 lines · Randy.Dunlap
drivers/ide/legacy/pdc4030.c renamed from drivers/ide/legacy/pdc4030.c~clean +1
-1@@ -317,7 +317,7 @@ int __init ide_probe_for_pdc4030(void)#endif } } -#ifdef MODULE +#ifndef MODULE return 0 ;#endif }
This is wrong, we will now get warning for module instead of built-in. Proper fix is to remove this #ifdef.
--bartlomiej
On Wed, 10 Sep 2003 03:14:26 +0200 Bartlomiej Zolnierkiewicz <[email protected]> wrote:
| | Hi, | | On Wednesday 10 of September 2003 01:54, Randy.Dunlap wrote: | > @@ -317,7 +317,7 @@ int __init ide_probe_for_pdc4030(void) | > #endif | > } | > } | > -#ifdef MODULE | > +#ifndef MODULE | > return 0; | > #endif | > } | | This is wrong, we will now get warning for module instead of built-in. | Proper fix is to remove this #ifdef.
Yes, sorry about that.
Here's the corrected patch for 2.6.0-test5.
--
~Randy
patch_name: pdc4030_returns.patchpatch_version: 2003-09-09.21:27:28
author: Randy.Dunlap <[email protected]>
description: return needs a value; function needs a return;
product: Linuxproduct_versions: 260-test5
maintainer: [email protected]
diffstat: =
drivers/ide/legacy/pdc4030.c | 4 +--- 1 files changed, 1 insertion(+), 3 deletions(-)
drivers/ide/legacy/pdc4030.c renamed from drivers/ide/legacy/pdc4030.c~pdcleg +1 -3
@@ -304,7 +304,7 @@#ifndef MODULE if (enable_promise_support ==0 ) -return ; +return 0 ;#endif for (index =0 ; index <MAX_HWIFS ; index++) {
@@ -317,9 +317,7 @@#endif } } -#ifdef MODULE return 0 ; -#endif } static void __exit release_pdc4030(ide_hwif_t *hwif, ide_hwif_t *mate)