From: jason.chagas@marvell.com (Jason Chagas)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: fix some trivial compiler warnings
Date: Sat, 13 Nov 2010 00:01:44 -0500 [thread overview]
Message-ID: <mailman.16.1289627318.1530.linux-arm-kernel@lists.infradead.org> (raw)
arch/arm/kernel/ptrace.c: In function 'get_branch_address':
arch/arm/kernel/ptrace.c:429: warning: comparison between pointer and
integer
arch/arm/kernel/ptrace.c:429: warning: comparison between pointer and
integer
arch/arm/mach-mmp/mmp2.c:127: warning: 'clk_rtc' defined but not used
drivers/i2c/busses/i2c-pxa.c: In function 'i2c_pxa_probe':
drivers/i2c/busses/i2c-pxa.c:1004: warning: initialization discards
qualifiers from pointer target type
Signed-off-by: Jason Chagas <jason.chagas@marvell.com>
---
arch/arm/kernel/ptrace.c | 2 +-
arch/arm/mach-mmp/mmp2.c | 1 -
drivers/i2c/busses/i2c-pxa.c | 2 +-
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c
index cf16bca..7bb9a88 100644
--- a/arch/arm/kernel/ptrace.c
+++ b/arch/arm/kernel/ptrace.c
@@ -426,7 +426,7 @@ get_branch_address(struct task_struct *child,
unsigned long pc, unsigned long in
break;
}
- if (alt >= (void*)CONFIG_VECTORS_BASE && alt <
(void*)CONFIG_VECTORS_BASE + PAGE_SIZE)
+ if (alt >= CONFIG_VECTORS_BASE && alt < CONFIG_VECTORS_BASE +
PAGE_SIZE)
alt = get_user_reg(child, REG_LR);
return alt;
diff --git a/arch/arm/mach-mmp/mmp2.c b/arch/arm/mach-mmp/mmp2.c
index 7f5eb05..3028bb7 100644
--- a/arch/arm/mach-mmp/mmp2.c
+++ b/arch/arm/mach-mmp/mmp2.c
@@ -124,7 +124,6 @@ static APBC_CLK(twsi3, MMP2_TWSI3, 0, 26000000);
static APBC_CLK(twsi4, MMP2_TWSI4, 0, 26000000);
static APBC_CLK(twsi5, MMP2_TWSI5, 0, 26000000);
static APBC_CLK(twsi6, MMP2_TWSI6, 0, 26000000);
-static APBC_CLK(rtc, MMP2_RTC, 0, 32768);
static APMU_CLK(nand, NAND, 0xbf, 100000000);
diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
index 020ff23..c94e51b 100644
--- a/drivers/i2c/busses/i2c-pxa.c
+++ b/drivers/i2c/busses/i2c-pxa.c
@@ -1001,7 +1001,7 @@ static int i2c_pxa_probe(struct platform_device
*dev)
struct pxa_i2c *i2c;
struct resource *res;
struct i2c_pxa_platform_data *plat = dev->dev.platform_data;
- struct platform_device_id *id = platform_get_device_id(dev);
+ const struct platform_device_id *id = platform_get_device_id(dev);
int ret;
int irq;
--
1.7.2.3
next reply other threads:[~2010-11-13 5:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-13 5:01 Jason Chagas [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-11-13 5:49 [PATCH] ARM: fix some trivial compiler warnings Jason Chagas
2010-11-15 2:07 ` Eric Miao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=mailman.16.1289627318.1530.linux-arm-kernel@lists.infradead.org \
--to=jason.chagas@marvell.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).