Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2288772ybi; Mon, 17 Jun 2019 02:08:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwhT1SfMxgw8RrIMj4g5L6EtE+LPlQ6LZWnrgCw07dm3Axv04vVGSqIWBC4j10XM6IVbEb X-Received: by 2002:a17:902:e512:: with SMTP id ck18mr1161178plb.53.1560762534548; Mon, 17 Jun 2019 02:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560762534; cv=none; d=google.com; s=arc-20160816; b=pMQ7NkgHe3d0IDzKnaFkyw8fzL61hpo6yYj7tlnUd6SI1pVO4EhV+gFH3NJqe+GCS5 qa/alHErmB3apd1CNI3aRBBfWxkj80a3cJSM0TWkGbvtg8/nwSgAcstcqhTQC3/avJPT uImGxtxhRUJanpDAYGbzGL4fjuA05A+f9grwVXWpHQhZJQ7prNH6nKIFw7K3D/vn1zGw jwSoikxx6QF6Ofb6JpiWdJrBqv371mVy7Ibvr9T+2pt1Hzm1zSV7H9UNS3UYZW26bvSB A/dXx0dRuUJnBMJNyBTC3xkh1CsOZRM7tRc+MPrZNCrnszy/Ceb2kASV1DJLaZxvtDfA qKRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=c1vvkH7pkIDBrQgWyJW0ePIMoxQQ3X7cNQmoSp2x//s=; b=PlPw8akaztUQiIYh20o1CUeAP6SVZtb6ZJEgcSZt6kDs6Vjzm5EGLrHBbTaY6FU6OY 65H10FWdi23DrPqeQ1/AadiEmrSGq497AZzUcKDl5GQj+0nvbGneJVUMhgwmVai5S4P2 QLCe+hOleb59VhaiVbNQWxmNGwPhsuR3dsPJ+VcHyAnn8osBnkSZ9WXG1KVamaG+cfps 0l+rF6VL9051atFgzeZsKj+YLS8xKcQWhE58zVm69bz0MAkx3S+aAqDM8SiOAaXOmARv 9VIrBUyi2V0VCuYeyUnoVXx1EflK5qzIlFuGOMWAzGvx5vxOGN2p+DU3cKpBaObkHjUL SVzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k15si10358697pgh.331.2019.06.17.02.08.38; Mon, 17 Jun 2019 02:08:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727717AbfFQJHX (ORCPT + 99 others); Mon, 17 Jun 2019 05:07:23 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:49426 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726793AbfFQJHX (ORCPT ); Mon, 17 Jun 2019 05:07:23 -0400 Received: from ramsan ([84.194.111.163]) by andre.telenet-ops.be with bizsmtp id Rl7F2000E3XaVaC01l7FRk; Mon, 17 Jun 2019 11:07:21 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1hcnbf-0000nG-Ae; Mon, 17 Jun 2019 11:07:15 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1hcnbf-0002kb-8Q; Mon, 17 Jun 2019 11:07:15 +0200 From: Geert Uytterhoeven To: Geoff Levand , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] ps3: Use [] to denote a flexible array member Date: Mon, 17 Jun 2019 11:07:13 +0200 Message-Id: <20190617090713.10532-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Flexible array members should be denoted using [] instead of [0], else gcc will not warn when they are no longer at the end of the structure. Signed-off-by: Geert Uytterhoeven --- arch/powerpc/include/asm/ps3stor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/ps3stor.h b/arch/powerpc/include/asm/ps3stor.h index d9f6589bc107bafa..1d8279014f226926 100644 --- a/arch/powerpc/include/asm/ps3stor.h +++ b/arch/powerpc/include/asm/ps3stor.h @@ -39,7 +39,7 @@ struct ps3_storage_device { unsigned int num_regions; unsigned long accessible_regions; unsigned int region_idx; /* first accessible region */ - struct ps3_storage_region regions[0]; /* Must be last */ + struct ps3_storage_region regions[]; /* Must be last */ }; static inline struct ps3_storage_device *to_ps3_storage_device(struct device *dev) -- 2.17.1