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
9e3e7ba3
Commit
9e3e7ba3
authored
Feb 21, 2002
by
Richard Henderson
Committed by
Richard Henderson
Feb 21, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid "unused variable" warnings from non-debug, non-smp spinlock macros.
parent
0b3a14fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
include/linux/spinlock.h
include/linux/spinlock.h
+5
-5
No files found.
include/linux/spinlock.h
View file @
9e3e7ba3
...
...
@@ -84,12 +84,12 @@
#define SPIN_LOCK_UNLOCKED (spinlock_t) { 0 }
#endif
#define spin_lock_init(lock) do { } while(0)
#define spin_lock_init(lock) do {
(void)(lock);
} while(0)
#define _raw_spin_lock(lock) (void)(lock)
/* Not "unused variable". */
#define spin_is_locked(lock) (0)
#define _raw_spin_trylock(lock) (
{1; }
)
#define spin_unlock_wait(lock) do { } while(0)
#define _raw_spin_unlock(lock) do { } while(0)
#define spin_is_locked(lock) (
(void)(lock),
0)
#define _raw_spin_trylock(lock) (
(void)(lock), 1
)
#define spin_unlock_wait(lock) do {
(void)(lock);
} while(0)
#define _raw_spin_unlock(lock) do {
(void)(lock);
} while(0)
#elif (DEBUG_SPINLOCKS < 2)
...
...
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