Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3501969rdb; Wed, 13 Sep 2023 14:11:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGp/C+7cF+uSth/LAVaURsH0a+I/Xh6WpkRNd4A8pUF9t2YMA/t9RLABI7fz5dA/qEBLtoT X-Received: by 2002:a05:6a21:488b:b0:13b:9d80:673d with SMTP id av11-20020a056a21488b00b0013b9d80673dmr3206785pzc.48.1694639461677; Wed, 13 Sep 2023 14:11:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694639461; cv=none; d=google.com; s=arc-20160816; b=fifGR+tHo6h5q3eJZ0YplsLfDcioKM5W0acIi9H+lye/E84NHVVDwYPj4WgbxyRCEx j0fciF4piIGR/FFzh/PN3epVt+cFq05f60Q49LIw89G1XkQr8KElDR1o7NX5LATUuMUJ v6Wu4i+UF5S1CkL8N2yY7ZizXtlt0zwb8DzKU1K0unyjmSmZmj6p1R4j2rmvCcJ+bYii 3UmQVnaIk77NEMVYbU7poxPhqOwAjo9XLwBkNVxE2Jp7nP95vO/dItA92IHwcNolr51Z gR0yUhs0mo3TNMGIoEias5v6zUCtmTDM/iWbOjlDE7w/RJmit3TQAkTapkckpU6XkTTN UXCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fvAT9A9eVU6nLvfzprvVVZ96ABA3epZEX1ZWa8vDZ6o=; fh=ikDVdyeIh0WGce0oCCc+lxv9EeNEZy64YutjKfyEJiA=; b=Q8PQ+kTTP0n0aIrpJjlWaEo00bv/rowxqBdgY7Z8o45Mg/XgpUNl17uZCjZQPyHdUC Az6u89reuqvjplVULvWpo7IhWpCHN8y4SvNl0gBykYQtRu3Ey8PDXmQ6P8Nw4r8MbeA0 RU2vSX5NstNmnj6yBXBPlNtQkWerlpHmyw4Daln0GAi9nqfstYZ5+pQw1jw+bRnC/s7g ruYMQ74ZwMERfLCctsbEGM0BUpaSCoVUdAXAkcBMe0clXKlDZwFkHDlWIU1JmIKthuy0 iYp7gIH5lqVa4yak9IpCrW3e64I0/yynivnG/ucRisB3oEIdoqN911XsLzxx/5PG8Hoj p9sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bYPtSt1G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id kp3-20020a170903280300b001c0eefc0dfesi148084plb.130.2023.09.13.14.11.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 14:11:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bYPtSt1G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id AD1D1829F1CF; Wed, 13 Sep 2023 14:09:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232661AbjIMVIn (ORCPT + 99 others); Wed, 13 Sep 2023 17:08:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232512AbjIMVIj (ORCPT ); Wed, 13 Sep 2023 17:08:39 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B7461BCD; Wed, 13 Sep 2023 14:08:35 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89C62C433C7; Wed, 13 Sep 2023 21:08:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694639315; bh=5uXQ/MUoI+OPMZgSFDNwh5ZmrI/YFQfFSeNZsw31vV8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bYPtSt1GiKpw2FOrIQ7WE96DeFSJk/kFuLkq2bpTcRsXREgFs9On4H4fU2FM6fvWx voURpXUnAtNfCyN+8T57/21FYq9UfR6beM7LUjl8m0mXyrbnquPz39dCP364HacXQV g+XyuMlgMiFhgIpw7qmXNk8UxLBqbqx7vR/PUho3cbI/AjgRYxK9gN6rpZxpN4q79k V3qzUnmiMwC8W96i9ASswBPmAIVJyic1t3MUilrCWN9WmhIjm9eDXmtaDUFi1jl01/ /Ej7RYhdXfIUhTK7zkaZxg+0U/WjCdaS2WYpxljVK/4TbXDioeQY5GLxS10MgXzDy7 CHQRZCQxnrRTA== Date: Wed, 13 Sep 2023 23:08:29 +0200 From: Josh Poimboeuf To: Randy Dunlap Cc: Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , Kent Overstreet , Peter Zijlstra Subject: Re: linux-next: Tree for Sep 12 (bcachefs, objtool) Message-ID: <20230913210829.zkxv6qqlamymhatr@treble> References: <20230912152645.0868a96a@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 13 Sep 2023 14:09:02 -0700 (PDT) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email On Tue, Sep 12, 2023 at 04:36:55PM -0700, Randy Dunlap wrote: > > > On 9/11/23 22:26, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20230911: > > > > New tree: bcachefs > > > > The bcachefs tree gained a semantic conflict against Linus' tree for > > which I applied a patch. > > > > The wireless-next tree gaind a conflict against the wireless tree. > > > > Non-merge commits (relative to Linus' tree): 4095 > > 1552 files changed, 346893 insertions(+), 22945 deletions(-) > > > > ---------------------------------------------------------------------------- > > on x86_64: > > vmlinux.o: warning: objtool: bch2_dev_buckets_reserved.part.0() is missing an ELF size annotation Here ya go: ---8<--- From: Josh Poimboeuf Subject: [PATCH] bcachefs: Remove undefined behavior in bch2_dev_buckets_reserved() In general it's a good idea to avoid using bare unreachable() because it introduces undefined behavior in compiled code. In this case it even confuses GCC into emitting an empty unused bch2_dev_buckets_reserved.part.0() function. Use BUG() instead, which is nice and defined. While in theory it should never trigger, if something were to go awry and the BCH_WATERMARK_NR case were to actually hit, the failure mode is much more robust. Fixes the following warnings: vmlinux.o: warning: objtool: bch2_bucket_alloc_trans() falls through to next function bch2_reset_alloc_cursors() vmlinux.o: warning: objtool: bch2_dev_buckets_reserved.part.0() is missing an ELF size annotation Reported-by: Randy Dunlap Signed-off-by: Josh Poimboeuf --- fs/bcachefs/buckets.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bcachefs/buckets.h b/fs/bcachefs/buckets.h index f192809f50cf..0eff05c79c65 100644 --- a/fs/bcachefs/buckets.h +++ b/fs/bcachefs/buckets.h @@ -180,7 +180,7 @@ static inline u64 bch2_dev_buckets_reserved(struct bch_dev *ca, enum bch_waterma switch (watermark) { case BCH_WATERMARK_NR: - unreachable(); + BUG(); case BCH_WATERMARK_stripe: reserved += ca->mi.nbuckets >> 6; fallthrough; -- 2.41.0