public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org
Subject: [ebiederm-user-namespace:signal-for-v5.17 11/12] kernel/fork.c:2123:9: error: use of undeclared label 'bad_fork_cleanup_threadgroup_lock'
Date: Wed, 15 Dec 2021 02:46:20 +0800	[thread overview]
Message-ID: <202112150208.ylx9t2Sc-lkp@intel.com> (raw)

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

                 reply	other threads:[~2021-12-14 19:07 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=202112150208.ylx9t2Sc-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ebiederm@xmission.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox