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=-6.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 CCDA0C433DB for ; Tue, 9 Mar 2021 14:05:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 79EB5651CC for ; Tue, 9 Mar 2021 14:05:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229851AbhCIOFI (ORCPT ); Tue, 9 Mar 2021 09:05:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:58676 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230522AbhCIOEr (ORCPT ); Tue, 9 Mar 2021 09:04:47 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 13C40650FD; Tue, 9 Mar 2021 14:04:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615298686; bh=T3uIKz2+eZ+SCEhkka0cXLHV5rTFApYPAIjw6qcl83Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=S5zGiObcWJQNGDpcUo9RL00h+FCxEqUzZAdsXV1vzFo8cRfmwLM8K1cpvaSKK3m2T au2NeVs6QkZvAc7Er2DyK8r+CxBqivEcNPVhNxwVcv0SBc6V5oVXNZNdWhj1NuVLaR 4Ew3E+DJQ4+yhcM5YifHIaaOkRq1dtzQ4WhzIZRA= Date: Tue, 9 Mar 2021 15:04:44 +0100 From: Greg Kroah-Hartman To: Julia Lawall Cc: Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Denis Efremov , kbuild-all@01.org Subject: Re: [PATCH] tty: max310x: fix flexible_array.cocci warnings Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org On Mon, Mar 08, 2021 at 06:47:19PM +0100, Julia Lawall wrote: > From: kernel test robot > > Zero-length and one-element arrays are deprecated, see > Documentation/process/deprecated.rst > Flexible-array members should be used instead. > > Generated by: scripts/coccinelle/misc/flexible_array.cocci > > Fixes: 7b36c1398fb6 ("coccinelle: misc: add flexible_array.cocci script") This can't be true, as the driver code did not change for that commit :( Can you provide the commit where the driver itself caused the problem? thanks, greg k-h