From nobody Mon Apr 13 11:50:30 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34B8BC19F2D for ; Tue, 9 Aug 2022 17:37:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245618AbiHIRgy (ORCPT ); Tue, 9 Aug 2022 13:36:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245152AbiHIRgq (ORCPT ); Tue, 9 Aug 2022 13:36:46 -0400 Received: from polaris.svanheule.net (polaris.svanheule.net [IPv6:2a00:c98:2060:a004:1::200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6E62252B0 for ; Tue, 9 Aug 2022 10:36:43 -0700 (PDT) Received: from terra.. (unknown [IPv6:2a02:a03f:eaf9:8401:aa9f:5d01:1b2a:e3cd]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sander@svanheule.net) by polaris.svanheule.net (Postfix) with ESMTPSA id 915AC308CE1; Tue, 9 Aug 2022 19:36:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1660066601; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CdNsFW8BmdC6Xp+NKHPLPlR/rbAil8TvL/l8WLev1Qw=; b=DhqZXpR5jsXxk6UUDCFNVVCXig9nbC2Iv2WJpgsfuhEF23sXrQdtdzFiHLHrpyyS2KK+6e dpiPn/0E1qd7jw5Q+5qhH/56CuDGB41c766qRf9FSjrArRQGDqDTlkgxy7Z9Smj4D+Tk+f +6vVzsrkxKVLxFAeH/JIK0sIGqLccXid39slzhcgF7KxfjdSC0779iGW/quothxnzSfkWF BOzR9PbDMsLCFyaKAjHnAILxRAo/GpcUsVaanDmyxd6iashykT5WP7rSUGXpeXj5Afm5Lh U/JZ3uTHRspJ1EqtvlexQe0iJbPXqVsXDXi+aS2dcyD2rNX2Puih31zM2lAnnQ== From: Sander Vanheule To: Yury Norov , Andy Shevchenko , Rasmus Villemoes Cc: linux-kernel@vger.kernel.org, Sander Vanheule Subject: [PATCH v1 3/3] lib/cpumask: drop always-true preprocessor guard Date: Tue, 9 Aug 2022 19:36:35 +0200 Message-Id: <37f6ddf22de46a81b07861682347fa2f25bb0c69.1660066581.git.sander@svanheule.net> X-Mailer: git-send-email 2.37.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Since lib/cpumask.o is only built for CONFIG_SMP=3Dy, NR_CPUS will always be greater than 1 at compile time. This makes checking for that condition unnecesarry, so it can be dropped. Signed-off-by: Sander Vanheule --- lib/cpumask.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/cpumask.c b/lib/cpumask.c index 8baeb37e23d3..f0ae119be8c4 100644 --- a/lib/cpumask.c +++ b/lib/cpumask.c @@ -109,7 +109,6 @@ void __init free_bootmem_cpumask_var(cpumask_var_t mask) } #endif =20 -#if NR_CPUS > 1 /** * cpumask_local_spread - select the i'th cpu with local numa cpu's first * @i: index number @@ -197,4 +196,3 @@ unsigned int cpumask_any_distribute(const struct cpumas= k *srcp) return next; } EXPORT_SYMBOL(cpumask_any_distribute); -#endif /* NR_CPUS */ --=20 2.37.1