lkml.org 
[lkml]   [2000]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [Patch] Cleanup struct gendisk registration, 2.3.40-pre1



On Fri, 14 Jan 2000, Andre Hedrick wrote:

>
> make[4]: Entering directory `/usr/local/src/linux-2.3.40-4/drivers/block'
> gcc -D__KERNEL__ -I/linux/include -D__SMP__ -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -pipe -fno-strength-reduce -DCPU=686 -march=i686
> -DEXPORT_SYMTAB -c ide.c
> ide.c:553: warning: `struct ide_hwif_t' declared inside parameter list
> ide.c:553: warning: its scope is only this definition or declaration,
> ide.c:553: warning: which is probably not what you want.
> ide.c: In function `ide_geninit':
> ide.c:556: dereferencing pointer to incomplete type
> ide.c:559: dereferencing pointer to incomplete type
> ide.c: In function `get_info_ptr':
> ide.c:1629: warning: unused variable `minor'
> ide.c: In function `ide_init':
> ide.c:3497: warning: passing arg 1 of `ide_geninit' from incompatible
> pointer type

Crrraaaap... Pre-compile patch disease. The only change between that and
final was removing bogus 'struct' from "void ide_geninit(struct ide_hwif_t
*hwif)". <diffing the patches> Yep.
@@ -614,7 +614,7 @@
+ * ide_geninit() is called exactly *once* for each interface.
*/
-void ide_geninit (struct gendisk *gd)
-+void ide_geninit (struct ide_hwif_t *hwif)
++void ide_geninit (ide_hwif_t *hwif)
{
unsigned int unit;
- ide_hwif_t *hwif = gd->real_devices;
Ooops. Sorry about that, folks. I'm really need more coffee...
Al


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.212 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site