From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clement Courbet Subject: [PATCH v2] lib: optimize cpumask_next_and() Date: Thu, 26 Oct 2017 17:52:01 +0200 Message-ID: <20171026155201.26104-1-courbet@google.com> References: Return-path: Received: from mail-wm0-f43.google.com ([74.125.82.43]:54824 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932446AbdJZPwf (ORCPT ); Thu, 26 Oct 2017 11:52:35 -0400 Received: by mail-wm0-f43.google.com with SMTP id r68so9265118wmr.3 for ; Thu, 26 Oct 2017 08:52:35 -0700 (PDT) In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-ID: To: Arnd Bergmann , Rasmus Villemoes , Andrew Morton , Matthew Wilcox , Yury Norov Cc: Clement Courbet , Ingo Molnar , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Hi Alexey, > Gentoo ships 5.4.0 which doesn't inline this code on x86_64 defconfig > (which has OPTIMIZE_INLINING). I have not actually marked _find_next_bit() inline, it just turns out that my compiler inlines it. I've tried out marking the function inline and OPTIMIZE_INLINING does not un-inline it. I'll send a v4 with an explicit inine.