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.