lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1291677875-30493-20-git-send-email-konrad.wilk@oracle.com>
Date:	Mon,  6 Dec 2010 18:24:31 -0500
From:	Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>
To:	airlied@...ux.ie, tglx@...utronix.de, hpa@...or.com,
	airlied@...hat.com, linux-kernel@...r.kernel.org, konrad@...nel.org
Cc:	Jeremy Fitzhardinge <jeremy@...p.org>,
	Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
	tony.luck@...el.com
Subject: [PATCH 19/23] ia64/sgi: fix compile error.

I enabled CONFIG_IA64_SGI_NV2 and got these compile errors:

/linux/arch/ia64/sn/pci/pcibr/pcibr_dma.c:237: error: conflicting types for 'sn_dma_flush'
/linux/arch/ia64/include/asm/sn/io.h:21: note: previous declaration of 'sn_dma_flush' was here
/linux/arch/ia64/sn/pci/pcibr/pcibr_dma.c:412: error: conflicting types for 'sn_dma_flush'
/linux/arch/ia64/include/asm/sn/io.h:21: note: previous declaration of 'sn_dma_flush' was here

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>
CC: tony.luck@...el.com
---
 arch/ia64/include/asm/sn/io.h |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/arch/ia64/include/asm/sn/io.h b/arch/ia64/include/asm/sn/io.h
index 41c73a7..238ee67 100644
--- a/arch/ia64/include/asm/sn/io.h
+++ b/arch/ia64/include/asm/sn/io.h
@@ -18,7 +18,7 @@ extern int num_cnodes;
 
 #define __sn_mf_a()   ia64_mfa()
 
-extern void sn_dma_flush(unsigned long);
+extern void sn_dma_flush(u64);
 
 #define __sn_inb ___sn_inb
 #define __sn_inw ___sn_inw
@@ -62,7 +62,7 @@ ___sn_inb (unsigned long port)
 	if ((addr = sn_io_addr(port))) {
 		ret = *addr;
 		__sn_mf_a();
-		sn_dma_flush((unsigned long)addr);
+		sn_dma_flush((u64)addr);
 	}
 	return ret;
 }
@@ -76,7 +76,7 @@ ___sn_inw (unsigned long port)
 	if ((addr = sn_io_addr(port))) {
 		ret = *addr;
 		__sn_mf_a();
-		sn_dma_flush((unsigned long)addr);
+		sn_dma_flush((u64)addr);
 	}
 	return ret;
 }
@@ -90,7 +90,7 @@ ___sn_inl (unsigned long port)
 	if ((addr = sn_io_addr(port))) {
 		ret = *addr;
 		__sn_mf_a();
-		sn_dma_flush((unsigned long)addr);
+		sn_dma_flush((u64)addr);
 	}
 	return ret;
 }
@@ -144,7 +144,7 @@ ___sn_readb (const volatile void __iomem *addr)
 
 	val = *(volatile unsigned char __force *)addr;
 	__sn_mf_a();
-	sn_dma_flush((unsigned long)addr);
+	sn_dma_flush((u64)addr);
         return val;
 }
 
@@ -155,7 +155,7 @@ ___sn_readw (const volatile void __iomem *addr)
 
 	val = *(volatile unsigned short __force *)addr;
 	__sn_mf_a();
-	sn_dma_flush((unsigned long)addr);
+	sn_dma_flush((u64)addr);
         return val;
 }
 
@@ -166,7 +166,7 @@ ___sn_readl (const volatile void __iomem *addr)
 
 	val = *(volatile unsigned int __force *)addr;
 	__sn_mf_a();
-	sn_dma_flush((unsigned long)addr);
+	sn_dma_flush((u64)addr);
         return val;
 }
 
@@ -177,7 +177,7 @@ ___sn_readq (const volatile void __iomem *addr)
 
 	val = *(volatile unsigned long __force *)addr;
 	__sn_mf_a();
-	sn_dma_flush((unsigned long)addr);
+	sn_dma_flush((u64)addr);
         return val;
 }
 
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ