mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org
Subject: [peterz-queue:sched/wip.freezer 3/7] include/linux/sched/jobctl.h:23:2: error: expected identifier or '('
Date: Fri, 29 Apr 2022 11:07:36 +0800	[thread overview]
Message-ID: <202204291119.HDMwqfSJ-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/wip.freezer
head:   a1b437cfec0d2b0060cf85538c2379c74fb63ad5
commit: 4cb4f3dc01c45f8a1621f13b55705ba4a6844081 [3/7] sched,signal,ptrace: Rework TASK_TRACED, TASK_STOPPED state
config: hexagon-randconfig-r005-20220428 (https://download.01.org/0day-ci/archive/20220429/202204291119.HDMwqfSJ-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c59473aacce38cd7dd77eebceaf3c98c5707ab3b)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=4cb4f3dc01c45f8a1621f13b55705ba4a6844081
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue sched/wip.freezer
        git checkout 4cb4f3dc01c45f8a1621f13b55705ba4a6844081
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon prepare

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/hexagon/kernel/asm-offsets.c:12:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:33:
   In file included from include/linux/percpu-rwsem.h:7:
   In file included from include/linux/rcuwait.h:6:
   In file included from include/linux/sched/signal.h:8:
   include/linux/sched/jobctl.h:23:1: error: unknown type name 'q'
   q#define JOBCTL_STOPPED_BIT     25      /* do_signal_stop() */
   ^
>> include/linux/sched/jobctl.h:23:2: error: expected identifier or '('
   q#define JOBCTL_STOPPED_BIT     25      /* do_signal_stop() */
    ^
   In file included from arch/hexagon/kernel/asm-offsets.c:12:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:33:
   In file included from include/linux/percpu-rwsem.h:7:
   In file included from include/linux/rcuwait.h:6:
>> include/linux/sched/signal.h:298:22: error: use of undeclared identifier 'JOBCTL_STOPPED_BIT'
                   current->jobctl |= JOBCTL_STOPPED;
                                      ^
   include/linux/sched/jobctl.h:35:33: note: expanded from macro 'JOBCTL_STOPPED'
   #define JOBCTL_STOPPED          (1UL << JOBCTL_STOPPED_BIT)
                                           ^
   In file included from arch/hexagon/kernel/asm-offsets.c:12:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:33:
   In file included from include/linux/percpu-rwsem.h:7:
   In file included from include/linux/rcuwait.h:6:
   include/linux/sched/signal.h:444:18: error: use of undeclared identifier 'JOBCTL_STOPPED_BIT'
                   t->jobctl &= ~(JOBCTL_STOPPED | JOBCTL_TRACED);
                                  ^
   include/linux/sched/jobctl.h:35:33: note: expanded from macro 'JOBCTL_STOPPED'
   #define JOBCTL_STOPPED          (1UL << JOBCTL_STOPPED_BIT)
                                           ^
   4 errors generated.
   make[2]: *** [scripts/Makefile.build:120: arch/hexagon/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1194: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:219: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +23 include/linux/sched/jobctl.h

    13	
    14	#define JOBCTL_STOP_DEQUEUED_BIT 16	/* stop signal dequeued */
    15	#define JOBCTL_STOP_PENDING_BIT	17	/* task should stop for group stop */
    16	#define JOBCTL_STOP_CONSUME_BIT	18	/* consume group stop count */
    17	#define JOBCTL_TRAP_STOP_BIT	19	/* trap for STOP */
    18	#define JOBCTL_TRAP_NOTIFY_BIT	20	/* trap for NOTIFY */
    19	#define JOBCTL_TRAPPING_BIT	21	/* switching to TRACED */
    20	#define JOBCTL_LISTENING_BIT	22	/* ptracer is listening for events */
    21	#define JOBCTL_TRAP_FREEZE_BIT	23	/* trap for cgroup freezer */
    22	#define JOBCTL_DELAY_WAKEKILL_BIT	24	/* delay killable wakeups */
  > 23	q#define JOBCTL_STOPPED_BIT	25	/* do_signal_stop() */
    24	#define JOBCTL_TRACED_BIT	26	/* ptrace_stop() */
    25	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-04-29  3:08 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=202204291119.HDMwqfSJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@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

Powered by JetHome