[lkml]   [2000]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    SubjectCompile error in drivers/ide/osb4.c in 240-t10p6
    <ugh> Forgot to cc linux-kernel


    I get the following error when trying to compile 2.4.0-test10pre6
    without procfs support:

    drivers/ide/osb4.c: In function `pci_init_osb4':
    drivers/ide/osb4.c:264: `osb4_revision' undeclared (first use in this function)
    drivers/ide/osb4.c:264: (Each undeclared identifier is reported only once
    drivers/ide/osb4.c:264: for each function it appears in.)
    make: *** [drivers/ide/osb4.o] Error 1

    The variable, osb4_revision, is inside a #ifdef CONFIG_PROC_FS block but
    I was not able to discern if the line where it is referred should be
    #ifdef'ed also. The following patch moves the variable declaration out-
    side the #ifdef block, as a blind guess...

    --- linux-240-t10p6-clean/drivers/ide/osb4.c Sun Oct 29 09:51:10 2000
    +++ linux/drivers/ide/osb4.c Sun Oct 29 13:55:23 2000
    @@ -56,11 +56,12 @@


    +static byte osb4_revision = 0;
    #if defined(DISPLAY_OSB4_TIMINGS) && defined(CONFIG_PROC_FS)
    #include <linux/stat.h>
    #include <linux/proc_fs.h>

    -static byte osb4_revision = 0;
    static struct pci_dev *bmide_dev;

    static int osb4_get_info(char *, char **, off_t, int, int);

    There are two major products that come out of Berkeley: LSD and UNIX. We
    don't believe this to be a coincidence. -- Jeremy S. Anderson

    ----- End forwarded message -----

    First snow, then silence.
    This thousand dollar screen dies
    so beautifully. --- Error messages in haiku
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 12:45    [W:0.031 / U:7.592 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site