Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1098602pxb; Fri, 15 Apr 2022 21:32:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxomdFpy6BCcHvVGgxbAikdO+oKLjSdWUoIzfsDGAJASu3I6GzR390GaJGY8UYb8iJy4waw X-Received: by 2002:a17:902:d50c:b0:158:7b0e:8103 with SMTP id b12-20020a170902d50c00b001587b0e8103mr1994327plg.100.1650083528775; Fri, 15 Apr 2022 21:32:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650083528; cv=none; d=google.com; s=arc-20160816; b=FO1+SAeJlhGNzaNbELyIsXpAlkrZWpkhwQHSkeF5p7FcMzPaO/8nuWjPExmwuRn3Ox balqtlrE8+dpYvF5JGMpQmJo407BkZCdR8ym76FZddRwiHKldcdG7qBTzelM/keBzNMU 6n0w0ZUHP7MCql2S9479ofINcYmsxVD9bPm7+s44KzGvu9bzDOJ5+mVHqtCbJkQ0E2bl 3sqewgdnyq52l1LlLe2JrtOJ3xkeg0nVdRNNRfxmgQEU+Oy8m/C8LxXvWdy3MW9UfhxI 8DSvstwFOw1W1wF1i6Dtogv6mhfgfmxm3ft0JwNcb2PJhxydryEWza7y0mjdJUE5w33x lI4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=u7Ucd5+1MgaAN3p5sBrEZKMSY4kUiNcj0wz3SSxm6Eg=; b=bCusXgVxS9CvcT80gLq/ruwOmJC7xVMY1UsF6/B4tb6u8lhVgArTGQXZIE+A2c+6Kz Kco2ECE45KiSZRmKa6P6CkIJcnWpSDOAe3A4V3pMqkbq9RmlcYKezlFEWwg8+rpNc4N2 2sjpk/Owi9RlzgdIYwnj6h09OQcSiCwrcMAGXOibm7JKVO9ngu9b7AsyKecXQBOa1Iju jPq8rW6GxH2jGIRbMf6Wlem5AQo+ERIhe40n+ICFQZDtNzJx/6KE5IaVTUjGNsw5JzDj bn1kJmeEHoXQyogywOVtVyzuKvmER7ABmHP7u3l7MWbdU2QhjJ5paDQ2n/xZD4+OAYzt ZxaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="mgD/pm20"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id mi10-20020a17090b4b4a00b001bd14e01fa0si5979973pjb.142.2022.04.15.21.32.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 21:32:08 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="mgD/pm20"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B9595F8952; Fri, 15 Apr 2022 21:32:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230090AbiDPEeY (ORCPT + 99 others); Sat, 16 Apr 2022 00:34:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230024AbiDPEeU (ORCPT ); Sat, 16 Apr 2022 00:34:20 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55F6F5F54 for ; Fri, 15 Apr 2022 21:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650083510; x=1681619510; h=date:from:to:cc:subject:message-id:mime-version; bh=xX/oOsAAWB0bR76btmtu7h3T848IFJe2Mj+NKJjjZRg=; b=mgD/pm20hvSEDpJ7WaF4Ot2eZ6ezstClmA1vUgJEerT+aMEk8znFS3wW kZNDXCABg5FETXR+ZaIcM3d6gcEDO92F5T59rqblymr7UPYVvFslbEEEN UYYB2FSiVQ5HccvMbM5etGiGoVHrqH+77Lgn0Ur8hITGI/PXCH0M6K5bU 2laVyILqE2gQf2alCpqCU4v6HFneduasIt33B2Bbx2HzEEvguJQmQdYvq Jf+4nZcZBCGHT31A3of63unOefHm2BSOaBAaixORk8rU74aIftDGh/kry wmAResT5buEwq1vVtAkLorJauKlRuckO17LXb6oNT4MMKAgS730QRb2pG Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10318"; a="349717866" X-IronPort-AV: E=Sophos;i="5.90,264,1643702400"; d="scan'208";a="349717866" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2022 21:31:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,264,1643702400"; d="scan'208";a="528170939" Received: from lkp-server01.sh.intel.com (HELO 3abc53900bec) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 15 Apr 2022 21:31:48 -0700 Received: from kbuild by 3abc53900bec with local (Exim 4.95) (envelope-from ) id 1nfa67-0002lx-R7; Sat, 16 Apr 2022 04:31:47 +0000 Date: Sat, 16 Apr 2022 12:30:45 +0800 From: kernel test robot To: Luis Chamberlain Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [mcgrof:sysctl-testing 21/24] kernel/trace/ftrace.c:7884:9: error: 'saved_ftrace_func' undeclared Message-ID: <202204161203.6dSlgKJX-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git sysctl-testing head: f219482651c5469dd3a6fab22c7be9fb763c26ef commit: ae3e836e7177c547d2ae3f51d20208462e623c57 [21/24] ftrace: fix building with SYSCTL=n but DYNAMIC_FTRACE=y config: xtensa-allyesconfig (https://download.01.org/0day-ci/archive/20220416/202204161203.6dSlgKJX-lkp@intel.com/config) compiler: xtensa-linux-gcc (GCC) 11.2.0 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/mcgrof/linux.git/commit/?id=ae3e836e7177c547d2ae3f51d20208462e623c57 git remote add mcgrof https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git git fetch --no-tags mcgrof sysctl-testing git checkout ae3e836e7177c547d2ae3f51d20208462e623c57 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=xtensa SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): kernel/trace/ftrace.c: In function 'ftrace_startup_sysctl': >> kernel/trace/ftrace.c:7884:9: error: 'saved_ftrace_func' undeclared (first use in this function) 7884 | saved_ftrace_func = NULL; | ^~~~~~~~~~~~~~~~~ kernel/trace/ftrace.c:7884:9: note: each undeclared identifier is reported only once for each function it appears in >> kernel/trace/ftrace.c:7886:13: error: 'ftrace_start_up' undeclared (first use in this function); did you mean 'ftrace_startup'? 7886 | if (ftrace_start_up) { | ^~~~~~~~~~~~~~~ | ftrace_startup >> kernel/trace/ftrace.c:7887:27: error: 'FTRACE_UPDATE_CALLS' undeclared (first use in this function) 7887 | command = FTRACE_UPDATE_CALLS; | ^~~~~~~~~~~~~~~~~~~ >> kernel/trace/ftrace.c:7889:36: error: 'FTRACE_START_FUNC_RET' undeclared (first use in this function) 7889 | command |= FTRACE_START_FUNC_RET; | ^~~~~~~~~~~~~~~~~~~~~ >> kernel/trace/ftrace.c:7890:17: error: implicit declaration of function 'ftrace_startup_enable'; did you mean 'ftrace_startup_all'? [-Werror=implicit-function-declaration] 7890 | ftrace_startup_enable(command); | ^~~~~~~~~~~~~~~~~~~~~ | ftrace_startup_all kernel/trace/ftrace.c: In function 'ftrace_shutdown_sysctl': kernel/trace/ftrace.c:7902:13: error: 'ftrace_start_up' undeclared (first use in this function); did you mean 'ftrace_startup'? 7902 | if (ftrace_start_up) { | ^~~~~~~~~~~~~~~ | ftrace_startup >> kernel/trace/ftrace.c:7903:27: error: 'FTRACE_DISABLE_CALLS' undeclared (first use in this function) 7903 | command = FTRACE_DISABLE_CALLS; | ^~~~~~~~~~~~~~~~~~~~ >> kernel/trace/ftrace.c:7905:36: error: 'FTRACE_STOP_FUNC_RET' undeclared (first use in this function) 7905 | command |= FTRACE_STOP_FUNC_RET; | ^~~~~~~~~~~~~~~~~~~~ >> kernel/trace/ftrace.c:7906:17: error: implicit declaration of function 'ftrace_run_update_code' [-Werror=implicit-function-declaration] 7906 | ftrace_run_update_code(command); | ^~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/saved_ftrace_func +7884 kernel/trace/ftrace.c 7874 7875 #ifdef CONFIG_SYSCTL 7876 static void ftrace_startup_sysctl(void) 7877 { 7878 int command; 7879 7880 if (unlikely(ftrace_disabled)) 7881 return; 7882 7883 /* Force update next time */ > 7884 saved_ftrace_func = NULL; 7885 /* ftrace_start_up is true if we want ftrace running */ > 7886 if (ftrace_start_up) { > 7887 command = FTRACE_UPDATE_CALLS; 7888 if (ftrace_graph_active) > 7889 command |= FTRACE_START_FUNC_RET; > 7890 ftrace_startup_enable(command); 7891 } 7892 } 7893 7894 static void ftrace_shutdown_sysctl(void) 7895 { 7896 int command; 7897 7898 if (unlikely(ftrace_disabled)) 7899 return; 7900 7901 /* ftrace_start_up is true if ftrace is running */ > 7902 if (ftrace_start_up) { > 7903 command = FTRACE_DISABLE_CALLS; 7904 if (ftrace_graph_active) > 7905 command |= FTRACE_STOP_FUNC_RET; > 7906 ftrace_run_update_code(command); 7907 } 7908 } 7909 -- 0-DAY CI Kernel Test Service https://01.org/lkp