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
cfb9a4e7
Commit
cfb9a4e7
authored
Jun 12, 2013
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: <uapi/asm/swab.h>: Don't reference CONFIG_* symbols.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
f746caa3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
arch/mips/include/uapi/asm/swab.h
arch/mips/include/uapi/asm/swab.h
+6
-6
No files found.
arch/mips/include/uapi/asm/swab.h
View file @
cfb9a4e7
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
#define __SWAB_64_THRU_32__
#define __SWAB_64_THRU_32__
#if
def CONFIG_CPU_MIPSR2
#if
defined(__mips_isa_rev) && (__mips_isa_rev >= 2)
static
inline
__attribute_const__
__u16
__arch_swab16
(
__u16
x
)
static
inline
__attribute_const__
__u16
__arch_swab16
(
__u16
x
)
{
{
...
@@ -39,10 +39,10 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x)
...
@@ -39,10 +39,10 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x)
#define __arch_swab32 __arch_swab32
#define __arch_swab32 __arch_swab32
/*
/*
* Having already checked for
CONFIG_CPU_MIPSR2, enable the
* Having already checked for
MIPS R2, enable the optimized version for
*
optimized version for
64-bit kernel on r2 CPUs.
* 64-bit kernel on r2 CPUs.
*/
*/
#ifdef
CONFIG_64BIT
#ifdef
__mips64
static
inline
__attribute_const__
__u64
__arch_swab64
(
__u64
x
)
static
inline
__attribute_const__
__u64
__arch_swab64
(
__u64
x
)
{
{
__asm__
(
__asm__
(
...
@@ -54,6 +54,6 @@ static inline __attribute_const__ __u64 __arch_swab64(__u64 x)
...
@@ -54,6 +54,6 @@ static inline __attribute_const__ __u64 __arch_swab64(__u64 x)
return
x
;
return
x
;
}
}
#define __arch_swab64 __arch_swab64
#define __arch_swab64 __arch_swab64
#endif
/*
CONFIG_64BIT
*/
#endif
/*
__mips64
*/
#endif
/*
CONFIG_CPU_MIPSR2
*/
#endif
/*
MIPS R2 or newer
*/
#endif
/* _ASM_SWAB_H */
#endif
/* _ASM_SWAB_H */
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