All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Oxana Kharitonova <oxana@cloudflare.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH resend] hung_task: add task->flags, blocked by coredump to log
Date: Sat, 11 Jan 2025 18:10:39 +0800	[thread overview]
Message-ID: <202501111752.UjvzAplN-lkp@intel.com> (raw)
In-Reply-To: <20250110160328.64947-1-oxana@cloudflare.com>

Hi Oxana,

kernel test robot noticed the following build warnings:

[auto build test WARNING on akpm-mm/mm-everything]
[also build test WARNING on tip/sched/core brauner-vfs/vfs.all linus/master v6.13-rc6 next-20250110]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Oxana-Kharitonova/hung_task-add-task-flags-blocked-by-coredump-to-log/20250111-000505
base:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link:    https://lore.kernel.org/r/20250110160328.64947-1-oxana%40cloudflare.com
patch subject: [PATCH resend] hung_task: add task->flags, blocked by coredump to log
config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20250111/202501111752.UjvzAplN-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250111/202501111752.UjvzAplN-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501111752.UjvzAplN-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> kernel/sched/core.c:7706:9: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
    7704 |         pr_cont(" stack:%-5lu pid:%-5d tgid:%-5d ppid:%-6d task_flags:0x%08lx flags:0x%08lx\n",
         |                                                                         ~~~~~
         |                                                                         %08x
    7705 |                 free, task_pid_nr(p), task_tgid_nr(p),
    7706 |                 ppid, p->flags, read_task_thread_flags(p));
         |                       ^~~~~~~~
   include/linux/printk.h:586:26: note: expanded from macro 'pr_cont'
     586 |         printk(KERN_CONT fmt, ##__VA_ARGS__)
         |                          ~~~    ^~~~~~~~~~~
   include/linux/printk.h:501:60: note: expanded from macro 'printk'
     501 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
         |                                                     ~~~    ^~~~~~~~~~~
   include/linux/printk.h:473:19: note: expanded from macro 'printk_index_wrap'
     473 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                         ~~~~    ^~~~~~~~~~~
   kernel/sched/core.c:3642:20: warning: unused function 'rq_has_pinned_tasks' [-Wunused-function]
    3642 | static inline bool rq_has_pinned_tasks(struct rq *rq)
         |                    ^~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:5816:20: warning: unused function 'sched_tick_start' [-Wunused-function]
    5816 | static inline void sched_tick_start(int cpu) { }
         |                    ^~~~~~~~~~~~~~~~
   kernel/sched/core.c:5817:20: warning: unused function 'sched_tick_stop' [-Wunused-function]
    5817 | static inline void sched_tick_stop(int cpu) { }
         |                    ^~~~~~~~~~~~~~~
   kernel/sched/core.c:6535:20: warning: unused function 'sched_core_cpu_starting' [-Wunused-function]
    6535 | static inline void sched_core_cpu_starting(unsigned int cpu) {}
         |                    ^~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:6536:20: warning: unused function 'sched_core_cpu_deactivate' [-Wunused-function]
    6536 | static inline void sched_core_cpu_deactivate(unsigned int cpu) {}
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:6537:20: warning: unused function 'sched_core_cpu_dying' [-Wunused-function]
    6537 | static inline void sched_core_cpu_dying(unsigned int cpu) {}
         |                    ^~~~~~~~~~~~~~~~~~~~
   7 warnings generated.


vim +7706 kernel/sched/core.c

  7685	
  7686	void sched_show_task(struct task_struct *p)
  7687	{
  7688		unsigned long free;
  7689		int ppid;
  7690	
  7691		if (!try_get_task_stack(p))
  7692			return;
  7693	
  7694		pr_info("task:%-15.15s state:%c", p->comm, task_state_to_char(p));
  7695	
  7696		if (task_is_running(p))
  7697			pr_cont("  running task    ");
  7698		free = stack_not_used(p);
  7699		ppid = 0;
  7700		rcu_read_lock();
  7701		if (pid_alive(p))
  7702			ppid = task_pid_nr(rcu_dereference(p->real_parent));
  7703		rcu_read_unlock();
  7704		pr_cont(" stack:%-5lu pid:%-5d tgid:%-5d ppid:%-6d task_flags:0x%08lx flags:0x%08lx\n",
  7705			free, task_pid_nr(p), task_tgid_nr(p),
> 7706			ppid, p->flags, read_task_thread_flags(p));
  7707	
  7708		print_worker_info(KERN_INFO, p);
  7709		print_stop_info(KERN_INFO, p);
  7710		print_scx_info(KERN_INFO, p);
  7711		show_stack(p, NULL, KERN_INFO);
  7712		put_task_stack(p);
  7713	}
  7714	EXPORT_SYMBOL_GPL(sched_show_task);
  7715	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2025-01-11 10:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-10 16:03 [PATCH resend] hung_task: add task->flags, blocked by coredump to log Oxana Kharitonova
2025-01-11  3:54 ` Andrew Morton
2025-01-13 11:57   ` Oxana Kharitonova
2025-01-11 10:10 ` kernel test robot [this message]
2025-01-11 10:55 ` kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202501111752.UjvzAplN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=oxana@cloudflare.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.