fix bpqether.c compile without CONFIG_PROC_FS
PATCH 1/1 fix bpqether.c compile without CONFIG_PROC_FS
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.odrivers/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:
drivers/net/hamradio/bpqether.c renamed from drivers/net/hamradio/bpqether.c~ +2 -0
@@ -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
Signature · 4 lines
"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 SeedDavid S. Miller
AppliedQuoted 3 lines · On Wed, 27 Aug 2003 09:12:15 +0200 Adrian Bunk <[email protected]> wrote:
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):
Applied, thanks.