All of lore.kernel.org
 help / color / mirror / Atom feed
* [tglx-devel:timers/posix 22/61] init/init_task.c:31:33: error: expected '}'
@ 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: llvm, 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: riscv-randconfig-r036-20230605 (https://download.01.org/0day-ci/archive/20230606/202306061012.xWzgDSg0-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 4faf3aaf28226a4e950c103a14f6fc1d1fdabb1b)
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
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        # 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=clang ~/bin/make.cross W=1 O=build_dir ARCH=riscv olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash fs/proc/ init/ kernel/

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/202306061012.xWzgDSg0-lkp@intel.com/

All errors (new ones prefixed by >>):

>> init/init_task.c:31:33: error: expected '}'
           .posix_timers   = HLIST_HEAD_INIT(),
                                            ^
   init/init_task.c:18:44: note: to match this '{'
   static struct signal_struct init_signals = {
                                              ^
   1 error generated.
--
>> fs/proc/base.c:2464:24: error: incompatible pointer types passing 'struct hlist_head *' to parameter of type 'struct list_head *' [-Werror,-Wincompatible-pointer-types]
           return seq_list_start(&tp->task->signal->posix_timers, *pos);
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/seq_file.h:273:59: note: passing argument to parameter 'head' here
   extern struct list_head *seq_list_start(struct list_head *head,
                                                             ^
   fs/proc/base.c:2470:26: error: incompatible pointer types passing 'struct hlist_head *' to parameter of type 'struct list_head *' [-Werror,-Wincompatible-pointer-types]
           return seq_list_next(v, &tp->task->signal->posix_timers, pos);
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/seq_file.h:277:67: note: passing argument to parameter 'head' here
   extern struct list_head *seq_list_next(void *v, struct list_head *head,
                                                                     ^
>> fs/proc/base.c:2499:10: error: static assertion failed due to requirement '__builtin_types_compatible_p(struct list_head, struct hlist_node) || __builtin_types_compatible_p(struct list_head, void)': pointer type mismatch in container_of()
           timer = list_entry((struct list_head *)v, struct k_itimer, list);
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/list.h:520:2: note: expanded from macro 'list_entry'
           container_of(ptr, type, member)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/container_of.h:20:16: note: expanded from macro 'container_of'
           static_assert(__same_type(*(ptr), ((type *)0)->member) ||       \
           ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:338:27: note: expanded from macro '__same_type'
   #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
                             ^
   include/linux/build_bug.h:77:50: note: expanded from macro 'static_assert'
   #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
                                    ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:78:56: note: expanded from macro '__static_assert'
   #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
                                                          ^~~~
   3 errors generated.


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:33: error: expected '}' 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.