Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4196672pxf; Tue, 23 Mar 2021 05:21:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGU0W5O431hjUojEIPd6xSzxe/X65X6NuNAFkd58HVBR2vZ4tKn2lpdX/uxJJgh8ay646E X-Received: by 2002:a05:6402:1855:: with SMTP id v21mr4358572edy.310.1616502087285; Tue, 23 Mar 2021 05:21:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616502087; cv=none; d=google.com; s=arc-20160816; b=zyketaiIdVE4tV0cFgnV4mIf8Yp7fZKjNhjU5Y3UDm+wFC2Ll/xFEmv8op7VGdccda UAjXq0hTrdJqf2Aavwd3y+UqWvqaDzq1jWdI4ri4dp6gT+P24RTVgqSAUBEJc3DCT+Ue 8tN0EpHOUuvkH44VpF8Pbs95sUIsyITzTMSNpkR05MnL2XNLp4i2peq82oU6fccqRpHF A9oOwIZkBISiOdNNGrqxDez4LSCudts3fAUy8O4EgWvgWbansNT6psIWFUB6H3GFp67j qhA/T2jPsgPnrUnSmfW9+lar2D2bFZNpL6Geuc0QsGjbCjyWGlnGtEx9jEq9HfhxMYz+ 8VCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=CwRJpzpEjNgsflWmaiDZpoZubmNluzkoGMQU/2sBXIc=; b=PhV03OvZ3iRXyAfWUbeFayIlv78f6oqbMZsS+QK0oYmIYNuRnKcVRGXxM5ZtI7tNKy Id4xxNJfBHbj90bHtZJLPwXBY7Kfc5kAvejq3GrXOEa6Og7cpx8LCFagpRz5OJ0LcfBz azihlTbbkFujOnmMqp78eHsmoYlJjjovhbqgFmmwwLQ7Tsr+y6tqU+IT9CyOBg8U/YZP m2QbfD5ESGSzfAMltyk1CKfXxnbJxKzj9dvdtUozlwIodT/0lz/+PFxWHwC+ApXcmwOO QnY0EHCrHAke+ztLFwvSXFFJXYawE1zhOo0wAnaRazqG1+uSKEqJLlHkJIkw0SBic9Jv 26IA== 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=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si14144968ejr.192.2021.03.23.05.21.02; Tue, 23 Mar 2021 05:21:27 -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=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230154AbhCWMRP (ORCPT + 99 others); Tue, 23 Mar 2021 08:17:15 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:14847 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230113AbhCWMQi (ORCPT ); Tue, 23 Mar 2021 08:16:38 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4F4Vfk1Mj1z92vY; Tue, 23 Mar 2021 20:14:38 +0800 (CST) Received: from hulk-robot-4.huawei.com (10.175.124.27) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Tue, 23 Mar 2021 20:16:27 +0800 From: Zou Wei To: , , , , CC: , , Zou Wei Subject: [PATCH -next] drm/vmwgfx/vmwgfx_validation: Use flexible-array member instead of zero-length array Date: Tue, 23 Mar 2021 13:02:04 +0000 Message-ID: <20210323130204.45439-1-zou_wei@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.27] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Suppresses the following coccinelle warning: drivers/gpu/drm/vmwgfx/vmwgfx_validation.c:85:15-22: WARNING use flexible-array member instead Signed-off-by: Zou Wei --- drivers/gpu/drm/vmwgfx/vmwgfx_validation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_validation.c b/drivers/gpu/drm/vmwgfx/vmwgfx_validation.c index e7570f422400..f4837130d67b 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_validation.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_validation.c @@ -82,7 +82,7 @@ struct vmw_validation_res_node { u32 reserved : 1; u32 dirty : 1; u32 dirty_set : 1; - unsigned long private[0]; + unsigned long private[]; }; /** -- 2.17.1