Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3027599ybk; Mon, 18 May 2020 14:03:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCUBOQuOjhAezIAYdOJzHVjvYrJc/m4UXlmqrVmNWwyOKwYluuNvNsJQ8w4WxThm88Yh4A X-Received: by 2002:aa7:c38f:: with SMTP id k15mr1686126edq.7.1589835786532; Mon, 18 May 2020 14:03:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589835786; cv=none; d=google.com; s=arc-20160816; b=eQexvS1eLt+0MOnb3/S97xBBm4dL7RzdaETNjJcrD53OcnoVltEFZnInwjxWCfGsgA i6KzdPOPnQC5V46CdUuyqBNEy/+ylnC8XRkKs+2420CPDiSupAY/i3Xqm7HkGOPFnHge E2Vz+5L9HQwAb/UMHOK1xeSx90+m6MfvE5MDrUuI1MhaUJkOz8C4w87gAv2uUYeosMnV 3B4xsNCEinMKRUQ5jo0kE4JmAVzF2/VK6/h1+8b1nTuNzcQzkXtZ2pEPnpXNNqcyFvrV Iunc0Mca9s9rpftZuHRGVc+IRDTs8+kd+8f1V9i+wMhQVIAi0cEChR5VpSnNxIV+RibI AWfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:message-id:subject:to:cc :from:references:in-reply-to:content-transfer-encoding:mime-version; bh=diGdNH9tdQih//KFdzyHN4vOJeKNEx4Bxrj96VC+TuY=; b=t/vaatMpwjJ1C6eZIDFmVC3wtIWd9Yz6Ak/H57YoES60673hYLyUOzj72SldIt3ewg OxZubeh1NJeSd7C3p+6qps7wV6ckqWipQ277CqDrjnO7MLkJQB1r4XWifYCNEx3q4VmX jBtDEHMbyBcNICLEpdwfIGuzdEXPMcP2RwFbGf7dNag/kNGZt8B5pZSfKXSgN1UDoGkQ gwkPjUBRHI6PT4/v8yOHisc+PUWMEfUJnfSq9T6Jiny44LSQvctfXLI1uuKlzw3wHDtT Y1I0wAU9znfgIvaH6mcMpu8lknqqQGRcFsl/EvyFi8RtmhYMhN7pjRbXl4HgumPEQv1w +tiQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w20si1895671ejf.208.2020.05.18.14.02.42; Mon, 18 May 2020 14:03:06 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727832AbgERVA5 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 18 May 2020 17:00:57 -0400 Received: from mail.fireflyinternet.com ([109.228.58.192]:59742 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726250AbgERVA5 (ORCPT ); Mon, 18 May 2020 17:00:57 -0400 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 21235473-1500050 for multiple; Mon, 18 May 2020 22:00:53 +0100 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT In-Reply-To: <20200518150336.15265-1-aishwaryarj100@gmail.com> References: <20200518150336.15265-1-aishwaryarj100@gmail.com> From: Chris Wilson Cc: aishwaryarj100@gmail.com To: 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: <158983565244.7442.10004490488930800145@build.alporthouse.com> User-Agent: alot/0.8.1 Date: Mon, 18 May 2020 22:00:52 +0100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Aishwarya Ramakrishnan (2020-05-18 16:03:36) > Prefer ARRAY_SIZE instead of using sizeof > > Fixes coccicheck warning: Use ARRAY_SIZE > > Signed-off-by: Aishwarya Ramakrishnan Reviewed-by: Chris Wilson -Chris