Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp8993782ioo; Sun, 5 Jun 2022 02:24:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxg/ptnvE7UVWrBFbPDDjTJX0xMFOU/RxKmMZt9gmbsQXKfBItSIS6LAuioBuZrHZDcYJ6U X-Received: by 2002:a17:907:a42a:b0:6ff:75f7:4026 with SMTP id sg42-20020a170907a42a00b006ff75f74026mr16203397ejc.93.1654421042099; Sun, 05 Jun 2022 02:24:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654421042; cv=none; d=google.com; s=arc-20160816; b=pkSZIV2MwK/WneCc2vpGRPEE4oFRs+nnDMum9TLtvkET367CsF984GJemQF1+qACJ3 RROlQKuPFlNqG6zQ8I9cjrNrjzyMk7exNc39K4HKdDQRAjKKkpzb+l3SbWisvSyKNuD8 bvzjXUHAHiMNWQdTNV8xG3KcQkHJu+ZaoFJ7MZwmCisWA2e+UmxpmulC1VrSL0aMmNPi l6tWTtiZ8lkW80KATMlAyvXXkA3Mic8UnYUFHodWPt1i7F2V1qyH+WMfH/YQYuPBzWEK KtsN0u6wW8jEeMMMAf5rnQ69s6K5iSW6IV9xhcYfWoySAIwJ+R0iGgj/giKrwcE+/qf5 HHdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=43KXIoq1D6bklJo+f5FH1Gs3lknZQq9mQVsSDG8wsAw=; b=ykBgAp4WY+o9fcoZqmdzzR/eaQ//Bx4ma2Q0YpXd+ik0o7FMKshIzkDJXNBGGtkRS3 YkdJxlXp7VzexsS8WS2PyShDq6hHGUmpUevuqjTutcIXNHj6qQfLuRITe21/xJUxmjIE LkphZpOFmeW31fXFYarNFFlZAdySQNrOpWhBFbN8U6jTYF57FXShwLaB2B/v8slyeOg1 mk5gb4BmgdmB9tN71tCU4VAX1F2EyKbwRLTLBQkdlB40c3EpguDllTefRNYMLXCuj09d OjtVQYmDHtgqBC0ieX1QM90TTVhvN9lo0dDkydFIlcK7DMe9T2B4dfHi8t388LpFXWk1 r0CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svanheule.net header.s=mail1707 header.b=sFX2aPP2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svanheule.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m18-20020a056402511200b0042b382c6ea3si9669267edd.520.2022.06.05.02.23.34; Sun, 05 Jun 2022 02:24:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@svanheule.net header.s=mail1707 header.b=sFX2aPP2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svanheule.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239172AbiFDRQf (ORCPT + 99 others); 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 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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