From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D07CC27C52 for ; Wed, 5 Jun 2024 07:54:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 39DA36B0098; Wed, 5 Jun 2024 03:54:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 34E7E6B009B; Wed, 5 Jun 2024 03:54:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2168D6B009C; Wed, 5 Jun 2024 03:54:08 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 048266B0098 for ; Wed, 5 Jun 2024 03:54:07 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id AAF891C1176 for ; Wed, 5 Jun 2024 07:54:07 +0000 (UTC) X-FDA: 82196071734.04.2C08B0F Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) by imf01.hostedemail.com (Postfix) with ESMTP id 9845D40017 for ; Wed, 5 Jun 2024 07:54:04 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=H6xd3WK+; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf01.hostedemail.com: domain of lkp@intel.com designates 192.198.163.11 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1717574044; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=ERkt57NAs3vsioNAvopNAwKytdAMlfYlq2yeKBe/66Y=; b=kUromacNuZ0V/fCd9X1eZyVyvKHw8/re1wYIR8Mm1ZEZqIL+Us6qMaCMfGiw6+HI9ATAJN srpzzQrqKRxshxTXTUVxG2c5tUS9WkmvJyt2PheZ3iKUqUEmMUMgiQV2ky69IPZixZRFVF FDSicKVeJ/GStCyLAUjitRCsqNN/oFE= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=H6xd3WK+; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf01.hostedemail.com: domain of lkp@intel.com designates 192.198.163.11 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1717574044; a=rsa-sha256; cv=none; b=q5j0u6p5ImjoWQz2233S6A4IHDRnTXWxTFMaRPa6YkFSYLmCflk993xReQ0mP3sUk8ledm N7Q/qVNmFJmepzNNPNJ3NsHdYFXdHsfQDO8XHHael9GRevE53CBn2OVDpNfahOINVB7wTm ofYnU9i1e9dNWBEKMOCNgxxC5LnACFQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717574044; x=1749110044; h=date:from:to:cc:subject:message-id:mime-version; bh=CinDnmcPjU47z2uaEbwGGF4CZxR7Pnh585fNqW6O4bM=; b=H6xd3WK+iK/5n5VyGU9UOmeJHis4LD41Dbao1aKQ/plcPNAkqXXs4Mwv WULHCw3Msg4ZJ8Phe7VGULt5S0C6BQYqAL/g7G6nOMw3i2qn/2y5U7BVq FSIXj5nVmgC2Ek/i2czE4q808d6RyEhiWVaEN3u7jKKtwJDiDorXJ0kRU MdUwwz4asHVrRnY5ulD9fvVuaAXmZ9KdwofPx8p6aMnvePp4thJkWBRT+ MctGhXDAWstRnCK8rxkdcxXN2ID8MwSBFadR4ZUbs4z/MOcD4+Hjv32rb wp5Zv6iyvymBXW8qBZgxSe5uH6+XUhwjNDqt53Lt4Ju73d9NwgYbQJ290 w==; X-CSE-ConnectionGUID: iL9dR3wPSFm1nv45bpIaYw== X-CSE-MsgGUID: ba2mKEDPTOayJOtHVgWiug== X-IronPort-AV: E=McAfee;i="6600,9927,11093"; a="24791791" X-IronPort-AV: E=Sophos;i="6.08,216,1712646000"; d="scan'208";a="24791791" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2024 00:54:03 -0700 X-CSE-ConnectionGUID: Ga1SjZhoTYmrV7EcNORZbg== X-CSE-MsgGUID: 5IFOwSs3QniIdRwvSs7oqQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,216,1712646000"; d="scan'208";a="42460741" Received: from unknown (HELO 0610945e7d16) ([10.239.97.151]) by orviesa005.jf.intel.com with ESMTP; 05 Jun 2024 00:54:02 -0700 Received: from kbuild by 0610945e7d16 with local (Exim 4.96) (envelope-from ) id 1sElSs-00015N-1V; Wed, 05 Jun 2024 07:53:57 +0000 Date: Wed, 5 Jun 2024 15:52:10 +0800 From: kernel test robot To: "Steven Rostedt (VMware)" Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , "Masami Hiramatsu (Google)" Subject: [linux-next:master 3312/3594] kernel/trace/fgraph.c:934:15: error: implicit declaration of function 'ftrace_startup_subops'; did you mean 'ftrace_startup'? Message-ID: <202406051524.a12JqLqx-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 9845D40017 X-Stat-Signature: 47kiaf8yh4hio7p7xzoxzj364m3hr17n X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1717574044-598948 X-HE-Meta: U2FsdGVkX18q3fFhID7WFY1NrgvX0/uw1wkx5vSnZ4gprteZ5JVNSqENPF3whKmRzVujx4GyO001KSfV3oh16gtaeGxT16C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tMWpm1Je5VP2T5jtym2tuzC9xnOK31Uw+0S7IbVwdiUcxusCZ5I363XCaTOuiMcMz0ssu69sNGtiPMd0leibCjZ3ZO5Pxuy4hCFhHTSJIbsz5/VEufa8r9kRQCTNP1hhJwZZrObnu2DPJfbehkhYekkr0GFqO5d6vJxhJCXeagWEYnqB8jjKg4ChqVXB9VgAz4AEsrIq/RCga5RSjbzaf0= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 234cb065ad82915ff8d06ce01e01c3e640b674d2 commit: c132be2c4fcc1150ad0791c2a85dd4c9ad0bd0c8 [3312/3594] function_graph: Have the instances use their own ftrace_ops for filtering config: riscv-randconfig-001-20240605 (https://download.01.org/0day-ci/archive/20240605/202406051524.a12JqLqx-lkp@intel.com/config) compiler: riscv64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240605/202406051524.a12JqLqx-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/202406051524.a12JqLqx-lkp@intel.com/ All errors (new ones prefixed by >>): kernel/trace/fgraph.c: In function 'register_ftrace_graph': >> kernel/trace/fgraph.c:934:15: error: implicit declaration of function 'ftrace_startup_subops'; did you mean 'ftrace_startup'? [-Werror=implicit-function-declaration] 934 | ret = ftrace_startup_subops(&graph_ops, &gops->ops, command); | ^~~~~~~~~~~~~~~~~~~~~ | ftrace_startup kernel/trace/fgraph.c: In function 'unregister_ftrace_graph': >> kernel/trace/fgraph.c:973:9: error: implicit declaration of function 'ftrace_shutdown_subops'; did you mean 'ftrace_shutdown'? [-Werror=implicit-function-declaration] 973 | ftrace_shutdown_subops(&graph_ops, &gops->ops, command); | ^~~~~~~~~~~~~~~~~~~~~~ | ftrace_shutdown cc1: some warnings being treated as errors vim +934 kernel/trace/fgraph.c 888 889 int register_ftrace_graph(struct fgraph_ops *gops) 890 { 891 int command = 0; 892 int ret = 0; 893 int i; 894 895 mutex_lock(&ftrace_lock); 896 897 if (!fgraph_array[0]) { 898 /* The array must always have real data on it */ 899 for (i = 0; i < FGRAPH_ARRAY_SIZE; i++) 900 fgraph_array[i] = &fgraph_stub; 901 } 902 903 /* Look for an available spot */ 904 for (i = 0; i < FGRAPH_ARRAY_SIZE; i++) { 905 if (fgraph_array[i] == &fgraph_stub) 906 break; 907 } 908 if (i >= FGRAPH_ARRAY_SIZE) { 909 ret = -ENOSPC; 910 goto out; 911 } 912 913 fgraph_array[i] = gops; 914 if (i + 1 > fgraph_array_cnt) 915 fgraph_array_cnt = i + 1; 916 gops->idx = i; 917 918 ftrace_graph_active++; 919 920 if (ftrace_graph_active == 1) { 921 register_pm_notifier(&ftrace_suspend_notifier); 922 ret = start_graph_tracing(); 923 if (ret) 924 goto error; 925 /* 926 * Some archs just test to see if these are not 927 * the default function 928 */ 929 ftrace_graph_return = return_run; 930 ftrace_graph_entry = entry_run; 931 command = FTRACE_START_FUNC_RET; 932 } 933 > 934 ret = ftrace_startup_subops(&graph_ops, &gops->ops, command); 935 error: 936 if (ret) { 937 fgraph_array[i] = &fgraph_stub; 938 ftrace_graph_active--; 939 } 940 out: 941 mutex_unlock(&ftrace_lock); 942 return ret; 943 } 944 945 void unregister_ftrace_graph(struct fgraph_ops *gops) 946 { 947 int command = 0; 948 int i; 949 950 mutex_lock(&ftrace_lock); 951 952 if (unlikely(!ftrace_graph_active)) 953 goto out; 954 955 if (unlikely(gops->idx < 0 || gops->idx >= fgraph_array_cnt)) 956 goto out; 957 958 WARN_ON_ONCE(fgraph_array[gops->idx] != gops); 959 960 fgraph_array[gops->idx] = &fgraph_stub; 961 if (gops->idx + 1 == fgraph_array_cnt) { 962 i = gops->idx; 963 while (i >= 0 && fgraph_array[i] == &fgraph_stub) 964 i--; 965 fgraph_array_cnt = i + 1; 966 } 967 968 ftrace_graph_active--; 969 970 if (!ftrace_graph_active) 971 command = FTRACE_STOP_FUNC_RET; 972 > 973 ftrace_shutdown_subops(&graph_ops, &gops->ops, command); -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki