From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81A57C10F14 for ; Thu, 3 Oct 2019 13:23:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5C80D2053B for ; Thu, 3 Oct 2019 13:23:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730395AbfJCNX0 (ORCPT ); Thu, 3 Oct 2019 09:23:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50562 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726199AbfJCNX0 (ORCPT ); Thu, 3 Oct 2019 09:23:26 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 238833C919; Thu, 3 Oct 2019 13:23:26 +0000 (UTC) Received: from kamzik.brq.redhat.com (unknown [10.43.2.160]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 093B510013A7; Thu, 3 Oct 2019 13:23:23 +0000 (UTC) Date: Thu, 3 Oct 2019 15:23:21 +0200 From: Andrew Jones To: Steven Price Cc: Marc Zyngier , Will Deacon , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Catalin Marinas , linux-doc@vger.kernel.org, Russell King , Paolo Bonzini Subject: Re: [PATCH v5 06/10] KVM: Allow kvm_device_ops to be const Message-ID: <20191003132321.jd7wtkbcdmyx7gnv@kamzik.brq.redhat.com> References: <20191002145037.51630-1-steven.price@arm.com> <20191002145037.51630-7-steven.price@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191002145037.51630-7-steven.price@arm.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 03 Oct 2019 13:23:26 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 02, 2019 at 03:50:33PM +0100, Steven Price wrote: > Currently a kvm_device_ops structure cannot be const without triggering > compiler warnings. However the structure doesn't need to be written to > and, by marking it const, it can be read-only in memory. Add some more > const keywords to allow this. > > Signed-off-by: Steven Price > --- > include/linux/kvm_host.h | 4 ++-- > virt/kvm/kvm_main.c | 6 +++--- > 2 files changed, 5 insertions(+), 5 deletions(-) > Reviewed-by: Andrew Jones