OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
014fa36
)
ANDROID: Cleanup type casting in goldfish.h
author
Roman Kiryanov
<rkir@google.com>
Fri, 30 Mar 2018 21:55:02 +0000
(14:55 -0700)
committer
Greg Kroah-Hartman
<gregkh@google.com>
Wed, 4 Apr 2018 15:03:59 +0000
(15:03 +0000)
Bug:
72886167
Change-Id: I506a24e6e659d83a9df5efa0f8f00229e0a4b2d4
Signed-off-by: Roman Kiryanov <rkir@google.com>
include/linux/goldfish.h
patch
|
blob
|
history
diff --git
a/include/linux/goldfish.h
b/include/linux/goldfish.h
index
e7e6f7a
..
793590d
100644
(file)
--- a/
include/linux/goldfish.h
+++ b/
include/linux/goldfish.h
@@
-9,9
+9,11
@@
static inline void gf_write_ptr(const void *ptr, void __iomem *portl,
void __iomem *porth)
{
- writel((u32)(unsigned long)ptr, portl);
+ const uintptr_t addr = (uintptr_t)ptr;
+
+ writel((u32)addr, portl);
#ifdef CONFIG_64BIT
- writel(
(unsigned long)pt
r >> 32, porth);
+ writel(
add
r >> 32, porth);
#endif
}