public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [peterz-queue:sched/eevdf 9/23] kernel/sched/core.c:2032:2: error: statement requires expression of scalar type ('void' invalid)
Date: Tue, 4 Jun 2024 20:24:10 +0800	[thread overview]
Message-ID: <202406042054.VgbWMkmS-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/eevdf
head:   642ed673fcd170ce20c64fb0e1970259fbb05cba
commit: b381ee6ec4656ac6679c956cb1ae370554bb835f [9/23] sched: Split DEQUEUE_SLEEP from deactivate_task()
config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20240604/202406042054.VgbWMkmS-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project d7d2d4f53fc79b4b58e8d8d08151b577c3699d4a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240604/202406042054.VgbWMkmS-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/202406042054.VgbWMkmS-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from kernel/sched/core.c:10:
   In file included from include/linux/highmem.h:8:
   In file included from include/linux/cacheflush.h:5:
   In file included from arch/arm/include/asm/cacheflush.h:10:
   In file included from include/linux/mm.h:2253:
   include/linux/vmstat.h:514:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     514 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   kernel/sched/core.c:1992:13: error: conflicting types for 'dequeue_task'
    1992 | inline bool dequeue_task(struct rq *rq, struct task_struct *p, int flags)
         |             ^
   kernel/sched/sched.h:3569:13: note: previous declaration is here
    3569 | extern void dequeue_task(struct rq *rq, struct task_struct *p, int flags);
         |             ^
>> kernel/sched/core.c:2032:2: error: statement requires expression of scalar type ('void' invalid)
    2032 |         if (dequeue_task(rq, p, DEQUEUE_SLEEP | flags))
         |         ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning and 2 errors generated.


vim +2032 kernel/sched/core.c

  2029	
  2030	static void block_task(struct rq *rq, struct task_struct *p, int flags)
  2031	{
> 2032		if (dequeue_task(rq, p, DEQUEUE_SLEEP | flags))
  2033			__block_task(rq, p);
  2034	}
  2035	

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

                 reply	other threads:[~2024-06-04 12:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202406042054.VgbWMkmS-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=peterz@infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox