From: "Jan Beulich" Subject: [PATCH] minor shared/vcpu info adjustments Date: Tue, 23 Jun 2015 16:09:32 +0100 Message-ID: <558992CC02000078000886A0@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part7E4AAFBC.1__=" Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z7PpS-0001tu-Vu for xen-devel@lists.xenproject.org; Tue, 23 Jun 2015 15:09:39 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Ian Campbell , Keir Fraser , Ian Jackson , Tim Deegan 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. --=__Part7E4AAFBC.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline - remove vcpu_info from xlat.lst (it isn't and can't be checked) - drop pointless (redundant) casts - make dummy_vcpu_info static Signed-off-by: Jan Beulich --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -70,7 +70,7 @@ integer_param("hardware_dom", hardware_d =20 struct vcpu *idle_vcpu[NR_CPUS] __read_mostly; =20 -vcpu_info_t dummy_vcpu_info; +static vcpu_info_t dummy_vcpu_info; =20 static void __domain_finalise_shutdown(struct domain *d) { --- a/xen/include/xen/shared.h +++ b/xen/include/xen/shared.h @@ -18,7 +18,7 @@ typedef union { #define __shared_info(d, s, field) \ (*(!has_32bit_shinfo(d) ? \ (typeof(&(s)->compat.field))&(s)->native.field : \ - (typeof(&(s)->compat.field))&(s)->compat.field)) + &(s)->compat.field)) =20 typedef union { struct vcpu_info native; @@ -29,7 +29,7 @@ typedef union { #define __vcpu_info(v, i, field) \ (*(!has_32bit_shinfo((v)->domain) ? \ (typeof(&(i)->compat.field))&(i)->native.field : \ - (typeof(&(i)->compat.field))&(i)->compat.field)) + &(i)->compat.field)) =20 #else =20 @@ -41,8 +41,6 @@ typedef struct vcpu_info vcpu_info_t; =20 #endif =20 -extern vcpu_info_t dummy_vcpu_info; - #define shared_info(d, field) __shared_info(d, (d)->shared_info, = field) #define vcpu_info(v, field) __vcpu_info(v, (v)->vcpu_info, field) =20 --- a/xen/include/xlat.lst +++ b/xen/include/xlat.lst @@ -6,7 +6,6 @@ ? mmu_update xen.h ! mmuext_op xen.h ! start_info xen.h -? vcpu_info xen.h ? vcpu_time_info xen.h ! cpu_user_regs arch-x86/xen-@arch@.h ! trap_info arch-x86/xen.h --=__Part7E4AAFBC.1__= Content-Type: text/plain; name="shared-info-adjustments.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="shared-info-adjustments.patch" minor shared/vcpu info adjustments=0A=0A- remove vcpu_info from xlat.lst = (it isn't and can't be checked)=0A- drop pointless (redundant) casts=0A- = make dummy_vcpu_info static=0A=0ASigned-off-by: Jan Beulich =0A=0A--- a/xen/common/domain.c=0A+++ b/xen/common/domain.c=0A@@ -70,7 = +70,7 @@ integer_param("hardware_dom", hardware_d=0A =0A struct vcpu = *idle_vcpu[NR_CPUS] __read_mostly;=0A =0A-vcpu_info_t dummy_vcpu_info;=0A+s= tatic vcpu_info_t dummy_vcpu_info;=0A =0A static void __domain_finalise_shu= tdown(struct domain *d)=0A {=0A--- a/xen/include/xen/shared.h=0A+++ = b/xen/include/xen/shared.h=0A@@ -18,7 +18,7 @@ typedef union {=0A #define = __shared_info(d, s, field) \=0A (*(!has_32bit_shin= fo(d) ? \=0A (typeof(&(s)->compat.field))&= (s)->native.field : \=0A- (typeof(&(s)->compat.field))&(s)->compat.fi= eld))=0A+ &(s)->compat.field))=0A =0A typedef union {=0A struct = vcpu_info native;=0A@@ -29,7 +29,7 @@ typedef union {=0A #define __vcpu_inf= o(v, i, field) \=0A (*(!has_32bit_shinfo((v)->do= main) ? \=0A (typeof(&(i)->compat.field))&(i)->nativ= e.field : \=0A- (typeof(&(i)->compat.field))&(i)->compat.field))=0A+ = &(i)->compat.field))=0A =0A #else=0A =0A@@ -41,8 +41,6 @@ typedef = struct vcpu_info vcpu_info_t;=0A =0A #endif=0A =0A-extern vcpu_info_t = dummy_vcpu_info;=0A-=0A #define shared_info(d, field) __shared_info(d,= (d)->shared_info, field)=0A #define vcpu_info(v, field) __vcpu_info= (v, (v)->vcpu_info, field)=0A =0A--- a/xen/include/xlat.lst=0A+++ = b/xen/include/xlat.lst=0A@@ -6,7 +6,6 @@=0A ? mmu_update = xen.h=0A ! mmuext_op xen.h=0A ! start_info = xen.h=0A-? vcpu_info xen.h=0A ? = vcpu_time_info xen.h=0A ! cpu_user_regs = arch-x86/xen-@arch@.h=0A ! trap_info arch-x86/xe= n.h=0A --=__Part7E4AAFBC.1__= 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.xen.org http://lists.xen.org/xen-devel --=__Part7E4AAFBC.1__=--