From: kernel test robot <lkp@intel.com>
To: Tero Kristo <tero.kristo@linux.intel.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [t-kristo-pm:usi-5.16-rfc-v3-bpf 17/24] drivers/hid/hid-bpf.c:229:23: sparse: sparse: symbol 'hid_bpf_add_report' was not declared. Should it be static?
Date: Sat, 4 Dec 2021 23:38:17 +0800 [thread overview]
Message-ID: <202112042321.22HhAzT8-lkp@intel.com> (raw)
tree: https://github.com/t-kristo/linux-pm usi-5.16-rfc-v3-bpf
head: d0f251812c57f49830816624bec858500e4e14c2
commit: e4c4cfe6fd7edf4bdd3bbd2e408759db9b02290e [17/24] HID: bpf: compile fix for bpf_hid_foreach_rdesc_item
config: i386-randconfig-s002-20211203 (https://download.01.org/0day-ci/archive/20211204/202112042321.22HhAzT8-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/t-kristo/linux-pm/commit/e4c4cfe6fd7edf4bdd3bbd2e408759db9b02290e
git remote add t-kristo-pm https://github.com/t-kristo/linux-pm
git fetch --no-tags t-kristo-pm usi-5.16-rfc-v3-bpf
git checkout e4c4cfe6fd7edf4bdd3bbd2e408759db9b02290e
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/hid/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/hid/hid-bpf.c:36:21: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/hid/hid-bpf.c:36:21: sparse: struct bpf_prog_array [noderef] __rcu *
drivers/hid/hid-bpf.c:36:21: sparse: struct bpf_prog_array *
drivers/hid/hid-bpf.c:46:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/hid/hid-bpf.c:46:9: sparse: struct bpf_prog_array [noderef] __rcu *
drivers/hid/hid-bpf.c:46:9: sparse: struct bpf_prog_array *
drivers/hid/hid-bpf.c:79:53: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct bpf_prog_array **array @@ got struct bpf_prog_array [noderef] __rcu ** @@
drivers/hid/hid-bpf.c:81:53: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct bpf_prog_array **array @@ got struct bpf_prog_array [noderef] __rcu ** @@
drivers/hid/hid-bpf.c:103:21: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/hid/hid-bpf.c:103:21: sparse: struct bpf_prog_array [noderef] __rcu *
drivers/hid/hid-bpf.c:103:21: sparse: struct bpf_prog_array *
drivers/hid/hid-bpf.c:113:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/hid/hid-bpf.c:113:9: sparse: struct bpf_prog_array [noderef] __rcu *
drivers/hid/hid-bpf.c:113:9: sparse: struct bpf_prog_array *
drivers/hid/hid-bpf.c:147:53: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct bpf_prog_array **array @@ got struct bpf_prog_array [noderef] __rcu ** @@
drivers/hid/hid-bpf.c:149:53: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct bpf_prog_array **array @@ got struct bpf_prog_array [noderef] __rcu ** @@
drivers/hid/hid-bpf.c:151:26: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/hid/hid-bpf.c:151:26: sparse: struct bpf_prog *
drivers/hid/hid-bpf.c:151:26: sparse: struct bpf_prog [noderef] __rcu *
drivers/hid/hid-bpf.c:214:27: sparse: sparse: symbol 'hid_prog_ops' was not declared. Should it be static?
>> drivers/hid/hid-bpf.c:229:23: sparse: sparse: symbol 'hid_bpf_add_report' was not declared. Should it be static?
>> drivers/hid/hid-bpf.c:257:6: sparse: sparse: symbol 'hid_bpf_free_reports' was not declared. Should it be static?
drivers/hid/hid-bpf.c:615:31: sparse: sparse: symbol 'hid_verifier_ops' was not declared. Should it be static?
drivers/hid/hid-bpf.c:844:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct bpf_prog const *prog @@ got struct bpf_prog [noderef] __rcu *rdesc_fixup_prog @@
drivers/hid/hid-bpf.c:898:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct bpf_prog *prog @@ got struct bpf_prog [noderef] __rcu *rdesc_fixup_prog @@
Please review and possibly fold the followup patch.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2021-12-04 15:38 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=202112042321.22HhAzT8-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tero.kristo@linux.intel.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