Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
67ef59de
Commit
67ef59de
authored
Jul 28, 2003
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[VLAN]: Convert VLAN procfs stubs to no-ops.
parent
4bf6c3e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
32 deletions
+16
-32
net/8021q/Makefile
net/8021q/Makefile
+6
-1
net/8021q/vlanproc.c
net/8021q/vlanproc.c
+0
-31
net/8021q/vlanproc.h
net/8021q/vlanproc.h
+10
-0
No files found.
net/8021q/Makefile
View file @
67ef59de
...
@@ -4,4 +4,9 @@
...
@@ -4,4 +4,9 @@
obj-$(CONFIG_VLAN_8021Q)
+=
8021q.o
obj-$(CONFIG_VLAN_8021Q)
+=
8021q.o
8021q-objs
:=
vlan.o vlanproc.o vlan_dev.o
8021q-objs
:=
vlan.o vlan_dev.o
ifeq
($(CONFIG_PROC_FS),y)
8021q-objs
+=
vlanproc.o
endif
net/8021q/vlanproc.c
View file @
67ef59de
...
@@ -38,8 +38,6 @@
...
@@ -38,8 +38,6 @@
/****** Function Prototypes *************************************************/
/****** Function Prototypes *************************************************/
#ifdef CONFIG_PROC_FS
/* Proc filesystem interface */
/* Proc filesystem interface */
static
ssize_t
vlan_proc_read
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
static
ssize_t
vlan_proc_read
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
ppos
);
loff_t
*
ppos
);
...
@@ -438,32 +436,3 @@ static int vlandev_get_info(char *buf, char **start,
...
@@ -438,32 +436,3 @@ static int vlandev_get_info(char *buf, char **start,
return
cnt
;
return
cnt
;
}
}
#else
/* No CONFIG_PROC_FS */
/*
* No /proc - output stubs
*/
int
__init
vlan_proc_init
(
void
)
{
return
0
;
}
void
vlan_proc_cleanup
(
void
)
{
return
;
}
int
vlan_proc_add_dev
(
struct
net_device
*
vlandev
)
{
return
0
;
}
int
vlan_proc_rem_dev
(
struct
net_device
*
vlandev
)
{
return
0
;
}
#endif
/* No CONFIG_PROC_FS */
net/8021q/vlanproc.h
View file @
67ef59de
#ifndef __BEN_VLAN_PROC_INC__
#ifndef __BEN_VLAN_PROC_INC__
#define __BEN_VLAN_PROC_INC__
#define __BEN_VLAN_PROC_INC__
#ifdef CONFIG_PROC_FS
int
vlan_proc_init
(
void
);
int
vlan_proc_init
(
void
);
int
vlan_proc_rem_dev
(
struct
net_device
*
vlandev
);
int
vlan_proc_rem_dev
(
struct
net_device
*
vlandev
);
...
@@ -9,4 +10,13 @@ void vlan_proc_cleanup (void);
...
@@ -9,4 +10,13 @@ void vlan_proc_cleanup (void);
#define VLAN_PROC_BUFSZ (4096)
/* buffer size for printing proc info */
#define VLAN_PROC_BUFSZ (4096)
/* buffer size for printing proc info */
#else
/* No CONFIG_PROC_FS */
#define vlan_proc_init() (0)
#define vlan_proc_cleanup() do {} while(0)
#define vlan_proc_add_dev(dev) ((void)(dev), 0)
#define vlan_proc_rem_dev(dev) ((void)(dev), 0)
#endif
#endif
/* !(__BEN_VLAN_PROC_INC__) */
#endif
/* !(__BEN_VLAN_PROC_INC__) */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment