Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp376686rdb; Thu, 25 Jan 2024 20:00:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEl+VOSq7RRnEKguV3GsjtAFeP30G/qAIIBzqA830pjE5pV//wqSSwKUnxJCLwc5SaoRetG X-Received: by 2002:a05:6214:29ca:b0:681:9ae2:c74c with SMTP id gh10-20020a05621429ca00b006819ae2c74cmr849913qvb.52.1706241644599; Thu, 25 Jan 2024 20:00:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706241644; cv=pass; d=google.com; s=arc-20160816; b=h2wqbzmokjhGG05JTamvmF3hm2A4+YffYWsBSy3toVPb8mLEWTHtp6DV49KDPuZCfI niLTNuN/HNMeXQwQUUGxJDI9NeVyKpmrmXZnGmZoUu1GgiE8gLvKCrRIq8BQPyw1oS6E 3dGgTkBkIBUz9ALgXtedanLiyms7mHu2drdBar0IzVUWth5YWrrTe2FeGiw4PpojF/6t +Ev0vE+KVjbuOUv9VUmo1SfqsePNDNq6yg2d9Ueh9fZeikPdyBlR2F/P0Bx6/vpi82si quM3nEQPu3JtyrnYGurkWoihQDujv1Z86PopYwSikOQ1l2YQ5KGGJ/NNOHNclcHxw7hu XHQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:feedback-id:dkim-signature; bh=EO+5jZxp/BmVN4zA1VzpAEG/sp+6XbEjMKC2KLtQ1pM=; fh=wCW1pD/zhuVo+LglAAJc5QfMs20TmMw0Y/ZOx3jdPcs=; b=PSUFvixbBjSEUJr2pn3ieJDmj+VP60onQNg6xsn3fOn/7zgw5JFMltJATbrKjrHXmg WplOANOEy4P4vD2XChG/X4ll1KIUSFBhTLliMg3M0FG5IPTYJ+dsMekwoQRpnbF+LQIy o2bMrJ7flToVuLiLVkYLqSTSuc2n7gJG8pcYbe7f4jNA80YQCxutX7BiMjAyB2cDKPJG Hh+f5myQI7DT61rv+JwihO2YUPPoGPuq3Sia3MJTeDcyxajC1vtU8Zzr9X+1E2eSO58v f86j0q+PnjVhURsq2L4pdW2ZfZyj8gqw/JeSasgWNyTbZoDC5Wq9GknzBHZyTFqU5U2r t4nA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NzI7buMW; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-39584-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39584-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g10-20020a0562140aca00b0067f0cb35d16si456349qvi.411.2024.01.25.20.00.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 20:00:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39584-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NzI7buMW; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-39584-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39584-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0E7FC1C209CD for ; Fri, 26 Jan 2024 04:00:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C3F6DD29B; Fri, 26 Jan 2024 03:59:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NzI7buMW" Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F3FC125B7; Fri, 26 Jan 2024 03:59:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706241567; cv=none; b=BYcgrjGe6PAul5VtzxcMWjWgxhxU4grjR1X8Iuytw9u3nX7V8hdxywAIsmwt1ZfemXHGKrDA0Irvmpytb97C0Ddd4GtMCwt+yU58e47Lf65pM0MlHjgFTeXuAMiY1/5j8Pw2rYqzzOjvnO6vpCy+6zCYJSlg1RgqlYYzxAiUDmQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706241567; c=relaxed/simple; bh=OHyp/cl0sesiDi46hrRKgERuCBPKSpZYjrfdlwIbLec=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sip1KYhCPq8VCMxAD0Z27+hXuCANB6AUcNtrhg9LXm1vjJuMZwmqf3hJw3qaJ4L9W6Ng8wXnqU04rICWlv4eZwA3YvWs5wMyim+Y6ml4dKz4u+kenQkbnjbe2P848vCLS+93al3tzzw9kowuR6a6DBXnPoQDV2S0Z5Pt5YoJPO4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NzI7buMW; arc=none smtp.client-ip=209.85.222.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-f169.google.com with SMTP id af79cd13be357-7810827e54eso518531985a.2; Thu, 25 Jan 2024 19:59:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706241565; x=1706846365; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:feedback-id:from:to:cc:subject :date:message-id:reply-to; bh=EO+5jZxp/BmVN4zA1VzpAEG/sp+6XbEjMKC2KLtQ1pM=; b=NzI7buMWaZp/lneIZvoWGJWSevWa4emZMYiM6vlk1+5pWUwZGWLUFQ/cOygCE7iQya NLDC6Sg8HnefiUmoc4f1HTAWg0jrZ30R/oWnFFklEemr/ZEMjLOyttOkL0Q/vrxYKjEt Pf+a025JKuOOdjLOnRqIiztFB+81ywmeRbQdaGvZeiDSokY4uAAn9gVnaYdkgMcpH3vA FqZ8IEtuf1hQ5UHMJVLNIffacQT8vRJSpGUr3UlDeF8Od9U8Sjx/SVCnfY4Lk6/+AjF5 Ddii6vWgvkMRGArqSOSsRpzoCkMDTelvZdSnf53ji4rmJ8UAdoYXvwjxwVfhEPQGWg+F gpPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706241565; x=1706846365; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:feedback-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=EO+5jZxp/BmVN4zA1VzpAEG/sp+6XbEjMKC2KLtQ1pM=; b=b8UtpgryR3N2jxhlXYVNi1B0espYleNWFFFdwjjfCwXuYtpRh5GSFwwlsruoMHeiI1 VK6C6yxt8CK2qwAR0pvC4ZXYoMlRL0qD1Hg00ZSEzOajUeHCLd5uggY7cAXk1BRP+5+T 7eQcn3Mk+91wa6BxW9xzbRKMsbNdit1dv8a2lpRDXvkykKN/3h3xKaoLtlZzk5HzvMSZ GxhTRD/hth0cL7NHKmMkZrLZoSw5muizu59fuaqWC5NUuKpyiJPUzIXVOGKJfQYal7FU mH0BHz8MhuFNGGhk6Pvs3d5ISUWR2Hnx0HFIM2fpXtXCWRNzR8fwYSMvxaFon/KHSwd3 kD4A== X-Gm-Message-State: AOJu0YzGWZqBF+QkrYMEMegi570bYp+dI3w02V1UNlbgSc40ZyfePA6o jVQ39T4Pmu7APuR1NLHB8yAz6j3FZcB0vhLszcYMlqVUUfVZ1niByiK6PXk2 X-Received: by 2002:a05:620a:851f:b0:783:539a:f30e with SMTP id pe31-20020a05620a851f00b00783539af30emr853975qkn.83.1706241564932; Thu, 25 Jan 2024 19:59:24 -0800 (PST) Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com. [66.111.4.228]) by smtp.gmail.com with ESMTPSA id s16-20020a05620a031000b0078329aeba24sm201485qkm.131.2024.01.25.19.59.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 19:59:24 -0800 (PST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 6428427C005B; Thu, 25 Jan 2024 22:59:24 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 25 Jan 2024 22:59:24 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdeliedgieefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepuehoqhhu nhcuhfgvnhhguceosghoqhhunhdrfhgvnhhgsehgmhgrihhlrdgtohhmqeenucggtffrrg htthgvrhhnpefghfffvefhhfdvgfejgfekvdelgfekgeevueehlefhiedvgeffjefgteeu gfehieenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepsghoqhhunhdomhgvshhmthhprghuthhh phgvrhhsohhnrghlihhthidqieelvdeghedtieegqddujeejkeehheehvddqsghoqhhunh drfhgvnhhgpeepghhmrghilhdrtghomhesfhhigihmvgdrnhgrmhgv X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 25 Jan 2024 22:59:23 -0500 (EST) From: Boqun Feng To: linux-kernel@vger.kernel.org, rcu@vger.kernel.org, linux-doc@vger.kernel.org Cc: Jonathan Corbet , "Paul E. McKenney" , kernel test robot , Randy Dunlap , Frederic Weisbecker Subject: [PATCH 6/8] context_tracking: Fix kerneldoc headers for __ct_user_{enter,exit}() Date: Thu, 25 Jan 2024 19:58:09 -0800 Message-ID: <20240126035816.3129296-7-boqun.feng@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240126035816.3129296-1-boqun.feng@gmail.com> References: <20240126035816.3129296-1-boqun.feng@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Paul E. McKenney" Document the "state" parameter of both of these functions. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312041922.YZCcEPYD-lkp@intel.com/ Signed-off-by: Paul E. McKenney Tested-by: Randy Dunlap Acked-by: Randy Dunlap Cc: Frederic Weisbecker --- kernel/context_tracking.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/context_tracking.c b/kernel/context_tracking.c index 6ef0b35fc28c..70ae70d03823 100644 --- a/kernel/context_tracking.c +++ b/kernel/context_tracking.c @@ -458,6 +458,8 @@ static __always_inline void context_tracking_recursion_exit(void) * __ct_user_enter - Inform the context tracking that the CPU is going * to enter user or guest space mode. * + * @state: userspace context-tracking state to enter. + * * This function must be called right before we switch from the kernel * to user or guest space, when it's guaranteed the remaining kernel * instructions to execute won't use any RCU read side critical section @@ -595,6 +597,8 @@ NOKPROBE_SYMBOL(user_enter_callable); * __ct_user_exit - Inform the context tracking that the CPU is * exiting user or guest mode and entering the kernel. * + * @state: userspace context-tracking state being exited from. + * * This function must be called after we entered the kernel from user or * guest space before any use of RCU read side critical section. This * potentially include any high level kernel code like syscalls, exceptions, -- 2.43.0