提交 670ad354 编写于 作者: G Geert Uytterhoeven 提交者: Paul Mackerras

[POWERPC] PS3: Fix sparse warnings

Fix some PS3 build warnings reported by `make C=1'.  You need to
install sparse:
  git://git.kernel.org/pub/scm/devel/sparse/sparse.gitSigned-off-by: NGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: NGeoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 53f7c545
...@@ -133,7 +133,7 @@ struct saved_params { ...@@ -133,7 +133,7 @@ struct saved_params {
} static saved_params; } static saved_params;
#define dump_header(_a) _dump_header(_a, __func__, __LINE__) #define dump_header(_a) _dump_header(_a, __func__, __LINE__)
static void _dump_header(const struct os_area_header __iomem *h, const char* func, static void _dump_header(const struct os_area_header *h, const char *func,
int line) int line)
{ {
pr_debug("%s:%d: h.magic_num: '%s'\n", func, line, pr_debug("%s:%d: h.magic_num: '%s'\n", func, line,
...@@ -151,7 +151,7 @@ static void _dump_header(const struct os_area_header __iomem *h, const char* fun ...@@ -151,7 +151,7 @@ static void _dump_header(const struct os_area_header __iomem *h, const char* fun
} }
#define dump_params(_a) _dump_params(_a, __func__, __LINE__) #define dump_params(_a) _dump_params(_a, __func__, __LINE__)
static void _dump_params(const struct os_area_params __iomem *p, const char* func, static void _dump_params(const struct os_area_params *p, const char *func,
int line) int line)
{ {
pr_debug("%s:%d: p.boot_flag: %u\n", func, line, p->boot_flag); pr_debug("%s:%d: p.boot_flag: %u\n", func, line, p->boot_flag);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册