Commit 0b8c03e4 authored by David S. Miller's avatar David S. Miller

[LLC]: Make LLC2 compile with PROC_FS=n

parent 3e472e4c
......@@ -88,4 +88,12 @@ extern int llc_build_and_send_ui_pkt(struct llc_sap *sap, struct sk_buff *skb,
extern int llc_station_init(void);
extern void llc_station_exit(void);
#ifdef CONFIG_PROC_FS
extern int llc_proc_init(void);
extern void llc_proc_exit(void);
#else
#define llc_proc_init() (0)
#define llc_proc_exit() do { } while(0)
#endif /* CONFIG_PROC_FS */
#endif /* LLC_H */
#ifndef LLC_PROC_H
#define LLC_PROC_H
/*
* Copyright (c) 1997 by Procom Technology, Inc.
* 2002 by Arnaldo Carvalho de Melo <acme@conectiva.com.br>
*
* This program can be redistributed or modified under the terms of the
* GNU General Public License as published by the Free Software Foundation.
* This program is distributed without any warranty or implied warranty
* of merchantability or fitness for a particular purpose.
*
* See the GNU General Public License for more details.
*/
extern int llc_proc_init(void);
extern void llc_proc_exit(void);
#endif /* LLC_PROC_H */
......@@ -30,7 +30,6 @@
#include <net/llc_sap.h>
#include <net/llc_pdu.h>
#include <net/llc_conn.h>
#include <net/llc_proc.h>
/* remember: uninitialized global data is zeroed because its in .bss */
static u16 llc_ui_sap_last_autoport = LLC_SAP_DYN_START;
......
......@@ -14,7 +14,6 @@
#include <linux/config.h>
#include <linux/init.h>
#ifdef CONFIG_PROC_FS
#include <linux/kernel.h>
#include <linux/proc_fs.h>
#include <linux/errno.h>
......@@ -273,13 +272,3 @@ void llc_proc_exit(void)
remove_proc_entry("core", llc_proc_dir);
remove_proc_entry("llc", proc_net);
}
#else /* CONFIG_PROC_FS */
int __init llc_proc_init(void)
{
return 0;
}
void llc_proc_exit(void)
{
}
#endif /* CONFIG_PROC_FS */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment