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
1ec888ed
Commit
1ec888ed
authored
Aug 14, 2003
by
Stephen Hemminger
Committed by
David S. Miller
Aug 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NETROM]: Make lists and locks static since they are only used in one file.
parent
28d0e94e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
net/netrom/af_netrom.c
net/netrom/af_netrom.c
+2
-2
net/netrom/nr_route.c
net/netrom/nr_route.c
+4
-4
No files found.
net/netrom/af_netrom.c
View file @
1ec888ed
...
@@ -57,8 +57,8 @@ int sysctl_netrom_link_fails_count = NR_DEFAULT_FAILS;
...
@@ -57,8 +57,8 @@ int sysctl_netrom_link_fails_count = NR_DEFAULT_FAILS;
static
unsigned
short
circuit
=
0x101
;
static
unsigned
short
circuit
=
0x101
;
HLIST_HEAD
(
nr_list
);
static
HLIST_HEAD
(
nr_list
);
static
spinlock_t
nr_list_lock
;
static
spinlock_t
nr_list_lock
=
SPIN_LOCK_UNLOCKED
;
static
struct
proto_ops
nr_proto_ops
;
static
struct
proto_ops
nr_proto_ops
;
...
...
net/netrom/nr_route.c
View file @
1ec888ed
...
@@ -39,10 +39,10 @@
...
@@ -39,10 +39,10 @@
static
unsigned
int
nr_neigh_no
=
1
;
static
unsigned
int
nr_neigh_no
=
1
;
HLIST_HEAD
(
nr_node_list
);
static
HLIST_HEAD
(
nr_node_list
);
spinlock_t
nr_node_list_lock
=
SPIN_LOCK_UNLOCKED
;
s
tatic
s
pinlock_t
nr_node_list_lock
=
SPIN_LOCK_UNLOCKED
;
HLIST_HEAD
(
nr_neigh_list
);
static
HLIST_HEAD
(
nr_neigh_list
);
spinlock_t
nr_neigh_list_lock
=
SPIN_LOCK_UNLOCKED
;
s
tatic
s
pinlock_t
nr_neigh_list_lock
=
SPIN_LOCK_UNLOCKED
;
struct
nr_node
*
nr_node_get
(
ax25_address
*
callsign
)
struct
nr_node
*
nr_node_get
(
ax25_address
*
callsign
)
{
{
...
...
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