[2.6 patch] fix bpqether.c compile without CONFIG_PROC_FS

From: Adrian Bunk (bunk_at_fs.tum.de)
Date: 08/27/03

  • Next message: William Lee Irwin III: "Re: [PATCH] 2.6.0-test4 -- add context switch counters"
    Date:	Wed, 27 Aug 2003 09:12:15 +0200
    To: Joerg Reuter DL1BKE <jreuter@yaina.de>
    
    

    I got the following compile error when trying to compile 2.6.0-test4-mm1
    without CONFIG_PROC_FS (but this problem is most likely not limited to
    -mm):

    <-- snip -->

    ...
      CC drivers/net/hamradio/bpqether.o
    drivers/net/hamradio/bpqether.c: In function `bpq_init_driver':
    drivers/net/hamradio/bpqether.c:608: parse error before `do'
    ...
    make[3]: *** [drivers/net/hamradio/bpqether.o] Error 1

    <-- snip -->

    It seems something like the following patch is needed:

    --- linux-2.6.0-test4-mm1/drivers/net/hamradio/bpqether.c~ 2003-08-23 01:55:31.000000000 +0200
    +++ linux-2.6.0-test4-mm1/drivers/net/hamradio/bpqether.c 2003-08-27 09:00:04.000000000 +0200
    @@ -605,6 +605,7 @@
     
             printk(banner);
     
    +#ifdef CONFIG_PROC_FS
             if (!proc_net_fops_create("bpqether", S_IRUGO, &bpq_info_fops)) {
                     printk(KERN_ERR
                             "bpq: cannot create /proc/net/bpqether entry.\n");
    @@ -612,6 +613,7 @@
                     dev_remove_pack(&bpq_packet_type);
                     return -ENOENT;
             }
    +#endif /* CONFIG_PROC_FS */
     
             rtnl_lock();
             for (dev = dev_base; dev != NULL; dev = dev->next) {

    cu
    Adrian

    -- 
           "Is there not promise of rain?" Ling Tan asked suddenly out
            of the darkness. There had been need of rain for many days.
           "Only a promise," Lao Er said.
                                           Pearl S. Buck - Dragon Seed
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: William Lee Irwin III: "Re: [PATCH] 2.6.0-test4 -- add context switch counters"

    Relevant Pages

    • 2.6: SCSI advansys.c doesnt compilefor !PCI
      ... I got the following compile error in 2.6.6-mm1 (but it doesn't seem to ... There had been need of rain for many days. ... "Only a promise," Lao Er said. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • 2.6.4-mjb1: ivtv-driver compile error
      ... ported to 2.6 by Steven Fuerst ... I got the following compile error, it might be caused by the fact that ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [patch] 2.6.0-test11-mm1: isdn/eicon/eicon_mod.c doesnt compile
      ... I got the following compile error in 2.6.0-test11-mm1: ... There had been need of rain for many days. ... Pearl S. Buck - Dragon Seed ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.13-rc2-mm2
      ... Although it's not mentioned in the changelog, it seems the MTD GIT tree ... I noticed this because a compile error that was fixed in -mm1 is back. ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • 2.6.7-mm2: compile error SCHED_SMT + NUMA + gcc 2.95
      ... I'm getting the following compile error in 2.6.7-mm2 with SCHED_SMT=y ... and NUMA=y when using gcc 2.95: ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)