Skip to content

Commit

Permalink
KVM: s390: Constify intercept handler tables.
Browse files Browse the repository at this point in the history
These tables are never modified.

Reviewed-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
  • Loading branch information
Cornelia Huck authored and Marcelo Tosatti committed Jan 7, 2013
1 parent 0ca1b4f commit 7797535
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/s390/kvm/intercept.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static int handle_lctl(struct kvm_vcpu *vcpu)
return 0;
}

static intercept_handler_t instruction_handlers[256] = {
static const intercept_handler_t instruction_handlers[256] = {
[0x01] = kvm_s390_handle_01,
[0x83] = kvm_s390_handle_diag,
[0xae] = kvm_s390_handle_sigp,
Expand Down
4 changes: 2 additions & 2 deletions arch/s390/kvm/priv.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ static int handle_stsi(struct kvm_vcpu *vcpu)
return 0;
}

static intercept_handler_t priv_handlers[256] = {
static const intercept_handler_t priv_handlers[256] = {
[0x02] = handle_stidp,
[0x10] = handle_set_prefix,
[0x11] = handle_store_prefix,
Expand Down Expand Up @@ -405,7 +405,7 @@ static int handle_sckpf(struct kvm_vcpu *vcpu)
return 0;
}

static intercept_handler_t x01_handlers[256] = {
static const intercept_handler_t x01_handlers[256] = {
[0x07] = handle_sckpf,
};

Expand Down

0 comments on commit 7797535

Please sign in to comment.