Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3347901ybk; Tue, 19 May 2020 02:20:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+BNd+ZYoTZ4ITIXTNVWPKaZoekkY7j+ibITDvX8vvENcrwJvhHtvXaAmw5UMnpco/pWHe X-Received: by 2002:a05:6402:206f:: with SMTP id bd15mr11775016edb.3.1589880049651; Tue, 19 May 2020 02:20:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589880049; cv=none; d=google.com; s=arc-20160816; b=D/r2sWs9Rja0HRM4EaFr2IK2nGV5OYTQuImna4zpCb2Uu0I+dXJne6OtMEMqeFeJxg cGzPd2qye9VDsczzjjU6g5B2L0eaAlT9M/y+4TKXVnMQh5yzNZELPHOIIT7PcexlLs+k hYLqtVWTIrfGQ8t5R3KkWBoRz8XgsjwNFlZBhOE13JjCY4WBnqD98QsMj8fqEkPZBgRr DYIhmkjYg4FlB6UjGlL0FG2WpJyvloYOFnCS8NP1l2oJaPtSuyVhliXAO6O69Xd9ma1j AC906xfVzmxXHVZE6d3Xag/63wC6u3lnC2CYuqrhHQhxDmcik551FDKuwimVujEnz7wv Ambw== 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:reply-to:message-id :subject:cc:to:from:date:ironport-sdr:ironport-sdr; bh=hhlRL61cJqub6z/iJpllme3zDxI9WIrcT5Yez7bXmHA=; b=bQ0MvrK3BW4BBxKKVRht7RpRomn/VDwgbehGXliXQtOeRlLqoLNwijF/9Ml1s3jBYs CfkXa7inNQk8pIday1TyRQ3v7OuTP49JKgchvLxMEC16Ug2gOzOD9DfRxc50noyZ3Ao7 yoJfDajpaHrnPDp0O9PixO3sY3bEYwkobN9bne+8b/OA7qkEl20+cm4LLEinTkxlKERI vlM7AtKmGBNsNiGPcTNflAPT3+2rLX8vYnfT7cxWsRopx8Aqm7d+79uGYyp/hXbG1sUM ik/uWyPmNggLag2yY8xi/o5fS6L0dIPaf9EGJgJi7FdpD6NUOYQNWwtTnH2svEp2Nl0k CrMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i19si8491603ejy.14.2020.05.19.02.20.27; Tue, 19 May 2020 02:20:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727811AbgESJSx (ORCPT + 99 others); Tue, 19 May 2020 05:18:53 -0400 Received: from mga12.intel.com ([192.55.52.136]:6249 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726412AbgESJSx (ORCPT ); Tue, 19 May 2020 05:18:53 -0400 IronPort-SDR: rIJVXUsBaKHfdl9BCjYml+o83IGMNBQl2f8iyaOMxriJwEuhTYo0yi9iWFJAhWs7ZtMXYhv162 0u0cZi9A3uSA== X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2020 02:18:53 -0700 IronPort-SDR: eLPJ7emkIjiGp5tvpgx2vYXt/WlHCVeI92gARiXcJIbFd985uSG4b3hmQ33/TUb4eoAoOhpFyj NJi9cBfLPYoQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,409,1583222400"; d="asc'?scan'208";a="264246035" Received: from zhen-hp.sh.intel.com (HELO zhen-hp) ([10.239.160.147]) by orsmga003.jf.intel.com with ESMTP; 19 May 2020 02:18:49 -0700 Date: Tue, 19 May 2020 17:03:49 +0800 From: Zhenyu Wang To: Chris Wilson Cc: Aishwarya Ramakrishnan , Daniel Vetter , David Airlie , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Zhenyu Wang , Zhi Wang , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/i915/gvt: Use ARRAY_SIZE for vgpu_types Message-ID: <20200519090349.GH12464@zhen-hp.sh.intel.com> Reply-To: Zhenyu Wang References: <20200518150336.15265-1-aishwaryarj100@gmail.com> <158983565244.7442.10004490488930800145@build.alporthouse.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XaUbO9McV5wPQijU" Content-Disposition: inline In-Reply-To: <158983565244.7442.10004490488930800145@build.alporthouse.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --XaUbO9McV5wPQijU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2020.05.18 22:00:52 +0100, Chris Wilson wrote: > Quoting Aishwarya Ramakrishnan (2020-05-18 16:03:36) > > Prefer ARRAY_SIZE instead of using sizeof > >=20 > > Fixes coccicheck warning: Use ARRAY_SIZE > >=20 > > Signed-off-by: Aishwarya Ramakrishnan > Reviewed-by: Chris Wilson Applied, thanks! --=20 Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827 --XaUbO9McV5wPQijU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQTXuabgHDW6LPt9CICxBBozTXgYJwUCXsOg9QAKCRCxBBozTXgY J77kAJwPrZXYQuwdV7vDYpOyws1dsMYDawCglf/k9lLHmCPNlRV4qCUW+TyrJMc= =L3VK -----END PGP SIGNATURE----- --XaUbO9McV5wPQijU--