linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [ebiederm-user-namespace:signal-for-v5.17 11/12] kernel/fork.c:2123:9: error: use of undeclared label 'bad_fork_cleanup_threadgroup_lock'
@ 2021-12-14 18:46 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-14 18:46 UTC (permalink / raw)
  To: Eric W. Biederman; +Cc: llvm, kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git signal-for-v5.17
head:   6b1248798eb6f6d5285db214299996ecc5dc1e6b
commit: 40966e316f86b8cfd83abd31ccb4df729309d3e7 [11/12] kthread: Ensure struct kthread is present for all kthreads
config: arm64-buildonly-randconfig-r001-20211213 (https://download.01.org/0day-ci/archive/20211215/202112150208.ylx9t2Sc-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b6a2ddb6c8ac29412b1361810972e15221fa021c)
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
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git/commit/?id=40966e316f86b8cfd83abd31ccb4df729309d3e7
        git remote add ebiederm-user-namespace https://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git
        git fetch --no-tags ebiederm-user-namespace signal-for-v5.17
        git checkout 40966e316f86b8cfd83abd31ccb4df729309d3e7
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash

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 >>):

   kernel/fork.c:763:20: warning: no previous prototype for function 'arch_task_cache_init' [-Wmissing-prototypes]
   void __init __weak arch_task_cache_init(void) { }
                      ^
   kernel/fork.c:763:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void __init __weak arch_task_cache_init(void) { }
   ^
   static 
>> kernel/fork.c:2123:9: error: use of undeclared label 'bad_fork_cleanup_threadgroup_lock'
                           goto bad_fork_cleanup_threadgroup_lock;
                                ^
   1 warning and 1 error generated.


vim +/bad_fork_cleanup_threadgroup_lock +2123 kernel/fork.c

  2112	
  2113		task_io_accounting_init(&p->ioac);
  2114		acct_clear_integrals(p);
  2115	
  2116		posix_cputimers_init(&p->posix_cputimers);
  2117	
  2118		p->io_context = NULL;
  2119		audit_set_context(p, NULL);
  2120		cgroup_fork(p);
  2121		if (p->flags & PF_KTHREAD) {
  2122			if (!set_kthread_struct(p))
> 2123				goto bad_fork_cleanup_threadgroup_lock;
  2124		}
  2125	#ifdef CONFIG_NUMA
  2126		p->mempolicy = mpol_dup(p->mempolicy);
  2127		if (IS_ERR(p->mempolicy)) {
  2128			retval = PTR_ERR(p->mempolicy);
  2129			p->mempolicy = NULL;
  2130			goto bad_fork_cleanup_threadgroup_lock;
  2131		}
  2132	#endif
  2133	#ifdef CONFIG_CPUSETS
  2134		p->cpuset_mem_spread_rotor = NUMA_NO_NODE;
  2135		p->cpuset_slab_spread_rotor = NUMA_NO_NODE;
  2136		seqcount_spinlock_init(&p->mems_allowed_seq, &p->alloc_lock);
  2137	#endif
  2138	#ifdef CONFIG_TRACE_IRQFLAGS
  2139		memset(&p->irqtrace, 0, sizeof(p->irqtrace));
  2140		p->irqtrace.hardirq_disable_ip	= _THIS_IP_;
  2141		p->irqtrace.softirq_enable_ip	= _THIS_IP_;
  2142		p->softirqs_enabled		= 1;
  2143		p->softirq_context		= 0;
  2144	#endif
  2145	
  2146		p->pagefault_disabled = 0;
  2147	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-14 19:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-14 18:46 [ebiederm-user-namespace:signal-for-v5.17 11/12] kernel/fork.c:2123:9: error: use of undeclared label 'bad_fork_cleanup_threadgroup_lock' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).