Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3886651rdb; Thu, 14 Sep 2023 06:00:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEn8T1++YURqfx4RJFFbDvYePFJNysnQgRsAEsSyPrE0BEO8Q8uQwFbhc1PicepJF+aogr2 X-Received: by 2002:a05:6358:8822:b0:13c:fbdb:57b6 with SMTP id hv34-20020a056358882200b0013cfbdb57b6mr6176189rwb.14.1694696415526; Thu, 14 Sep 2023 06:00:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694696415; cv=none; d=google.com; s=arc-20160816; b=SDZrbvEkq2mpdqYKQDB2PLtTtIajNVPsdY+P6+1aUs1+OVQLYfPCyrXnLgntreWsm1 9PyhnD/kyhzudINAl5mNKiCmU1Wy4POppW1xo0jmIfvhEdjwjKTfiAD5HnTKsYVH66Y2 BhOzhfzskoj2B3iHaTWNf6vCW3Y7g8ZVuTwnq0I7U2KLC5QIRs0tdcZVRt70jogX+5VR kGD1DFIeboALAyzhd1QZCnZMY0zeuJdKW9Rf2aRVKEAlGadN2JG0Jki7hkEVmA3z03wy Y5LRFxqbzPiyChQvcShAtBGhkcGnT9ShGekfmFvEdl/ZUev9oDsw2PWI+/i3UoO4p6Wn gwsA== 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:dkim-signature:date; bh=FgNozcSRo+T99nbhVepuExq9RQqMFh90J9hDwFMmt1g=; fh=deuyf1mlTa/xMf6ij0rvOiP0IurqcIWazPpxejptkw0=; b=ebUEsg+a8qdf5pG+FNzgw327n6HYexy6U56Pp29NrDwfvr1Fus4lteMNiIBj+UX3Es Thl60Ea24DVx123qjY2IBGIuH8GCT/UfIglC4B4vTZHTAJArvdKyButZspt7SEJ3venH 4UM8Koj8uKb/vw/TrVOR22or9JXT+YFij4SuwfIqDDk2l8goydWwdg4Msf3U44qOJecY uVxOG9i0/iSsV5zp2+SVBQNwYfAC0ovkLEcy8+EiZVB1mn/cMxiDeblhAd/R0j6tmLOL NNxDjf7nX6/aye2+yTZiKu+Fzh+G75EhFxFkiMGTwLTChqjJtrONi7wpa9NUO8Dc7q5Q 09Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=CimjAAS4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id f20-20020a631014000000b005638183ab90si1407535pgl.611.2023.09.14.06.00.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 06:00:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=CimjAAS4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 4EE83802F555; Wed, 13 Sep 2023 16:06:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233062AbjIMXGf (ORCPT + 99 others); Wed, 13 Sep 2023 19:06:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230229AbjIMXGf (ORCPT ); Wed, 13 Sep 2023 19:06:35 -0400 Received: from out-215.mta0.migadu.com (out-215.mta0.migadu.com [IPv6:2001:41d0:1004:224b::d7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 087871BCB for ; Wed, 13 Sep 2023 16:06:31 -0700 (PDT) Date: Wed, 13 Sep 2023 19:06:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1694646389; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FgNozcSRo+T99nbhVepuExq9RQqMFh90J9hDwFMmt1g=; b=CimjAAS4LtbTzuRiDX23AsYxBLrN9B6TMoexS+pL5EtFTySrcknh7ZWKtvNF/B5XTTpKWj c7cDsllygWI/5K7TirbwDRpziTgVtoJPLoAdF+7x8NibS6lywIrnsciRGvvwb9WzgOKB/o h6BFKzb3PoAogh3WTcp62CLycpzTyC4= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Josh Poimboeuf Cc: Randy Dunlap , Stephen Rothwell , Linux Next Mailing List , Linux Kernel Mailing List , Peter Zijlstra Subject: Re: linux-next: Tree for Sep 12 (bcachefs, objtool) Message-ID: <20230913230626.mu764axueko6ccta@moria.home.lan> References: <20230912152645.0868a96a@canb.auug.org.au> <20230913210829.zkxv6qqlamymhatr@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230913210829.zkxv6qqlamymhatr@treble> X-Migadu-Flow: FLOW_OUT 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 (lipwig.vger.email [0.0.0.0]); Wed, 13 Sep 2023 16:06:43 -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 lipwig.vger.email On Wed, Sep 13, 2023 at 11:08:29PM +0200, 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. Thanks, want to do the other two cases too? :) > > 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 >