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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B236FC433EF for ; Sat, 4 Jun 2022 17:16:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239242AbiFDRQf (ORCPT ); Sat, 4 Jun 2022 13:16:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239119AbiFDRQS (ORCPT ); Sat, 4 Jun 2022 13:16:18 -0400 Received: from polaris.svanheule.net (polaris.svanheule.net [84.16.241.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BFB2286D6 for ; Sat, 4 Jun 2022 10:16:15 -0700 (PDT) Received: from localhost.localdomain (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 8F80E2E2939; Sat, 4 Jun 2022 19:16:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1654362971; 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=43KXIoq1D6bklJo+f5FH1Gs3lknZQq9mQVsSDG8wsAw=; b=sFX2aPP2xERNo6JHr1+Q0XRUXA8EPdR31koEmHzTMj1I15c6TMH/DlcjH6+gbwrk3axLth n7MNOjTpHUVg+320V9mk8A9zc3nPxvx4d8NemPyu1gtC3Qfext1uShxyPFe2MLIphRiwIE UpJHYla+HxRexNDRy7HLs0zaeZJJbH/Oc8nInnM2z8YvIutc0tXcOtABsc6c2SDYzBAGxD 8imeEYnOpJp12VVgOmmq0KzXEPQ6o5jLz3IvgoOPJe3s2FEpYpvZ0indQxNmm8MwI44onk 88udotzaZSdDwVDLVHNMOWezmb5laak1zC0xsJEsR0WDSNxkhOhSPjNTaJw7EQ== From: Sander Vanheule To: Peter Zijlstra , Yury Norov , Andrew Morton , Valentin Schneider , Thomas Gleixner , Greg Kroah-Hartman , Marco Elver Cc: linux-kernel@vger.kernel.org, Andy Shevchenko , Sander Vanheule Subject: [PATCH v2 4/4] cpumask: Update cpumask_next_wrap() signature Date: Sat, 4 Jun 2022 19:15:59 +0200 Message-Id: X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The extern specifier is not needed for this declaration, so drop it. The function also depends only on the input parameters, and has no side effects, so it can be marked __pure like other functions in cpumask.h Signed-off-by: Sander Vanheule --- include/linux/cpumask.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h index 7ccddbc27ac3..f37ce00741a3 100644 --- a/include/linux/cpumask.h +++ b/include/linux/cpumask.h @@ -210,7 +210,7 @@ int cpumask_any_distribute(const struct cpumask *srcp); (cpu) = cpumask_next_zero((cpu), (mask)), \ (cpu) < nr_cpu_ids;) -extern int cpumask_next_wrap(int n, const struct cpumask *mask, int start, bool wrap); +int __pure cpumask_next_wrap(int n, const struct cpumask *mask, int start, bool wrap); /** * for_each_cpu_wrap - iterate over every cpu in a mask, starting at a specified location -- 2.36.1