From patchwork Tue Sep 5 14:52:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 9939157 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 6936160350 for ; Tue, 5 Sep 2017 14:52:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B7192897B for ; Tue, 5 Sep 2017 14:52:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 500E028995; Tue, 5 Sep 2017 14:52:34 +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 D55312897B for ; Tue, 5 Sep 2017 14:52:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751985AbdIEOwb (ORCPT ); Tue, 5 Sep 2017 10:52:31 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:33875 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751778AbdIEOwX (ORCPT ); Tue, 5 Sep 2017 10:52:23 -0400 Received: by mail-wm0-f47.google.com with SMTP id 137so22792255wmj.1 for ; Tue, 05 Sep 2017 07:52:23 -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=ee9BGJt3ZHR4XVRunCjA5YjsA50QhjOpYfz7tVSRo1Wlj+KLFX2H/ZS+N2/qJg5R9K uPePUCFeD99Q0mJxRbWBT/BEYDYoEC509bwyJPlBKcUdqTslEQt45euVjuGTBdcesKab dMjgwgde3RYtQr0/jsHC1Ty4Ls+sk2iWowks0= 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=RQPGGeL6GezwCKqGlW8srdEdvf2PVd1gR8dC3I0RYFMew2EtbVH8becOBUTQm/7V9r jMKoxd2nu2DPsi437PqAP70ao0/3L0a9LFK7Jd9IBINUxdtFm9fMPmB3BhsLXG7561jN e4fYq6QFCLsNFTP9DtyYkoCT4ZpCzNnaW2y9dnY3vQLCJGKHwfEuytgOic2V8mn9ADgT b55VNF+Vs01aKLEIofo2iT8Gp12/NnHmT3ZdJi60baAXXzVZTUIbHNwtM8XA1WQWVgGR 0ZLKXSRiKCquaurjE5WsCBFYrjNTirhV8ioQ9KnIVGZYPpeN7erSvBLM1w19Hg5WPD6U qJhA== X-Gm-Message-State: AHPjjUiyWeq4huMKnoqZ1ntYx6AOriEamR8ncVxiDc41VCeOZd8ZIB1P WfF4VicDJQNYo0d8 X-Google-Smtp-Source: ADKCNb5ZS6IOFC2SNg5vTwD8rGs9ImQoPPNUY3IDY1X03q1TkDBuuu1zUmEYdpRWUpSJSYWsbDW6NA== X-Received: by 10.80.165.74 with SMTP id z10mr1562862edb.198.1504623142685; Tue, 05 Sep 2017 07:52:22 -0700 (PDT) Received: from localhost.localdomain (xd93ddc2d.cust.hiper.dk. [217.61.220.45]) by smtp.gmail.com with ESMTPSA id a28sm293809edc.14.2017.09.05.07.52.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Sep 2017 07:52:21 -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 5/8] KVM: arm/arm64: vgic: constify seq_operations and file_operations Date: Tue, 5 Sep 2017 16:52:04 +0200 Message-Id: <20170905145207.18447-6-cdall@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170905145207.18447-1-cdall@linaro.org> References: <20170905145207.18447-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,