From: kernel test robot <lkp@intel.com>
To: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
"Toke Høiland-Jørgensen" <toke@redhat.com>
Subject: [toke:xdp-queueing-03 7/9] include/linux/bpf.h:2064:16: warning: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast
Date: Mon, 14 Mar 2022 08:16:20 +0800 [thread overview]
Message-ID: <202203140827.59L5Sn1E-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git xdp-queueing-03
head: 3e7f25d58b1bfd5ad623678bf9e11f27c98a8094
commit: 28d9ca982b9ae96bcad2bee81647ba18ae049a69 [7/9] bpf: Enable direct packet access for dequeue packets
config: nds32-allnoconfig (https://download.01.org/0day-ci/archive/20220314/202203140827.59L5Sn1E-lkp@intel.com/config)
compiler: nds32le-linux-gcc (GCC) 11.2.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git/commit/?id=28d9ca982b9ae96bcad2bee81647ba18ae049a69
git remote add toke https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git
git fetch --no-tags toke xdp-queueing-03
git checkout 28d9ca982b9ae96bcad2bee81647ba18ae049a69
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nds32 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from kernel/fork.c:99:
include/linux/bpf.h:2062:15: error: return type defaults to 'int' [-Werror=return-type]
2062 | static inline bpf_get_btf_vmlinux(void)
| ^~~~~~~~~~~~~~~~~~~
include/linux/bpf.h: In function 'bpf_get_btf_vmlinux':
>> include/linux/bpf.h:2064:16: warning: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
2064 | return ERR_PTR(-EINVAL);
| ^~~~~~~~~~~~~~~~
kernel/fork.c: At top level:
kernel/fork.c:162:13: warning: no previous prototype for 'arch_release_task_struct' [-Wmissing-prototypes]
162 | void __weak arch_release_task_struct(struct task_struct *tsk)
| ^~~~~~~~~~~~~~~~~~~~~~~~
kernel/fork.c:764:20: warning: no previous prototype for 'arch_task_cache_init' [-Wmissing-prototypes]
764 | void __init __weak arch_task_cache_init(void) { }
| ^~~~~~~~~~~~~~~~~~~~
kernel/fork.c:859:12: warning: no previous prototype for 'arch_dup_task_struct' [-Wmissing-prototypes]
859 | int __weak arch_dup_task_struct(struct task_struct *dst,
| ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from include/linux/filter.h:9,
from kernel/sysctl.c:35:
include/linux/bpf.h:2062:15: error: return type defaults to 'int' [-Werror=return-type]
2062 | static inline bpf_get_btf_vmlinux(void)
| ^~~~~~~~~~~~~~~~~~~
include/linux/bpf.h: In function 'bpf_get_btf_vmlinux':
>> include/linux/bpf.h:2064:16: warning: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
2064 | return ERR_PTR(-EINVAL);
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from include/linux/filter.h:9,
from kernel/kallsyms.c:25:
include/linux/bpf.h:2062:15: error: return type defaults to 'int' [-Werror=return-type]
2062 | static inline bpf_get_btf_vmlinux(void)
| ^~~~~~~~~~~~~~~~~~~
include/linux/bpf.h: In function 'bpf_get_btf_vmlinux':
>> include/linux/bpf.h:2064:16: warning: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
2064 | return ERR_PTR(-EINVAL);
| ^~~~~~~~~~~~~~~~
kernel/kallsyms.c: At top level:
kernel/kallsyms.c:587:12: warning: no previous prototype for 'arch_get_kallsym' [-Wmissing-prototypes]
587 | int __weak arch_get_kallsym(unsigned int symnum, unsigned long *value,
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +2064 include/linux/bpf.h
2061
> 2062 static inline bpf_get_btf_vmlinux(void)
2063 {
> 2064 return ERR_PTR(-EINVAL);
2065 }
2066
---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-03-14 0:16 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=202203140827.59L5Sn1E-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=memxor@gmail.com \
--cc=toke@redhat.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