From nobody Mon Apr 13 11:52:36 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 6F4C7C19F2D for ; Tue, 9 Aug 2022 17:36:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245388AbiHIRgw (ORCPT ); Tue, 9 Aug 2022 13:36:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245601AbiHIRgr (ORCPT ); Tue, 9 Aug 2022 13:36:47 -0400 Received: from polaris.svanheule.net (polaris.svanheule.net [84.16.241.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4852C252A2 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 A715F308CDF; Tue, 9 Aug 2022 19:36:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1660066600; 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=JOxZ/n1mG+AA2dVZMQCKulbPFD0Jg/I+TAQ2E5jb4Pk=; b=ZCpT2pjXzU52EP2M06gzt9GRdNG8xGPDfzP1s3RXT/RwX4MaoXLvRH01gOnYHbQRrFTvcZ XjyMD45MJ9RbHXAeSPJu3GT0nQaCX/9EFqQ00rGjXbpECLb/tH3VrVVReISxCduqXjC4D/ SbRsY0+HlmR3k3nA+hyb6pNpLYMN8STrsX15n3xOiq7YkqpNg9EZSA0+CcT6uMPOIfdL2Z GuetI33PKA4EGKk/9HzLnud2RW41nXn33qx1SXoV2qY0aWjtlN11XWzqU9/kJj212bcVIQ OWGzpVK+9050ZIjtoCoegH5xMEfilZmbLPXauHJJYpLlKAreND2NDi17oprVCg== From: Sander Vanheule To: Yury Norov , Andy Shevchenko , Rasmus Villemoes Cc: linux-kernel@vger.kernel.org, Sander Vanheule Subject: [PATCH v1 1/3] cpumask: align signatures of UP implementations Date: Tue, 9 Aug 2022 19:36:33 +0200 Message-Id: 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" Between the generic version, and their uniprocessor optimised implementations, the return types of cpumask_any_and_distribute() and cpumask_any_distribute() are not identical. Change the UP versions to 'unsigned int', to match the generic versions. Suggested-by: Yury Norov Signed-off-by: Sander Vanheule --- include/linux/cpumask.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h index 0d435d0edbcb..d8c2a40f8beb 100644 --- a/include/linux/cpumask.h +++ b/include/linux/cpumask.h @@ -202,12 +202,13 @@ static inline unsigned int cpumask_local_spread(unsig= ned int i, int node) return 0; } =20 -static inline int cpumask_any_and_distribute(const struct cpumask *src1p, - const struct cpumask *src2p) { +static inline unsigned int cpumask_any_and_distribute(const struct cpumask= *src1p, + const struct cpumask *src2p) +{ return cpumask_first_and(src1p, src2p); } =20 -static inline int cpumask_any_distribute(const struct cpumask *srcp) +static inline unsigned int cpumask_any_distribute(const struct cpumask *sr= cp) { return cpumask_first(srcp); } --=20 2.37.1