From patchwork Thu Aug 3 14:40:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13340223 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 79A1CEB64DD for ; Thu, 3 Aug 2023 14:41:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229844AbjHCOln (ORCPT ); Thu, 3 Aug 2023 10:41:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236208AbjHCOla (ORCPT ); Thu, 3 Aug 2023 10:41:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E16B4217; Thu, 3 Aug 2023 07:40:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C2B0A61DD0; Thu, 3 Aug 2023 14:40:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E788BC433C7; Thu, 3 Aug 2023 14:40:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691073637; bh=9pxec8ZBavvpLPblzW9Mu0vwSLRXinc+qf3BTn5DC6s=; h=From:To:Cc:Subject:Date:From; b=BebWia0X00VwPvauWpfbmsnwyn0BB+Xuxw5ybhmZ7D//GhXsYxonbTMb87DnAI0Tt I9djm3zRyvigZwt71z08v+j8ZGRGnAgs6/VdcWki1VIQC6zgcyz+uOZ4Ua/o/FB5hP pasRFRD/JJPZ5gRmcDXq/wm5WuMzZczpHCWhLv19OtOx9K6Bh61j0BF7d1t9aX3ToF 9Xb6aHpaHTG8eRXzyuk6hDDL+DL8tjzPtgZXS39/2CoNqK4qIfx07jU74xSM+EB2Pm g6YDCJmhSJg8gAMEk11SSULXkYazz8nsw4ea3xHj5gj6ssTZn0Et0GlI8DWpsjCUoX bHcqnWxJznAXg== From: Arnd Bergmann To: "Paul E. McKenney" Cc: Arnd Bergmann , Frederic Weisbecker , Neeraj Upadhyay , Joel Fernandes , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang , Zhen Lei , rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] rcu: include torture_sched_setaffinity() declaration Date: Thu, 3 Aug 2023 16:40:11 +0200 Message-Id: <20230803144025.14023-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: rcu@vger.kernel.org From: Arnd Bergmann The prototype for torture_sched_setaffinity() moved to a different header, which needs to be included from update.c to avoid this W=1 warning: kernel/rcu/update.c:529:6: error: no previous prototype for 'torture_sched_setaffinity' [-Werror=missing-prototypes] 529 | long torture_sched_setaffinity(pid_t pid, const struct cpumask *in_mask) Fixes: 521ec59e5453e ("torture: Move rcutorture_sched_setaffinity() out of rcutorture") Signed-off-by: Arnd Bergmann Reviewed-by: Joel Fernandes (Google) --- kernel/rcu/update.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c index 0533b510f0a8..c534d6806d3d 100644 --- a/kernel/rcu/update.c +++ b/kernel/rcu/update.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include