Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5147530ybi; Tue, 4 Jun 2019 01:57:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8qcTQX6FWBPLUM4fYYqR4WaOLq/9VeIH/CuD3APKw3x4MCUQbUhu8+Y/tvPT8dX/jIjPl X-Received: by 2002:a17:902:b18c:: with SMTP id s12mr33910145plr.181.1559638641011; Tue, 04 Jun 2019 01:57:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559638641; cv=none; d=google.com; s=arc-20160816; b=RYIf7kyH1Yp72R4UZU2fSfzsuidgxWQ4E1LnxPTIW3dOs0s+gDzBMj13Zuxc029opn BTUn68mL8FcmNwOyQdCkDY2ee1mGaJIELTKxJL5JeZyeaqI/ptThghrz7663AKNwMpcN 9OvA4O1Pp0EMdZNHAUT+2dI/eGN5Mwb8jQGv2JmzB6tLILtezXZmUF6v2cWOlcHqo4OX 4aMC3679o/6/Sro+/fyS9+DARYPwzFS0a5TjJc9U+6NnfqDCIVIEpefMe/zd0xoXZYwR xwbnj4SIAOywCgG2xwdvlRksq4o/dBnTKFY53Rn0DEkMLdHLFxgLEQ2NAqrmTkZb6OsX yy3g== 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:dkim-signature; bh=kx5q7zCTFKw0j3QN1oqE8pZnZTP9To8Le7W99DKm2LU=; b=esli/HKIrEQFCHbtLqpR/6CED/kU5DHDfgMxtEy4JrS0SqbX2ywTnVGClNGhokfxrz Z/bL+Msu8OFCOeFVLaNZ63wriBgR6MDc4p8xhfSpS8oEvViij9efYhawXQMkuCKv8WRq 5svl27dx0kJRVUcFin9fo6wyzskDrOXuv1Vkfc+9VQpg7GzAdC8Xj01N3OpJpyQlqbvq 6CQze2fgkwDB28VzatED4BT9lnAw0jXqRR7nWYQPUry3hFEDWRM4n1V2ZcmnN0Tftma4 6SHKDsNE484PJL3cTeB+R0r4hoAq9eDsT5paq02FXSmNUTiq1dlq5PnSRskQDcT3Oozl 4GCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sW4SdT2R; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a14si23209397pff.135.2019.06.04.01.57.04; Tue, 04 Jun 2019 01:57:20 -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; dkim=pass header.i=@linaro.org header.s=google header.b=sW4SdT2R; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727080AbfFDIzv (ORCPT + 99 others); Tue, 4 Jun 2019 04:55:51 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:41778 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726883AbfFDIzu (ORCPT ); Tue, 4 Jun 2019 04:55:50 -0400 Received: by mail-pg1-f194.google.com with SMTP id 83so3137004pgg.8 for ; Tue, 04 Jun 2019 01:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=kx5q7zCTFKw0j3QN1oqE8pZnZTP9To8Le7W99DKm2LU=; b=sW4SdT2R95XIX+vXafemro3dM2V7gCnY1WEO1ChuJw8577FfF4rpJTWX3J2hPWsmiw b15JXnIO87kszDkbXvD9vAIkC9jcBM/+CZdeQeK64Dili6fANlVoIrxtnTODhCmQaosz ZrjP9hAEmTn5YbHldzcM7oZW+ufKWM2emARh/YhJkOag4U+xO/+uS0WFmSLd9i8MNg/e WWUyHYR2R9bUxhOGAymLg4gqZMSc01/zfU9c5fUJQoQhTJXQPpwh2ABhYsBOrDJ67hEX YxLddJ/KMmCzeJO8Wd67wtIPVoFogIEfgAWggKTgK12LnKB7X7XfxzQdPQxjlpFB7N4p UEXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=kx5q7zCTFKw0j3QN1oqE8pZnZTP9To8Le7W99DKm2LU=; b=b3rYm75O8t0TFazPAmrjAVcEAAU1KlTqnN8dhA6GrDULYm1XijeJ1rAeH7zYCX8O++ /UqIjfZ+K1Dl0+vCu9CdZjH9gCAKisLCvUYTVLN/NiFWi63ustBgJNvhNjfzmFXbZNva W4gpvAVrQeKT9zw3D5J4WDGMcj5/yUOX9bPjOeiWfT91NTaZOpMgwtncyiHisggSkJwl eO68x5a169LuN7oiYlYk83B9BvCt0AI7BOdyRc1RWRBf5L+BkkcIMAZemBHHxUEC4i/5 Ra4IDBpc2ONhcSubRa9xV9h/jVq9J3cqZkiSiJy22qrmcii6jlBAkVCwhPLN8/+7B0xn SX0w== X-Gm-Message-State: APjAAAUxHbexVQ0j5A9cXVYARVm+z2kE1KyEIimsClMP2RSSjj18sq1V XgFF98e6R2/Z5W/x+r76JgbWbwtKeW0= X-Received: by 2002:a17:90a:bf84:: with SMTP id d4mr34814181pjs.124.1559638549661; Tue, 04 Jun 2019 01:55:49 -0700 (PDT) Received: from localhost ([122.172.66.84]) by smtp.gmail.com with ESMTPSA id l23sm18420974pgh.68.2019.06.04.01.55.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jun 2019 01:55:47 -0700 (PDT) Date: Tue, 4 Jun 2019 14:25:45 +0530 From: Viresh Kumar To: Catalin Marinas 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: <20190604085545.hsmxfqkpt2cbrhtw@vireshk-i7> References: <699121e5c938c6f4b7b14a7e2648fa15af590a4a.1559623368.git.viresh.kumar@linaro.org> <20190604084349.prnnvjvjaeuhsmgs@mbp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190604084349.prnnvjvjaeuhsmgs@mbp> User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04-06-19, 09:43, Catalin Marinas wrote: > 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? Probably yes. Also marking array argument to functions as const is a right thing to do, to declare that the function wouldn't change the array values. I tried a recent toolchain and this doesn't happen anymore. Sorry for the noise. -- viresh