From patchwork Tue Sep 5 15:41:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 9939231 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 805F760350 for ; Tue, 5 Sep 2017 15:41:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72DB32897C for ; Tue, 5 Sep 2017 15:41:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6782F289AF; Tue, 5 Sep 2017 15:41:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10D462897C for ; Tue, 5 Sep 2017 15:41:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751880AbdIEPlU (ORCPT ); Tue, 5 Sep 2017 11:41:20 -0400 Received: from mail-wm0-f48.google.com ([74.125.82.48]:38593 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751382AbdIEPlT (ORCPT ); Tue, 5 Sep 2017 11:41:19 -0400 Received: by mail-wm0-f48.google.com with SMTP id 187so20932465wmn.1 for ; Tue, 05 Sep 2017 08:41:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Uc3ViEg6mffb0YE49EhMvGhEkH449XkigkVFlOiviJA=; b=kLj7g/VpmkeVORvDTFeO3XbY0bZutK290EtRNvEZl3ew6j0Hl8VPY+1XNiB1KHauMb pCHhY8SMeJF3X8XxqaCX9v8KAzP8fPXN0YcmlEf6X/Lf/1v3PYnpkKULQBtG5DVY3POS V3Wb5IJAM0c/hZKAu1hXGgqeKoxzd9zGbZ+gE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Uc3ViEg6mffb0YE49EhMvGhEkH449XkigkVFlOiviJA=; b=nyV46ITi0sd5ULEo4hg82ndyM+XGtTuwnRPtWaMLTWEsD0wQDUb3iE0hmeBXUEPTa8 Gp6XYprFMath/SwTLpiX5Lu21skmJVwq/gPZ3ZqWN7NjrEJXWexU0HtUFj7FNnoPtwq7 bAEM0msH1n/xY4Tycjwubdsd+FWz6Aep1KDIBZlER0RTL6opYJgSYm5oiuNLVFJpt8UT wEIBnHP0uhWMwXKuCyxNQuvnKXp6DdxeLZtEZbUfzSegIdZQ4v0b25Fr9T31JtapXCtl thjmIn5XymInVYu8riYTM/TnycvP8u5YhHFOypoeTguEuS5WpTqTeDKxVMQWaQOpl1ic LzTg== X-Gm-Message-State: AHPjjUhGsaqDcHpSHaHmEa3xKm5sS/NV3yTbiAwyLJQN9Clj0B7LBf/B ms9X0ia6+tOWk8y5LaIANg== X-Google-Smtp-Source: ADKCNb60HdHYCGOlWetp0pPpC3ykU08blIYX8loC/z+wCj5ZGAhcjCkLzPiG+2ewVLSNJoRvEsIzsQ== X-Received: by 10.80.226.77 with SMTP id o13mr3549453edl.102.1504626077916; Tue, 05 Sep 2017 08:41:17 -0700 (PDT) Received: from localhost.localdomain (xd93ddc2d.cust.hiper.dk. [217.61.220.45]) by smtp.gmail.com with ESMTPSA id k19sm336273eda.73.2017.09.05.08.41.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Sep 2017 08:41:16 -0700 (PDT) From: Christoffer Dall To: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Cc: Marc Zyngier , kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Arvind Yadav , Christoffer Dall Subject: [PULL v2 2/5] KVM: arm/arm64: vgic: constify seq_operations and file_operations Date: Tue, 5 Sep 2017 17:41:03 +0200 Message-Id: <20170905154106.2945-3-cdall@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170905154106.2945-1-cdall@linaro.org> References: <20170905154106.2945-1-cdall@linaro.org> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Arvind Yadav 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 Signed-off-by: Christoffer Dall --- 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,