Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp681844pxu; Mon, 23 Nov 2020 00:58:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2Zg50QVt1kM6hWiz+kRmGfAPH3HstRG/YnU06OLQ07mROITUVCUlklezAVrKkOtQa90ve X-Received: by 2002:a50:e68a:: with SMTP id z10mr16128315edm.66.1606121925176; Mon, 23 Nov 2020 00:58:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606121925; cv=none; d=google.com; s=arc-20160816; b=TUD6l08RBPe48fo04LzWnHDn4iMLjgUZo2jqwgop0KbEbEydFGxMRMMola2Up7PYIJ qJ/3yPzoc1NGhJBHhWMJVTNUcP3yWmUjDWh+Ntpnhix4qGRF6+13bxYzxxpX7WFbJ8A8 SBIg3skJYXi40KF6C2KrwElEv2fD5iM3KKv32PSl+ADZF/9goJDKmXK8o/VXcaj8Aucq fBbKpnHx47NBNf/4R8oOluOrorM/prU4NnVudWUIKQ9VbSesGi42jcwwYkQMFoRGDReL PZtbUXA08ry1ArVgw6ltOtGOfHx6CXc/r+B7DnAvFLrDb69MpkFy7p7mmKx7CY77+35m QqEg== 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:to:from; bh=VEbR753kYzjgHh3AopfSHKxjjt3PiRkYOitQDXMw5fQ=; b=CSCwdcnxSxnnuowEiHjFzXm3qV9iZt4ryBGjyKKyOOxZCySTEL6/LlBSfa8qisPyt/ O+mksrRoKrlep4X+htmx9sO0Cu+XW39fai3l8UUOnK6Ql4SVUP+HOdBwrrpO+8aTj9+T BA0xl67hB1Ifz3WNY9Pls70xZdUg7ot0pl2U1CT6FY68EAGjbjUukjeh0qT37qG5JbLr ZLTRbpOUHlIBc5paVus5HXPNEJXOXg4MyBKmiO53NbvMZfRToZm296z9rC6pknV1dYNx YSlUjkkEhaIUaVlSQRg4J22b8Fq0oHos4/AxlGmdq9oRhvBwkcLpymYwc4ewwvGgdbyJ E6gg== 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 l4si6419240edn.212.2020.11.23.00.58.22; Mon, 23 Nov 2020 00:58:45 -0800 (PST) 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 S1727558AbgKWIfB (ORCPT + 99 others); Mon, 23 Nov 2020 03:35:01 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:8015 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbgKWIfB (ORCPT ); Mon, 23 Nov 2020 03:35:01 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CfgSD3CS8zhg5t; Mon, 23 Nov 2020 16:34:36 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Mon, 23 Nov 2020 16:34:52 +0800 From: Tian Tao To: , , , , , Subject: [PATCH] drm/nouveau/fb/gp102-: use flexible-array member instead of zero-length array Date: Mon, 23 Nov 2020 16:35:15 +0800 Message-ID: <1606120515-45702-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fixed the coccicheck: drivers/gpu/drm/nouveau/include/nvfw/hs.h:26:5-9: WARNING use flexible-array member instead. Signed-off-by: Tian Tao --- drivers/gpu/drm/nouveau/include/nvfw/hs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/include/nvfw/hs.h b/drivers/gpu/drm/nouveau/include/nvfw/hs.h index 64d0d32..b53bbc4 100644 --- a/drivers/gpu/drm/nouveau/include/nvfw/hs.h +++ b/drivers/gpu/drm/nouveau/include/nvfw/hs.h @@ -23,7 +23,7 @@ struct nvfw_hs_load_header { u32 data_dma_base; u32 data_size; u32 num_apps; - u32 apps[0]; + u32 apps[]; }; const struct nvfw_hs_load_header * -- 2.7.4