From: kernel test robot <lkp@intel.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: 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: stray '#' in program
Date: Fri, 29 Apr 2022 10:57:18 +0800 [thread overview]
Message-ID: <202204291009.ntJSd5uS-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: x86_64-randconfig-a013 (https://download.01.org/0day-ci/archive/20220429/202204291009.ntJSd5uS-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0
reproduce (this is a W=1 build):
# 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
make W=1 O=build_dir ARCH=x86_64 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 include/linux/sched/signal.h:8,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/cgroup.h:17,
from include/linux/memcontrol.h:13,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/x86/kernel/asm-offsets.c:13:
>> include/linux/sched/jobctl.h:23:2: error: stray '#' in program
23 | q#define JOBCTL_STOPPED_BIT 25 /* do_signal_stop() */
| ^
include/linux/sched/jobctl.h:23:1: error: unknown type name 'q'
23 | q#define JOBCTL_STOPPED_BIT 25 /* do_signal_stop() */
| ^
>> include/linux/sched/jobctl.h:23:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'JOBCTL_STOPPED_BIT'
23 | q#define JOBCTL_STOPPED_BIT 25 /* do_signal_stop() */
| ^~~~~~~~~~~~~~~~~~
include/linux/sched/signal.h: In function 'kernel_signal_stop':
>> include/linux/sched/jobctl.h:35:41: error: 'JOBCTL_STOPPED_BIT' undeclared (first use in this function); did you mean 'JOBCTL_STOPPED'?
35 | #define JOBCTL_STOPPED (1UL << JOBCTL_STOPPED_BIT)
| ^~~~~~~~~~~~~~~~~~
include/linux/sched/signal.h:298:36: note: in expansion of macro 'JOBCTL_STOPPED'
298 | current->jobctl |= JOBCTL_STOPPED;
| ^~~~~~~~~~~~~~
include/linux/sched/jobctl.h:35:41: note: each undeclared identifier is reported only once for each function it appears in
35 | #define JOBCTL_STOPPED (1UL << JOBCTL_STOPPED_BIT)
| ^~~~~~~~~~~~~~~~~~
include/linux/sched/signal.h:298:36: note: in expansion of macro 'JOBCTL_STOPPED'
298 | current->jobctl |= JOBCTL_STOPPED;
| ^~~~~~~~~~~~~~
include/linux/sched/signal.h: In function 'signal_wake_up':
>> include/linux/sched/jobctl.h:35:41: error: 'JOBCTL_STOPPED_BIT' undeclared (first use in this function); did you mean 'JOBCTL_STOPPED'?
35 | #define JOBCTL_STOPPED (1UL << JOBCTL_STOPPED_BIT)
| ^~~~~~~~~~~~~~~~~~
include/linux/sched/signal.h:444:32: note: in expansion of macro 'JOBCTL_STOPPED'
444 | t->jobctl &= ~(JOBCTL_STOPPED | JOBCTL_TRACED);
| ^~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:120: arch/x86/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
26 #define JOBCTL_STOP_DEQUEUED (1UL << JOBCTL_STOP_DEQUEUED_BIT)
27 #define JOBCTL_STOP_PENDING (1UL << JOBCTL_STOP_PENDING_BIT)
28 #define JOBCTL_STOP_CONSUME (1UL << JOBCTL_STOP_CONSUME_BIT)
29 #define JOBCTL_TRAP_STOP (1UL << JOBCTL_TRAP_STOP_BIT)
30 #define JOBCTL_TRAP_NOTIFY (1UL << JOBCTL_TRAP_NOTIFY_BIT)
31 #define JOBCTL_TRAPPING (1UL << JOBCTL_TRAPPING_BIT)
32 #define JOBCTL_LISTENING (1UL << JOBCTL_LISTENING_BIT)
33 #define JOBCTL_TRAP_FREEZE (1UL << JOBCTL_TRAP_FREEZE_BIT)
34 #define JOBCTL_DELAY_WAKEKILL (1UL << JOBCTL_DELAY_WAKEKILL_BIT)
> 35 #define JOBCTL_STOPPED (1UL << JOBCTL_STOPPED_BIT)
36 #define JOBCTL_TRACED (1UL << JOBCTL_TRACED_BIT)
37
--
0-DAY CI Kernel Test Service
https://01.org/lkp
reply other threads:[~2022-04-29 2:57 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=202204291009.ntJSd5uS-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--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 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.