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 2F91DC3DA59 for ; Tue, 16 Jul 2024 10:49:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8A7356B0085; Tue, 16 Jul 2024 06:49:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 856BE6B0088; Tue, 16 Jul 2024 06:49:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 71E696B0089; Tue, 16 Jul 2024 06:49:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 543CB6B0085 for ; Tue, 16 Jul 2024 06:49:56 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id D1DF21C07B2 for ; Tue, 16 Jul 2024 10:49:55 +0000 (UTC) X-FDA: 82345295550.24.95CD6B8 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by imf25.hostedemail.com (Postfix) with ESMTP id 529EDA000A for ; Tue, 16 Jul 2024 10:49:53 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ccIdJ9ZY; spf=pass (imf25.hostedemail.com: domain of lkp@intel.com designates 192.198.163.18 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1721126964; 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=78VT2YVpWOD+IOHFHIeLqunwsVuhgjk3C/nxOb31dfE=; b=y7b187KF4v6pbSKktPsMEDcDLsfIfUsXp1tz4lvwcsuOCAWSAxfZNUsCbKn7bcfW6p14rb Q97Iy5p8WkckMxQpmxou6wh7+++qduWd0WsZDdFBTSj/8F1QVaocfg/ArZtHr3pSXuLpuS DfsYwJG6PeKBEQk3MhF6WyV5u7Zlz4E= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=ccIdJ9ZY; spf=pass (imf25.hostedemail.com: domain of lkp@intel.com designates 192.198.163.18 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1721126964; a=rsa-sha256; cv=none; b=SM85oduKl6+ZVI04+crOx9pE6RY+VruRKzu3hIRKpW4rG6n3PiW6X0UCn0Yb130OqOyLKA P4zP5VX3/+lQ99OjiyNbSIvqRKCR+Ivlze2MeX0dJdEyClWYwM4wCSZ0VM2GgMtc/ye95f RqNO1EdaUO1pBSFRS4C7SFDZw7ovNSA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1721126993; x=1752662993; h=date:from:to:cc:subject:message-id:mime-version; bh=nI6P+bR1hUBsaBlNEDlvXMj/Ybfu+yhIPfIo6Mkh8P0=; b=ccIdJ9ZYwX/Uh2yrjpO8dh6HjBKxuNt5NEjZUJFqLmmqdxtAZ3INOpSN 7N7fSwRmKY1HYTdvseva5h6LwEVNYlEARePI8e0vHlsyr14YnxeB2+4Sz Z2XliNCo616MBB87SYayeNHAawXZmG5KiQn0UCwUf3sZW4t0vdNJEMaJT TvNuQe6NczlDmTyzLykm57F7bMf+VA2nJflRfaMqJHDjHuY+nGCL/blYR 7hvoWEvxYWdxU+89mS6jWOrper4xVuI3lfYoCmuneVPhm4hTXiI5ksw+d RYOMVW6J9jt68tyOsypxiUqyoG47zmcFDxfE9GuAHYF9IZDHo5iW7cNNv w==; X-CSE-ConnectionGUID: nMu3Hd+KRVK4CfAU2RLecQ== X-CSE-MsgGUID: DGGNEmnVS/izk9yknaAgJA== X-IronPort-AV: E=McAfee;i="6700,10204,11134"; a="18169217" X-IronPort-AV: E=Sophos;i="6.09,211,1716274800"; d="scan'208";a="18169217" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2024 03:49:52 -0700 X-CSE-ConnectionGUID: UUfAZQcXTzW8cMs/NhNeLQ== X-CSE-MsgGUID: reJp6rs0Qh+aljqq+/x+Yg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,211,1716274800"; d="scan'208";a="54811967" Received: from lkp-server01.sh.intel.com (HELO 68891e0c336b) ([10.239.97.150]) by orviesa003.jf.intel.com with ESMTP; 16 Jul 2024 03:49:50 -0700 Received: from kbuild by 68891e0c336b with local (Exim 4.96) (envelope-from ) id 1sTfkh-000f8j-2u; Tue, 16 Jul 2024 10:49:47 +0000 Date: Tue, 16 Jul 2024 18:48:59 +0800 From: kernel test robot To: Tejun Heo Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , David Vernet Subject: [linux-next:master 5677/13217] kernel/sched/ext.c:3339:18: error: implicit declaration of function 'stack_trace_save_tsk' Message-ID: <202407161844.reewQQrR-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Stat-Signature: s57hicomuuununzfu6yb5s9gakb6ddmr X-Rspam-User: X-Rspamd-Queue-Id: 529EDA000A X-Rspamd-Server: rspam02 X-HE-Tag: 1721126993-202346 X-HE-Meta: U2FsdGVkX1/tjyK1RaiYTJeOa1w0sSTwzZJmOQTyYFgTJR+jvNUwAo234P1Bby5kUPJlEc92nVacHOVr+U3yXh7cnlD+mMW5lwr+8h17tT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zeX/+vHF/1BB/p3LnYOFfOnwRJGe1ejcofdJY6CL1DoZObGTT8d84L2ODn+y7ZvuJ43OxWatw05Q4i3gHnQZJexI23OazgUKsT3equxlkrE/pthBB5urCFS7fRzwMfHtiRHjfakzYgb9rLgGEGrAo930gGcehHkUdfW3SS7RU8Tn9BiCUo7bnlzXsUift9qWlYTiGBkAbccHncol 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: 4f40be61af99a67d5580c1448acd9b74c0376389 commit: 07814a9439a3b03d79a1001614b5bc1cab69bcec [5677/13217] sched_ext: Print debug dump after an error exit config: sparc-randconfig-r052-20240716 (https://download.01.org/0day-ci/archive/20240716/202407161844.reewQQrR-lkp@intel.com/config) compiler: sparc-linux-gcc (GCC) 14.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240716/202407161844.reewQQrR-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/202407161844.reewQQrR-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/rhashtable-types.h:12, from include/linux/sched/ext.h:13, from include/linux/sched.h:83, from include/linux/sched/signal.h:7, from include/linux/sched/cputime.h:5, from kernel/sched/build_policy.c:17: kernel/sched/ext.c: In function 'alloc_exit_info': kernel/sched/ext.c:2982:32: warning: 'kmalloc_array_noprof' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 2982 | ei->bt = kcalloc(sizeof(ei->bt[0]), SCX_EXIT_BT_LEN, GFP_KERNEL); | ^ include/linux/alloc_tag.h:206:16: note: in definition of macro 'alloc_hooks_tag' 206 | typeof(_do_alloc) _res = _do_alloc; \ | ^~~~~~~~~ include/linux/slab.h:701:49: note: in expansion of macro 'alloc_hooks' 701 | #define kmalloc_array(...) alloc_hooks(kmalloc_array_noprof(__VA_ARGS__)) | ^~~~~~~~~~~ include/linux/slab.h:730:41: note: in expansion of macro 'kmalloc_array' 730 | #define kcalloc(n, size, flags) kmalloc_array(n, size, (flags) | __GFP_ZERO) | ^~~~~~~~~~~~~ kernel/sched/ext.c:2982:18: note: in expansion of macro 'kcalloc' 2982 | ei->bt = kcalloc(sizeof(ei->bt[0]), SCX_EXIT_BT_LEN, GFP_KERNEL); | ^~~~~~~ kernel/sched/ext.c:2982:32: note: earlier argument should specify number of elements, later size of each element 2982 | ei->bt = kcalloc(sizeof(ei->bt[0]), SCX_EXIT_BT_LEN, GFP_KERNEL); | ^ include/linux/alloc_tag.h:206:16: note: in definition of macro 'alloc_hooks_tag' 206 | typeof(_do_alloc) _res = _do_alloc; \ | ^~~~~~~~~ include/linux/slab.h:701:49: note: in expansion of macro 'alloc_hooks' 701 | #define kmalloc_array(...) alloc_hooks(kmalloc_array_noprof(__VA_ARGS__)) | ^~~~~~~~~~~ include/linux/slab.h:730:41: note: in expansion of macro 'kmalloc_array' 730 | #define kcalloc(n, size, flags) kmalloc_array(n, size, (flags) | __GFP_ZERO) | ^~~~~~~~~~~~~ kernel/sched/ext.c:2982:18: note: in expansion of macro 'kcalloc' 2982 | ei->bt = kcalloc(sizeof(ei->bt[0]), SCX_EXIT_BT_LEN, GFP_KERNEL); | ^~~~~~~ kernel/sched/ext.c:2982:32: warning: 'kmalloc_array_noprof' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 2982 | ei->bt = kcalloc(sizeof(ei->bt[0]), SCX_EXIT_BT_LEN, GFP_KERNEL); | ^ include/linux/alloc_tag.h:206:34: note: in definition of macro 'alloc_hooks_tag' 206 | typeof(_do_alloc) _res = _do_alloc; \ | ^~~~~~~~~ include/linux/slab.h:701:49: note: in expansion of macro 'alloc_hooks' 701 | #define kmalloc_array(...) alloc_hooks(kmalloc_array_noprof(__VA_ARGS__)) | ^~~~~~~~~~~ include/linux/slab.h:730:41: note: in expansion of macro 'kmalloc_array' 730 | #define kcalloc(n, size, flags) kmalloc_array(n, size, (flags) | __GFP_ZERO) | ^~~~~~~~~~~~~ kernel/sched/ext.c:2982:18: note: in expansion of macro 'kcalloc' 2982 | ei->bt = kcalloc(sizeof(ei->bt[0]), SCX_EXIT_BT_LEN, GFP_KERNEL); | ^~~~~~~ kernel/sched/ext.c:2982:32: note: earlier argument should specify number of elements, later size of each element 2982 | ei->bt = kcalloc(sizeof(ei->bt[0]), SCX_EXIT_BT_LEN, GFP_KERNEL); | ^ include/linux/alloc_tag.h:206:34: note: in definition of macro 'alloc_hooks_tag' 206 | typeof(_do_alloc) _res = _do_alloc; \ | ^~~~~~~~~ include/linux/slab.h:701:49: note: in expansion of macro 'alloc_hooks' 701 | #define kmalloc_array(...) alloc_hooks(kmalloc_array_noprof(__VA_ARGS__)) | ^~~~~~~~~~~ include/linux/slab.h:730:41: note: in expansion of macro 'kmalloc_array' 730 | #define kcalloc(n, size, flags) kmalloc_array(n, size, (flags) | __GFP_ZERO) | ^~~~~~~~~~~~~ kernel/sched/ext.c:2982:18: note: in expansion of macro 'kcalloc' 2982 | ei->bt = kcalloc(sizeof(ei->bt[0]), SCX_EXIT_BT_LEN, GFP_KERNEL); | ^~~~~~~ In file included from kernel/sched/build_policy.c:62: kernel/sched/ext.c: In function 'scx_ops_disable_workfn': kernel/sched/ext.c:3126:17: error: implicit declaration of function 'stack_trace_print'; did you mean 'event_trace_printk'? [-Wimplicit-function-declaration] 3126 | stack_trace_print(ei->bt, ei->bt_len, 2); | ^~~~~~~~~~~~~~~~~ | event_trace_printk kernel/sched/ext.c: In function 'scx_dump_task': >> kernel/sched/ext.c:3339:18: error: implicit declaration of function 'stack_trace_save_tsk' [-Wimplicit-function-declaration] 3339 | bt_len = stack_trace_save_tsk(p, bt, SCX_EXIT_BT_LEN, 1); | ^~~~~~~~~~~~~~~~~~~~ kernel/sched/ext.c: In function 'scx_ops_exit_kind': kernel/sched/ext.c:3485:30: error: implicit declaration of function 'stack_trace_save'; did you mean 'stack_tracer_enable'? [-Wimplicit-function-declaration] 3485 | ei->bt_len = stack_trace_save(ei->bt, SCX_EXIT_BT_LEN, 1); | ^~~~~~~~~~~~~~~~ | stack_tracer_enable vim +/stack_trace_save_tsk +3339 kernel/sched/ext.c 3308 3309 static void scx_dump_task(struct seq_buf *s, struct scx_dump_ctx *dctx, 3310 struct task_struct *p, char marker) 3311 { 3312 static unsigned long bt[SCX_EXIT_BT_LEN]; 3313 char dsq_id_buf[19] = "(n/a)"; 3314 unsigned long ops_state = atomic_long_read(&p->scx.ops_state); 3315 unsigned int bt_len; 3316 3317 if (p->scx.dsq) 3318 scnprintf(dsq_id_buf, sizeof(dsq_id_buf), "0x%llx", 3319 (unsigned long long)p->scx.dsq->id); 3320 3321 dump_newline(s); 3322 dump_line(s, " %c%c %s[%d] %+ldms", 3323 marker, task_state_to_char(p), p->comm, p->pid, 3324 jiffies_delta_msecs(p->scx.runnable_at, dctx->at_jiffies)); 3325 dump_line(s, " scx_state/flags=%u/0x%x ops_state/qseq=%lu/%lu", 3326 scx_get_task_state(p), p->scx.flags & ~SCX_TASK_STATE_MASK, 3327 ops_state & SCX_OPSS_STATE_MASK, 3328 ops_state >> SCX_OPSS_QSEQ_SHIFT); 3329 dump_line(s, " sticky/holding_cpu=%d/%d dsq_id=%s", 3330 p->scx.sticky_cpu, p->scx.holding_cpu, dsq_id_buf); 3331 dump_line(s, " cpus=%*pb", cpumask_pr_args(p->cpus_ptr)); 3332 3333 if (SCX_HAS_OP(dump_task)) { 3334 ops_dump_init(s, " "); 3335 SCX_CALL_OP(SCX_KF_REST, dump_task, dctx, p); 3336 ops_dump_exit(); 3337 } 3338 > 3339 bt_len = stack_trace_save_tsk(p, bt, SCX_EXIT_BT_LEN, 1); 3340 if (bt_len) { 3341 dump_newline(s); 3342 dump_stack_trace(s, " ", bt, bt_len); 3343 } 3344 } 3345 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki