[lkml]   [2004]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] tiny patch to kill warning in drivers/ide/ide.c
    On Wed, 9 Jun 2004, Andreas Dilger wrote:

    > On Jun 09, 2004 03:38 +0200, Jesper Juhl wrote:
    > > drivers/ide/ide.c: In function `ide_unregister_subdriver':
    > > drivers/ide/ide.c:2216: warning: implicit declaration of function
    > `pnpide_init'
    > >
    > > I added a simple declaration of pnpide_init to drivers/ide/ide.c
    > >
    > > Here's a patch against 2.6.7-rc3 - please consider including it (or if
    > > that's not the way to do it, then don't) :)
    > Better to add the declaration into a header like linux/ide.h that is
    > included into both ide.c and ide-pnp.c so that when/if pnpide_init()
    > ever changes its prototype you will get a warning during compilation.
    > The only good reason to have declarations within .c files is for forward
    > declarations of functions only used in the same file.

    That makes perfect sense. I actually considered making a header for it,
    but since it would contain only a single declaration I abandoned that - I
    see now that I should have done that in any case to avoid stuff becomming
    out of sync.

    Would you like an updated patch ?

    Jesper Juhl <>

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:03    [W:0.022 / U:14.208 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site