From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932534AbdJZPw6 (ORCPT ); Thu, 26 Oct 2017 11:52:58 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:53551 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932512AbdJZPwf (ORCPT ); Thu, 26 Oct 2017 11:52:35 -0400 X-Google-Smtp-Source: ABhQp+SekE10YQJu/DUEphZaYqycVmBSMXB+VX7Xpat0NpB9JFeHr7405rjBbVacv6cdtmOIRmZJYg== From: Clement Courbet 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 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> X-Mailer: git-send-email 2.15.0.rc2.357.g7e34df9404-goog In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: 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.