提交 840eeeb8 编写于 作者: B Ben Dooks

[ARM] S3C: Fix warnings in the PM memory CRC code

Fix warnings from struct resource being bigger than unsigned long by
forcing the type. We are only a 32bit platform so no physical memory
addresses will be too big to fit in this.
Signed-off-by: NBen Dooks <ben-linux@fluff.org>
上级 2261e0e6
...@@ -55,7 +55,8 @@ static void s3c_pm_run_res(struct resource *ptr, run_fn_t fn, u32 *arg) ...@@ -55,7 +55,8 @@ static void s3c_pm_run_res(struct resource *ptr, run_fn_t fn, u32 *arg)
if ((ptr->flags & IORESOURCE_MEM) && if ((ptr->flags & IORESOURCE_MEM) &&
strcmp(ptr->name, "System RAM") == 0) { strcmp(ptr->name, "System RAM") == 0) {
S3C_PMDBG("Found system RAM at %08lx..%08lx\n", S3C_PMDBG("Found system RAM at %08lx..%08lx\n",
ptr->start, ptr->end); (unsigned long)ptr->start,
(unsigned long)ptr->end);
arg = (fn)(ptr, arg); arg = (fn)(ptr, arg);
} }
...@@ -75,7 +76,8 @@ static u32 *s3c_pm_countram(struct resource *res, u32 *val) ...@@ -75,7 +76,8 @@ static u32 *s3c_pm_countram(struct resource *res, u32 *val)
size += CHECK_CHUNKSIZE-1; size += CHECK_CHUNKSIZE-1;
size /= CHECK_CHUNKSIZE; size /= CHECK_CHUNKSIZE;
S3C_PMDBG("Area %08lx..%08lx, %d blocks\n", res->start, res->end, size); S3C_PMDBG("Area %08lx..%08lx, %d blocks\n",
(unsigned long)res->start, (unsigned long)res->end, size);
*val += size * sizeof(u32); *val += size * sizeof(u32);
return val; return val;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册