* [PATCH 2/2] ata: pata_samsung_cf: add missing __iomem annotation
@ 2013-08-09 5:35 Jingoo Han
2013-08-09 14:13 ` 'Tejun Heo'
0 siblings, 1 reply; 2+ messages in thread
From: Jingoo Han @ 2013-08-09 5:35 UTC (permalink / raw)
To: 'Tejun Heo'; +Cc: linux-ide, Jingoo Han
>From e15fc1811b2ce01358de00c34e4a69a52bb1e9c5 Mon Sep 17 00:00:00 2001
From: Jingoo Han <jg1.han@samsung.com>
Date: Fri, 9 Aug 2013 14:24:35 +0900
Subject: [PATCH 2/2] ata: pata_samsung_cf: add missing __iomem annotation
Added missing __iomem annotation and staticized local symbol
in order to fix the following sparse warnings:
drivers/ata/pata_samsung_cf.c:244:14: warning: symbol 'pata_s3c_data_xfer' was not declared. Should it be static?
drivers/ata/pata_samsung_cf.c:423:20: warning: incorrect type in argument 1 (different address spaces)
drivers/ata/pata_samsung_cf.c:423:20: expected void const volatile [noderef] <asn:2>*addr
drivers/ata/pata_samsung_cf.c:423:20: got void *
drivers/ata/pata_samsung_cf.c:425:9: warning: incorrect type in argument 2 (different address spaces)
drivers/ata/pata_samsung_cf.c:425:9: expected void volatile [noderef] <asn:2>*addr
drivers/ata/pata_samsung_cf.c:425:9: got void *
drivers/ata/pata_samsung_cf.c:448:37: warning: incorrect type in argument 1 (different address spaces)
drivers/ata/pata_samsung_cf.c:448:37: expected void *s3c_ide_regbase
drivers/ata/pata_samsung_cf.c:448:37: got void [noderef] <asn:2>*ide_addr
drivers/ata/pata_samsung_cf.c:463:37: warning: incorrect type in argument 1 (different address spaces)
drivers/ata/pata_samsung_cf.c:463:37: expected void *s3c_ide_regbase
drivers/ata/pata_samsung_cf.c:463:37: got void [noderef] <asn:2>*ide_addr
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/ata/pata_samsung_cf.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/ata/pata_samsung_cf.c b/drivers/ata/pata_samsung_cf.c
index 951aa95..898e544 100644
--- a/drivers/ata/pata_samsung_cf.c
+++ b/drivers/ata/pata_samsung_cf.c
@@ -241,8 +241,8 @@ static u8 pata_s3c_check_altstatus(struct ata_port *ap)
/*
* pata_s3c_data_xfer - Transfer data by PIO
*/
-unsigned int pata_s3c_data_xfer(struct ata_device *dev, unsigned char *buf,
- unsigned int buflen, int rw)
+static unsigned int pata_s3c_data_xfer(struct ata_device *dev,
+ unsigned char *buf, unsigned int buflen, int rw)
{
struct ata_port *ap = dev->link->ap;
struct s3c_ide_info *info = ap->host->private_data;
@@ -418,7 +418,7 @@ static struct ata_port_operations pata_s5p_port_ops = {
.set_piomode = pata_s3c_set_piomode,
};
-static void pata_s3c_enable(void *s3c_ide_regbase, bool state)
+static void pata_s3c_enable(void __iomem *s3c_ide_regbase, bool state)
{
u32 temp = readl(s3c_ide_regbase + S3C_ATA_CTRL);
temp = state ? (temp | 1) : (temp & ~1);
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 2/2] ata: pata_samsung_cf: add missing __iomem annotation
2013-08-09 5:35 [PATCH 2/2] ata: pata_samsung_cf: add missing __iomem annotation Jingoo Han
@ 2013-08-09 14:13 ` 'Tejun Heo'
0 siblings, 0 replies; 2+ messages in thread
From: 'Tejun Heo' @ 2013-08-09 14:13 UTC (permalink / raw)
To: Jingoo Han; +Cc: linux-ide
On Fri, Aug 09, 2013 at 02:35:57PM +0900, Jingoo Han wrote:
> From e15fc1811b2ce01358de00c34e4a69a52bb1e9c5 Mon Sep 17 00:00:00 2001
> From: Jingoo Han <jg1.han@samsung.com>
> Date: Fri, 9 Aug 2013 14:24:35 +0900
> Subject: [PATCH 2/2] ata: pata_samsung_cf: add missing __iomem annotation
>
> Added missing __iomem annotation and staticized local symbol
> in order to fix the following sparse warnings:
>
> drivers/ata/pata_samsung_cf.c:244:14: warning: symbol 'pata_s3c_data_xfer' was not declared. Should it be static?
> drivers/ata/pata_samsung_cf.c:423:20: warning: incorrect type in argument 1 (different address spaces)
> drivers/ata/pata_samsung_cf.c:423:20: expected void const volatile [noderef] <asn:2>*addr
> drivers/ata/pata_samsung_cf.c:423:20: got void *
> drivers/ata/pata_samsung_cf.c:425:9: warning: incorrect type in argument 2 (different address spaces)
> drivers/ata/pata_samsung_cf.c:425:9: expected void volatile [noderef] <asn:2>*addr
> drivers/ata/pata_samsung_cf.c:425:9: got void *
> drivers/ata/pata_samsung_cf.c:448:37: warning: incorrect type in argument 1 (different address spaces)
> drivers/ata/pata_samsung_cf.c:448:37: expected void *s3c_ide_regbase
> drivers/ata/pata_samsung_cf.c:448:37: got void [noderef] <asn:2>*ide_addr
> drivers/ata/pata_samsung_cf.c:463:37: warning: incorrect type in argument 1 (different address spaces)
> drivers/ata/pata_samsung_cf.c:463:37: expected void *s3c_ide_regbase
> drivers/ata/pata_samsung_cf.c:463:37: got void [noderef] <asn:2>*ide_addr
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Applied to libata/for-3.12.
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-09 14:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-09 5:35 [PATCH 2/2] ata: pata_samsung_cf: add missing __iomem annotation Jingoo Han
2013-08-09 14:13 ` 'Tejun Heo'
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).