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 1F4B4C4167B for ; Tue, 5 Dec 2023 04:38:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344042AbjLEEiG (ORCPT ); Mon, 4 Dec 2023 23:38:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjLEEiE (ORCPT ); Mon, 4 Dec 2023 23:38:04 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 334E8AA for ; Mon, 4 Dec 2023 20:38:11 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C789AC433C7; Tue, 5 Dec 2023 04:38:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701751090; bh=OI+OTGujyfuEqkeu1z1zMHZ8i6le7BTpKeByXAMDyMs=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=MZkNbbKgzKO/FytDARA68tpffzxe5Vt5jXL3m8Me4QqgbcKb/o+bWBk1bf55UzKpr SZ+Ra1qrzD7Q9XdCesl/eSDGynwIdoNRdPS+shXntCo45Ixy2xVeGzWo+fHOEtTyNf 2pN/eDX8HKvhGO3GJmp/6kryLS389jI7a0ke9f2Qhywslc07ZrXH6UJ4nK3iGGitZW JIGvofLo3kD+r9NKo/WBIH6vuPKKC7NViPpMh4Rc8s+1HeCM1ywxv63dmW9n1w/fVq C4qPwKdDC+a7jbH8nGty0b/MADHykoDovK9gsEKMkPrbLCO0g9xdi9oYZHgyxR8Rbs Pakoal4ljNdaw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 604BECE1147; Mon, 4 Dec 2023 20:38:10 -0800 (PST) Date: Mon, 4 Dec 2023 20:38:10 -0800 From: "Paul E. McKenney" To: kernel test robot Cc: Frederic Weisbecker , oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Nicolas Saenz Julienne Subject: Re: kernel/context_tracking.c:80: warning: Function parameter or member 'state' not described in '__ct_user_enter' Message-ID: <8e26257d-2809-4965-9f7d-aadbbb3def6f@paulmck-laptop> Reply-To: paulmck@kernel.org References: <202312041922.YZCcEPYD-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202312041922.YZCcEPYD-lkp@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 04, 2023 at 08:02:33PM +0800, kernel test robot wrote: > Hi Frederic, > > FYI, the error/warning still remains. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 33cc938e65a98f1d29d0a18403dbbee050dcad9a > commit: e67198cc05b8ecbb7b8e2d8ef9fb5c8d26821873 context_tracking: Take idle eqs entrypoints over RCU > date: 1 year, 5 months ago > config: x86_64-buildonly-randconfig-006-20230906 (https://download.01.org/0day-ci/archive/20231204/202312041922.YZCcEPYD-lkp@intel.com/config) > compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231204/202312041922.YZCcEPYD-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202312041922.YZCcEPYD-lkp@intel.com/ > > All warnings (new ones prefixed by >>): > > >> kernel/context_tracking.c:80: warning: Function parameter or member 'state' not described in '__ct_user_enter' > >> kernel/context_tracking.c:184: warning: Function parameter or member 'state' not described in '__ct_user_exit' Does the patch below help? Thanx, Paul ------------------------------------------------------------------------ commit 9d879548a8cc89e5fdb0d806fc20887d67991c10 Author: Paul E. McKenney Date: Mon Dec 4 20:34:58 2023 -0800 context_tracking: Fix kerneldoc headers for __ct_user_{enter,exit}() 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 Cc: Frederic Weisbecker 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,