All of lore.kernel.org
 help / color / mirror / Atom feed
From: rusty@rustcorp.com.au (Rusty Russell)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/8] ARM: KVM: make struct coproc_params arg const.
Date: Fri, 09 Mar 2012 14:56:52 +1030	[thread overview]
Message-ID: <1331267212.32474.rusty@rustcorp.com.au> (raw)


From: Rusty Russell <rusty@rustcorp.com.au>

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 arch/arm/kvm/emulate.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/arm/kvm/emulate.c b/arch/arm/kvm/emulate.c
index 108db38..87a1141 100644
--- a/arch/arm/kvm/emulate.c
+++ b/arch/arm/kvm/emulate.c
@@ -165,7 +165,7 @@ struct coproc_params {
 	bool is_write;
 };
 
-static void cp15_op(struct kvm_vcpu *vcpu, struct coproc_params *p,
+static void cp15_op(struct kvm_vcpu *vcpu, const struct coproc_params *p,
 			   enum cp15_regs cp15_reg)
 {
 	if (p->is_write)
@@ -174,7 +174,7 @@ static void cp15_op(struct kvm_vcpu *vcpu, struct coproc_params *p,
 		*vcpu_reg(vcpu, p->Rt1) = vcpu->arch.cp15[cp15_reg];
 }
 
-static void print_cp_instr(struct coproc_params *p)
+static void print_cp_instr(const struct coproc_params *p)
 {
 	if (p->is_64bit) {
 		kvm_debug("%s\tp15, %lu, r%lu, r%lu, c%lu",
@@ -213,7 +213,7 @@ int kvm_handle_cp14_access(struct kvm_vcpu *vcpu, struct kvm_run *run)
  * @p:    The coprocessor parameters struct pointer holding trap inst. details
  */
 static int emulate_cp15_c9_access(struct kvm_vcpu *vcpu,
-				  struct coproc_params *p)
+				  const struct coproc_params *p)
 {
 	BUG_ON(p->CRn != 9);
 	BUG_ON(p->is_64bit);
@@ -251,7 +251,7 @@ static int emulate_cp15_c9_access(struct kvm_vcpu *vcpu,
  * to these registers.
  */
 static int emulate_cp15_c10_access(struct kvm_vcpu *vcpu,
-				   struct coproc_params *p)
+				   const struct coproc_params *p)
 {
 	BUG_ON(p->CRn != 10);
 	BUG_ON(p->is_64bit);
@@ -293,7 +293,7 @@ static int emulate_cp15_c10_access(struct kvm_vcpu *vcpu,
  * This may need to be refined.
  */
 static int emulate_cp15_c15_access(struct kvm_vcpu *vcpu,
-				   struct coproc_params *p)
+				   const struct coproc_params *p)
 {
 	trace_kvm_emulate_cp15_imp(p->Op1, p->Rt1, p->CRn, p->CRm,
 				   p->Op2, p->is_write);

WARNING: multiple messages have this Message-ID (diff)
From: Rusty Russell <rusty@rustcorp.com.au>
To: Russell King <linux@arm.linux.org.uk>,
	linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 3/8] ARM: KVM: make struct coproc_params arg const.
Date: Fri, 09 Mar 2012 14:56:52 +1030	[thread overview]
Message-ID: <1331267212.32474.rusty@rustcorp.com.au> (raw)


From: Rusty Russell <rusty@rustcorp.com.au>

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 arch/arm/kvm/emulate.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/arm/kvm/emulate.c b/arch/arm/kvm/emulate.c
index 108db38..87a1141 100644
--- a/arch/arm/kvm/emulate.c
+++ b/arch/arm/kvm/emulate.c
@@ -165,7 +165,7 @@ struct coproc_params {
 	bool is_write;
 };
 
-static void cp15_op(struct kvm_vcpu *vcpu, struct coproc_params *p,
+static void cp15_op(struct kvm_vcpu *vcpu, const struct coproc_params *p,
 			   enum cp15_regs cp15_reg)
 {
 	if (p->is_write)
@@ -174,7 +174,7 @@ static void cp15_op(struct kvm_vcpu *vcpu, struct coproc_params *p,
 		*vcpu_reg(vcpu, p->Rt1) = vcpu->arch.cp15[cp15_reg];
 }
 
-static void print_cp_instr(struct coproc_params *p)
+static void print_cp_instr(const struct coproc_params *p)
 {
 	if (p->is_64bit) {
 		kvm_debug("%s\tp15, %lu, r%lu, r%lu, c%lu",
@@ -213,7 +213,7 @@ int kvm_handle_cp14_access(struct kvm_vcpu *vcpu, struct kvm_run *run)
  * @p:    The coprocessor parameters struct pointer holding trap inst. details
  */
 static int emulate_cp15_c9_access(struct kvm_vcpu *vcpu,
-				  struct coproc_params *p)
+				  const struct coproc_params *p)
 {
 	BUG_ON(p->CRn != 9);
 	BUG_ON(p->is_64bit);
@@ -251,7 +251,7 @@ static int emulate_cp15_c9_access(struct kvm_vcpu *vcpu,
  * to these registers.
  */
 static int emulate_cp15_c10_access(struct kvm_vcpu *vcpu,
-				   struct coproc_params *p)
+				   const struct coproc_params *p)
 {
 	BUG_ON(p->CRn != 10);
 	BUG_ON(p->is_64bit);
@@ -293,7 +293,7 @@ static int emulate_cp15_c10_access(struct kvm_vcpu *vcpu,
  * This may need to be refined.
  */
 static int emulate_cp15_c15_access(struct kvm_vcpu *vcpu,
-				   struct coproc_params *p)
+				   const struct coproc_params *p)
 {
 	trace_kvm_emulate_cp15_imp(p->Op1, p->Rt1, p->CRn, p->CRm,
 				   p->Op2, p->is_write);


             reply	other threads:[~2012-03-09  4:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-09  4:26 Rusty Russell [this message]
2012-03-09  4:26 ` [PATCH 3/8] ARM: KVM: make struct coproc_params arg const Rusty Russell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1331267212.32474.rusty@rustcorp.com.au \
    --to=rusty@rustcorp.com.au \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.