* [PATCH 1/2] iio: Fix type warnings
@ 2009-08-19 16:20 Alan Cox
2009-08-19 16:20 ` [PATCH 2/2] altpciechdma: 64bit type warning fix Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: Alan Cox @ 2009-08-19 16:20 UTC (permalink / raw)
To: linux-kernel
Signed-off-by: Alan Cox <alan@linux.intel.com>
---
drivers/staging/iio/accel/sca3000_ring.c | 2 +-
drivers/staging/iio/ring_sw.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/iio/accel/sca3000_ring.c b/drivers/staging/iio/accel/sca3000_ring.c
index b01876d..d5ea237 100644
--- a/drivers/staging/iio/accel/sca3000_ring.c
+++ b/drivers/staging/iio/accel/sca3000_ring.c
@@ -210,7 +210,7 @@ static struct attribute_group sca3000_ring_attr = {
.attrs = iio_ring_attributes,
};
-static struct attribute_group *sca3000_ring_attr_groups[] = {
+static const struct attribute_group *sca3000_ring_attr_groups[] = {
&sca3000_ring_attr,
NULL
};
diff --git a/drivers/staging/iio/ring_sw.c b/drivers/staging/iio/ring_sw.c
index c04ca4c..359ff92 100644
--- a/drivers/staging/iio/ring_sw.c
+++ b/drivers/staging/iio/ring_sw.c
@@ -392,7 +392,7 @@ static struct attribute_group iio_ring_attribute_group = {
.attrs = iio_ring_attributes,
};
-static struct attribute_group *iio_ring_attribute_groups[] = {
+static const struct attribute_group *iio_ring_attribute_groups[] = {
&iio_ring_attribute_group,
NULL
};
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/2] altpciechdma: 64bit type warning fix
2009-08-19 16:20 [PATCH 1/2] iio: Fix type warnings Alan Cox
@ 2009-08-19 16:20 ` Alan Cox
0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2009-08-19 16:20 UTC (permalink / raw)
To: linux-kernel
Signed-off-by: Alan Cox <alan@linux.intel.com>
---
drivers/staging/altpciechdma/altpciechdma.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/staging/altpciechdma/altpciechdma.c b/drivers/staging/altpciechdma/altpciechdma.c
index 3724b8a..e0c5ba4 100644
--- a/drivers/staging/altpciechdma/altpciechdma.c
+++ b/drivers/staging/altpciechdma/altpciechdma.c
@@ -550,7 +550,7 @@ static int __devinit dma_test(struct ape_dev *ape, struct pci_dev *dev)
#if 0
*(u32 *)(buffer_virt + i) = i / PAGE_SIZE + 1;
#else
- *(u32 *)(buffer_virt + i) = (buffer_virt + i);
+ *(u32 *)(buffer_virt + i) = (u32)(unsigned long)(buffer_virt + i);
#endif
#if 0
compare((u32 *)buffer_virt, (u32 *)(buffer_virt + 2 * PAGE_SIZE), 8192);
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-19 16:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-19 16:20 [PATCH 1/2] iio: Fix type warnings Alan Cox
2009-08-19 16:20 ` [PATCH 2/2] altpciechdma: 64bit type warning fix Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox