Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1718088 > unrolled thread

[PATCH] KVM: arm/arm64: vgic: constify seq_operations and file_operations

Started byArvind Yadav <arvind.yadav.cs@gmail.com>
First post2017-08-23 09:00 +0200
Last post2017-08-24 18:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] KVM: arm/arm64: vgic: constify seq_operations and file_operations Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-23 09:00 +0200
    Re: [PATCH] KVM: arm/arm64: vgic: constify seq_operations and  file_operations Christoffer Dall <christoffer.dall@linaro.org> - 2017-08-24 18:30 +0200

#1718088 — [PATCH] KVM: arm/arm64: vgic: constify seq_operations and file_operations

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-23 09:00 +0200
Subject[PATCH] KVM: arm/arm64: vgic: constify seq_operations and file_operations
Message-ID<uhxNU-5A9-7@gated-at.bofh.it>
vgic_debug_seq_ops and file_operations are not supposed to change
at runtime and none of the structures is modified.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
 virt/kvm/arm/vgic/vgic-debug.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/virt/kvm/arm/vgic/vgic-debug.c b/virt/kvm/arm/vgic/vgic-debug.c
index 7072ab7..10b3817 100644
--- a/virt/kvm/arm/vgic/vgic-debug.c
+++ b/virt/kvm/arm/vgic/vgic-debug.c
@@ -234,7 +234,7 @@ static int vgic_debug_show(struct seq_file *s, void *v)
 	return 0;
 }
 
-static struct seq_operations vgic_debug_seq_ops = {
+static const struct seq_operations vgic_debug_seq_ops = {
 	.start = vgic_debug_start,
 	.next  = vgic_debug_next,
 	.stop  = vgic_debug_stop,
@@ -255,7 +255,7 @@ static int debug_open(struct inode *inode, struct file *file)
 	return ret;
 };
 
-static struct file_operations vgic_debug_fops = {
+static const struct file_operations vgic_debug_fops = {
 	.owner   = THIS_MODULE,
 	.open    = debug_open,
 	.read    = seq_read,
-- 
1.9.1

[toc] | [next] | [standalone]


#1719394 — Re: [PATCH] KVM: arm/arm64: vgic: constify seq_operations and file_operations

FromChristoffer Dall <christoffer.dall@linaro.org>
Date2017-08-24 18:30 +0200
SubjectRe: [PATCH] KVM: arm/arm64: vgic: constify seq_operations and file_operations
Message-ID<ui3b4-tc-33@gated-at.bofh.it>
In reply to#1718088
On Wed, Aug 23, 2017 at 12:25:36PM +0530, Arvind Yadav wrote:
> vgic_debug_seq_ops and file_operations are not supposed to change
> at runtime and none of the structures is modified.
> 
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>

Applied, thanks.
-Christoffer

> ---
>  virt/kvm/arm/vgic/vgic-debug.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/virt/kvm/arm/vgic/vgic-debug.c b/virt/kvm/arm/vgic/vgic-debug.c
> index 7072ab7..10b3817 100644
> --- a/virt/kvm/arm/vgic/vgic-debug.c
> +++ b/virt/kvm/arm/vgic/vgic-debug.c
> @@ -234,7 +234,7 @@ static int vgic_debug_show(struct seq_file *s, void *v)
>  	return 0;
>  }
>  
> -static struct seq_operations vgic_debug_seq_ops = {
> +static const struct seq_operations vgic_debug_seq_ops = {
>  	.start = vgic_debug_start,
>  	.next  = vgic_debug_next,
>  	.stop  = vgic_debug_stop,
> @@ -255,7 +255,7 @@ static int debug_open(struct inode *inode, struct file *file)
>  	return ret;
>  };
>  
> -static struct file_operations vgic_debug_fops = {
> +static const struct file_operations vgic_debug_fops = {
>  	.owner   = THIS_MODULE,
>  	.open    = debug_open,
>  	.read    = seq_read,
> -- 
> 1.9.1
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web