[cel:topic-nfsd-tracepoints 34/162] include/trace/../../fs/nfsd/xdr3trace.h:719:36: error: 'const struct svc_fh' has no member named 'fh_pre_size'
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux topic-nfsd-tracepoints
head: b6c4274cc47f0469a384be035e9f685deeb018c6
commit: 8addf3db7506f7267b63a56af40b10b42197df1e [34/162] NFSD: Add tracepoints to record encoded NFSv3 wcc_data results
config: microblaze-buildonly-randconfig-r006-20211116 (attached as .config)
compiler: microblaze-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/cel/linux.git/commit/?id=...
git remote add cel git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
git fetch --no-tags cel topic-nfsd-tracepoints
git checkout 8addf3db7506f7267b63a56af40b10b42197df1e
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=microblaze SHELL=/bin/bash fs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/trace/define_trace.h:102,
from fs/nfsd/xdrtrace.h:105,
from fs/nfsd/xdrtrace.c:13:
include/trace/../../fs/nfsd/xdr3trace.h: In function 'trace_event_raw_event_encode_wcc_data_pre_attr':
>> include/trace/../../fs/nfsd/xdr3trace.h:719:36: error: 'const struct svc_fh' has no member named 'fh_pre_size'
719 | __entry->size = fhp->fh_pre_size;
| ^~
include/trace/trace_events.h:743:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
743 | { assign; } \
| ^~~~~~
include/trace/trace_events.h:79:30: note: in expansion of macro 'PARAMS'
79 | PARAMS(assign), \
| ^~~~~~
include/trace/../../fs/nfsd/xdr3trace.h:699:1: note: in expansion of macro 'TRACE_EVENT'
699 | TRACE_EVENT(encode_wcc_data_pre_attr,
| ^~~~~~~~~~~
include/trace/../../fs/nfsd/xdr3trace.h:715:9: note: in expansion of macro 'TP_fast_assign'
715 | TP_fast_assign(
| ^~~~~~~~~~~~~~
>> include/trace/../../fs/nfsd/xdr3trace.h:720:41: error: 'const struct svc_fh' has no member named 'fh_pre_mtime'
720 | __entry->mtime_sec = fhp->fh_pre_mtime.tv_sec;
| ^~
include/trace/trace_events.h:743:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
743 | { assign; } \
| ^~~~~~
include/trace/trace_events.h:79:30: note: in expansion of macro 'PARAMS'
79 | PARAMS(assign), \
| ^~~~~~
include/trace/../../fs/nfsd/xdr3trace.h:699:1: note: in expansion of macro 'TRACE_EVENT'
699 | TRACE_EVENT(encode_wcc_data_pre_attr,
| ^~~~~~~~~~~
include/trace/../../fs/nfsd/xdr3trace.h:715:9: note: in expansion of macro 'TP_fast_assign'
715 | TP_fast_assign(
| ^~~~~~~~~~~~~~
include/trace/../../fs/nfsd/xdr3trace.h:721:42: error: 'const struct svc_fh' has no member named 'fh_pre_mtime'
721 | __entry->mtime_nsec = fhp->fh_pre_mtime.tv_nsec;
| ^~
include/trace/trace_events.h:743:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
743 | { assign; } \
| ^~~~~~
include/trace/trace_events.h:79:30: note: in expansion of macro 'PARAMS'
79 | PARAMS(assign), \
| ^~~~~~
include/trace/../../fs/nfsd/xdr3trace.h:699:1: note: in expansion of macro 'TRACE_EVENT'
699 | TRACE_EVENT(encode_wcc_data_pre_attr,
| ^~~~~~~~~~~
include/trace/../../fs/nfsd/xdr3trace.h:715:9: note: in expansion of macro 'TP_fast_assign'
715 | TP_fast_assign(
| ^~~~~~~~~~~~~~
>> include/trace/../../fs/nfsd/xdr3trace.h:722:41: error: 'const struct svc_fh' has no member named 'fh_pre_ctime'
722 | __entry->ctime_sec = fhp->fh_pre_ctime.tv_sec;
| ^~
include/trace/trace_events.h:743:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
743 | { assign; } \
| ^~~~~~
include/trace/trace_events.h:79:30: note: in expansion of macro 'PARAMS'
79 | PARAMS(assign), \
| ^~~~~~
include/trace/../../fs/nfsd/xdr3trace.h:699:1: note: in expansion of macro 'TRACE_EVENT'
699 | TRACE_EVENT(encode_wcc_data_pre_attr,
| ^~~~~~~~~~~
include/trace/../../fs/nfsd/xdr3trace.h:715:9: note: in expansion of macro 'TP_fast_assign'
715 | TP_fast_assign(
| ^~~~~~~~~~~~~~
include/trace/../../fs/nfsd/xdr3trace.h:723:42: error: 'const struct svc_fh' has no member named 'fh_pre_ctime'
723 | __entry->ctime_nsec = fhp->fh_pre_ctime.tv_nsec;
| ^~
include/trace/trace_events.h:743:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
743 | { assign; } \
| ^~~~~~
include/trace/trace_events.h:79:30: note: in expansion of macro 'PARAMS'
79 | PARAMS(assign), \
| ^~~~~~
include/trace/../../fs/nfsd/xdr3trace.h:699:1: note: in expansion of macro 'TRACE_EVENT'
699 | TRACE_EVENT(encode_wcc_data_pre_attr,
| ^~~~~~~~~~~
include/trace/../../fs/nfsd/xdr3trace.h:715:9: note: in expansion of macro 'TP_fast_assign'
715 | TP_fast_assign(
| ^~~~~~~~~~~~~~
vim +719 include/trace/../../fs/nfsd/xdr3trace.h
693
694
695 /**
696 ** Server-side result encoding tracepoints
697 **/
698
699 TRACE_EVENT(encode_wcc_data_pre_attr,
700 TP_PROTO(
701 const struct svc_rqst *rqstp,
702 const struct svc_fh *fhp
703 ),
704 TP_ARGS(rqstp, fhp),
705 TP_STRUCT__entry(
706 TRACE_SVC_XDR_FIELDS(rqstp)
707
708 __field(u32, fh_hash)
709 __field(u64, size)
710 __field(s64, mtime_sec)
711 __field(long, mtime_nsec)
712 __field(s64, ctime_sec)
713 __field(long, ctime_nsec)
714 ),
715 TP_fast_assign(
716 TRACE_SVC_XDR_ASSIGNS(rqstp);
717
718 __entry->fh_hash = knfsd_fh_hash(&fhp->fh_handle);
> 719 __entry->size = fhp->fh_pre_size;
> 720 __entry->mtime_sec = fhp->fh_pre_mtime.tv_sec;
721 __entry->mtime_nsec = fhp->fh_pre_mtime.tv_nsec;
> 722 __entry->ctime_sec = fhp->fh_pre_ctime.tv_sec;
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[mcgrof-next:20211116-sysctl-cleanups-v3 18/20] include/linux/sysctl.h:230:1: error: expected ';' before '}' token
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211116-sysctl-cleanups-v3
head: 06113f1d9a2d0669964adfa2e0128bd50e56b621
commit: 39ba9159476b6d86288f95f4cb62ad7055680395 [18/20] sysctl: add helper to register a sysctl mount point
config: arc-randconfig-r013-20211116 (attached as .config)
compiler: arceb-elf-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/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20211116-sysctl-cleanups-v3
git checkout 39ba9159476b6d86288f95f4cb62ad7055680395
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc prepare
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/arc/Makefile:26: ** WARNING ** CONFIG_ARC_TUNE_MCPU flag '' is unknown, fallback to ''
error: no override and no default toolchain set
init/Kconfig:70:warning: 'RUSTC_VERSION': number is invalid
In file included from include/linux/key.h:17,
from include/linux/cred.h:13,
from include/linux/sched/signal.h:10,
from include/linux/rcuwait.h:6,
from include/linux/percpu-rwsem.h:7,
from include/linux/fs.h:33,
from include/linux/huge_mm.h:8,
from include/linux/mm.h:717,
from arch/arc/kernel/asm-offsets.c:7:
include/linux/sysctl.h: In function 'register_sysctl_mount_point':
>> include/linux/sysctl.h:230:1: error: expected ';' before '}' token
230 | }
| ^
At top level:
include/linux/sysctl.h:227:30: warning: 'register_sysctl_mount_point' defined but not used [-Wunused-function]
227 | static struct sysctl_header *register_sysctl_mount_point(const char *path)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:122: arch/arc/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1279: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:226: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +230 include/linux/sysctl.h
226
227 static struct sysctl_header *register_sysctl_mount_point(const char *path)
228 {
229 return NULL
> 230 }
231
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[mcgrof-next:20211116-sysctl-cleanups-v3 18/20] include/linux/sysctl.h:229:13: error: expected ';' after return statement
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211116-sysctl-cleanups-v3
head: 06113f1d9a2d0669964adfa2e0128bd50e56b621
commit: 39ba9159476b6d86288f95f4cb62ad7055680395 [18/20] sysctl: add helper to register a sysctl mount point
config: arm-randconfig-r014-20211116 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4c2cf3a314d9131b1b288e7c8ab0c75ac1b2be1d)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20211116-sysctl-cleanups-v3
git checkout 39ba9159476b6d86288f95f4cb62ad7055680395
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm prepare
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
error: no override and no default toolchain set
init/Kconfig:70:warning: 'RUSTC_VERSION': number is invalid
In file included from arch/arm/kernel/asm-offsets.c:12:
In file included from include/linux/mm.h:717:
In file included from include/linux/huge_mm.h:8:
In file included from include/linux/fs.h:33:
In file included from include/linux/percpu-rwsem.h:7:
In file included from include/linux/rcuwait.h:6:
In file included from include/linux/sched/signal.h:10:
In file included from include/linux/cred.h:13:
In file included from include/linux/key.h:17:
>> include/linux/sysctl.h:229:13: error: expected ';' after return statement
return NULL
^
;
1 error generated.
make[2]: *** [scripts/Makefile.build:122: arch/arm/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1279: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:226: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +229 include/linux/sysctl.h
226
227 static struct sysctl_header *register_sysctl_mount_point(const char *path)
228 {
> 229 return NULL
230 }
231
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
Re: [PATCH v2 6/7] usb: gadget: uvc: add VIDIOC function
by kernel test robot
Hi Michael,
I love your patch! Perhaps something to improve:
[auto build test WARNING on usb/usb-testing]
[also build test WARNING on peter-chen-usb/for-usb-next v5.16-rc1 next-20211116]
[cannot apply to media-tree/master balbi-usb/testing/next]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Michael-Grzeschik/usb-gadget-uvc...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: nds32-buildonly-randconfig-r005-20211116 (attached as .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://github.com/0day-ci/linux/commit/3227638d6b37451cc22e7ee61a3311ec3...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Michael-Grzeschik/usb-gadget-uvc-use-configfs-entries-for-negotiation-and-v4l2-VIDIOCS/20211117-084501
git checkout 3227638d6b37451cc22e7ee61a3311ec3f6498ce
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/usb/gadget/function/uvc_v4l2.c:52:5: warning: no previous prototype for 'uvc_v4l2_get_bytesperline' [-Wmissing-prototypes]
52 | int uvc_v4l2_get_bytesperline(struct uvcg_format *uformat,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/gadget/function/uvc_v4l2.c: In function '_uvc_v4l2_try_fmt':
drivers/usb/gadget/function/uvc_v4l2.c:240:13: warning: unused variable 'i' [-Wunused-variable]
240 | int i = 0;
| ^
In file included from drivers/usb/gadget/function/uvc_v4l2.c:29:
At top level:
drivers/usb/gadget/function/uvc_configfs.h:40:27: warning: 'uvcg_format_names' defined but not used [-Wunused-const-variable=]
40 | static const char * const uvcg_format_names[] = {
| ^~~~~~~~~~~~~~~~~
vim +/uvc_v4l2_get_bytesperline +52 drivers/usb/gadget/function/uvc_v4l2.c
51
> 52 int uvc_v4l2_get_bytesperline(struct uvcg_format *uformat,
53 struct uvcg_frame *uframe)
54 {
55 struct uvcg_uncompressed *u;
56
57 if (uformat->type == UVCG_UNCOMPRESSED) {
58 u = to_uvcg_uncompressed(&uformat->group.cg_item);
59 if (!u)
60 return 0;
61
62 return u->desc.bBitsPerPixel * uframe->frame.w_width / 8;
63 }
64
65 return 0;
66 }
67
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[toke:xdp-traffic-gen-01 6/10] net/core/filter.c:3993:53: error: passing argument 1 of 'dev_map_enqueue_multi' from incompatible pointer type
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git xdp-traffic-gen-01
head: a7f4d7f9e215d1e540f81f6cd3f5b46d970c5449
commit: e55a74b240bfe62c2e3b65455611e472636d9fb3 [6/10] xdp: Move conversion to xdp_frame out of map functions
config: arc-randconfig-r043-20211116 (attached as .config)
compiler: arceb-elf-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...
git remote add toke https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git
git fetch --no-tags toke xdp-traffic-gen-01
git checkout e55a74b240bfe62c2e3b65455611e472636d9fb3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
net/core/filter.c: In function 'xdp_do_redirect':
>> net/core/filter.c:3993:53: error: passing argument 1 of 'dev_map_enqueue_multi' from incompatible pointer type [-Werror=incompatible-pointer-types]
3993 | err = dev_map_enqueue_multi(xdpf, dev, map,
| ^~~~
| |
| struct xdp_frame *
In file included from include/linux/bpf-cgroup.h:5,
from include/linux/cgroup-defs.h:22,
from include/linux/cgroup.h:28,
from include/net/netprio_cgroup.h:11,
from include/linux/netdevice.h:41,
from include/net/sock.h:46,
from include/linux/sock_diag.h:8,
from net/core/filter.c:26:
include/linux/bpf.h:1827:44: note: expected 'struct xdp_buff *' but argument is of type 'struct xdp_frame *'
1827 | int dev_map_enqueue_multi(struct xdp_buff *xdp, struct net_device *dev_rx,
| ~~~~~~~~~~~~~~~~~^~~
>> net/core/filter.c:3996:52: error: passing argument 2 of 'dev_map_enqueue' from incompatible pointer type [-Werror=incompatible-pointer-types]
3996 | err = dev_map_enqueue(fwd, xdpf, dev);
| ^~~~
| |
| struct xdp_frame *
In file included from include/linux/bpf-cgroup.h:5,
from include/linux/cgroup-defs.h:22,
from include/linux/cgroup.h:28,
from include/net/netprio_cgroup.h:11,
from include/linux/netdevice.h:41,
from include/net/sock.h:46,
from include/linux/sock_diag.h:8,
from net/core/filter.c:26:
include/linux/bpf.h:1820:67: note: expected 'struct xdp_buff *' but argument is of type 'struct xdp_frame *'
1820 | int dev_map_enqueue(struct bpf_dtab_netdev *dst, struct xdp_buff *xdp,
| ~~~~~~~~~~~~~~~~~^~~
>> net/core/filter.c:4000:44: error: passing argument 2 of 'cpu_map_enqueue' from incompatible pointer type [-Werror=incompatible-pointer-types]
4000 | err = cpu_map_enqueue(fwd, xdpf, dev);
| ^~~~
| |
| struct xdp_frame *
In file included from include/linux/bpf-cgroup.h:5,
from include/linux/cgroup-defs.h:22,
from include/linux/cgroup.h:28,
from include/net/netprio_cgroup.h:11,
from include/linux/netdevice.h:41,
from include/net/sock.h:46,
from include/linux/sock_diag.h:8,
from net/core/filter.c:26:
include/linux/bpf.h:1855:52: note: expected 'struct xdp_buff *' but argument is of type 'struct xdp_frame *'
1855 | struct xdp_buff *xdp,
| ~~~~~~~~~~~~~~~~~^~~
>> net/core/filter.c:4010:52: error: passing argument 2 of 'dev_xdp_enqueue' from incompatible pointer type [-Werror=incompatible-pointer-types]
4010 | err = dev_xdp_enqueue(fwd, xdpf, dev);
| ^~~~
| |
| struct xdp_frame *
In file included from include/linux/bpf-cgroup.h:5,
from include/linux/cgroup-defs.h:22,
from include/linux/cgroup.h:28,
from include/net/netprio_cgroup.h:11,
from include/linux/netdevice.h:41,
from include/net/sock.h:46,
from include/linux/sock_diag.h:8,
from net/core/filter.c:26:
include/linux/bpf.h:1813:62: note: expected 'struct xdp_buff *' but argument is of type 'struct xdp_frame *'
1813 | int dev_xdp_enqueue(struct net_device *dev, struct xdp_buff *xdp,
| ~~~~~~~~~~~~~~~~~^~~
cc1: some warnings being treated as errors
vim +/dev_map_enqueue_multi +3993 net/core/filter.c
3960
3961 int xdp_do_redirect(struct net_device *dev, struct xdp_buff *xdp,
3962 struct bpf_prog *xdp_prog)
3963 {
3964 struct bpf_redirect_info *ri = this_cpu_ptr(&bpf_redirect_info);
3965 enum bpf_map_type map_type = ri->map_type;
3966 void *fwd = ri->tgt_value;
3967 u32 map_id = ri->map_id;
3968 struct xdp_frame *xdpf;
3969 struct bpf_map *map;
3970 int err;
3971
3972 ri->map_id = 0; /* Valid map id idr range: [1,INT_MAX[ */
3973 ri->map_type = BPF_MAP_TYPE_UNSPEC;
3974
3975 if (map_type == BPF_MAP_TYPE_XSKMAP) {
3976 err = __xsk_map_redirect(fwd, xdp);
3977 goto out;
3978 }
3979
3980 xdpf = xdp_convert_buff_to_frame(xdp);
3981 if (unlikely(!xdpf)) {
3982 err = -EOVERFLOW;
3983 goto err;
3984 }
3985
3986 switch (map_type) {
3987 case BPF_MAP_TYPE_DEVMAP:
3988 fallthrough;
3989 case BPF_MAP_TYPE_DEVMAP_HASH:
3990 map = READ_ONCE(ri->map);
3991 if (unlikely(map)) {
3992 WRITE_ONCE(ri->map, NULL);
> 3993 err = dev_map_enqueue_multi(xdpf, dev, map,
3994 ri->flags & BPF_F_EXCLUDE_INGRESS);
3995 } else {
> 3996 err = dev_map_enqueue(fwd, xdpf, dev);
3997 }
3998 break;
3999 case BPF_MAP_TYPE_CPUMAP:
> 4000 err = cpu_map_enqueue(fwd, xdpf, dev);
4001 break;
4002 break;
4003 case BPF_MAP_TYPE_UNSPEC:
4004 if (map_id == INT_MAX) {
4005 fwd = dev_get_by_index_rcu(dev_net(dev), ri->tgt_index);
4006 if (unlikely(!fwd)) {
4007 err = -EINVAL;
4008 break;
4009 }
> 4010 err = dev_xdp_enqueue(fwd, xdpf, dev);
4011 break;
4012 }
4013 fallthrough;
4014 default:
4015 err = -EBADRQC;
4016 }
4017
4018 out:
4019 if (unlikely(err))
4020 goto err;
4021
4022 _trace_xdp_redirect_map(dev, xdp_prog, fwd, map_type, map_id, ri->tgt_index);
4023 return 0;
4024 err:
4025 _trace_xdp_redirect_map_err(dev, xdp_prog, fwd, map_type, map_id, ri->tgt_index, err);
4026 return err;
4027 }
4028 EXPORT_SYMBOL_GPL(xdp_do_redirect);
4029
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
[linux-next:master 1053/1198] fs/dlm/lowcomms.c:621:26: error: no member named 'skc_v6_daddr' in 'struct sock_common'; did you mean 'skc_daddr'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: a2f3bb245883ba791e46be1f8415186dae346458
commit: 4c3d90570bcc2b338f70f61f01110268e281ca3c [1053/1198] fs: dlm: don't call kernel_getpeername() in error_report()
config: arm-randconfig-c002-20211115 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project fbe72e41b99dc7994daac300d208a955be3e4a0a)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 4c3d90570bcc2b338f70f61f01110268e281ca3c
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash fs/dlm/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> fs/dlm/lowcomms.c:621:26: error: no member named 'skc_v6_daddr' in 'struct sock_common'; did you mean 'skc_daddr'?
con->nodeid, &sk->sk_v6_daddr,
^
include/net/sock.h:170:11: note: 'skc_daddr' declared here
__be32 skc_daddr;
^
1 error generated.
vim +621 fs/dlm/lowcomms.c
593
594 static void lowcomms_error_report(struct sock *sk)
595 {
596 struct connection *con;
597 void (*orig_report)(struct sock *) = NULL;
598 struct inet_sock *inet;
599
600 read_lock_bh(&sk->sk_callback_lock);
601 con = sock2con(sk);
602 if (con == NULL)
603 goto out;
604
605 orig_report = listen_sock.sk_error_report;
606
607 inet = inet_sk(sk);
608 switch (sk->sk_family) {
609 case AF_INET:
610 printk_ratelimited(KERN_ERR "dlm: node %d: socket error "
611 "sending to node %d at %pI4, dport %d, "
612 "sk_err=%d/%d\n", dlm_our_nodeid(),
613 con->nodeid, &inet->inet_daddr,
614 ntohs(inet->inet_dport), sk->sk_err,
615 sk->sk_err_soft);
616 break;
617 case AF_INET6:
618 printk_ratelimited(KERN_ERR "dlm: node %d: socket error "
619 "sending to node %d at %pI6c, "
620 "dport %d, sk_err=%d/%d\n", dlm_our_nodeid(),
> 621 con->nodeid, &sk->sk_v6_daddr,
622 ntohs(inet->inet_dport), sk->sk_err,
623 sk->sk_err_soft);
624 break;
625 default:
626 printk_ratelimited(KERN_ERR "dlm: node %d: socket error "
627 "invalid socket family %d set, "
628 "sk_err=%d/%d\n", dlm_our_nodeid(),
629 sk->sk_family, sk->sk_err, sk->sk_err_soft);
630 goto out;
631 }
632
633 /* below sendcon only handling */
634 if (test_bit(CF_IS_OTHERCON, &con->flags))
635 con = con->sendcon;
636
637 switch (sk->sk_err) {
638 case ECONNREFUSED:
639 set_bit(CF_DELAY_CONNECT, &con->flags);
640 break;
641 default:
642 break;
643 }
644
645 if (!test_and_set_bit(CF_RECONNECT, &con->flags))
646 queue_work(send_workqueue, &con->swork);
647
648 out:
649 read_unlock_bh(&sk->sk_callback_lock);
650 if (orig_report)
651 orig_report(sk);
652 }
653
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
drivers/vfio/pci/vfio_pci_rdwr.c:317:9: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast
by kernel test robot
Hi Johannes,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8ab774587903771821b59471cc723bba6d893942
commit: 68f5d3f3b6543266b29e047cfaf9842333019b4c um: add PCI over virtio emulation driver
date: 5 months ago
config: um-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 68f5d3f3b6543266b29e047cfaf9842333019b4c
# save the attached .config to linux build tree
make W=1 ARCH=um
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/vfio/pci/vfio_pci_rdwr.c: In function 'vfio_pci_vga_rw':
drivers/vfio/pci/vfio_pci_rdwr.c:317:11: error: implicit declaration of function 'ioport_map' [-Werror=implicit-function-declaration]
317 | iomem = ioport_map(0x3b0, 0x3bb - 0x3b0 + 1);
| ^~~~~~~~~~
>> drivers/vfio/pci/vfio_pci_rdwr.c:317:9: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
317 | iomem = ioport_map(0x3b0, 0x3bb - 0x3b0 + 1);
| ^
drivers/vfio/pci/vfio_pci_rdwr.c:324:9: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
324 | iomem = ioport_map(0x3c0, 0x3df - 0x3c0 + 1);
| ^
drivers/vfio/pci/vfio_pci_rdwr.c:338:15: error: implicit declaration of function 'ioport_unmap'; did you mean 'iommu_unmap'? [-Werror=implicit-function-declaration]
338 | is_ioport ? ioport_unmap(iomem) : iounmap(iomem);
| ^~~~~~~~~~~~
| iommu_unmap
cc1: some warnings being treated as errors
--
In file included from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/page_types.h:11: warning: "PAGE_SIZE" redefined
11 | #define PAGE_SIZE (_AC(1,UL) << PAGE_SHIFT)
|
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:59,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/mutex.h:14,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/pci.h:35,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/page.h:14: note: this is the location of the previous definition
14 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT)
|
In file included from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/page_types.h:36: warning: "PAGE_OFFSET" redefined
36 | #define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
|
In file included from arch/um/include/asm/thread_info.h:15,
from include/linux/thread_info.h:59,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/mutex.h:14,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/pci.h:35,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/page.h:93: note: this is the location of the previous definition
93 | #define PAGE_OFFSET (uml_physmem)
|
In file included from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/page_types.h:38: warning: "VM_DATA_DEFAULT_FLAGS" redefined
38 | #define VM_DATA_DEFAULT_FLAGS VM_DATA_FLAGS_TSK_EXEC
|
In file included from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1463,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
include/linux/mm.h:396: note: this is the location of the previous definition
396 | #define VM_DATA_DEFAULT_FLAGS VM_DATA_FLAGS_EXEC
|
In file included from arch/x86/include/asm/page_types.h:46,
from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/page_64_types.h:15: warning: "THREAD_SIZE_ORDER" redefined
15 | #define THREAD_SIZE_ORDER (2 + KASAN_STACK_ORDER)
|
In file included from include/linux/thread_info.h:59,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/mutex.h:14,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/pci.h:35,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/thread_info.h:9: note: this is the location of the previous definition
9 | #define THREAD_SIZE_ORDER CONFIG_KERNEL_STACK_ORDER
|
In file included from arch/x86/include/asm/page_types.h:46,
from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/page_64_types.h:16: warning: "THREAD_SIZE" redefined
16 | #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
|
In file included from include/linux/thread_info.h:59,
from include/asm-generic/current.h:5,
from ./arch/um/include/generated/asm/current.h:1,
from include/linux/mutex.h:14,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/pci.h:35,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/thread_info.h:10: note: this is the location of the previous definition
10 | #define THREAD_SIZE ((1 << CONFIG_KERNEL_STACK_ORDER) * PAGE_SIZE)
|
In file included from arch/x86/include/asm/page_types.h:46,
from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
>> arch/x86/include/asm/page_64_types.h:75: warning: "TASK_SIZE" redefined
75 | #define TASK_SIZE (test_thread_flag(TIF_ADDR32) ? \
|
In file included from arch/x86/um/asm/processor.h:41,
from include/linux/mutex.h:19,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/pci.h:35,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/processor-generic.h:71: note: this is the location of the previous definition
71 | #define TASK_SIZE (task_size)
|
In file included from arch/x86/include/asm/page_types.h:46,
from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
>> arch/x86/include/asm/page_64_types.h:77: warning: "TASK_SIZE_OF" redefined
77 | #define TASK_SIZE_OF(child) ((test_tsk_thread_flag(child, TIF_ADDR32)) ? \
|
In file included from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/pci.h:37,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
include/linux/sched.h:2041: note: this is the location of the previous definition
2041 | #define TASK_SIZE_OF(tsk) TASK_SIZE
|
In file included from arch/x86/include/asm/page_types.h:46,
from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
>> arch/x86/include/asm/page_64_types.h:80: warning: "STACK_TOP" redefined
80 | #define STACK_TOP TASK_SIZE_LOW
|
In file included from arch/x86/um/asm/processor.h:41,
from include/linux/mutex.h:19,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/pci.h:35,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/processor-generic.h:79: note: this is the location of the previous definition
79 | #define STACK_TOP (TASK_SIZE - 2 * PAGE_SIZE)
|
In file included from arch/x86/include/asm/page_types.h:46,
from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
>> arch/x86/include/asm/page_64_types.h:81: warning: "STACK_TOP_MAX" redefined
81 | #define STACK_TOP_MAX TASK_SIZE_MAX
|
In file included from arch/x86/um/asm/processor.h:41,
from include/linux/mutex.h:19,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/pci.h:35,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/processor-generic.h:80: note: this is the location of the previous definition
80 | #define STACK_TOP_MAX STACK_TOP
|
In file included from arch/x86/include/asm/pgtable_types.h:8,
from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/page_types.h:47: warning: "IOREMAP_MAX_ORDER" redefined
47 | #define IOREMAP_MAX_ORDER (PUD_SHIFT)
|
In file included from include/asm-generic/io.h:911,
from arch/um/include/asm/io.h:24,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:17,
from arch/um/include/asm/hardirq.h:5,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/pci.h:38,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
include/linux/vmalloc.h:49: note: this is the location of the previous definition
49 | #define IOREMAP_MAX_ORDER (7 + PAGE_SHIFT) /* 128 pages */
|
In file included from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/pgtable_types.h:43: warning: "_PAGE_PRESENT" redefined
43 | #define _PAGE_PRESENT (_AT(pteval_t, 1) << _PAGE_BIT_PRESENT)
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1463,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/pgtable.h:13: note: this is the location of the previous definition
13 | #define _PAGE_PRESENT 0x001
|
In file included from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/pgtable_types.h:44: warning: "_PAGE_RW" redefined
44 | #define _PAGE_RW (_AT(pteval_t, 1) << _PAGE_BIT_RW)
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1463,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/pgtable.h:16: note: this is the location of the previous definition
16 | #define _PAGE_RW 0x020
|
In file included from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/pgtable_types.h:45: warning: "_PAGE_USER" redefined
45 | #define _PAGE_USER (_AT(pteval_t, 1) << _PAGE_BIT_USER)
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1463,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/pgtable.h:17: note: this is the location of the previous definition
17 | #define _PAGE_USER 0x040
|
In file included from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/pgtable_types.h:48: warning: "_PAGE_ACCESSED" redefined
48 | #define _PAGE_ACCESSED (_AT(pteval_t, 1) << _PAGE_BIT_ACCESSED)
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1463,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/pgtable.h:18: note: this is the location of the previous definition
18 | #define _PAGE_ACCESSED 0x080
|
In file included from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/pgtable_types.h:49: warning: "_PAGE_DIRTY" redefined
49 | #define _PAGE_DIRTY (_AT(pteval_t, 1) << _PAGE_BIT_DIRTY)
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1463,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/pgtable.h:19: note: this is the location of the previous definition
19 | #define _PAGE_DIRTY 0x100
|
In file included from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/pgtable_types.h:120: warning: "_PAGE_PROTNONE" redefined
120 | #define _PAGE_PROTNONE (_AT(pteval_t, 1) << _PAGE_BIT_PROTNONE)
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1463,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/pgtable.h:21: note: this is the location of the previous definition
21 | #define _PAGE_PROTNONE 0x010 /* if the user mapped it with PROT_NONE;
|
In file included from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/pgtable_types.h:128: warning: "_PAGE_CHG_MASK" redefined
128 | #define _PAGE_CHG_MASK (PTE_PFN_MASK | _PAGE_PCD | _PAGE_PWT | \
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1463,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/pgtable.h:55: note: this is the location of the previous definition
55 | #define _PAGE_CHG_MASK (PAGE_MASK | _PAGE_ACCESSED | _PAGE_DIRTY)
|
In file included from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
>> arch/x86/include/asm/pgtable_types.h:180: warning: "PAGE_NONE" redefined
180 | #define PAGE_NONE __pg( 0| 0| 0|___A| 0| 0| 0|___G)
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1463,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/pgtable.h:58: note: this is the location of the previous definition
58 | #define PAGE_NONE __pgprot(_PAGE_PROTNONE | _PAGE_ACCESSED)
|
In file included from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/pgtable_types.h:181: warning: "PAGE_SHARED" redefined
181 | #define PAGE_SHARED __pg(__PP|__RW|_USR|___A|__NX| 0| 0| 0)
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1463,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/pgtable.h:59: note: this is the location of the previous definition
59 | #define PAGE_SHARED __pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED)
|
In file included from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/pgtable_types.h:185: warning: "PAGE_COPY" redefined
185 | #define PAGE_COPY __pg(__PP| 0|_USR|___A|__NX| 0| 0| 0)
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1463,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/pgtable.h:60: note: this is the location of the previous definition
60 | #define PAGE_COPY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED)
|
In file included from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/pgtable_types.h:186: warning: "PAGE_READONLY" redefined
186 | #define PAGE_READONLY __pg(__PP| 0|_USR|___A|__NX| 0| 0| 0)
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1463,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/pgtable.h:61: note: this is the location of the previous definition
61 | #define PAGE_READONLY __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED)
|
In file included from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/pgtable_types.h:190: warning: "__PAGE_KERNEL_EXEC" redefined
190 | #define __PAGE_KERNEL_EXEC (__PP|__RW| 0|___A| 0|___D| 0|___G)
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1463,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/pgtable.h:56: note: this is the location of the previous definition
56 | #define __PAGE_KERNEL_EXEC \
|
In file included from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/pgtable_types.h:192: warning: "_KERNPG_TABLE" redefined
192 | #define _KERNPG_TABLE (__PP|__RW| 0|___A| 0|___D| 0| 0| _ENC)
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1463,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/pgtable.h:54: note: this is the location of the previous definition
54 | #define _KERNPG_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | _PAGE_DIRTY)
|
In file included from arch/x86/include/asm/memtype.h:6,
from arch/x86/include/asm/mtrr.h:27,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:41:
arch/x86/include/asm/pgtable_types.h:194: warning: "_PAGE_TABLE" redefined
194 | #define _PAGE_TABLE (__PP|__RW|_USR|___A| 0|___D| 0| 0| _ENC)
|
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:33,
from include/linux/scatterlist.h:8,
from include/linux/dmapool.h:14,
from include/linux/pci.h:1463,
from drivers/infiniband/hw/qib/qib_wc_x86_64.c:40:
arch/um/include/asm/pgtable.h:53: note: this is the location of the previous definition
53 | #define _PAGE_TABLE (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED | _PAGE_DIRTY)
..
vim +317 drivers/vfio/pci/vfio_pci_rdwr.c
84237a826b261d Alex Williamson 2013-02-18 290
84237a826b261d Alex Williamson 2013-02-18 291 ssize_t vfio_pci_vga_rw(struct vfio_pci_device *vdev, char __user *buf,
84237a826b261d Alex Williamson 2013-02-18 292 size_t count, loff_t *ppos, bool iswrite)
84237a826b261d Alex Williamson 2013-02-18 293 {
84237a826b261d Alex Williamson 2013-02-18 294 int ret;
84237a826b261d Alex Williamson 2013-02-18 295 loff_t off, pos = *ppos & VFIO_PCI_OFFSET_MASK;
84237a826b261d Alex Williamson 2013-02-18 296 void __iomem *iomem = NULL;
84237a826b261d Alex Williamson 2013-02-18 297 unsigned int rsrc;
84237a826b261d Alex Williamson 2013-02-18 298 bool is_ioport;
84237a826b261d Alex Williamson 2013-02-18 299 ssize_t done;
84237a826b261d Alex Williamson 2013-02-18 300
84237a826b261d Alex Williamson 2013-02-18 301 if (!vdev->has_vga)
84237a826b261d Alex Williamson 2013-02-18 302 return -EINVAL;
84237a826b261d Alex Williamson 2013-02-18 303
45e86971448943 Arnd Bergmann 2016-12-30 304 if (pos > 0xbfffful)
45e86971448943 Arnd Bergmann 2016-12-30 305 return -EINVAL;
45e86971448943 Arnd Bergmann 2016-12-30 306
45e86971448943 Arnd Bergmann 2016-12-30 307 switch ((u32)pos) {
84237a826b261d Alex Williamson 2013-02-18 308 case 0xa0000 ... 0xbffff:
84237a826b261d Alex Williamson 2013-02-18 309 count = min(count, (size_t)(0xc0000 - pos));
4bdc0d676a6431 Christoph Hellwig 2020-01-06 310 iomem = ioremap(0xa0000, 0xbffff - 0xa0000 + 1);
84237a826b261d Alex Williamson 2013-02-18 311 off = pos - 0xa0000;
84237a826b261d Alex Williamson 2013-02-18 312 rsrc = VGA_RSRC_LEGACY_MEM;
84237a826b261d Alex Williamson 2013-02-18 313 is_ioport = false;
84237a826b261d Alex Williamson 2013-02-18 314 break;
84237a826b261d Alex Williamson 2013-02-18 315 case 0x3b0 ... 0x3bb:
84237a826b261d Alex Williamson 2013-02-18 316 count = min(count, (size_t)(0x3bc - pos));
84237a826b261d Alex Williamson 2013-02-18 @317 iomem = ioport_map(0x3b0, 0x3bb - 0x3b0 + 1);
84237a826b261d Alex Williamson 2013-02-18 318 off = pos - 0x3b0;
84237a826b261d Alex Williamson 2013-02-18 319 rsrc = VGA_RSRC_LEGACY_IO;
84237a826b261d Alex Williamson 2013-02-18 320 is_ioport = true;
84237a826b261d Alex Williamson 2013-02-18 321 break;
84237a826b261d Alex Williamson 2013-02-18 322 case 0x3c0 ... 0x3df:
84237a826b261d Alex Williamson 2013-02-18 323 count = min(count, (size_t)(0x3e0 - pos));
84237a826b261d Alex Williamson 2013-02-18 324 iomem = ioport_map(0x3c0, 0x3df - 0x3c0 + 1);
84237a826b261d Alex Williamson 2013-02-18 325 off = pos - 0x3c0;
84237a826b261d Alex Williamson 2013-02-18 326 rsrc = VGA_RSRC_LEGACY_IO;
84237a826b261d Alex Williamson 2013-02-18 327 is_ioport = true;
84237a826b261d Alex Williamson 2013-02-18 328 break;
84237a826b261d Alex Williamson 2013-02-18 329 default:
84237a826b261d Alex Williamson 2013-02-18 330 return -EINVAL;
84237a826b261d Alex Williamson 2013-02-18 331 }
84237a826b261d Alex Williamson 2013-02-18 332
84237a826b261d Alex Williamson 2013-02-18 333 if (!iomem)
84237a826b261d Alex Williamson 2013-02-18 334 return -ENOMEM;
84237a826b261d Alex Williamson 2013-02-18 335
84237a826b261d Alex Williamson 2013-02-18 336 ret = vga_get_interruptible(vdev->pdev, rsrc);
84237a826b261d Alex Williamson 2013-02-18 337 if (ret) {
84237a826b261d Alex Williamson 2013-02-18 338 is_ioport ? ioport_unmap(iomem) : iounmap(iomem);
84237a826b261d Alex Williamson 2013-02-18 339 return ret;
84237a826b261d Alex Williamson 2013-02-18 340 }
84237a826b261d Alex Williamson 2013-02-18 341
bc93b9ae0151ae Alex Williamson 2020-08-17 342 /*
bc93b9ae0151ae Alex Williamson 2020-08-17 343 * VGA MMIO is a legacy, non-BAR resource that hopefully allows
bc93b9ae0151ae Alex Williamson 2020-08-17 344 * probing, so we don't currently worry about access in relation
bc93b9ae0151ae Alex Williamson 2020-08-17 345 * to the memory enable bit in the command register.
bc93b9ae0151ae Alex Williamson 2020-08-17 346 */
bc93b9ae0151ae Alex Williamson 2020-08-17 347 done = do_io_rw(vdev, false, iomem, buf, off, count, 0, 0, iswrite);
84237a826b261d Alex Williamson 2013-02-18 348
84237a826b261d Alex Williamson 2013-02-18 349 vga_put(vdev->pdev, rsrc);
84237a826b261d Alex Williamson 2013-02-18 350
84237a826b261d Alex Williamson 2013-02-18 351 is_ioport ? ioport_unmap(iomem) : iounmap(iomem);
84237a826b261d Alex Williamson 2013-02-18 352
84237a826b261d Alex Williamson 2013-02-18 353 if (done >= 0)
84237a826b261d Alex Williamson 2013-02-18 354 *ppos += done;
84237a826b261d Alex Williamson 2013-02-18 355
84237a826b261d Alex Williamson 2013-02-18 356 return done;
84237a826b261d Alex Williamson 2013-02-18 357 }
30656177c40804 Alex Williamson 2018-03-21 358
:::::: The code at line 317 was first introduced by commit
:::::: 84237a826b261de7ddd3d09ee53ee68cb4138937 vfio-pci: Add support for VGA region access
:::::: TO: Alex Williamson <alex.williamson(a)redhat.com>
:::::: CC: Alex Williamson <alex.williamson(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week
arch/arm/mm/fault.c:210:24: sparse: sparse: incorrect type in return expression (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8ab774587903771821b59471cc723bba6d893942
commit: caed89dab0ca0e73d7e016c04e1f5957650f4ec3 ARM: 9128/1: mm: Refactor the __do_page_fault()
date: 4 weeks ago
config: arm-randconfig-s031-20211116 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout caed89dab0ca0e73d7e016c04e1f5957650f4ec3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm SHELL=/bin/bash arch/arm/mm/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> arch/arm/mm/fault.c:210:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted vm_fault_t @@ got int @@
arch/arm/mm/fault.c:210:24: sparse: expected restricted vm_fault_t
arch/arm/mm/fault.c:210:24: sparse: got int
arch/arm/mm/fault.c:214:32: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted vm_fault_t @@ got int @@
arch/arm/mm/fault.c:214:32: sparse: expected restricted vm_fault_t
arch/arm/mm/fault.c:214:32: sparse: got int
arch/arm/mm/fault.c:216:32: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted vm_fault_t @@ got int @@
arch/arm/mm/fault.c:216:32: sparse: expected restricted vm_fault_t
arch/arm/mm/fault.c:216:32: sparse: got int
arch/arm/mm/fault.c:218:32: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted vm_fault_t @@ got int @@
arch/arm/mm/fault.c:218:32: sparse: expected restricted vm_fault_t
arch/arm/mm/fault.c:218:32: sparse: got int
arch/arm/mm/fault.c:226:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted vm_fault_t @@ got int @@
arch/arm/mm/fault.c:226:24: sparse: expected restricted vm_fault_t
arch/arm/mm/fault.c:226:24: sparse: got int
arch/arm/mm/fault.c:312:13: sparse: sparse: restricted vm_fault_t degrades to integer
arch/arm/mm/fault.c:312:13: sparse: sparse: restricted vm_fault_t degrades to integer
arch/arm/mm/fault.c:345:24: sparse: sparse: restricted vm_fault_t degrades to integer
vim +210 arch/arm/mm/fault.c
202
203 static vm_fault_t __kprobes
204 __do_page_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr,
205 unsigned int flags, struct task_struct *tsk,
206 struct pt_regs *regs)
207 {
208 struct vm_area_struct *vma = find_vma(mm, addr);
209 if (unlikely(!vma))
> 210 return VM_FAULT_BADMAP;
211
212 if (unlikely(vma->vm_start > addr)) {
213 if (!(vma->vm_flags & VM_GROWSDOWN))
214 return VM_FAULT_BADMAP;
215 if (addr < FIRST_USER_ADDRESS)
216 return VM_FAULT_BADMAP;
217 if (expand_stack(vma, addr))
218 return VM_FAULT_BADMAP;
219 }
220
221 /*
222 * Ok, we have a good vm_area for this
223 * memory access, so we can handle it.
224 */
225 if (access_error(fsr, vma))
226 return VM_FAULT_BADACCESS;
227
228 return handle_mm_fault(vma, addr & PAGE_MASK, flags, regs);
229 }
230
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months, 1 week