From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 77CBDC433EF for ; Thu, 14 Jul 2022 22:16:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cu+Glv8DCJGxF1rqPLi0UE3scVRA9PjNDEryohEgOI0=; b=eSJF2we811/JPc y5jlaP+AQqafDCkF5UODRKKzX1rxMx22kY92J7n0DstlwoU/j492Lb0u2vdBP1NFSbdRo6Z4tZiPT FGUuBEBIluPX0EyaOxF3KcmfiO6UsqXpGTGs4XecfUCv5fRwbg7zQVOXekKH5Rvy4udQqaaK26d2n NOP1nF8dfOVm1sWKOrALKpyjruwPm2zF9e8ZVdZ1BZZFLMMW8S4HYlXBnL8wRPro/w0KLl87fJNKD ZMXeh/oURM9H1GllQrM/YRPIA+IV6/Ayn2JMTW+KNixCSSzEZIZkQHwQ9uYjU5BHQJlDY6aGggD/C BYBIaPEjgqUfCUm74Ukw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oC77H-001xIk-H6; Thu, 14 Jul 2022 22:15:27 +0000 Received: from mail-oa1-x2b.google.com ([2001:4860:4864:20::2b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oC77E-001xHf-Sx for linux-arm-kernel@lists.infradead.org; Thu, 14 Jul 2022 22:15:26 +0000 Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-10c0430e27dso4201818fac.4 for ; Thu, 14 Jul 2022 15:15:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ng3/X4PelThqjSHpCTGPAN/BVGWWlZ6hoIZsJJT4v7Y=; b=F58ZWzw58v3u/Ep11tkIsNCLmim7u4IKUrhmGA4BSfnvT85un5c2mitiW4qVkQ5mXb wwOafM1aLO3EfDaRiLDDeUUEoHdetODhpnK9ui4uHAvjC/QxEH2WkMSdFW2NykuDtP7i YAOhLfXAsAacUoVrhR/XlZU//q/V4qja3+w+1Y8eLQYvJXG+z7VKwV3j8KKgevogjGwG pyIzA2YqaL8jVUPQRLGfUqaDQLzW98UGjAzY6iqFjJb4tCoXTRITsEBJkM+o+cPIaT3m hQdn11+HugzDnU3pmHrQQBMoeYkQjlTV/EA522n6EjPlIKx72kcDOuPWfYvQKkz75LP1 9QPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ng3/X4PelThqjSHpCTGPAN/BVGWWlZ6hoIZsJJT4v7Y=; b=18jK8w3xd9gWWKJsjhdK18y2RwhRwUDIyh/T+2p4Vu5JP3jkJQq+NrNDxTiiBJBPHo RA4Tt2njpC3eroFLWodPVuiHaX0G/E8+jBqjaRYDhsCO9c0dO8HLmKczzB6K7oS8vifz H03kcf0gAQlG6ZquxUs4FlEI7v4oi69ozx3LQvHPBhnKwzbK2igEKv2y7AlAF/LTyvvr +8zXvlDDTP+2UnMszuX1f4D1GatKbpYujUqvHATKrZo2nxEf+2+LrbI1JGXbf4J/qBHL J5Fpr69utC+BvB0fTL/oedzcWi2w/8nAuYWGBlAaSeItXCeiyr84rvGfD1vHl6lVHI1Q PfTQ== X-Gm-Message-State: AJIora8HAAaMoHv11ohcDbgZvz5iF275YnDqVIPIFQPLdyX0TmNGEq/J F1W0XKPfbI2o3uDhS/5eqls= X-Google-Smtp-Source: AGRyM1vVXmOV/Fn33yqyYL2kv3owKqaXip641o/zmVhcrSArz5/BWplK7y5pW+xjNvqdrJrqqnZyOg== X-Received: by 2002:a05:6870:c353:b0:101:e7e4:9388 with SMTP id e19-20020a056870c35300b00101e7e49388mr5579381oak.45.1657836922071; Thu, 14 Jul 2022 15:15:22 -0700 (PDT) Received: from localhost ([12.97.180.36]) by smtp.gmail.com with ESMTPSA id w21-20020a9d5a95000000b0061c68a35fdfsm1192880oth.9.2022.07.14.15.15.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jul 2022 15:15:21 -0700 (PDT) Date: Thu, 14 Jul 2022 15:15:20 -0700 From: Yury Norov To: linux-kernel@vger.kernel.org, Andrew Morton , Andy Shevchenko , David Howells , Ingo Molnar , Geert Uytterhoeven , Jonathan Corbet , "Kirill A . Shutemov" , Matthew Wilcox , NeilBrown , Rasmus Villemoes , Russell King , Vlastimil Babka , William Kucharski , linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org Subject: Re: [PATCH v2 00/10] lib: cleanup bitmap-related headers Message-ID: References: <20220706174253.4175492-1-yury.norov@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220714_151524_952109_F5629DA6 X-CRM114-Status: GOOD ( 17.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Jul 12, 2022 at 09:28:21AM -0700, Yury Norov wrote: > On Wed, Jul 6, 2022 at 10:42 AM Yury Norov wrote: > > > > This series unifies declarations of bitmap-related functions and aligns > > return types with values that actually returned. Also, it moves one-liner > > wrappers around cpumask functions into headers, so that compiler has a > > chance to optimize better. > > > > With this series, GCC 11.2 for ARM64 with kernel v5.19-rc4: > > add/remove: 15/7 grow/shrink: 461/164 up/down: 14844/-4580 (10264) > > > > This +10K didn't surprise me because modern compilers are more aggressive > > in inlining, loop unrolling, and other techniques that increase size of > > the image. > > > > v1: https://lore.kernel.org/linux-mm/YsAzU3g2QpgmIGre@smile.fi.intel.com/T/ > > v2: - Align whitespaces in headers; > > - Make bitmap_weight() unsigned long consistently; > > - Pick 2 patches from Ingo's sched/headers series [1] that split > > linux/gfp.h, and drop my similar patch for it. > > Ping? OK, I realize that it's not the very entertaining thing to review a headers cleanup. Adding this into -next because there's no negative feedback (he-he). _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel