Skip to content

Commit

Permalink
[ATM] net/atm/clip.c: fix PROC_FS=n compile
Browse files Browse the repository at this point in the history
This patch fixes the following compile error with CONFIG_PROC_FS=n by 
reverting commit dcdb027:

<--  snip  -->

...
  CC      net/atm/clip.o
net/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  -->

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Adrian Bunk authored and David S. Miller committed Jul 9, 2006
1 parent ebbaeab commit 2478173
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions net/atm/clip.c
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,6 @@ static struct file_operations arp_seq_fops = {

static int __init atm_clip_init(void)
{
struct proc_dir_entry *p;
neigh_table_init_no_netlink(&clip_tbl);

clip_tbl_hook = &clip_tbl;
Expand All @@ -972,9 +971,15 @@ static int __init atm_clip_init(void)

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;
}
Expand Down

0 comments on commit 2478173

Please sign in to comment.