Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2415pxu; Thu, 3 Dec 2020 17:25:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFP1t/Ft+rxLaE08Sxh4dizgZNLIaMDDcrYgr0WuBBfMb00QGBwYhgJfTB9qqzlpIOh6ff X-Received: by 2002:a17:906:98d4:: with SMTP id zd20mr5012863ejb.532.1607045140124; Thu, 03 Dec 2020 17:25:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607045140; cv=none; d=google.com; s=arc-20160816; b=hogFSWBrXmwrQ8r0hUxHvAI2yEI+/lG6mhdqYVMS5Db/YGeYmeqjY2ZhcUsG12k/oW dnjqGqHPP6EFB4Z8RSslxmTZJQJslEPjOD5mRnc8VPd9XMmsgWYcfKnfdR5p9c8sG8tv EcLlPkd7EXAJJHrclapUGPcVUFJKnPHKrgKpPZRZ6nOpXQYzfU749945RNqUFeSOxzNt Br6lVJLTIBipGPWvATftThhpSgFzg9f99nIXtXzZIoMxi9AkgKwIGdca9AdNqa8IgjQR JkTBBeTtyApZxGuCclcHTuUkxdek4cmCBQAJKR9vPVaaqtv3tBWJJrjJ1lnppFMNEj3E VMZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:to:from; bh=VEbR753kYzjgHh3AopfSHKxjjt3PiRkYOitQDXMw5fQ=; b=dhOlSKUXSL5FNyYwHtB+Ldl03SRNlrdpyVIjnOHtpHbYRr5fU9QhrAJwIthxBSsI1J 6q9cWteWD45ce9Ugr2/eGflOF3jFboEpQ7j8nwHpb81wtnzud9IX4u4BGpCbWsyP4bdi /k5hti7A0MmMK0jqkadUTJWv8G4ARU7ighi/Ei2aWAHG6/M4HnpkLBTIOC4tAF35nxdy nomKHq8qEtkROS+xg783fXfPXlcB45Q9zzKbzf48X77gg4lo2cv01Uw5aVtH7Xq+pL58 ItUEEoB7lf5Cu4SABlLeLT7uNHF2LasWUgsq9hbdJYAjFT9/ZTGl7059ilsbjsie1N8p 0p5Q== 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 ce9si1981102edb.356.2020.12.03.17.25.18; Thu, 03 Dec 2020 17:25:40 -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 S2388300AbgLDBXs (ORCPT + 99 others); Thu, 3 Dec 2020 20:23:48 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9002 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbgLDBXs (ORCPT ); Thu, 3 Dec 2020 20:23:48 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CnFLk4gPXzhmDT; Fri, 4 Dec 2020 09:22:38 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Fri, 4 Dec 2020 09:23:05 +0800 From: Tian Tao To: , , , , , , , , Subject: [PATCH] drm/nouveau/fb/gp102-: use flexible-array member instead of zero-length array Date: Fri, 4 Dec 2020 09:23:11 +0800 Message-ID: <1607044999-47666-6-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607044999-47666-1-git-send-email-tiantao6@hisilicon.com> References: <1607044999-47666-1-git-send-email-tiantao6@hisilicon.com> 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