Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp59087rdb; Mon, 4 Dec 2023 20:38:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgAYINBkuR/9hwY9Nxkl6184BwOVf42inpkYPr05TUnhupj5Zt5gcWC1JCdIjkLHnlBCeY X-Received: by 2002:a17:902:ef95:b0:1d0:4cde:6e23 with SMTP id iz21-20020a170902ef9500b001d04cde6e23mr4642387plb.53.1701751104475; Mon, 04 Dec 2023 20:38:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701751104; cv=none; d=google.com; s=arc-20160816; b=kFOJdEmcIooswarQNpRK/QjJIN5eojs/BwrYcSW9iK9shY65bHLoZo1KNhvn2Qa3EF MmjflowrBZgtOqqua7Bkx0gFXfuK8eoiUQkTMscgEnInqMIc2OuAa1pDBN7t5XTmXHoQ fTIpAwDQFN0vntEvsd8UJX+DURbU2SYQZsYv7yOB0iTrwdbsy8aArwzljq7WN5PK2M5p XwP5B3/BqCQEiY4wwcXq4vT0RsW77ceo6+NZamgILx/0K/se5xjUwLLg5ko1Rt1wZjUN C3Doi+WEKXV37+IQu5KGcGSMZr5dOgyrYhtf9yNr4+5uYaIorgF+6CvzXRR1JyyTtL+q sx3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=wuOSh4HEbtm9AMGPoe9kJOvOVyhIUzTqh1JEwB5gp10=; fh=28R7fXAgDTE03Nalkd3d8ZHzwrMkwvEpotUV5KkQw2c=; b=V0OUBx+PItYYY9d8rUgrj5qD7za8R48nwQxZK+pVNXZo4gDM91CCuN3CyWU2eR8aX9 FlyCxkqirFWdK4m+t+cbTqMJLWK2Z9bXijeVNPYkqtajBi2l0GP2zsJJEKPBqhYUQe1f bbSryLT3m4kuePeqVX8ORdVYTWWXK0EWAawqPQDAQbwO0mN7y3iwGLabicbT2rU2PQZi XbHE5qpPm4WXQuFBtgUMOAN8AXtXD5odBv17HpoW/PIJYYrDkmypVHAKFRAktS5+NDk6 AGMjMgCIgZjl723aved4U5Jt5MyRkJJaqtTHY3NMNuyzr8rfUGXiOchbg8CHg2+3zAcd 0Lmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MZkNbbKg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id h7-20020a170902f7c700b001cfa37f9a6esi3409511plw.531.2023.12.04.20.38.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 20:38:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MZkNbbKg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id A72B980BAA85; Mon, 4 Dec 2023 20:38:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231616AbjLEEiG (ORCPT + 99 others); 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> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 04 Dec 2023 20:38:21 -0800 (PST) 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,