mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: David Vernet <void@manifault.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Alexei Starovoitov <ast@kernel.org>
Subject: kernel/bpf/cpumask.c:394:17: warning: no previous declaration for 'bpf_cpumask_any_distribute'
Date: Thu, 17 Aug 2023 03:21:53 +0800	[thread overview]
Message-ID: <202308170344.p09ggdhY-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4853c74bd7ab7fdb83f319bd9ace8a08c031e9b6
commit: f983be917332ea5e03f689e12c6668be48cb4cfe bpf: Replace bpf_cpumask_any* with bpf_cpumask_any_distribute*
date:   9 weeks ago
config: x86_64-randconfig-x076-20230816 (https://download.01.org/0day-ci/archive/20230817/202308170344.p09ggdhY-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce: (https://download.01.org/0day-ci/archive/20230817/202308170344.p09ggdhY-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/202308170344.p09ggdhY-lkp@intel.com/

All warnings (new ones prefixed by >>):

   kernel/bpf/cpumask.c:53:33: warning: no previous declaration for 'bpf_cpumask_create' [-Wmissing-declarations]
    __bpf_kfunc struct bpf_cpumask *bpf_cpumask_create(void)
                                    ^~~~~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:79:33: warning: no previous declaration for 'bpf_cpumask_acquire' [-Wmissing-declarations]
    __bpf_kfunc struct bpf_cpumask *bpf_cpumask_acquire(struct bpf_cpumask *cpumask)
                                    ^~~~~~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:103:18: warning: no previous declaration for 'bpf_cpumask_release' [-Wmissing-declarations]
    __bpf_kfunc void bpf_cpumask_release(struct bpf_cpumask *cpumask)
                     ^~~~~~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:116:17: warning: no previous declaration for 'bpf_cpumask_first' [-Wmissing-declarations]
    __bpf_kfunc u32 bpf_cpumask_first(const struct cpumask *cpumask)
                    ^~~~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:129:17: warning: no previous declaration for 'bpf_cpumask_first_zero' [-Wmissing-declarations]
    __bpf_kfunc u32 bpf_cpumask_first_zero(const struct cpumask *cpumask)
                    ^~~~~~~~~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:143:17: warning: no previous declaration for 'bpf_cpumask_first_and' [-Wmissing-declarations]
    __bpf_kfunc u32 bpf_cpumask_first_and(const struct cpumask *src1,
                    ^~~~~~~~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:154:18: warning: no previous declaration for 'bpf_cpumask_set_cpu' [-Wmissing-declarations]
    __bpf_kfunc void bpf_cpumask_set_cpu(u32 cpu, struct bpf_cpumask *cpumask)
                     ^~~~~~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:167:18: warning: no previous declaration for 'bpf_cpumask_clear_cpu' [-Wmissing-declarations]
    __bpf_kfunc void bpf_cpumask_clear_cpu(u32 cpu, struct bpf_cpumask *cpumask)
                     ^~~~~~~~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:184:18: warning: no previous declaration for 'bpf_cpumask_test_cpu' [-Wmissing-declarations]
    __bpf_kfunc bool bpf_cpumask_test_cpu(u32 cpu, const struct cpumask *cpumask)
                     ^~~~~~~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:201:18: warning: no previous declaration for 'bpf_cpumask_test_and_set_cpu' [-Wmissing-declarations]
    __bpf_kfunc bool bpf_cpumask_test_and_set_cpu(u32 cpu, struct bpf_cpumask *cpumask)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:219:18: warning: no previous declaration for 'bpf_cpumask_test_and_clear_cpu' [-Wmissing-declarations]
    __bpf_kfunc bool bpf_cpumask_test_and_clear_cpu(u32 cpu, struct bpf_cpumask *cpumask)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:231:18: warning: no previous declaration for 'bpf_cpumask_setall' [-Wmissing-declarations]
    __bpf_kfunc void bpf_cpumask_setall(struct bpf_cpumask *cpumask)
                     ^~~~~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:240:18: warning: no previous declaration for 'bpf_cpumask_clear' [-Wmissing-declarations]
    __bpf_kfunc void bpf_cpumask_clear(struct bpf_cpumask *cpumask)
                     ^~~~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:257:18: warning: no previous declaration for 'bpf_cpumask_and' [-Wmissing-declarations]
    __bpf_kfunc bool bpf_cpumask_and(struct bpf_cpumask *dst,
                     ^~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:272:18: warning: no previous declaration for 'bpf_cpumask_or' [-Wmissing-declarations]
    __bpf_kfunc void bpf_cpumask_or(struct bpf_cpumask *dst,
                     ^~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:287:18: warning: no previous declaration for 'bpf_cpumask_xor' [-Wmissing-declarations]
    __bpf_kfunc void bpf_cpumask_xor(struct bpf_cpumask *dst,
                     ^~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:305:18: warning: no previous declaration for 'bpf_cpumask_equal' [-Wmissing-declarations]
    __bpf_kfunc bool bpf_cpumask_equal(const struct cpumask *src1, const struct cpumask *src2)
                     ^~~~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:321:18: warning: no previous declaration for 'bpf_cpumask_intersects' [-Wmissing-declarations]
    __bpf_kfunc bool bpf_cpumask_intersects(const struct cpumask *src1, const struct cpumask *src2)
                     ^~~~~~~~~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:337:18: warning: no previous declaration for 'bpf_cpumask_subset' [-Wmissing-declarations]
    __bpf_kfunc bool bpf_cpumask_subset(const struct cpumask *src1, const struct cpumask *src2)
                     ^~~~~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:352:18: warning: no previous declaration for 'bpf_cpumask_empty' [-Wmissing-declarations]
    __bpf_kfunc bool bpf_cpumask_empty(const struct cpumask *cpumask)
                     ^~~~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:367:18: warning: no previous declaration for 'bpf_cpumask_full' [-Wmissing-declarations]
    __bpf_kfunc bool bpf_cpumask_full(const struct cpumask *cpumask)
                     ^~~~~~~~~~~~~~~~
   kernel/bpf/cpumask.c:379:18: warning: no previous declaration for 'bpf_cpumask_copy' [-Wmissing-declarations]
    __bpf_kfunc void bpf_cpumask_copy(struct bpf_cpumask *dst, const struct cpumask *src)
                     ^~~~~~~~~~~~~~~~
>> kernel/bpf/cpumask.c:394:17: warning: no previous declaration for 'bpf_cpumask_any_distribute' [-Wmissing-declarations]
    __bpf_kfunc u32 bpf_cpumask_any_distribute(const struct cpumask *cpumask)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/bpf/cpumask.c:412:17: warning: no previous declaration for 'bpf_cpumask_any_and_distribute' [-Wmissing-declarations]
    __bpf_kfunc u32 bpf_cpumask_any_and_distribute(const struct cpumask *src1,
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/bpf_cpumask_any_distribute +394 kernel/bpf/cpumask.c

   383	
   384	/**
   385	 * bpf_cpumask_any_distribute() - Return a random set CPU from a cpumask.
   386	 * @cpumask: The cpumask being queried.
   387	 *
   388	 * Return:
   389	 * * A random set bit within [0, num_cpus) if at least one bit is set.
   390	 * * >= num_cpus if no bit is set.
   391	 *
   392	 * A struct bpf_cpumask pointer may be safely passed to @src.
   393	 */
 > 394	__bpf_kfunc u32 bpf_cpumask_any_distribute(const struct cpumask *cpumask)
   395	{
   396		return cpumask_any_distribute(cpumask);
   397	}
   398	
   399	/**
   400	 * bpf_cpumask_any_and_distribute() - Return a random set CPU from the AND of
   401	 *				      two cpumasks.
   402	 * @src1: The first cpumask.
   403	 * @src2: The second cpumask.
   404	 *
   405	 * Return:
   406	 * * A random set bit within [0, num_cpus) from the AND of two cpumasks, if at
   407	 *   least one bit is set.
   408	 * * >= num_cpus if no bit is set.
   409	 *
   410	 * struct bpf_cpumask pointers may be safely passed to @src1 and @src2.
   411	 */
 > 412	__bpf_kfunc u32 bpf_cpumask_any_and_distribute(const struct cpumask *src1,
   413						       const struct cpumask *src2)
   414	{
   415		return cpumask_any_and_distribute(src1, src2);
   416	}
   417	

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

                 reply	other threads:[~2023-08-16 19:23 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=202308170344.p09ggdhY-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ast@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=void@manifault.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®