lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204291119.HDMwqfSJ-lkp@intel.com>
Date:   Fri, 29 Apr 2022 11:07:36 +0800
From:   kernel test robot <lkp@...el.com>
To:     Peter Zijlstra <peterz@...radead.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [peterz-queue:sched/wip.freezer 3/7]
 include/linux/sched/jobctl.h:23:2: error: expected identifier or '('

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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ