public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* ia64 msi warnings
@ 2005-03-12 10:26 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2005-03-12 10:26 UTC (permalink / raw)
  To: linux-ia64


The patch plugs a couple of warnings, but I'm wondering if it's simply
hiding 64-bit bugs?



drivers/pci/msi.c: In function `msi_set_mask_bit':
drivers/pci/msi.c:70: warning: cast from pointer to integer of different size
drivers/pci/msi.c: In function `msi_capability_init':
drivers/pci/msi.c:558: warning: cast to pointer from integer of different size


Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 25-akpm/drivers/pci/msi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -puN drivers/pci/msi.c~ia64-msi-warning-fixes drivers/pci/msi.c
--- 25/drivers/pci/msi.c~ia64-msi-warning-fixes	Sat Mar 12 18:17:29 2005
+++ 25-akpm/drivers/pci/msi.c	Sat Mar 12 18:17:53 2005
@@ -67,7 +67,7 @@ static void msi_set_mask_bit(unsigned in
 		int		pos;
 		u32		mask_bits;
 
-		pos = (int)entry->mask_base;
+		pos = (long)entry->mask_base;
 		pci_read_config_dword(entry->dev, pos, &mask_bits);
 		mask_bits &= ~(1);
 		mask_bits |= flag;
@@ -555,7 +555,7 @@ static int msi_capability_init(struct pc
 	dev->irq = vector;
 	entry->dev = dev;
 	if (is_mask_bit_support(control)) {
-		entry->mask_base = (void __iomem *)msi_mask_bits_reg(pos,
+		entry->mask_base = (void __iomem *)(long)msi_mask_bits_reg(pos,
 				is_64bit_address(control));
 	}
 	/* Replace with MSI handler */
_


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-12 10:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-12 10:26 ia64 msi warnings Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox