All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [tglx-devel:timers/posix 22/61] init/init_task.c:31:42: error: expected '}' before '(' token
Date: Tue, 6 Jun 2023 10:17:53 +0800	[thread overview]
Message-ID: <202306061014.IypImIXA-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-06-06  2:18 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=202306061014.IypImIXA-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=tglx@linutronix.de \
    /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.