All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Yury Norov <yury.norov@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [norov:new 4/5] lib/group_cpus.c:24:3: error: call to undeclared function 'for_each_cpu_and_andnot_from'; ISO C99 and later do not support implicit function declarations
Date: Fri, 15 Aug 2025 06:13:11 +0200	[thread overview]
Message-ID: <202508150653.knkan8hw-lkp@intel.com> (raw)

tree:   https://github.com/norov/linux new
head:   27da1bc692ded269f7cd2aff5dc30a2d0ecc09e8
commit: 76c06f98eb6ec33fd7bdfb7c08a2a7a9907d23e2 [4/5] group_cpus: simplify inner loop in grp_spread_init_one()
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250815/202508150653.knkan8hw-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250815/202508150653.knkan8hw-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/202508150653.knkan8hw-lkp@intel.com/

All errors (new ones prefixed by >>):

>> lib/group_cpus.c:24:3: error: call to undeclared function 'for_each_cpu_and_andnot_from'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      24 |                 for_each_cpu_and_andnot_from(sibl, nmsk, siblmsk) {
         |                 ^
>> lib/group_cpus.c:24:52: error: expected ';' after expression
      24 |                 for_each_cpu_and_andnot_from(sibl, nmsk, siblmsk) {
         |                                                                  ^
         |                                                                  ;
   2 errors generated.


vim +/for_each_cpu_and_andnot_from +24 lib/group_cpus.c

    13	
    14	static void grp_spread_init_one(struct cpumask *irqmsk, struct cpumask *nmsk,
    15					unsigned int cpus_per_grp)
    16	{
    17		const struct cpumask *siblmsk;
    18		int cpu, sibl;
    19	
    20		for_each_cpu(cpu, nmsk) {
    21			/* If the cpu has siblings, use them first */
    22			siblmsk = topology_sibling_cpumask(cpu);
    23			sibl = cpu;
  > 24			for_each_cpu_and_andnot_from(sibl, nmsk, siblmsk) {
    25				__cpumask_set_cpu(sibl, irqmsk);
    26				if (--cpus_per_grp)
    27					return;
    28				cpu = sibl + 1;
    29			}
    30		}
    31	}
    32	

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

                 reply	other threads:[~2025-08-15  4:13 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=202508150653.knkan8hw-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=yury.norov@gmail.com \
    /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.