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
536ce50d
Commit
536ce50d
authored
Sep 22, 2003
by
Mitchell Blank Jr
Committed by
David S. Miller
Sep 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Make atomic_read() take const.
parent
b35670bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/asm-sparc/atomic.h
include/asm-sparc/atomic.h
+2
-2
No files found.
include/asm-sparc/atomic.h
View file @
536ce50d
...
...
@@ -33,9 +33,9 @@ typedef struct { volatile int counter; } atomic_t;
* 31 8 7 0
*/
#define ATOMIC_INIT(i) { (
i
<< 8) }
#define ATOMIC_INIT(i) { (
(i)
<< 8) }
static
__inline__
int
atomic_read
(
atomic_t
*
v
)
static
__inline__
int
atomic_read
(
const
atomic_t
*
v
)
{
int
ret
=
v
->
counter
;
...
...
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