Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2963032rdb; Tue, 12 Sep 2023 19:05:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEyG3zFfJqDojFA3cy4xYP9YCxBLD54R+rJqrJenaFnxEoOZmt6h9ZbQ1AcA3BrZYYXF/NZ X-Received: by 2002:a17:90a:bb8d:b0:26d:2130:f63c with SMTP id v13-20020a17090abb8d00b0026d2130f63cmr1044749pjr.23.1694570711868; Tue, 12 Sep 2023 19:05:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694570711; cv=none; d=google.com; s=arc-20160816; b=nN+ySqwIcnXuiNF3c1X/kHMUf3OEh8KYMHF9XLo75gCRDcZn8XJ+DkqFs2ir9zyL8v knQ2o/GGCpL75fgtVjmZ9tU1+sqbewzCygq5NZhLu8COenjfQdiGOfQFOdAvW/h9ABSc HH7RU6wUADrZJmI0oU0RuuSa+kdoPBnNvgeNJOnvlFbN5s1qgcbU2I1dimQn2bJsjmUp WEuObc3oTvR30wj2LYJRukFxUO947xIUJY/LZZ88cV1ai/EMRsxv3dIZIetGRkVFKnCJ AEe//MrM3fxR0wBF490SDcxHCqFWnl4dAoNPH1yGkt1yyrvChqMvMiiNMrF63nDdsfla MU0A== 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=zNCblYMtY7zlJoqjRoQyxe09ubNPwpC6FeW7lybTK0g=; fh=FPuvh/zx931TXBbbKv+phaAECROV4O0CVVjG2FNEBwo=; b=HQFeC97tbWc422YjoWeI4NGRPXNIL02hXbO1Zr1B4tYKIhbbWgzDw0UNDDXvZtuwmf 7d4Cgi4/ROMEA5tsPyviHT9B+wiBaTUKCScm8BJn9+ivmGxVzIe1NeCuU9tEDh3Qg2I5 9jIDQd1SNcrV9Zlvf32OIDa9rH534LEuH24jvXgxWNG7ARczVQ5N2EMPhFfmgoP3BsE1 YGBoRlVrAAg5PKAffjhp9EQWQXcsQ3RrVN0vyIw5So2ty19v9J4LJj3dsl3WfDwgg5oH zOqA8tgqXJD9p4z9gg6Kp34LofuEzbAWXeFD+uWiNoXUCPwfhYgDVtQ4Q5WGZBNKacrw hMsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=mO8fi2Va; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id gt2-20020a17090af2c200b0026841a42bffsi527714pjb.139.2023.09.12.19.05.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 19:05:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=mO8fi2Va; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id B59DE8087260; Tue, 12 Sep 2023 12:36:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237628AbjILTgx (ORCPT + 99 others); Tue, 12 Sep 2023 15:36:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230443AbjILTgw (ORCPT ); Tue, 12 Sep 2023 15:36:52 -0400 Received: from out-221.mta1.migadu.com (out-221.mta1.migadu.com [IPv6:2001:41d0:203:375::dd]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6731ACF for ; Tue, 12 Sep 2023 12:36:48 -0700 (PDT) Date: Tue, 12 Sep 2023 15:36:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1694547406; 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=zNCblYMtY7zlJoqjRoQyxe09ubNPwpC6FeW7lybTK0g=; b=mO8fi2Va4OlZtR+qKA2rT/4aY4TZDjq2SLK3JtORAn6hMauL7cUy+9fsqraknGUMcpNA1m sWcdhz/fzQNLRaRovoW8Cx4KjmS2fqjpWHzxsPBlbsLuwKEXHmm8BqGevTm/Wr58IchTdy a41EuDjn7pHlwhmnLBMXahy4vZjWbho= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Nathan Chancellor Cc: bfoster@redhat.com, linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev Subject: Re: [PATCH 0/7] bcachefs compiler warning fixes for 32-bit Message-ID: <20230912193642.sdlwon4jta4ob5ac@moria.home.lan> References: <20230912-bcachefs-warning-fixes-v1-0-a1cc83a38836@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230912-bcachefs-warning-fixes-v1-0-a1cc83a38836@kernel.org> 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 (howler.vger.email [0.0.0.0]); Tue, 12 Sep 2023 12:36:55 -0700 (PDT) On Tue, Sep 12, 2023 at 12:15:37PM -0700, Nathan Chancellor wrote: > Hi all, > > This is a series of fixes for warnings that I now see from bcachefs when > building my test matrix with LLVM in -next, mostly from 32-bit > architectures. Most of the patches should be uncontroversial; the > min_t/max_t changes are probably the worst ones. Those patches all look fine, thanks > I still see several instances of -Wframe-larger-than when building for > 32-bit ARM (I am sure they will show up on other 32-bit architectures as > well), which I am not entirely sure how to tackle. It looks like the > majority of the instances are just due to large structures on the stack > in combination with some inlining resulting in some spills, so it seems > like moving to a heap allocation for some of those would the right fix > but I know some maintainers would rather fix them in their own way, > hence just the report. I just started seeing these again as well. The biggest single object that most of them have on their stack is btree_trans, but initializing that has to do a heap allocation for the btree_paths array - so we might as well switch to heap allocating the entire thing. That will help.