net/atm/clip.c: fix PROC_FS=n compile
Subsystems (3)
PATCH 1/1 net/atm/clip.c: fix PROC_FS=n compile
This patch fixes the following compile error with CONFIG_PROC_FS=n by reverting commit dcdb02752ff13a64433c36f2937a58d93ae7a19e:
<-- snip -->
...
CC net/atm/clip.onet/atm/clip.c: In function ‘atm_clip_init’:net/atm/clip.c:975: error: ‘atm_proc_root’ undeclared (first use in this function) net/atm/clip.c:975: error: (Each undeclared identifier is reported only once net/atm/clip.c:975: error: for each function it appears in.) net/atm/clip.c:977: error: ‘arp_seq_fops’ undeclared (first use in this function) make[2]: *** [net/atm/clip.o] Error 1
<-- snip -->
---
net/atm/clip.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)
net/atm/clip.c renamed from net/atm/clip.c.old +9 -4
@@ -962,7 +962,6 @@static int __init atm_clip_init (void ) { -struct proc_dir_entry *p;neigh_table_init_no_netlink (&clip_tbl); clip_tbl_hook = &clip_tbl;
@@ -972,9 +971,15 @@setup_timer (&idle_timer, idle_timer_check,0 ); - p =create_proc_entry ("arp" ,S_IRUGO , atm_proc_root); -if (p) - p->proc_fops = &arp_seq_fops; +#ifdef CONFIG_PROC_FS + { +struct proc_dir_entry *p; + + p =create_proc_entry ("arp" ,S_IRUGO , atm_proc_root); +if (p) + p->proc_fops = &arp_seq_fops; + } +#endif return 0 ; }
From: Adrian Bunk <[email protected]>
Date: Sat, 8 Jul 2006 22:20:01 +0200
Quoted 2 lines
This patch fixes the following compile error with
CONFIG_PROC_FS=nby reverting commitdcdb02752ff13a64433c36f2937a58d93ae7a19e:
Applied, thanks Adrian.