From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69F04C432BE for ; Mon, 23 Aug 2021 08:06:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4B7766135F for ; Mon, 23 Aug 2021 08:06:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235510AbhHWIHQ (ORCPT ); Mon, 23 Aug 2021 04:07:16 -0400 Received: from mga17.intel.com ([192.55.52.151]:32888 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235353AbhHWIHN (ORCPT ); Mon, 23 Aug 2021 04:07:13 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10084"; a="197305812" X-IronPort-AV: E=Sophos;i="5.84,344,1620716400"; d="scan'208";a="197305812" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2021 01:06:31 -0700 X-IronPort-AV: E=Sophos;i="5.84,344,1620716400"; d="scan'208";a="454711699" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2021 01:06:28 -0700 Received: from paasikivi.fi.intel.com (localhost [127.0.0.1]) by paasikivi.fi.intel.com (Postfix) with SMTP id E51D42051E; Mon, 23 Aug 2021 11:06:25 +0300 (EEST) Date: Mon, 23 Aug 2021 11:06:25 +0300 From: Sakari Ailus To: CGEL Cc: Bingbu Cao , Tianshu Qiu , Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, jing yangyang , Zeal Robot Subject: Re: [PATCH linux-next] ipu3: use flexible-array member instead of zero-length array Message-ID: <20210823080625.GE3@paasikivi.fi.intel.com> References: <20210821034709.28061-1-jing.yangyang@zte.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210821034709.28061-1-jing.yangyang@zte.com.cn> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jing, On Fri, Aug 20, 2021 at 08:47:09PM -0700, CGEL wrote: > From: jing yangyang > > Fix the following coccicheck warning: > ./drivers/staging/media/ipu3/ipu3-css-fw.h:174:21-34:i > WARNING: use flexible-array member instead > > Reported-by: Zeal Robot > Signed-off-by: jing yangyang Thanks for the patch. Gustavo Silva's patch "media: staging/intel-ipu3: css: Fix wrong size comparison imgu_css_fw_init" has addressed this, and fixed another problem as well. In other words, removing array entries from structs can have side effects. -- Kind regards, Sakari Ailus