Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5137807ybi; Tue, 4 Jun 2019 01:45:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqHIJRwCmr3tRKw4iEyUl1QnrHt1QHrAQP3K5gpdiGtdGPqyneFLVcz4nDZw/Wo3FBLpTs X-Received: by 2002:a65:6551:: with SMTP id a17mr31076381pgw.1.1559637945845; Tue, 04 Jun 2019 01:45:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559637945; cv=none; d=google.com; s=arc-20160816; b=QdUBZqUzmx031Vz+jyxdVacKCRrJ6d0bXLEnaK8uW8k6JDcaCv5bwbzFu/nJWCQC8L dwv3nXuMvAYiAFj2hJd54zKprHkQ/HrH8XBrDnQYCcpZBev8o/C0y5T7FJFEmLjZdq9l VMdAeL5+GjsoINY0AwLp/+O/xpedp31OL9MKzRMDDc60p5b6+DHQ1onvVWwfysI52L81 cVivWP1ODI45DsObl6dM69OiRiwOs26DNrt1QYADxf8G0+O04oBc8hlB+OX7i5xt78FD HyijZSIsLSWVWL/XifxAQRM0lmhPU3lsOCT4pp6JSzLeJN3W8hVeamcKe7FMjFw6e4Na WCog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MG+EgbEgR/vjjP4kEKmeUNCSa2JHC8iZPtGOmiH1hdQ=; b=Bj3fQ3h5p5/Ux7syojy3bXRymjnZmBVgycwP6RJaD++7FYH4LQ2r00t/VECqiKSigI kXzL6kKvhuVDrctiKXO+qZm5ww8gH65Z0fnot+I3XZxHVMfByKdbqu5td30YQLZ+AI51 zxTtLnmmQzDo5a3CqHE8w7eY+oSf0VS9Cp5ZYgm+zRyPnxVjE1/5G4iD+7VXidrMwl3x aU31BalMCVZM2eVLijXQSuO23SxuCEnVGHQVOWXXxnTrPkM+mks8be81MWrsbCtzLitv xb8sScFdq2HSLUSS2nNyeDBe1LRX8b24QRi86tFyyVpVcJJ8P/IGYKZ1EP21g/JO1Yxz rSoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z28si3945649pga.488.2019.06.04.01.45.27; Tue, 04 Jun 2019 01:45:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726963AbfFDIn4 (ORCPT + 99 others); Tue, 4 Jun 2019 04:43:56 -0400 Received: from foss.arm.com ([217.140.101.70]:37798 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726637AbfFDInz (ORCPT ); Tue, 4 Jun 2019 04:43:55 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6DD2BA78; Tue, 4 Jun 2019 01:43:55 -0700 (PDT) Received: from mbp (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 69A7B3F246; Tue, 4 Jun 2019 01:43:53 -0700 (PDT) Date: Tue, 4 Jun 2019 09:43:50 +0100 From: Catalin Marinas To: Viresh Kumar Cc: Dave Martin , Marc Zyngier , James Morse , Julien Thierry , Suzuki K Pouloze , Will Deacon , Vincent Guittot , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org Subject: Re: [PATCH] KVM: arm64: Drop 'const' from argument of vq_present() Message-ID: <20190604084349.prnnvjvjaeuhsmgs@mbp> References: <699121e5c938c6f4b7b14a7e2648fa15af590a4a.1559623368.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <699121e5c938c6f4b7b14a7e2648fa15af590a4a.1559623368.git.viresh.kumar@linaro.org> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 04, 2019 at 10:13:19AM +0530, Viresh Kumar wrote: > We currently get following compilation warning: > > arch/arm64/kvm/guest.c: In function 'set_sve_vls': > arch/arm64/kvm/guest.c:262:18: warning: passing argument 1 of 'vq_present' from incompatible pointer type > arch/arm64/kvm/guest.c:212:13: note: expected 'const u64 (* const)[8]' but argument is of type 'u64 (*)[8]' Since the vq_present() function does not modify the vqs array, I don't understand why this warning. Compiler bug? -- Catalin