Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp64074iof; Sun, 5 Jun 2022 21:13:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWCXeFCBZTlRHzmLjwdKWwJNGssSBPnjBQRdkgifKQ3BiSfSQI3vAjRaaM9vJna2RJVCPY X-Received: by 2002:a17:90b:1017:b0:1e2:f568:bc74 with SMTP id gm23-20020a17090b101700b001e2f568bc74mr42443639pjb.156.1654488820016; Sun, 05 Jun 2022 21:13:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654488820; cv=none; d=google.com; s=arc-20160816; b=Iiunn4E47P4CoenXQBoMD/XQZSwQ1DBwjfUnrI3qPLgqkwCYtf613MCUyWkCNpBCdZ ULhNoBAXB5r76M2D4ZXBUDW13AKAMUm+I7Pj7LG1Q63aA4VlV02DHOp0w+UQMJx/tsKC BBsNkowAzJv0PJ6hASjdp0PmWrPZW5xpi2E/ydObf2X+kIeHreu5KJrgyDoWvlBUkbQA 5GshzEDjunYiMf9OqyDQH1tR51ubHksRJ0ZSt7QFTie8+rdq7g/hw+NdfR7QyRfQJcwz bcZxeYy++HnNh/G41Q0M3L5W4HTTApljPNVZZjgt3u/LT75mqNQdJPGeNEFSV2U6Xmu0 ckPg== 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=ZtOlh33NcRgEy6eh4QE64H40zrJtbLRNH/ySMlWblLGYqEH+yFqrC0N7cV/G3V/OKI prqBfffv+PZyLGAvFnMfQzcyOA+gLaDRPX1/ZHk3b0T//FRcVqJ/qIvnaY8vNYJcRbEs pdPGX0H613ILU/AeFSvE/F7elEGGvcnkBnVU1MLf549obd/LB7qByCDYMy/Y6oJeLzmH JyOvqdniH5r1/S387lIyDDuSQiDxjeK4U+I0tsSstegqnD4sMhWOvhVfNx5K4sUwH+fk YgNkPn3vwck+M3oud0bFllB5vR/ZOW3vyrxrDeOIkyqtEqNigMpcRpUiD3wlqIiIMvBh ZkMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svanheule.net header.s=mail1707 header.b=lek2kkzr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u2-20020a170902e80200b001617b5f178bsi18213676plg.83.2022.06.05.21.13.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 21:13:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@svanheule.net header.s=mail1707 header.b=lek2kkzr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svanheule.net Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5B7A17982B; Sun, 5 Jun 2022 20:51:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349466AbiFEGX1 (ORCPT + 99 others); Sun, 5 Jun 2022 02:23:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349279AbiFEGW5 (ORCPT ); Sun, 5 Jun 2022 02:22:57 -0400 Received: from polaris.svanheule.net (polaris.svanheule.net [IPv6:2a00:c98:2060:a004:1::200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACBFE13D56 for ; Sat, 4 Jun 2022 23:22:55 -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 53D7C2E2DA6; Sun, 5 Jun 2022 08:22:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1654410171; 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=lek2kkzrx7JUfR+dOCBwSVImj0V9+bIrfNB6CqcLs7isZx805oywAFrqUws+BOnigpvPIt fCqLLXKLfKERu8zwr+BfomuQyV8Y0ZB7SFnQR55WJPX5KOvAxrRcZL27CFKmr185IRt7VP yQERYfe9Yo+mdTMAfnAuJeoxWNev+x2J34uGqcL0uOOkaTR6I7OJp7yB9GDX+ikQZ9faV+ r6sEen7MWRDgO84Suj4qHCELMNU8rzhzQMYIM7Lr9kbP1fLy5LeEY1kSOtyyssklpnRB9r dSjs7DbeLf+/quNyZlBcBzii2D6vGKwJ4zCPSEIXfTIMt/uPfZ4ok9aA9ZCwIw== 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 v3 4/4] cpumask: Update cpumask_next_wrap() signature Date: Sun, 5 Jun 2022 08:22:41 +0200 Message-Id: <52c0f58d879f9f12fc2a9230ee08da219dc5298c.1654410109.git.sander@svanheule.net> 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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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