Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [clangbuiltlinux:question_mark_operator 2/5] kernel/cgroup/cpuset.c:3768:42: error: expected expression
@ 2026-09-12  5:13 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-12  5:13 UTC (permalink / raw)
  To: Nick Desaulniers; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/ClangBuiltLinux/linux question_mark_operator
head:   532a7ac2d57bb5674f5feffb4ba378f8a32f3bcf
commit: b073116da78daa4548a491eba6508141a9b350dc [2/5] cgroup/cpuset: use guard(mutex) and try operator ('?') in cpuset_can_fork
config: s390-defconfig (https://download.01.org/0day-ci/archive/20260912/202609121323.tq95alRc-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260912/202609121323.tq95alRc-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/202609121323.tq95alRc-lkp@intel.com/

All errors (new ones prefixed by >>):

>> kernel/cgroup/cpuset.c:3768:42: error: expected expression
    3768 |         cpuset_can_attach_check(cs, NULL, NULL)?;
         |                                                 ^
>> kernel/cgroup/cpuset.c:3768:42: error: expected ':'
    3768 |         cpuset_can_attach_check(cs, NULL, NULL)?;
         |                                                 ^
         |                                                 : 
   kernel/cgroup/cpuset.c:3768:41: note: to match this '?'
    3768 |         cpuset_can_attach_check(cs, NULL, NULL)?;
         |                                                ^
>> kernel/cgroup/cpuset.c:3768:42: error: expected expression
    3768 |         cpuset_can_attach_check(cs, NULL, NULL)?;
         |                                                 ^
   kernel/cgroup/cpuset.c:3769:24: error: expected expression
    3769 |         task_can_attach(task)?;
         |                               ^
   kernel/cgroup/cpuset.c:3769:24: error: expected ':'
    3769 |         task_can_attach(task)?;
         |                               ^
         |                               : 
   kernel/cgroup/cpuset.c:3769:23: note: to match this '?'
    3769 |         task_can_attach(task)?;
         |                              ^
   kernel/cgroup/cpuset.c:3769:24: error: expected expression
    3769 |         task_can_attach(task)?;
         |                               ^
   kernel/cgroup/cpuset.c:3770:35: error: expected expression
    3770 |         security_task_setscheduler(task)?;
         |                                          ^
   kernel/cgroup/cpuset.c:3770:35: error: expected ':'
    3770 |         security_task_setscheduler(task)?;
         |                                          ^
         |                                          : 
   kernel/cgroup/cpuset.c:3770:34: note: to match this '?'
    3770 |         security_task_setscheduler(task)?;
         |                                         ^
   kernel/cgroup/cpuset.c:3770:35: error: expected expression
    3770 |         security_task_setscheduler(task)?;
         |                                          ^
   9 errors generated.


vim +3768 kernel/cgroup/cpuset.c

  3747	
  3748	/*
  3749	 * In case the child is cloned into a cpuset different from its parent,
  3750	 * additional checks are done to see if the move is allowed.
  3751	 */
  3752	static int cpuset_can_fork(struct task_struct *task, struct css_set *cset)
  3753	{
  3754		struct cpuset *cs = css_cs(cset->subsys[cpuset_cgrp_id]);
  3755		bool same_cs;
  3756	
  3757		rcu_read_lock();
  3758		same_cs = (cs == task_cs(current));
  3759		rcu_read_unlock();
  3760	
  3761		if (same_cs)
  3762			return 0;
  3763	
  3764		lockdep_assert_held(&cgroup_mutex);
  3765		guard(mutex)(&cpuset_mutex);
  3766	
  3767		/* Check to see if task is allowed in the cpuset */
> 3768		cpuset_can_attach_check(cs, NULL, NULL)?;
  3769		task_can_attach(task)?;
  3770		security_task_setscheduler(task)?;
  3771	
  3772		attach_ctx.in_progress++;
  3773		return 0;
  3774	}
  3775	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-12  5:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-12  5:13 [clangbuiltlinux:question_mark_operator 2/5] kernel/cgroup/cpuset.c:3768:42: error: expected expression kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox