From: "Jan Beulich" Subject: [PATCH] ia64: eliminate build warnings Date: Mon, 30 Nov 2009 10:26:59 +0000 Message-ID: <4B13AC030200007800022927@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part4E641BE3.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com, xen-ia64-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part4E641BE3.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Various warnings appeared since 3.4 - eliminate at least some of them. Signed-off-by: Jan Beulich --- 2009-11-30.orig/xen/arch/ia64/linux-xen/unwind.c 2009-06-29 = 12:33:51.000000000 +0200 +++ 2009-11-30/xen/arch/ia64/linux-xen/unwind.c 2009-11-30 10:52:24.0000000= 00 +0100 @@ -38,7 +38,7 @@ // work around // write_trylock() does bug check, but stack unwinder can be called // subtle situation, so skip bug check. -#undef write_trylock(lock) +#undef write_trylock #ifdef CONFIG_SMP #define write_trylock(lock) _raw_write_trylock(lock) #else --- 2009-11-30.orig/xen/arch/ia64/xen/mm.c 2009-10-15 11:42:12.0000000= 00 +0200 +++ 2009-11-30/xen/arch/ia64/xen/mm.c 2009-11-30 10:48:04.000000000 = +0100 @@ -2875,6 +2875,7 @@ donate_page(struct domain *d, struct pag { /* needs to be implemented for transcendent memory (tmem) */ ASSERT(0); + return -ENOSYS; } =20 static void --- 2009-11-30.orig/xen/common/tmem_xen.c 2009-11-23 11:23:30.0000000= 00 +0100 +++ 2009-11-30/xen/common/tmem_xen.c 2009-11-30 10:49:16.000000000 = +0100 @@ -84,6 +84,7 @@ void tmh_copy_page(char *to, char*from) static inline void *cli_mfn_to_va(tmem_cli_mfn_t cmfn, unsigned long = *pcli_mfn) { ASSERT(0); + return NULL; } #define paging_mark_dirty(_x,_y) do {} while(0) #else --- 2009-11-30.orig/xen/drivers/passthrough/vtd/ia64/ats.c 2009-06-03 = 12:22:45.000000000 +0200 +++ 2009-11-30/xen/drivers/passthrough/vtd/ia64/ats.c 2009-11-30 = 10:54:58.000000000 +0100 @@ -28,6 +28,8 @@ #include "../vtd.h" #include "../extern.h" =20 +struct pci_ats_dev; + int ats_enabled =3D 0; =20 struct acpi_drhd_unit * find_ats_dev_drhd(struct iommu *iommu) @@ -45,12 +47,6 @@ int enable_ats_device(int seg, int bus,=20 return 0; } =20 =20 -static int device_in_domain(struct iommu *iommu, - struct pci_ats_dev *pdev, u16 did) -{ - return 0; -} - int dev_invalidate_iotlb(struct iommu *iommu, u16 did, u64 addr, unsigned int size_order, u64 type) { --- 2009-11-30.orig/xen/include/asm-ia64/hvm/support.h 2009-10-01 = 10:53:02.000000000 +0200 +++ 2009-11-30/xen/include/asm-ia64/hvm/support.h 2009-11-30 = 10:44:29.000000000 +0100 @@ -25,13 +25,14 @@ =20 #include =20 -static int hvm_girq_dest_2_vcpu_id(struct domain *d, uint8_t dest, +static inline int hvm_girq_dest_2_vcpu_id(struct domain *d, uint8_t dest, uint8_t dest_mode) { /* TODO */ + return -ENOSYS; } =20 -static void hvm_migrate_pirqs(struct vcpu *v) +static inline void hvm_migrate_pirqs(struct vcpu *v) { /* TODO */ } --=__Part4E641BE3.0__= Content-Type: text/plain; name="xen-ia64-warnings.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="xen-ia64-warnings.patch" Various warnings appeared since 3.4 - eliminate at least some of = them.=0A=0ASigned-off-by: Jan Beulich =0A=0A--- = 2009-11-30.orig/xen/arch/ia64/linux-xen/unwind.c 2009-06-29 = 12:33:51.000000000 +0200=0A+++ 2009-11-30/xen/arch/ia64/linux-xen/unwind.c = 2009-11-30 10:52:24.000000000 +0100=0A@@ -38,7 +38,7 @@=0A // work = around=0A // write_trylock() does bug check, but stack unwinder can be = called=0A // subtle situation, so skip bug check.=0A-#undef write_trylock(l= ock)=0A+#undef write_trylock=0A #ifdef CONFIG_SMP=0A #define write_trylock(= lock) _raw_write_trylock(lock)=0A #else=0A--- 2009-11-30.orig/xen/arch/ia= 64/xen/mm.c 2009-10-15 11:42:12.000000000 +0200=0A+++ 2009-11-30/xen/ar= ch/ia64/xen/mm.c 2009-11-30 10:48:04.000000000 +0100=0A@@ -2875,6 = +2875,7 @@ donate_page(struct domain *d, struct pag=0A {=0A /* needs = to be implemented for transcendent memory (tmem) */=0A ASSERT(0);=0A+ = return -ENOSYS;=0A }=0A =0A static void=0A--- 2009-11-30.orig/xen/common/= tmem_xen.c 2009-11-23 11:23:30.000000000 +0100=0A+++ 2009-11-30/xen/co= mmon/tmem_xen.c 2009-11-30 10:49:16.000000000 +0100=0A@@ -84,6 +84,7 @@ = void tmh_copy_page(char *to, char*from)=0A static inline void *cli_mfn_to_v= a(tmem_cli_mfn_t cmfn, unsigned long *pcli_mfn)=0A {=0A ASSERT(0);=0A+ = return NULL;=0A }=0A #define paging_mark_dirty(_x,_y) do {} while(0)=0A = #else=0A--- 2009-11-30.orig/xen/drivers/passthrough/vtd/ia64/ats.c = 2009-06-03 12:22:45.000000000 +0200=0A+++ 2009-11-30/xen/drivers/passthroug= h/vtd/ia64/ats.c 2009-11-30 10:54:58.000000000 +0100=0A@@ -28,6 = +28,8 @@=0A #include "../vtd.h"=0A #include "../extern.h"=0A =0A+struct = pci_ats_dev;=0A+=0A int ats_enabled =3D 0;=0A =0A struct acpi_drhd_unit * = find_ats_dev_drhd(struct iommu *iommu)=0A@@ -45,12 +47,6 @@ int enable_ats_= device(int seg, int bus, =0A return 0;=0A } =0A =0A-static int = device_in_domain(struct iommu *iommu,=0A- = struct pci_ats_dev *pdev, u16 did)=0A-{=0A- return 0;=0A-}=0A-=0A int = dev_invalidate_iotlb(struct iommu *iommu, u16 did,=0A u64 addr, = unsigned int size_order, u64 type)=0A {=0A--- 2009-11-30.orig/xen/include/a= sm-ia64/hvm/support.h 2009-10-01 10:53:02.000000000 +0200=0A+++ = 2009-11-30/xen/include/asm-ia64/hvm/support.h 2009-11-30 10:44:29.0000000= 00 +0100=0A@@ -25,13 +25,14 @@=0A =0A #include =0A = =0A-static int hvm_girq_dest_2_vcpu_id(struct domain *d, uint8_t dest,=0A+s= tatic inline int hvm_girq_dest_2_vcpu_id(struct domain *d, uint8_t = dest,=0A uint8_t dest_mode)=0A {=0A /* = TODO */=0A+ return -ENOSYS;=0A }=0A =0A-static void hvm_migrate_pirqs(st= ruct vcpu *v)=0A+static inline void hvm_migrate_pirqs(struct vcpu *v)=0A = {=0A /* TODO */=0A }=0A --=__Part4E641BE3.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part4E641BE3.0__=--