Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2190691rwd; Fri, 26 May 2023 03:10:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6FyKs/dxCeUGPsDKEt0Bad4mMIVEkXpVVXlK4xGZgjYZmuQnjOfsQ2KTZqAsc4v9nz0IYS X-Received: by 2002:a17:903:2342:b0:1ab:253e:6906 with SMTP id c2-20020a170903234200b001ab253e6906mr2485388plh.67.1685095809752; Fri, 26 May 2023 03:10:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685095809; cv=none; d=google.com; s=arc-20160816; b=RRcmDn2Q1QiMj1dW7MvY6Ah6NO7T/U2R8cbkH9nvGVfh3wJYZqidSuugJTS/kL/Sph +eLvHs/7qXQxGFw6fxb8CUDMcBtE+pABuouk3v+umbUqEuTwq9yqyDh4thBDGJMhGydR yNByGAu47FY7DX3FwDcboQM09u++qVsJHt519SeAHvN9ASMdRKZajKG5EmYzmOkkciRg wk2sNn9R4O7J82LrCIYcW8zESeznumDDC5XXt3Lw8+SnLED6FKm1pqXNoHH54iJLTQCw vfEBIuIznJu98KohNfb6nVOBHPmLma+M2NwEhrOWA/mVVKpv/fpZKZucYQrAI9VLUcJt 847g== 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=+RV6x0gtXKMF9OffF8BrvjAJy6TVqtlhBEjwBORgFOc=; b=VAz3aQhJuUf14IY9OOIoqLUjjVsuam9Mw48Z1ad0LsxpTV+mGCEhbP5boD9OWa1O7X zXzo74m6dM9SLupd+jbKlo7Zlm20DmpnuNHcgkq8pzJKkwPwz8zQllyKKJtc12GIWWST AI5N5aimpHL2xFODJj3t+WEFGZd+YGpMGKx82e+WX6LtzNJH57QRYAlb867w1ikaqgd4 ChDZGdUaJKkof+gOLy9KvLqaKPN1YuxY1p+bO+Gw6r41pPF14qX5Q7+cvPmp7N5mXuH1 NeM0zuMqkoOvG70rlgQleS86ZEz8JVAOMU21eg/Z2lvkAoCuqUUoll5l5pSQBFoTkOHJ MZdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pTlbvAFp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k21-20020a170902761500b001a95c7e5ad9si3565246pll.352.2023.05.26.03.09.55; Fri, 26 May 2023 03:10:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pTlbvAFp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243146AbjEZJsT (ORCPT + 99 others); Fri, 26 May 2023 05:48:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243155AbjEZJsN (ORCPT ); Fri, 26 May 2023 05:48:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA301D8 for ; Fri, 26 May 2023 02:48:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5A1B46168E for ; Fri, 26 May 2023 09:48:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B1BCC4339B; Fri, 26 May 2023 09:48:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685094491; bh=cLxbSg+XqqVsWSq9nyUiacTmkj48Tj2ek03PRtbVxJM=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=pTlbvAFp15IpQc78BsTJsGCaOjcHUabJpdVvssTs3xS5BEhJreUTeS85HdEIoXZPJ r8FapS4wAEssFHCDr5LRQzyj/2yDdW+Z47JKMpjowp0LLm+inWq6Zlq9o/OV8VISnv yWEniSLOdqChDVJND54Dhf4PY573qYqNALcHKdBAYXURikCdMaooN6N6vR/KFXsrE8 0JoVWTx1OenrwTllyuc+3aTdNKmK95sAWXZfuNpErGMTYrQno265rGEkZvVS2o6/6m PDx7OGBFyMR8YujMI+tO6uDEk1muaWHqOAoWKU8mwCaazHP0wtU38ZAw0kuRrUxw35 8eA/lCHGa03nQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id A9085CE0CCF; Fri, 26 May 2023 02:48:06 -0700 (PDT) Date: Fri, 26 May 2023 02:48:06 -0700 From: "Paul E. McKenney" To: Yujie Liu Cc: kernel test robot , llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [paulmck-rcu:rcu/next 19/19] kernel/rcu/rcuscale.c:340:20: error: use of undeclared identifier 'get_rcu_tasks_trace_gp_kthread'; did you mean 'show_rcu_tasks_trace_gp_kthread'? Message-ID: <17429c26-d279-43ec-a297-232bc6301bec@paulmck-laptop> Reply-To: paulmck@kernel.org References: <202305190259.Rm6JC6Nz-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 26, 2023 at 03:23:47PM +0800, Yujie Liu wrote: > Hi Paul, > > On Thu, May 18, 2023 at 07:11:33PM -0700, Paul E. McKenney wrote: > > On Fri, May 19, 2023 at 02:30:11AM +0800, kernel test robot wrote: > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next > > > head: 9bb839a83e1bbbfd4f7f20827aafd0a39fad00c7 > > > commit: 9bb839a83e1bbbfd4f7f20827aafd0a39fad00c7 [19/19] rcuscale: Measure grace-period kthread CPU time > > > config: x86_64-randconfig-a001 > > > compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) > > > reproduce (this is a W=1 build): > > > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > > > chmod +x ~/bin/make.cross > > > # https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git/commit/?id=9bb839a83e1bbbfd4f7f20827aafd0a39fad00c7 > > > git remote add paulmck-rcu https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git > > > git fetch --no-tags paulmck-rcu rcu/next > > > git checkout 9bb839a83e1bbbfd4f7f20827aafd0a39fad00c7 > > > # save the config file > > > mkdir build_dir && cp config build_dir/.config > > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig > > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/rcu/ > > > > > > If you fix the issue, kindly add following tag where applicable > > > | Reported-by: kernel test robot > > > | Closes: https://lore.kernel.org/oe-kbuild-all/202305190259.Rm6JC6Nz-lkp@intel.com/ > > > > > > All errors (new ones prefixed by >>): > > > > > > >> kernel/rcu/rcuscale.c:340:20: error: use of undeclared identifier 'get_rcu_tasks_trace_gp_kthread'; did you mean 'show_rcu_tasks_trace_gp_kthread'? > > > .rso_gp_kthread = get_rcu_tasks_trace_gp_kthread, > > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > show_rcu_tasks_trace_gp_kthread > > > kernel/rcu/rcu.h:642:20: note: 'show_rcu_tasks_trace_gp_kthread' declared here > > > static inline void show_rcu_tasks_trace_gp_kthread(void) {} > > > ^ > > > >> kernel/rcu/rcuscale.c:340:20: error: incompatible function pointer types initializing 'struct task_struct *(*)(void)' with an expression of type 'void (void)' [-Werror,-Wincompatible-function-pointer-types] > > > .rso_gp_kthread = get_rcu_tasks_trace_gp_kthread, > > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > 2 errors generated. > > > > Apologies for the hassle! Does the diff below help at your end? > > Sorry for the late reply. We noticed that rcu/next branch was respined > and the diff below has been applied. We tested the new head commit > 60901dadfadc ("rcuscale: Measure grace-period kthread CPU time") > and the build error is gone. Thanks. > > Tested-by: Yujie Liu Very good, thank you! I will apply on my next rebase. Thanx, Paul > > ------------------------------------------------------------------------ > > > > diff --git a/include/linux/rcupdate_trace.h b/include/linux/rcupdate_trace.h > > index 3a5a322939b6..eda493200663 100644 > > --- a/include/linux/rcupdate_trace.h > > +++ b/include/linux/rcupdate_trace.h > > @@ -87,9 +87,7 @@ static inline void rcu_read_unlock_trace(void) > > void call_rcu_tasks_trace(struct rcu_head *rhp, rcu_callback_t func); > > void synchronize_rcu_tasks_trace(void); > > void rcu_barrier_tasks_trace(void); > > -# ifdef CONFIG_RCU_SCALE_TEST > > struct task_struct *get_rcu_tasks_trace_gp_kthread(void); > > -# endif > > #else > > /* > > * The BPF JIT forms these addresses even when it doesn't call these > >