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
nexedi
linux
Commits
184b922c
Commit
184b922c
authored
Mar 04, 2018
by
Helge Deller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parisc: Force to various endian types for sparse
Signed-off-by:
Helge Deller
<
deller@gmx.de
>
parent
3a67ca19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
arch/parisc/include/asm/io.h
arch/parisc/include/asm/io.h
+6
-6
No files found.
arch/parisc/include/asm/io.h
View file @
184b922c
...
@@ -183,15 +183,15 @@ static inline unsigned char readb(const volatile void __iomem *addr)
...
@@ -183,15 +183,15 @@ static inline unsigned char readb(const volatile void __iomem *addr)
}
}
static
inline
unsigned
short
readw
(
const
volatile
void
__iomem
*
addr
)
static
inline
unsigned
short
readw
(
const
volatile
void
__iomem
*
addr
)
{
{
return
le16_to_cpu
(
__raw_readw
(
addr
));
return
le16_to_cpu
(
(
__le16
__force
)
__raw_readw
(
addr
));
}
}
static
inline
unsigned
int
readl
(
const
volatile
void
__iomem
*
addr
)
static
inline
unsigned
int
readl
(
const
volatile
void
__iomem
*
addr
)
{
{
return
le32_to_cpu
(
__raw_readl
(
addr
));
return
le32_to_cpu
(
(
__le32
__force
)
__raw_readl
(
addr
));
}
}
static
inline
unsigned
long
long
readq
(
const
volatile
void
__iomem
*
addr
)
static
inline
unsigned
long
long
readq
(
const
volatile
void
__iomem
*
addr
)
{
{
return
le64_to_cpu
(
__raw_readq
(
addr
));
return
le64_to_cpu
(
(
__le64
__force
)
__raw_readq
(
addr
));
}
}
static
inline
void
writeb
(
unsigned
char
b
,
volatile
void
__iomem
*
addr
)
static
inline
void
writeb
(
unsigned
char
b
,
volatile
void
__iomem
*
addr
)
...
@@ -200,15 +200,15 @@ static inline void writeb(unsigned char b, volatile void __iomem *addr)
...
@@ -200,15 +200,15 @@ static inline void writeb(unsigned char b, volatile void __iomem *addr)
}
}
static
inline
void
writew
(
unsigned
short
w
,
volatile
void
__iomem
*
addr
)
static
inline
void
writew
(
unsigned
short
w
,
volatile
void
__iomem
*
addr
)
{
{
__raw_writew
(
cpu_to_le16
(
w
),
addr
);
__raw_writew
(
(
__u16
__force
)
cpu_to_le16
(
w
),
addr
);
}
}
static
inline
void
writel
(
unsigned
int
l
,
volatile
void
__iomem
*
addr
)
static
inline
void
writel
(
unsigned
int
l
,
volatile
void
__iomem
*
addr
)
{
{
__raw_writel
(
cpu_to_le32
(
l
),
addr
);
__raw_writel
(
(
__u32
__force
)
cpu_to_le32
(
l
),
addr
);
}
}
static
inline
void
writeq
(
unsigned
long
long
q
,
volatile
void
__iomem
*
addr
)
static
inline
void
writeq
(
unsigned
long
long
q
,
volatile
void
__iomem
*
addr
)
{
{
__raw_writeq
(
cpu_to_le64
(
q
),
addr
);
__raw_writeq
(
(
__u64
__force
)
cpu_to_le64
(
q
),
addr
);
}
}
#define readb readb
#define readb readb
...
...
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