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=-11.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 64D49C433DF for ; Fri, 22 May 2020 21:25:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 40CE520723 for ; Fri, 22 May 2020 21:25:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731069AbgEVVZE (ORCPT ); Fri, 22 May 2020 17:25:04 -0400 Received: from mail-il1-f193.google.com ([209.85.166.193]:45927 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730976AbgEVVZD (ORCPT ); Fri, 22 May 2020 17:25:03 -0400 Received: by mail-il1-f193.google.com with SMTP id b15so12097803ilq.12 for ; Fri, 22 May 2020 14:25:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CTkSYFeyEICq4BQf/4yKxmOZ5ACYCOJzi1wgxve1pBQ=; b=dBj8Wm2yGF16aXN2JfhkbOds1j3w8eFtTpO4vZ8kTR+tL3b0KvZPsWqw/sYkVdZhSg sagO3u5uBi3vKxR0dRr0xlxJJEXtFlmRcBNMqR85v43Cy4mx7CQgmManiA2jiMlK2XwY cUXWhzg6Ixa1qp+lrSj1H2UEHohbOAWKMZQVAxWvEEeDpZcwp0nHOUZfNNr7gzOGJCDG 0+kakvPqvWpyuFEzQvRvAdc4G69nVFF6UAvH6tp2WBIt/pwriRoKnFHz1HfJJoUiu9UB dp3dyORGgsJQCafCe2r9o6PGrWXQUaTh9xktkeu3IBf7Fu/+8RQbbLlOdyxnMn/6ghSv KMEg== X-Gm-Message-State: AOAM5309bTrFXdSxAoYja08f5VQjWd3iE481sAYr4CtYM+iPFeucdMKR mWCZUy0w5vBrl/F7fELx9l13n9o8 X-Google-Smtp-Source: ABdhPJyRblSRaDcvhjtXm0c1XfBEfConje3POtUZgsj8+Z+wnLOjcljYkjJDwMjggId+Vs4HXacI7w== X-Received: by 2002:a05:6e02:788:: with SMTP id q8mr15055071ils.56.1590182701163; Fri, 22 May 2020 14:25:01 -0700 (PDT) Received: from mail-il1-f178.google.com (mail-il1-f178.google.com. [209.85.166.178]) by smtp.gmail.com with ESMTPSA id j14sm4121104ioj.26.2020.05.22.14.25.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 May 2020 14:25:00 -0700 (PDT) Received: by mail-il1-f178.google.com with SMTP id 18so12159245iln.9 for ; Fri, 22 May 2020 14:25:00 -0700 (PDT) X-Received: by 2002:a05:6e02:54b:: with SMTP id i11mr7075081ils.50.1590182700558; Fri, 22 May 2020 14:25:00 -0700 (PDT) MIME-Version: 1.0 References: <20200507185301.GA14333@embeddedor> In-Reply-To: <20200507185301.GA14333@embeddedor> From: Li Yang Date: Fri, 22 May 2020 16:24:37 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] treewide: Replace zero-length array with flexible-array To: "Gustavo A. R. Silva" Cc: linuxppc-dev , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 7, 2020 at 1:49 PM Gustavo A. R. Silva wrote: > > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99: > > struct foo { > int stuff; > struct boo array[]; > }; > > By making use of the mechanism above, we will get a compiler warning > in case the flexible array does not occur last in the structure, which > will help us prevent some kind of undefined behavior bugs from being > inadvertently introduced[3] to the codebase from now on. > > Also, notice that, dynamic memory allocations won't be affected by > this change: > > "Flexible array members have incomplete type, and so the sizeof operator > may not be applied. As a quirk of the original implementation of > zero-length arrays, sizeof evaluates to zero."[1] > > sizeof(flexible-array-member) triggers a warning because flexible array > members have incomplete type[1]. There are some instances of code in > which the sizeof operator is being incorrectly/erroneously applied to > zero-length arrays and the result is zero. Such instances may be hiding > some bugs. So, this work (flexible-array member conversions) will also > help to get completely rid of those sorts of issues. > > This issue was found with the help of Coccinelle. > > [1] https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html > [2] https://github.com/KSPP/linux/issues/21 > [3] commit 76497732932f ("cxgb3/l2t: Fix undefined behaviour") > > Signed-off-by: Gustavo A. R. Silva > --- > include/linux/fsl/bestcomm/bestcomm.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied for next. Thanks. Regards, Leo > > diff --git a/include/linux/fsl/bestcomm/bestcomm.h b/include/linux/fsl/bestcomm/bestcomm.h > index a0e2e6b19b57..154e541ce57e 100644 > --- a/include/linux/fsl/bestcomm/bestcomm.h > +++ b/include/linux/fsl/bestcomm/bestcomm.h > @@ -27,7 +27,7 @@ > */ > struct bcom_bd { > u32 status; > - u32 data[0]; /* variable payload size */ > + u32 data[]; /* variable payload size */ > }; > > /* ======================================================================== */ > 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=-11.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 9A2B0C433DF for ; Fri, 22 May 2020 21:27:57 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4713820723 for ; Fri, 22 May 2020 21:27:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4713820723 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49TKMv0xRFzDqwC for ; Sat, 23 May 2020 07:27:55 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=209.85.166.68; helo=mail-io1-f68.google.com; envelope-from=pku.leo@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Received: from mail-io1-f68.google.com (mail-io1-f68.google.com [209.85.166.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49TKJb60pYzDr0T for ; Sat, 23 May 2020 07:25:03 +1000 (AEST) Received: by mail-io1-f68.google.com with SMTP id f4so12879184iov.11 for ; Fri, 22 May 2020 14:25:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CTkSYFeyEICq4BQf/4yKxmOZ5ACYCOJzi1wgxve1pBQ=; b=ZhFQ2Z01pIqKeRxbDE5YVk3K873buQbofdF+b1/9ho2x7ZLCkSZ7IvG8rriQLkPx9V Ag4QZQ+ZsnNDtYJTV0yrIIOA7B1qvd4zi5kq+lGrVm9ZUcEODWHetRBcRXkEwOgmpPJ/ 4wlt24CyAVs6kBsO1N3ZYE6wUkRE5FCtKkaxnwOBwp3iPJxg7U7lfEMGO/YHjGtPKKzE 6IaeDyhZlfAhL9gwor9bDZ+XtPgn5qW+GBdcJwQFaLi4+tUeoPwg6Foi//cWaOV9E8kG VX7z/GtvyaQGW/ZjHKov1xZJ5DA5B9DoNgmH7+2IDa1qQKS5sE29vx4doxc37hSyUKhh iZVA== X-Gm-Message-State: AOAM533kFjSTb9xG4TyvaEQIT+KFClRdt+B0yu7+S2uy+tuqm1P5FLhY UmNwxFN/SYRSMf3dBbwdu/D83MmR X-Google-Smtp-Source: ABdhPJwQzVSCWAjRH7GMSUjZGb5alEparS9g5L8h/a9sETx7y/dnAUXijrX0N8Lj+yeZKH7TihtoIw== X-Received: by 2002:a6b:90c2:: with SMTP id s185mr4768697iod.35.1590182701070; Fri, 22 May 2020 14:25:01 -0700 (PDT) Received: from mail-il1-f179.google.com (mail-il1-f179.google.com. [209.85.166.179]) by smtp.gmail.com with ESMTPSA id i84sm1508416ioa.34.2020.05.22.14.25.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 May 2020 14:25:00 -0700 (PDT) Received: by mail-il1-f179.google.com with SMTP id j2so12151974ilr.5 for ; Fri, 22 May 2020 14:25:00 -0700 (PDT) X-Received: by 2002:a05:6e02:54b:: with SMTP id i11mr7075081ils.50.1590182700558; Fri, 22 May 2020 14:25:00 -0700 (PDT) MIME-Version: 1.0 References: <20200507185301.GA14333@embeddedor> In-Reply-To: <20200507185301.GA14333@embeddedor> From: Li Yang Date: Fri, 22 May 2020 16:24:37 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] treewide: Replace zero-length array with flexible-array To: "Gustavo A. R. Silva" Content-Type: text/plain; charset="UTF-8" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev , lkml , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Thu, May 7, 2020 at 1:49 PM Gustavo A. R. Silva wrote: > > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99: > > struct foo { > int stuff; > struct boo array[]; > }; > > By making use of the mechanism above, we will get a compiler warning > in case the flexible array does not occur last in the structure, which > will help us prevent some kind of undefined behavior bugs from being > inadvertently introduced[3] to the codebase from now on. > > Also, notice that, dynamic memory allocations won't be affected by > this change: > > "Flexible array members have incomplete type, and so the sizeof operator > may not be applied. As a quirk of the original implementation of > zero-length arrays, sizeof evaluates to zero."[1] > > sizeof(flexible-array-member) triggers a warning because flexible array > members have incomplete type[1]. There are some instances of code in > which the sizeof operator is being incorrectly/erroneously applied to > zero-length arrays and the result is zero. Such instances may be hiding > some bugs. So, this work (flexible-array member conversions) will also > help to get completely rid of those sorts of issues. > > This issue was found with the help of Coccinelle. > > [1] https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html > [2] https://github.com/KSPP/linux/issues/21 > [3] commit 76497732932f ("cxgb3/l2t: Fix undefined behaviour") > > Signed-off-by: Gustavo A. R. Silva > --- > include/linux/fsl/bestcomm/bestcomm.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied for next. Thanks. Regards, Leo > > diff --git a/include/linux/fsl/bestcomm/bestcomm.h b/include/linux/fsl/bestcomm/bestcomm.h > index a0e2e6b19b57..154e541ce57e 100644 > --- a/include/linux/fsl/bestcomm/bestcomm.h > +++ b/include/linux/fsl/bestcomm/bestcomm.h > @@ -27,7 +27,7 @@ > */ > struct bcom_bd { > u32 status; > - u32 data[0]; /* variable payload size */ > + u32 data[]; /* variable payload size */ > }; > > /* ======================================================================== */ > 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=-11.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS 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 46D63C433DF for ; Fri, 22 May 2020 21:25:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 16757206B6 for ; Fri, 22 May 2020 21:25:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="etF4g/GM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 16757206B6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=J6Ek//B+Y4/cfx6LjhpTq+eAgql882xVUZAcxJn/aEE=; b=etF4g/GMl2XdnP k1u5Ny8lpTqwXuGFwNTS38tQpnP8y5InC5ANUEIuyaFO74eAQyJhkDPWRPCsKyaKqm8UxlnOj9WrG MuhId3w4SL5DOHlIZC+XK6fQOw/wdwK17PmWuMkxou/duDoiIX5cDIWmMOItNAJhFsWkNTn0ofReH N5SfIXBSWo5cpqJ6GkOFSzCxIDsnSOja4tt/ckIV3okpU+Lrwrar2eNTptG0W5goNJfEQgv3B4TJY KgXIOJRZ7ftSPk/0iss6jCAxmQUwnjX0kyIB9TWF+AstyrbhGoNWrrIhOEo/qRxmT/H6YrTwt7iLG tGxena+Z8UHJu4pTBjwA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jcFAP-0007qP-Ko; Fri, 22 May 2020 21:25:21 +0000 Received: from mail-io1-f66.google.com ([209.85.166.66]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jcFA7-0005K8-Ri for linux-arm-kernel@lists.infradead.org; Fri, 22 May 2020 21:25:05 +0000 Received: by mail-io1-f66.google.com with SMTP id h10so12904711iob.10 for ; Fri, 22 May 2020 14:25:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CTkSYFeyEICq4BQf/4yKxmOZ5ACYCOJzi1wgxve1pBQ=; b=QtyK0yHvXKWaNJvXS7Nc4alawqAa/U4t+Xs3LrwvEQ5gEVnQpYYsAUH7NyTTjTXjPL rVhAq//HmLGr9jW6cq2FGxWmEr9O60k3b6UTlJ/E6AlxOXimSOC9Iqu4l+lrq5LNDNCF ZJ7AvkpWEZl6qT8+8hnFfNY2j7nFMn2EfvUENQaYCs/KbdXEMC3+JXsww4Q2UZqEU+wC GHjeWOhtWMLDdBzcv2zLGuYSTax28JpSGHpmIsqSyIHGwKb35ixzRzyrumB9EegHLTwp Gz4I5CNqERdG3YksvYOmHN/jVeQ6m/4MDr04uFSFRLPIVlcYUr+Cvl1Hfr4IPYQAAz5Z S88Q== X-Gm-Message-State: AOAM533x+PjnaP0ZF7yensVni1T8pmOtYUPLLkBbnTRhFBaf6ztgnzkK +0zBXeuH/+bkIHWWyb3bT83oTKIb X-Google-Smtp-Source: ABdhPJyeR3I/42+JLqvVuYp2spY1xaW9fTzb1dtoe6imMcO3Y0HLFHNPs7jE5eiu+7tTqI4V0bqo7Q== X-Received: by 2002:a6b:6414:: with SMTP id t20mr4795854iog.32.1590182701114; Fri, 22 May 2020 14:25:01 -0700 (PDT) Received: from mail-il1-f178.google.com (mail-il1-f178.google.com. [209.85.166.178]) by smtp.gmail.com with ESMTPSA id u203sm4039645iod.54.2020.05.22.14.25.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 May 2020 14:25:00 -0700 (PDT) Received: by mail-il1-f178.google.com with SMTP id 17so12149177ilj.3 for ; Fri, 22 May 2020 14:25:00 -0700 (PDT) X-Received: by 2002:a05:6e02:54b:: with SMTP id i11mr7075081ils.50.1590182700558; Fri, 22 May 2020 14:25:00 -0700 (PDT) MIME-Version: 1.0 References: <20200507185301.GA14333@embeddedor> In-Reply-To: <20200507185301.GA14333@embeddedor> From: Li Yang Date: Fri, 22 May 2020 16:24:37 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] treewide: Replace zero-length array with flexible-array To: "Gustavo A. R. Silva" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200522_142504_006771_01A6C522 X-CRM114-Status: GOOD ( 19.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev , lkml , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, May 7, 2020 at 1:49 PM Gustavo A. R. Silva wrote: > > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99: > > struct foo { > int stuff; > struct boo array[]; > }; > > By making use of the mechanism above, we will get a compiler warning > in case the flexible array does not occur last in the structure, which > will help us prevent some kind of undefined behavior bugs from being > inadvertently introduced[3] to the codebase from now on. > > Also, notice that, dynamic memory allocations won't be affected by > this change: > > "Flexible array members have incomplete type, and so the sizeof operator > may not be applied. As a quirk of the original implementation of > zero-length arrays, sizeof evaluates to zero."[1] > > sizeof(flexible-array-member) triggers a warning because flexible array > members have incomplete type[1]. There are some instances of code in > which the sizeof operator is being incorrectly/erroneously applied to > zero-length arrays and the result is zero. Such instances may be hiding > some bugs. So, this work (flexible-array member conversions) will also > help to get completely rid of those sorts of issues. > > This issue was found with the help of Coccinelle. > > [1] https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html > [2] https://github.com/KSPP/linux/issues/21 > [3] commit 76497732932f ("cxgb3/l2t: Fix undefined behaviour") > > Signed-off-by: Gustavo A. R. Silva > --- > include/linux/fsl/bestcomm/bestcomm.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied for next. Thanks. Regards, Leo > > diff --git a/include/linux/fsl/bestcomm/bestcomm.h b/include/linux/fsl/bestcomm/bestcomm.h > index a0e2e6b19b57..154e541ce57e 100644 > --- a/include/linux/fsl/bestcomm/bestcomm.h > +++ b/include/linux/fsl/bestcomm/bestcomm.h > @@ -27,7 +27,7 @@ > */ > struct bcom_bd { > u32 status; > - u32 data[0]; /* variable payload size */ > + u32 data[]; /* variable payload size */ > }; > > /* ======================================================================== */ > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel