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: 9939241 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 1775160350 for ; Tue, 5 Sep 2017 15:42:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AEBA2897F for ; Tue, 5 Sep 2017 15:42:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F3DC7289AC; Tue, 5 Sep 2017 15:42:26 +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 9C6A32897F for ; Tue, 5 Sep 2017 15:42:26 +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=iR3uH9IJDuDt5Dk1aFsk4z2BLb VPj4+y2udXD889w2Sg3glxyQqXX0PPanjE0h2KZuJXOAPpD/IckoVYcmMTWBBrLRyNJ0+zXIAX7io PTb51G8ZzF19TIuIKt2S44+yqmfHPnBiOjj8ThUVjA33xWCDd68vte6R2XFxM4kSV1SqVTJ84PvE4 8by4x227IjlAL85njJWR8zSq/Uc7+4qOgWz23JcpkiH4aaMtkXHNhEIc/LvlPpKENSdWm72lntDEO /wXIx3UeDPmHJAHw4VjO2clt/RuiUasTVR2MrRfb4KqyDn3k/oSNuQW38Ri/2jpfm5N6O6Ks+rdIp ZasQosig==; 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 1dpFzW-0006vt-Os; Tue, 05 Sep 2017 15:42:18 +0000 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dpFyu-0006IJ-CI for linux-arm-kernel@lists.infradead.org; Tue, 05 Sep 2017 15:41:42 +0000 Received: by mail-wm0-x22a.google.com with SMTP id 187so20932466wmn.1 for ; Tue, 05 Sep 2017 08:41:19 -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=HPeivHkVeM8tNljoJ+cgS/mQ/vUAgH+WXZ4DSGlGoNFsg75ISUAow+NXC1ZNP4EUHI VAj6hsKiVMhptOW4lTfh1Job8ROjXNZZ/ETo0bUYA0PQhCSR2GwyXM75vIgWDwRsXrcd 5v3AEAJYcixyoWTMSR1fvxx1usMSiUBVhq979HxhcHpn3N4pGDFKwi1Vo8DaKngaoNri JiYWNeVXnmRpxODI+YrDajo5cNV7+orRK731m5cHweGOv7PB4piTnpjmlgsWIvCHlmqF S+Ka65CVvc19F/4NvGYdwv/82Ta/qi9yTmoXElqE0vMuLkaZYGXEXzf2o7m/jq9JuVtl i3YQ== X-Gm-Message-State: AHPjjUhXO4oxqXg6eDMZh/XVYTjz4fE7xu0Nj2QMlnYP8wl7ZEzKRsPX +/esOIGspItZdhqx 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?= 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170905_084140_568961_32EA8766 X-CRM114-Status: GOOD ( 11.04 ) 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,