From: "Jan Beulich" Subject: [PATCH v2 5/5] Viridian: cleanup Date: Mon, 24 Jun 2013 08:08:19 +0100 Message-ID: <51C80C8302000078000DFDDB@nat28.tlf.novell.com> References: <51C8092A02000078000DFDA0@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part7D4DE673.3__=" Return-path: In-Reply-To: <51C8092A02000078000DFDA0@nat28.tlf.novell.com> 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: Keir Fraser , George Dunlap , Eddie Dong , paul.durrant@citrix.com, Jun Nakajima , Yang Z Zhang 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. --=__Part7D4DE673.3__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline - functions used only locally should be static - constify parameters of dump functions Signed-off-by: Jan Beulich --- a/xen/arch/x86/hvm/viridian.c +++ b/xen/arch/x86/hvm/viridian.c @@ -111,7 +111,7 @@ int cpuid_viridian_leaves(unsigned int l return 1; } =20 -void dump_guest_os_id(struct domain *d) +static void dump_guest_os_id(const struct domain *d) { gdprintk(XENLOG_INFO, "GUEST_OS_ID:\n"); gdprintk(XENLOG_INFO, "\tvendor: %x\n", @@ -128,7 +128,7 @@ void dump_guest_os_id(struct domain *d) d->arch.hvm_domain.viridian.guest_os_id.fields.build_number); } =20 -void dump_hypercall(struct domain *d) +static void dump_hypercall(const struct domain *d) { gdprintk(XENLOG_INFO, "HYPERCALL:\n"); gdprintk(XENLOG_INFO, "\tenabled: %x\n", @@ -137,7 +137,7 @@ void dump_hypercall(struct domain *d) (unsigned long)d->arch.hvm_domain.viridian.hypercall_gpa.field= s.pfn); } =20 -void dump_apic_assist(struct vcpu *v) +static void dump_apic_assist(const struct vcpu *v) { gdprintk(XENLOG_INFO, "APIC_ASSIST[%d]:\n", v->vcpu_id); gdprintk(XENLOG_INFO, "\tenabled: %x\n", @@ -180,7 +180,7 @@ static void enable_hypercall_page(struct put_page_and_type(page); } =20 -void initialize_apic_assist(struct vcpu *v) +static void initialize_apic_assist(struct vcpu *v) { struct domain *d =3D v->domain; unsigned long gmfn =3D v->arch.hvm_vcpu.viridian.apic_assist.fields.pf= n; --=__Part7D4DE673.3__= Content-Type: text/plain; name="x86-Viridian-cleanup.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-Viridian-cleanup.patch" Viridian: cleanup=0A=0A- functions used only locally should be static=0A- = constify parameters of dump functions=0A=0ASigned-off-by: Jan Beulich = =0A=0A--- a/xen/arch/x86/hvm/viridian.c=0A+++ b/xen/arch= /x86/hvm/viridian.c=0A@@ -111,7 +111,7 @@ int cpuid_viridian_leaves(unsigne= d int l=0A return 1;=0A }=0A =0A-void dump_guest_os_id(struct domain = *d)=0A+static void dump_guest_os_id(const struct domain *d)=0A {=0A = gdprintk(XENLOG_INFO, "GUEST_OS_ID:\n");=0A gdprintk(XENLOG_INFO, = "\tvendor: %x\n",=0A@@ -128,7 +128,7 @@ void dump_guest_os_id(struct = domain *d)=0A d->arch.hvm_domain.viridian.guest_os_id.fields.bu= ild_number);=0A }=0A =0A-void dump_hypercall(struct domain *d)=0A+static = void dump_hypercall(const struct domain *d)=0A {=0A gdprintk(XENLOG_INF= O, "HYPERCALL:\n");=0A gdprintk(XENLOG_INFO, "\tenabled: %x\n",=0A@@ = -137,7 +137,7 @@ void dump_hypercall(struct domain *d)=0A = (unsigned long)d->arch.hvm_domain.viridian.hypercall_gpa.fields.pfn);=0A = }=0A =0A-void dump_apic_assist(struct vcpu *v)=0A+static void dump_apic_ass= ist(const struct vcpu *v)=0A {=0A gdprintk(XENLOG_INFO, "APIC_ASSIST[%d= ]:\n", v->vcpu_id);=0A gdprintk(XENLOG_INFO, "\tenabled: %x\n",=0A@@ = -180,7 +180,7 @@ static void enable_hypercall_page(struct=0A put_page_a= nd_type(page);=0A }=0A =0A-void initialize_apic_assist(struct vcpu = *v)=0A+static void initialize_apic_assist(struct vcpu *v)=0A {=0A = struct domain *d =3D v->domain;=0A unsigned long gmfn =3D v->arch.hvm_v= cpu.viridian.apic_assist.fields.pfn;=0A --=__Part7D4DE673.3__= 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 --=__Part7D4DE673.3__=--