All of lore.kernel.org
 help / color / mirror / Atom feed
* [tglx-devel:timers/posix 22/61] init/init_task.c:31:42: error: expected '}' before '(' token
@ 2023-06-06  2:17 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-06-06  2:17 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git timers/posix
head:   16a20adb1e0ae19ad42041a7d1b5583e4705ca0c
commit: 2e9a3527e7a51ba24410e43a2d0d1d10d62ae1b1 [22/61] posix-timers: Convert timer list to hlist
config: csky-defconfig (https://download.01.org/0day-ci/archive/20230606/202306061014.IypImIXA-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 12.3.0
reproduce (this is a W=1 build):
        mkdir -p ~/bin
        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/tglx/devel.git/commit/?id=2e9a3527e7a51ba24410e43a2d0d1d10d62ae1b1
        git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
        git fetch --no-tags tglx-devel timers/posix
        git checkout 2e9a3527e7a51ba24410e43a2d0d1d10d62ae1b1
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=csky olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=csky SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306061014.IypImIXA-lkp@intel.com/

All errors (new ones prefixed by >>):

>> init/init_task.c:31:42: error: expected '}' before '(' token
      31 |         .posix_timers   = HLIST_HEAD_INIT(),
         |                                          ^
   init/init_task.c:18:44: note: to match this '{'
      18 | static struct signal_struct init_signals = {
         |                                            ^


vim +31 init/init_task.c

    17	
    18	static struct signal_struct init_signals = {
    19		.nr_threads	= 1,
    20		.thread_head	= LIST_HEAD_INIT(init_task.thread_node),
    21		.wait_chldexit	= __WAIT_QUEUE_HEAD_INITIALIZER(init_signals.wait_chldexit),
    22		.shared_pending	= {
    23			.list = LIST_HEAD_INIT(init_signals.shared_pending.list),
    24			.signal =  {{0}}
    25		},
    26		.multiprocess	= HLIST_HEAD_INIT,
    27		.rlim		= INIT_RLIMITS,
    28		.cred_guard_mutex = __MUTEX_INITIALIZER(init_signals.cred_guard_mutex),
    29		.exec_update_lock = __RWSEM_INITIALIZER(init_signals.exec_update_lock),
    30	#ifdef CONFIG_POSIX_TIMERS
  > 31		.posix_timers	= HLIST_HEAD_INIT(),
    32		.cputimer	= {
    33			.cputime_atomic	= INIT_CPUTIME_ATOMIC,
    34		},
    35	#endif
    36		INIT_CPU_TIMERS(init_signals)
    37		.pids = {
    38			[PIDTYPE_PID]	= &init_struct_pid,
    39			[PIDTYPE_TGID]	= &init_struct_pid,
    40			[PIDTYPE_PGID]	= &init_struct_pid,
    41			[PIDTYPE_SID]	= &init_struct_pid,
    42		},
    43		INIT_PREV_CPUTIME(init_signals)
    44	};
    45	

-- 
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:[~2023-06-06  2:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-06  2:17 [tglx-devel:timers/posix 22/61] init/init_task.c:31:42: error: expected '}' before '(' token kernel test robot

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.