Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1866351rwd; Thu, 18 May 2023 19:36:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4wyvMNNCM2SAikixPcdDDdwyAWnSOQBF7yJVFvfHeutte4enmdKPl687HXvNI9pB6Bsbq1 X-Received: by 2002:a17:902:cecf:b0:1ae:6003:2ded with SMTP id d15-20020a170902cecf00b001ae60032dedmr1131099plg.65.1684463794142; Thu, 18 May 2023 19:36:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684463794; cv=none; d=google.com; s=arc-20160816; b=qAEXDIwBXoKA2rpLqwvEeeZOlNxqTw3ESEMYw0M3MWaB5ZE4cYJVSWkiQiAgph1pUP mFEr6GKonGUy64GddOQxSH2F8vamH25PMm8OhcK4rzIN3Son/+Pi6jPaE1Her6rmB4qG ivuh8IZQPXx5l+2wi99xHNwRV7Pl1iSl777n9fGVOVT4hYKYJvhRsdO5nygWKwEXrnqO 4xJoWLmjJKQT6gyRLErwC5AtM3bmPtjXWrIF8GqyM0egm8EV0v20Pfw98rZHoNVN/Eg9 AEYkO9l+8T2IK6Z3Ogi5xaaUQsfwWkGff27yUJ8BRafDWkSDLi/sOOCviC/CxozVS1d6 nuzw== 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=3TfPxsV8TTaYBdyiSqM8w4lXlsiCHqWSO3IdZ/3LNqc=; b=MYVDzu6mSjGbdTa3nLIalYbXrGJO3j/CEOW5+7LbzumkSfJkTtNkf9PYXA2KajGQ4M nawMX7b5XcLqPgyHsmVjJrPMQoIeIdY6giDX6wd8NIwQABUj3ZH3mVn6QX59Am6Ocawb IbeF9kPsUcRViorpBQPBGJpzeYKCsgk1h0YBIT9ydPPr3o1BNgqdq/UZLzFv+MVbUExw +ra0kWC00GD1hNegK5Zjv0KoXwth97cKLtZ416p+SQu2yPNvB3TCV5vkzGZeAeUaB1K8 lo51hkhTt65M/rhIvIPMZKi5zMIJUC/X+UFOb5KlA/ul/ZycPgcKgImWCRDwpnAYT8Mz 2S/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="M9Hb/wND"; 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 n7-20020a170902d2c700b001ae5fe35b78si3010128plc.497.2023.05.18.19.36.18; Thu, 18 May 2023 19:36:34 -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="M9Hb/wND"; 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 S229985AbjESCLi (ORCPT + 99 others); Thu, 18 May 2023 22:11:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229707AbjESCLh (ORCPT ); Thu, 18 May 2023 22:11:37 -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 9FD7610CE for ; Thu, 18 May 2023 19:11:36 -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 327A565386 for ; Fri, 19 May 2023 02:11:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C1AAC433D2; Fri, 19 May 2023 02:11:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684462295; bh=rmHKqH8zxYo4eJ1ktNK0fLKbM+QLDQELMHv0JI70ggs=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=M9Hb/wNDB1sy5CEJgylLQz3lLVIVULdi8EsR4lVxsACj46ZjbG5GrR6P+0qqeO9r2 VnGAz4BXy8MRBUsnm8l5NxcV7fE5Q5uJWCT/5mTLRehoshP26gpD98M4OKsKDQWrTd iMbE6QbNWzTy5R7u9PpdSNdmJ8kblQsShCecAeDksUz/IbvgR3Bz6xV5U+5o6jTe26 K5gYAg8utNvyCtV7ImvgBSqVCBSRYc3xzOHci07e0WokfwdYD5qcX7Fd75H8o/TUGO Xuqq3WOTr4x/O3taVPb71ibzkLacaHp3JZ65xBnBXPR5hX26VW6gf9mhM3w+uQG3lf tXTpoCA2L5xIw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 064AFCE0CC0; Thu, 18 May 2023 19:11:33 -0700 (PDT) Date: Thu, 18 May 2023 19:11:33 -0700 From: "Paul E. McKenney" To: kernel test robot Cc: 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: 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: <202305190259.Rm6JC6Nz-lkp@intel.com> 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 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? Thaxn, 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