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: 9939193 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 32D14604D3 for ; Tue, 5 Sep 2017 15:06:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21D1C28987 for ; Tue, 5 Sep 2017 15:06:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 169D2289A5; Tue, 5 Sep 2017 15:06:33 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A78D928987 for ; Tue, 5 Sep 2017 15:06:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=wFggO2U2cViQtyCWDYa0sDDwiZc9gvU/eVamG4dImiE=; b=qDVFYcRgEOp+tI52K4B77AQhO1 MoCZiP3KxTlZTQAa4N2BM3AVy0oKJOGiOR7iRQCwjBvEd2+Tb9V15Qcwmcl2CtMCewe0jkGMrn1fA wy3VknFONrwK/LJEEz9757x+D4v19tRpTlFpRT3km7jQ/pmhN3AaSPZJhPFZA7HiS4CDXUXHlPUkk QnXrKouln9QFL2wJ8YViFwjuwifW5CUCHztED1Yak/M0rIeKWR0TCOJ8TplPzO4PxTKDZcZ+oI5Z9 A8nWS3fgANtCPMPkKBwUZHmCLu0yipy48G6qluNAhJFVz7AMMKWzkSmLDirz8WMZnTNE8NuRELDHb hTG+5LBg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dpFQi-0007nm-Kr; Tue, 05 Sep 2017 15:06:20 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dpFDY-0007Zy-DE for linux-arm-kernel@lists.infradead.org; Tue, 05 Sep 2017 14:52:50 +0000 Received: by mail-wm0-x231.google.com with SMTP id f145so11659218wme.0 for ; Tue, 05 Sep 2017 07:52:24 -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=dYSya6mk8NgjZqT/YV3/mhmsInN9lb+tIOUUMhRfkx2xuzmZxMoEQQWE4a60svABvw axDu9nSM5uOKZ5jOvJXbkQkeui0VHAIYIrlCv1O+9+djYxjEPiy3gHvzJRsAQfjPF106 PqEjKqW6GlEUVrToPwKsLgwESdlSvLpe9zhNgUJu+0wk6w4ZxmEJwwzBEbVPU1jQEqcg qsZ8v6RoH/onbvs3mjNS5KnUeeUPeHTFHpms89UPn34Kd3pIzEUiwwBBhHFAmOmCoKFD j9JxJ3CHUcRywXJjy24tw85mGpHwSmt0rYCwApLMFhLFJKNAo5Zzq7fQBBVhTN28KZqt lyhw== X-Gm-Message-State: AHPjjUi5P/ylkJ+jg0peuX/uCiVVYmNakAPNuRnPd9Q1NJSdqvYALn1I Ity2yEdqI4FPyJR3 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?= 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170905_075244_782073_047BBA8C X-CRM114-Status: GOOD ( 10.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christoffer Dall , kvm@vger.kernel.org, Marc Zyngier , Arvind Yadav , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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,