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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1793C4167B for ; Tue, 31 Oct 2023 20:59:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231397AbjJaU7L convert rfc822-to-8bit (ORCPT ); Tue, 31 Oct 2023 16:59:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231287AbjJaU7K (ORCPT ); Tue, 31 Oct 2023 16:59:10 -0400 X-Greylist: delayed 527 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 31 Oct 2023 13:59:07 PDT Received: from mail.stoffel.org (mail.stoffel.org [172.104.24.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8181F5 for ; Tue, 31 Oct 2023 13:59:07 -0700 (PDT) Received: from quad.stoffel.org (097-095-183-072.res.spectrum.com [97.95.183.72]) (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 mail.stoffel.org (Postfix) with ESMTPSA id 52F861E12B for ; Tue, 31 Oct 2023 16:50:20 -0400 (EDT) Received: by quad.stoffel.org (Postfix, from userid 1000) id C6EE5A8B03; Tue, 31 Oct 2023 16:50:18 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Message-ID: <25921.26762.792489.57701@quad.stoffel.home> Date: Tue, 31 Oct 2023 16:50:18 -0400 From: "John Stoffel" To: linux-bcachefs@vger.kernel.org Subject: Compile error from latest linux git master branch Precedence: bulk List-ID: X-Mailing-List: linux-bcachefs@vger.kernel.org I saw that bcachefs was pulled into Linus' tree, so I pulled it down and tried to compile but it bombs with: CC fs/bcachefs/btree_io.o In file included from fs/bcachefs/btree_io.c:11: fs/bcachefs/btree_io.c: In function ‘bch2_btree_post_write_cleanup’: fs/bcachefs/btree_update_interior.h:274:36: error: array subscript 0 is outside the bounds of an interior zero-length array ‘struct bkey_packed[0]’ [-Werror=zero-length-bounds] 274 | __bch_btree_u64s_remaining(c, b, &bne->keys.start[0]); | ^~~~~~~~~~~~~~~~~~~ In file included from fs/bcachefs/bcachefs.h:206, from fs/bcachefs/btree_io.c:3: fs/bcachefs/bcachefs_format.h:2344:21: note: while referencing ‘start’ 2344 | struct bkey_packed start[0]; | ^~~~~ In file included from fs/bcachefs/btree_io.c:11: fs/bcachefs/btree_io.c: In function ‘bch2_btree_init_next’: fs/bcachefs/btree_update_interior.h:274:36: error: array subscript 0 is outside the bounds of an interior zero-length array ‘struct bkey_packed[0]’ [-Werror=zero-length-bounds] 274 | __bch_btree_u64s_remaining(c, b, &bne->keys.start[0]); | ^~~~~~~~~~~~~~~~~~~ In file included from fs/bcachefs/bcachefs.h:206, from fs/bcachefs/btree_io.c:3: fs/bcachefs/bcachefs_format.h:2344:21: note: while referencing ‘start’ 2344 | struct bkey_packed start[0]; | ^~~~~ cc1: all warnings being treated as errors make[4]: *** [scripts/Makefile.build:243: fs/bcachefs/btree_io.o] Error 1 make[3]: *** [scripts/Makefile.build:480: fs/bcachefs] Error 2 make[2]: *** [scripts/Makefile.build:480: fs] Error 2 make[1]: *** [/local/src/kernel/git/linux/Makefile:1913: .] Error 2 make: *** [Makefile:234: __sub-make] Error 2 And my .config file settings for BCHACEFS setting are the following: $ grep BCACHE .config CONFIG_BCACHE=y # CONFIG_BCACHE_DEBUG is not set # CONFIG_BCACHE_ASYNC_REGISTRATION is not set CONFIG_FS_MBCACHE=y CONFIG_BCACHEFS_FS=y CONFIG_BCACHEFS_QUOTA=y CONFIG_BCACHEFS_POSIX_ACL=y CONFIG_BCACHEFS_DEBUG_TRANSACTIONS=y # CONFIG_BCACHEFS_DEBUG is not set # CONFIG_BCACHEFS_TESTS is not set # CONFIG_BCACHEFS_LOCK_TIME_STATS is not set # CONFIG_BCACHEFS_NO_LATENCY_ACCT is not set