Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1241793rdb; Wed, 6 Dec 2023 12:38:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IEC5d1wcXxL4luSEZhGORwIttggKwnDTmuhFrzEEfjWA3C+t+/Sww5n+ETt05qzFsXKZniE X-Received: by 2002:aa7:9a4c:0:b0:6ce:2df5:48b with SMTP id x12-20020aa79a4c000000b006ce2df5048bmr1326483pfj.32.1701895111299; Wed, 06 Dec 2023 12:38:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701895111; cv=none; d=google.com; s=arc-20160816; b=ES7M5wtqyQsAFGli8OgIq3RAEd6rCJfjZQ0hRxUF994+i0EkrPphoQJCwLYTEr5dDL x/tWMwmFfuTZ8BkE8dyJMSh9R0sWaXvZ3RJrQDYQ+p8AD6CWiMw5wvOe2SpA1T9K8MVa 3WzjA/itJI2FFxWaiB9p5uwev9lumGirvPJVSukOPGOy1Adt5viQx0lTrRQDXZyCsyTy Ss55FYBWH28uhtyeUK0kjQ5OIrOlFOslp1BSDpTOcx+3s6IJiSTAHx7GBxo4AmQlaTDs I5kK2m3l5alcPhVJFAEuD2xTXTGvE0KuYuc6cwUX7aIQrUA+e+/PpfKr3ufli7nb5VQx YEXQ== 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=VmVeF13qpe8qYE2+DNSHrZzgb2WLtUMDVOukJOqjwjc=; fh=QfZaAIeUjm+MqkntIPNVzHWmOriXc1eCxkpy4eVnMSg=; b=wRogH2Kn/zw4xm5g9PDBeVYR91HuYmeyM/nLwtnca6jIl60KmZB08xiUiTOcYcubr/ kGOfiHKixWB/Xidx8E+uQ+spQO3xmX7PaBHEWzPhL3QCeZqSJvGRMJkIPFEViPf92UJ8 EEIYCsGawAXlmSXo9vUREc6enjQaLVu9XzNj0LPzL5vp/8E5nIGOOxQvar+69NYAPPRP QXLt0Upd2tuTCB6gAarx1T46Ejg0aueO/HoCPeoBsEv8oy1Oh54fnItuxC5407oE1uTz ghoJbzC0L+15PXLpH057zJZnB0gkkcJpizBOkhoIqWnpDy8hixPtemBgTf70uiAb5nC2 Tf5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DPyz8OOu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id u22-20020a656716000000b005be0fa4ea26si424733pgf.603.2023.12.06.12.38.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 12:38:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DPyz8OOu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 51B598029A95; Wed, 6 Dec 2023 12:38:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379552AbjLFUiM (ORCPT + 99 others); Wed, 6 Dec 2023 15:38:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379519AbjLFUiL (ORCPT ); Wed, 6 Dec 2023 15:38:11 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19E21135 for ; Wed, 6 Dec 2023 12:38:16 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A710AC433C7; Wed, 6 Dec 2023 20:38:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701895095; bh=meN9n/82QvNIZ0XZeo0x+kgGBx2QTXK1BuA2HRAZVMY=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=DPyz8OOuAwbuu/cl+E9ayk4j5gvjJpirBq/4Xu8nb8onM5g5duJeZIu1YMLR7QyUT fqSfPtTCoVsfdsWQuHlCvq5wtAr0vVoY5tNDu+mlDnLfstD4HV7e/tv++O/FyXACsg M9OswCuM0Lc30eA2OyPgEGRuN67kH4+GaYatByxZtV2ekh4DQX3Vs4FyMg/3A8le3+ Y7y7zKnL6jyGWo34wrZA27y//XLIUciHKT+tdM/het8Tyva69Csxx02FUyfhLE6URX gUzcN+4BUDLlaJRZXTJCypQTwd69i7sH1kK/hJK9st+6i2YTqtXiIw3LVjxPwDw+i2 zHYWsD4byUt0A== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 3B12FCE0CC4; Wed, 6 Dec 2023 12:38:15 -0800 (PST) Date: Wed, 6 Dec 2023 12:38:15 -0800 From: "Paul E. McKenney" To: Randy Dunlap Cc: kernel test robot , 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: Reply-To: paulmck@kernel.org References: <202312041922.YZCcEPYD-lkp@intel.com> <8e26257d-2809-4965-9f7d-aadbbb3def6f@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 06 Dec 2023 12:38:28 -0800 (PST) On Tue, Dec 05, 2023 at 02:15:54PM -0800, Randy Dunlap wrote: > > > On 12/4/23 20:38, Paul E. McKenney wrote: > > 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? > > Yes. Thanks. > > Tested-by: Randy Dunlap > Acked-by: Randy Dunlap Thank you! I will apply these on my next rebase. 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, > > -- > ~Randy