All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: David Hildenbrand <david@redhat.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [davidhildenbrand:nr_cpus 1/1] include/linux/threads.h:16:2: error: #error "CONFIG_NR_CPUS not defined"
Date: Wed, 25 Sep 2024 03:23:47 +0800	[thread overview]
Message-ID: <202409250306.YEdZ5YVi-lkp@intel.com> (raw)

tree:   https://github.com/davidhildenbrand/linux nr_cpus
head:   06e0fc4651a486ac1ce333cccc89b394222431c8
commit: 06e0fc4651a486ac1ce333cccc89b394222431c8 [1/1] fixup
config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20240925/202409250306.YEdZ5YVi-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240925/202409250306.YEdZ5YVi-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409250306.YEdZ5YVi-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/um/os-Linux/skas/process.c:25:
>> include/linux/threads.h:16:2: error: #error "CONFIG_NR_CPUS not defined"
      16 | #error "CONFIG_NR_CPUS not defined"
         |  ^~~~~
>> arch/um/os-Linux/skas/process.c:256:19: error: 'CONFIG_NR_CPUS' undeclared here (not in a function)
     256 | int userspace_pid[NR_CPUS];
         |                   ^~~~~~~


vim +16 include/linux/threads.h

     4	
     5	
     6	/*
     7	 * The default limit for the nr of threads is now in
     8	 * /proc/sys/kernel/threads-max.
     9	 */
    10	
    11	/*
    12	 * Maximum supported processors.  Setting this smaller saves quite a
    13	 * bit of memory.  Use nr_cpu_ids instead of this except for static bitmaps.
    14	 */
    15	#ifndef CONFIG_NR_CPUS
  > 16	#error "CONFIG_NR_CPUS not defined"
    17	#endif
    18	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-09-24 19:24 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=202409250306.YEdZ5YVi-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=david@redhat.com \
    --cc=oe-kbuild-all@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 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.