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
b95f9e50
Commit
b95f9e50
authored
Sep 09, 2003
by
Joe Perches
Committed by
Linus Torvalds
Sep 09, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Use SEQ_START_TOKEN in drivers/net/* [1/3]
parent
b0882dfe
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
13 deletions
+9
-13
drivers/net/hamradio/bpqether.c
drivers/net/hamradio/bpqether.c
+3
-5
drivers/net/pppoe.c
drivers/net/pppoe.c
+3
-3
drivers/net/wireless/strip.c
drivers/net/wireless/strip.c
+3
-5
No files found.
drivers/net/hamradio/bpqether.c
View file @
b95f9e50
...
...
@@ -389,8 +389,6 @@ static const char * bpq_print_ethaddr(const unsigned char *e)
return
buf
;
}
#define BPQ_PROC_START ((void *)1)
static
void
*
bpq_seq_start
(
struct
seq_file
*
seq
,
loff_t
*
pos
)
{
int
i
=
1
;
...
...
@@ -399,7 +397,7 @@ static void *bpq_seq_start(struct seq_file *seq, loff_t *pos)
rcu_read_lock
();
if
(
*
pos
==
0
)
return
BPQ_PROC_START
;
return
SEQ_START_TOKEN
;
list_for_each_entry
(
bpqdev
,
&
bpq_devices
,
bpq_list
)
{
if
(
i
==
*
pos
)
...
...
@@ -414,7 +412,7 @@ static void *bpq_seq_next(struct seq_file *seq, void *v, loff_t *pos)
++*
pos
;
if
(
v
==
BPQ_PROC_START
)
if
(
v
==
SEQ_START_TOKEN
)
p
=
bpq_devices
.
next
;
else
p
=
((
struct
bpqdev
*
)
v
)
->
bpq_list
.
next
;
...
...
@@ -431,7 +429,7 @@ static void bpq_seq_stop(struct seq_file *seq, void *v)
static
int
bpq_seq_show
(
struct
seq_file
*
seq
,
void
*
v
)
{
if
(
v
==
BPQ_PROC_START
)
if
(
v
==
SEQ_START_TOKEN
)
seq_puts
(
seq
,
"dev ether destination accept from
\n
"
);
else
{
...
...
drivers/net/pppoe.c
View file @
b95f9e50
...
...
@@ -986,7 +986,7 @@ static int pppoe_seq_show(struct seq_file *seq, void *v)
struct
pppox_opt
*
po
;
char
*
dev_name
;
if
(
v
==
(
void
*
)
1
)
{
if
(
v
==
SEQ_START_TOKEN
)
{
seq_puts
(
seq
,
"Id Address Device
\n
"
);
goto
out
;
}
...
...
@@ -1025,7 +1025,7 @@ static void *pppoe_seq_start(struct seq_file *seq, loff_t *pos)
loff_t
l
=
*
pos
;
read_lock_bh
(
&
pppoe_hash_lock
);
return
l
?
pppoe_get_idx
(
--
l
)
:
(
void
*
)
1
;
return
l
?
pppoe_get_idx
(
--
l
)
:
SEQ_START_TOKEN
;
}
static
void
*
pppoe_seq_next
(
struct
seq_file
*
seq
,
void
*
v
,
loff_t
*
pos
)
...
...
@@ -1033,7 +1033,7 @@ static void *pppoe_seq_next(struct seq_file *seq, void *v, loff_t *pos)
struct
pppox_opt
*
po
;
++*
pos
;
if
(
v
==
(
void
*
)
1
)
{
if
(
v
==
SEQ_START_TOKEN
)
{
po
=
pppoe_get_idx
(
0
);
goto
out
;
}
...
...
drivers/net/wireless/strip.c
View file @
b95f9e50
...
...
@@ -965,8 +965,6 @@ static char *time_delta(char buffer[], long time)
return
(
buffer
);
}
#define STRIP_PROC_HEADER ((void *)1)
/* get Nth element of the linked list */
static
struct
strip
*
strip_get_idx
(
loff_t
pos
)
{
...
...
@@ -984,7 +982,7 @@ static struct strip *strip_get_idx(loff_t pos)
static
void
*
strip_seq_start
(
struct
seq_file
*
seq
,
loff_t
*
pos
)
{
rcu_read_lock
();
return
*
pos
?
strip_get_idx
(
*
pos
-
1
)
:
S
TRIP_PROC_HEADER
;
return
*
pos
?
strip_get_idx
(
*
pos
-
1
)
:
S
EQ_START_TOKEN
;
}
static
void
*
strip_seq_next
(
struct
seq_file
*
seq
,
void
*
v
,
loff_t
*
pos
)
...
...
@@ -993,7 +991,7 @@ static void *strip_seq_next(struct seq_file *seq, void *v, loff_t *pos)
struct
strip
*
s
;
++*
pos
;
if
(
v
==
S
TRIP_PROC_HEADER
)
if
(
v
==
S
EQ_START_TOKEN
)
return
strip_get_idx
(
1
);
s
=
v
;
...
...
@@ -1149,7 +1147,7 @@ static void strip_seq_status_info(struct seq_file *seq,
*/
static
int
strip_seq_show
(
struct
seq_file
*
seq
,
void
*
v
)
{
if
(
v
==
S
TRIP_PROC_HEADER
)
if
(
v
==
S
EQ_START_TOKEN
)
seq_printf
(
seq
,
"strip_version: %s
\n
"
,
StripVersion
);
else
strip_seq_status_info
(
seq
,
(
const
struct
strip
*
)
v
);
...
...
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