Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3655919rdb; Wed, 13 Sep 2023 20:47:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH54f2d5gHIvQUAMkzMqO6kjuQ3VGdmyBdB92MDcRxL9yi+JdoLsfYBwCsrulibYMi9omEy X-Received: by 2002:a05:6a00:be2:b0:68f:c2f7:cef0 with SMTP id x34-20020a056a000be200b0068fc2f7cef0mr902577pfu.4.1694663227486; Wed, 13 Sep 2023 20:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694663227; cv=none; d=google.com; s=arc-20160816; b=waCL4l/yiIVFYdQa3efEObJSfXp5ZjR/smTk+EIR83F3IHW5mBZMnVdewlOUSX+L4K kAY0Hs+JSWX9U9Zb3seXwJabEFsUSo5mEiV1w4esswdRbZkGv5P5e0SGXN/Gd8K5ykhM ojgcVTKb/Z9XwkkEXEgvb2yPPH01HKcQ6B0PaSPQXDCWA/hX+utIb4XK7d+N2Jb4akdr xjMQKcjaoetNVtQ86Fipqa1u6vXDZC6zBIXo4ZHkGB9ZSq3+fTeMta9qMrj16QC7rvFC FQvTD8WM4GQB3PiM1LGKTeWVlEmqd72P5xgpyGhoRWG6cGJkeqPe+jyQxF1+scv7ArrF X4PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=48r3LmrgWqvz5u5eIUpGGEPK/Lk9nbvvc+00TP93HT4=; fh=1G7kuZO9LMibxbrA0/LgLTkVmcBin5oYCdbDdLHWtw0=; b=vg95oRR+LvGjsJ4SjGRo7s/yI/j/1qT9wKf98OsHhxYh6ebBvgwdE9mIuTiJXvw+ON Cz3FReoTOMNWjnceet9RU2dB+QsxyQqfAEktzoA2bXxPAwjiDG6O3A6FXXRIPxmynkXA SGSueVpxuY1q+IImOmsXno7cZwlJABLq4WrjQatpYhmzIcDa53t/CF63vmB6CDSeLfV6 jKb6KeDlcReJYhPbJ48LJTxvtWWoR/FDNTyhsVQsFGNRXnSpYIJ0JN7yVFhl1d4pp6bQ 083KYbtBbQnrHFCPZxkKiQhZZ9/M5Zj4jE85yenN6AsY4EBy0yYRISkd2a1HmfSh1J3E TwQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Ly53LDjN; 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 Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id ch13-20020a056a00288d00b00689f1186cfdsi682289pfb.29.2023.09.13.20.47.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 20:47:07 -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=@infradead.org header.s=bombadil.20210309 header.b=Ly53LDjN; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id AF55181DE5B0; Wed, 13 Sep 2023 14:40:01 -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 S231223AbjIMVkA (ORCPT + 99 others); Wed, 13 Sep 2023 17:40:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbjIMVj7 (ORCPT ); Wed, 13 Sep 2023 17:39:59 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEF6B1724; Wed, 13 Sep 2023 14:39:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=48r3LmrgWqvz5u5eIUpGGEPK/Lk9nbvvc+00TP93HT4=; b=Ly53LDjNPUK0msN20agsJpsFB9 tu4g3paJXuQX0CBlid9vm9cOfN03q5znld30M+1NwbjwQsX2mFB2j8m2YOepDPLFmKKzhT0VBDY7/ jEUjb0cEd1O5vI49ztluO98TzjOtx3Sz+g/0ZmrjDYQVVzqRKUNv/RRZATv6k2hyVXb1qZO5peiDF VIJlofYQDAXrtdnFCCXcVMu/A++ydwfEEfulzVk09HgBwcPPgxIWmtO941FwpZYjeG0FGisgcHGud zE+MCSYnk0Y3okBn+vPICWqaU5SHHjAUIm9c6d90m9Z8E/Ka9pwCJqL5QsBolgExKkrYOmhbLyfDn QrdDR+Iw==; Received: from [2601:1c2:980:9ec0::9fed] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qgXaS-006l98-18; Wed, 13 Sep 2023 21:39:52 +0000 Message-ID: <28c68588-401e-4207-8b83-f68761f0a137@infradead.org> Date: Wed, 13 Sep 2023 14:39:51 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: linux-next: Tree for Sep 12 (bcachefs, objtool) Content-Language: en-US To: Josh Poimboeuf Cc: Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , Kent Overstreet , Peter Zijlstra References: <20230912152645.0868a96a@canb.auug.org.au> <20230913210829.zkxv6qqlamymhatr@treble> From: Randy Dunlap In-Reply-To: <20230913210829.zkxv6qqlamymhatr@treble> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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:40:01 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 9/13/23 14:08, Josh Poimboeuf wrote: > 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 Tested-by: Randy Dunlap Reviewed-by: Randy Dunlap Thanks, Josh. > --- > 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; -- ~Randy