Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4179190rwb; Sun, 7 Aug 2022 17:16:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR7xAPCGvcsq8jVvu1As9wAyu3PEPq3AEXMTbEN3YzJKtchT35x5hxJ+TEcOdYfA2KmJPBPd X-Received: by 2002:aa7:8890:0:b0:52e:de90:7338 with SMTP id z16-20020aa78890000000b0052ede907338mr9727897pfe.46.1659917780639; Sun, 07 Aug 2022 17:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659917780; cv=none; d=google.com; s=arc-20160816; b=rZ7BNVsx++/vIY2f/28k8LXzcqIWzQScGuND7R9Yo7Vi2fhlSRYlOtjCek8NW3AkbH 5yEfgoogL/3dkN3itTwfPxsLbdjkBMESdH8aI/2AaZcf7sE/CBg7wPQtZ8YlIXts12e2 dllSyGHa+Dzqgrts8bNl/3BiwYv0nkh4fnDYCMG8Fqi2511TABgg5Y8G7xHRJa2TO+i5 EtDsgz+3g2Se/9bYzhnQxfjvPgW9G0QskD4i8+lQw6lFNJE7Yyf6X7aR9B+seu4iI84t 9iU2xDhmYsjF5zbLmubi8nvP7JGBwFbZLrnyqPFgxlBrmESFZwwlMafkOPj0a0bS17IB HYDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=00yvW9ypMxDxxH8kNSsUvDFZbWzznyVK2jXU6lzwbiw=; b=kNXaBMQv0etAfeWHpn4lfryaST9rnQmWisW/NAC8fHBggOgaOtx07IT49zEuQpZPaY fpb4crOWOAH/r0YpI1nnDKaSSqqF97UlIw0XkvLV1rZKmow72nTaMDuEEfMx5GARKrt/ jJz4laafXDnMF9eLozwfsVFwoV1eU+Js3KQRo6awICcPglRB1vyO01B0gX9yC+NAOAS2 7wWlaCwgB9iSFoRsEd24NFeEzWGXrcBciH6TW5nEg51em/A+6tjLJlwwIGgrdEI5tXoE F0bv1dsOvDLvtsvg6+NeV2WvgTtNFtJc56cfhiFRxoyQIgU1OeUpFE09CLPawEqmJszM 7B3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="h3kYla/k"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n26-20020a63971a000000b0041adcdef80dsi4162605pge.215.2022.08.07.17.16.05; Sun, 07 Aug 2022 17:16:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="h3kYla/k"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229754AbiHHAM4 (ORCPT + 99 others); Sun, 7 Aug 2022 20:12:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbiHHAMx (ORCPT ); Sun, 7 Aug 2022 20:12:53 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED5AE2AD2 for ; Sun, 7 Aug 2022 17:12:52 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id f22so9462665edc.7 for ; Sun, 07 Aug 2022 17:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=00yvW9ypMxDxxH8kNSsUvDFZbWzznyVK2jXU6lzwbiw=; b=h3kYla/kRBRK08vrh/tsKWuzkGdegaVz9qcbfa/G+wGFrEZrSDliulfQGC6NCHwdRz Znr8X0aX8siaSB3gF6mls/sO8AbpAzMftvZ8cEN+QhNl8vySztRfx21FVW3hWlRdurN0 Y48xQbiK12ePEOG4qi4un4LD1Fpm1qPAgnQGE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=00yvW9ypMxDxxH8kNSsUvDFZbWzznyVK2jXU6lzwbiw=; b=Eo7t+L9GLIoYQSUSvnKjh7+XfEsJ70XdWUCiL/T4nI4tzriq8t+l7shrBzQDqZe72O ysmtNdzbUB21E8XfmWHJcrIWR+ZfaFhnm4iYkGYQFAb/9vUJE05sdqcsGdzkXSmnbYB5 xSQ5/Cmo2AKcY8tWxmpejGsS7j1uUzwylXBq+Hw0efWsXjUu+BgyPn77KAtLR+R4acDR 1llckDz4k348H6hhq79/AqeYYqnZd8AYyPnZg5hI52q5aBS0M7EM6FqGRFeAqkZ4s4ox ckx4zLsuDlOk5957siKzPMcmyF/sIUuFKOkKZyULTcpe6nc484auSWBSYStgm+oVDjZv 8gJg== X-Gm-Message-State: ACgBeo3wMYVP4VQEAjavdpLejAYDPPgU5BhNhJOXHCtn0yVPIcrs9QBT 8NB81aW8GadHK6NssJKtnMyxJXUWMMD0tOgg X-Received: by 2002:a05:6402:34cf:b0:43d:96fd:bdfa with SMTP id w15-20020a05640234cf00b0043d96fdbdfamr15793030edc.40.1659917570782; Sun, 07 Aug 2022 17:12:50 -0700 (PDT) Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com. [209.85.221.49]) by smtp.gmail.com with ESMTPSA id lb6-20020a170907784600b0072b13ac9ca3sm4310604ejc.183.2022.08.07.17.12.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Aug 2022 17:12:50 -0700 (PDT) Received: by mail-wr1-f49.google.com with SMTP id z16so9107314wrh.12 for ; Sun, 07 Aug 2022 17:12:49 -0700 (PDT) X-Received: by 2002:a5d:638b:0:b0:220:6e1a:8794 with SMTP id p11-20020a5d638b000000b002206e1a8794mr10148392wru.193.1659917569541; Sun, 07 Aug 2022 17:12:49 -0700 (PDT) MIME-Version: 1.0 References: <20220805022940.1637978-1-yury.norov@gmail.com> In-Reply-To: <20220805022940.1637978-1-yury.norov@gmail.com> From: Linus Torvalds Date: Sun, 7 Aug 2022 17:12:33 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] Bitmap patches for v6.0-rc1 To: Yury Norov Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 4, 2022 at 7:29 PM Yury Norov wrote: > > https://github.com/norov/linux.git/ tags/bitmap-6.0-rc1 Grr. So I delayed this because I was anticipating pain, but it was worse than expected. I think I've sorted things out, but part of sorting things out was to just basically undo this: > lib/bitmap: change type of bitmap_weight to unsigned long which just was pointless and the explanation for it didn't match what it did. The explanation was "unsigned makes sense". Ok. But what it *did* was not to make the return value unsigned, but to also expand it from "int" to "long". That did *not* make sense, and caused pointless changes to printf strings. And - surprise surprise - new users had come in since, so there would have been even *more* pointless changes to printf strings just to resolve those. So I basically undid almost all of it. I did leave the "unsigned" part, but removed the "long" part, so at least the printf strings noise didn't happen. That still caused the type clash in the 'min()' in the mellanox/mlx4/fw.c file, but at least I couldn't find any new cases of that pattern, so it seemed acceptable. Can bitmap sizes in theory be "unsigned long" bits and thus have "weight" not fit in "int"? Yes. But it's not a realistic concern, I feel, and I really really didn't want to deal with this pointless churn. And honestly, this was enough churn that I seriously just considered throwing the whole pull request away. And I feel like I will have to do a few other architecture tests too before I actually push this out, so I may end up still doing that if that shows something else wrong. So for any future pull requests, please (a) make them more targeted (b) avoids things like that return value change that clearly was just churn and affected random files in the tree because right now I'm left with a "never again" feeling about this all. Linus