WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] ia64: eliminate build warnings

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>, <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] ia64: eliminate build warnings
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Mon, 30 Nov 2009 10:26:59 +0000
Cc:
Delivery-date: Mon, 30 Nov 2009 02:27:24 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Various warnings appeared since 3.4 - eliminate at least some of them.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

--- 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.000000000 
+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.000000000 
+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;
 }
 
 static void
--- 2009-11-30.orig/xen/common/tmem_xen.c       2009-11-23 11:23:30.000000000 
+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"
 
+struct pci_ats_dev;
+
 int ats_enabled = 0;
 
 struct acpi_drhd_unit * find_ats_dev_drhd(struct iommu *iommu)
@@ -45,12 +47,6 @@ int enable_ats_device(int seg, int bus, 
     return 0;
 }        
 
-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 @@
 
 #include <xen/hvm/save.h>
 
-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;
 }
 
-static void hvm_migrate_pirqs(struct vcpu *v)
+static inline void hvm_migrate_pirqs(struct vcpu *v)
 {
     /* TODO */
 }



Attachment: xen-ia64-warnings.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] ia64: eliminate build warnings, Jan Beulich <=