[android-common:android12-5.10 1/1] include/trace/hooks/v4l2core.h:47:1: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
tree: https://android.googlesource.com/kernel/common android12-5.10
head: e6a59da61ee8027a97faa3e93945e3f397570a1e
commit: e6a59da61ee8027a97faa3e93945e3f397570a1e [1/1] ANDROID: media: v4l2-core: Fix deadlock in vendor hook
config: x86_64-randconfig-s021-20210821 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout e6a59da61ee8027a97faa3e93945e3f397570a1e
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
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 >>)
include/trace/hooks/sched.h:337:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:337:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:341:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:341:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:341:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:345:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:345:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:345:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:349:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:349:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:349:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:369:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:369:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:369:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:373:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:373:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:373:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/sched.h:377:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/sched.h:377:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/sched.h:377:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/gic_v3.h):
include/trace/hooks/gic_v3.h:18:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/gic_v3.h:18:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/gic_v3.h:18:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/cpufreq.h):
include/trace/hooks/cpufreq.h:27:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/cpufreq.h:27:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/cpufreq.h:27:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/mm.h):
include/trace/hooks/mm.h:19:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/mm.h:19:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/mm.h:19:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/mm.h:22:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/mm.h:22:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/mm.h:22:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/mm.h:25:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/mm.h:25:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/mm.h:25:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/preemptirq.h):
include/trace/hooks/preemptirq.h:14:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:14:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/preemptirq.h:14:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/preemptirq.h:18:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:18:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/preemptirq.h:18:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/preemptirq.h:22:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:22:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/preemptirq.h:22:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/preemptirq.h:26:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/preemptirq.h:26:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/preemptirq.h:26:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/bug.h):
include/trace/hooks/bug.h:14:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/bug.h:14:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/bug.h:14:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/fault.h):
include/trace/hooks/fault.h:15:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/fault.h:15:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/fault.h:15:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/fault.h:19:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/fault.h:19:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/fault.h:19:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/fault.h:23:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/fault.h:23:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/fault.h:23:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/fault.h:27:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/fault.h:27:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/fault.h:27:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/cgroup.h):
include/trace/hooks/cgroup.h:15:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/cgroup.h:15:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/cgroup.h:15:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/cgroup.h:18:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/cgroup.h:18:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/cgroup.h:18:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/cgroup.h:21:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/cgroup.h:21:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/cgroup.h:21:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/traps.h):
include/trace/hooks/traps.h:15:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/traps.h:15:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/traps.h:15:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/traps.h:20:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/traps.h:20:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/traps.h:20:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/traps.h:24:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/traps.h:24:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/traps.h:24:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/typec.h):
include/trace/hooks/typec.h:32:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/typec.h:32:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/typec.h:32:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/typec.h:43:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/typec.h:43:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/typec.h:43:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/vmscan.h):
include/trace/hooks/vmscan.h:28:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/vmscan.h:28:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/vmscan.h:28:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/v4l2core.h):
>> include/trace/hooks/v4l2core.h:47:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/v4l2core.h:47:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/v4l2core.h:47:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/v4l2core.h:52:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/v4l2core.h:52:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/v4l2core.h:52:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/v4l2core.h:57:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/v4l2core.h:57:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/v4l2core.h:57:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/v4l2mc.h):
>> include/trace/hooks/v4l2mc.h:19:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/v4l2mc.h:19:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/v4l2mc.h:19:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
drivers/android/vendor_hooks.c: note: in included file (through include/trace/define_trace.h, include/trace/hooks/net.h):
include/trace/hooks/net.h:23:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/net.h:23:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/net.h:23:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/net.h:25:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/net.h:25:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/net.h:25:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/net.h:27:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/net.h:27:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/net.h:27:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
include/trace/hooks/net.h:29:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/net.h:29:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/net.h:29:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
--
drivers/media/mc/mc-device.c: note: in included file:
>> include/trace/hooks/v4l2mc.h:19:1: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tracepoint_func *it_func_ptr @@ got struct tracepoint_func [noderef] __rcu *funcs @@
include/trace/hooks/v4l2mc.h:19:1: sparse: expected struct tracepoint_func *it_func_ptr
include/trace/hooks/v4l2mc.h:19:1: sparse: got struct tracepoint_func [noderef] __rcu *funcs
vim +47 include/trace/hooks/v4l2core.h
12
13 struct v4l2_format;
14 DECLARE_HOOK(android_vh_clear_reserved_fmt_fields,
15 TP_PROTO(struct v4l2_format *fmt, int *ret),
16 TP_ARGS(fmt, ret));
17
18 struct v4l2_fmtdesc;
19 DECLARE_HOOK(android_vh_fill_ext_fmtdesc,
20 TP_PROTO(struct v4l2_fmtdesc *fmtd, const char **descr),
21 TP_ARGS(fmtd, descr));
22
23 DECLARE_HOOK(android_vh_clear_mask_adjust,
24 TP_PROTO(unsigned int ctrl, int *n),
25 TP_ARGS(ctrl, n));
26
27 struct v4l2_subdev;
28 struct v4l2_subdev_pad_config;
29 struct v4l2_subdev_selection;
30 DECLARE_HOOK(android_vh_v4l2subdev_set_selection,
31 TP_PROTO(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *pad,
32 struct v4l2_subdev_selection *sel, int *ret),
33 TP_ARGS(sd, pad, sel, ret));
34
35 struct v4l2_subdev_format;
36 DECLARE_HOOK(android_vh_v4l2subdev_set_fmt,
37 TP_PROTO(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *pad,
38 struct v4l2_subdev_format *format, int *ret),
39 TP_ARGS(sd, pad, format, ret));
40
41 struct v4l2_subdev_frame_interval;
42 DECLARE_HOOK(android_vh_v4l2subdev_set_frame_interval,
43 TP_PROTO(struct v4l2_subdev *sd, struct v4l2_subdev_frame_interval *fi,
44 int *ret),
45 TP_ARGS(sd, fi, ret));
46
> 47 DECLARE_RESTRICTED_HOOK(android_rvh_v4l2subdev_set_selection,
48 TP_PROTO(struct v4l2_subdev *sd, struct v4l2_subdev_pad_config *pad,
49 struct v4l2_subdev_selection *sel, int *ret),
50 TP_ARGS(sd, pad, sel, ret), 1);
51
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[broonie-misc:spi-5.15 28/30] drivers/spi/spi-rockchip-sfc.c:456:17: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git spi-5.15
head: 7a4697b201a617907e4b440ae34df601d4755bef
commit: 0b89fc0a367edab09065af722894d186bd0ccb0d [28/30] spi: rockchip-sfc: add rockchip serial flash controller
config: arm-randconfig-s032-20210821 (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.3-348-gf0e6938b-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git/commit/?...
git remote add broonie-misc https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git
git fetch --no-tags broonie-misc spi-5.15
git checkout 0b89fc0a367edab09065af722894d186bd0ccb0d
# 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__' ARCH=arm
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 >>)
>> drivers/spi/spi-rockchip-sfc.c:456:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void volatile [noderef] __iomem *to @@ got void *buffer @@
drivers/spi/spi-rockchip-sfc.c:456:17: sparse: expected void volatile [noderef] __iomem *to
drivers/spi/spi-rockchip-sfc.c:456:17: sparse: got void *buffer
>> drivers/spi/spi-rockchip-sfc.c:465:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const volatile [noderef] __iomem *from @@ got void *buffer @@
drivers/spi/spi-rockchip-sfc.c:465:17: sparse: expected void const volatile [noderef] __iomem *from
drivers/spi/spi-rockchip-sfc.c:465:17: sparse: got void *buffer
vim +456 drivers/spi/spi-rockchip-sfc.c
447
448 static int rockchip_sfc_xfer_data_dma(struct rockchip_sfc *sfc,
449 const struct spi_mem_op *op, u32 len)
450 {
451 int ret;
452
453 dev_dbg(sfc->dev, "sfc xfer_dma len=%x\n", len);
454
455 if (op->data.dir == SPI_MEM_DATA_OUT)
> 456 memcpy_toio(sfc->buffer, op->data.buf.out, len);
457
458 ret = rockchip_sfc_fifo_transfer_dma(sfc, sfc->dma_buffer, len);
459 if (!wait_for_completion_timeout(&sfc->cp, msecs_to_jiffies(2000))) {
460 dev_err(sfc->dev, "DMA wait for transfer finish timeout\n");
461 ret = -ETIMEDOUT;
462 }
463 rockchip_sfc_irq_mask(sfc, SFC_IMR_DMA);
464 if (op->data.dir == SPI_MEM_DATA_IN)
> 465 memcpy_fromio(op->data.buf.in, sfc->buffer, len);
466
467 return ret;
468 }
469
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
vmlinux.o: warning: objtool: vc_switch_off_ist()+0x27: call to ip_within_syscall_gap() leaves .noinstr.text section
by kernel test robot
CC: linux-kernel(a)vger.kernel.org
TO: Nick Desaulniers <ndesaulniers(a)google.com>
CC: Kees Cook <keescook(a)chromium.org>
CC: Fangrui Song <maskray(a)google.com>
CC: Miguel Ojeda <ojeda(a)kernel.org>
CC: Nathan Chancellor <nathan(a)kernel.org>
Hi Nick,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fa54d366a6e4fe3e16322abdb8b5115f8be0da8b
commit: 380d53c45ff21f66870ee965b62613137f9d010d compiler_attributes.h: define __no_profile, add to noinstr
date: 9 weeks ago
config: x86_64-buildonly-randconfig-r003-20210821 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9e9d70591e72fc6762b4b9a226b68ed1307419bf)
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/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 380d53c45ff21f66870ee965b62613137f9d010d
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash
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 >>):
vmlinux.o: warning: objtool: do_syscall_64()+0x46: call to memset() leaves .noinstr.text section
>> vmlinux.o: warning: objtool: vc_switch_off_ist()+0x27: call to ip_within_syscall_gap() leaves .noinstr.text section
vmlinux.o: warning: objtool: fixup_bad_iret()+0x21: call to memset() leaves .noinstr.text section
vmlinux.o: warning: objtool: in_task_stack()+0xc: call to task_stack_page() leaves .noinstr.text section
vmlinux.o: warning: objtool: in_entry_stack()+0x10: call to cpu_entry_stack() leaves .noinstr.text section
vmlinux.o: warning: objtool: __sev_es_nmi_complete()+0x3f: call to ghcb_set_sw_exit_code() leaves .noinstr.text section
vmlinux.o: warning: objtool: safe_stack_exc_vmm_communication()+0x2b: call to memset() leaves .noinstr.text section
vmlinux.o: warning: objtool: debug_locks_off()+0x20: call to console_verbose() leaves .noinstr.text section
vmlinux.o: warning: objtool: check_preemption_disabled()+0x53: return with instrumentation enabled
kallsyms failure: relative symbol value 0xffffffff07699000 out of range in relative mode
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[tnguy-next-queue:dev-queue 101/126] drivers/net/ethernet/intel/ice/ice_tc_lib.c:673:36-61: WARNING avoid newline at end of message in NL_SET_ERR_MSG_MOD (fwd)
by Julia Lawall
A newline is not needed at the end of the string on line 673. Could
consider whether to capitalize the first word in this string as well, and
in the second call on line 676.
julia
---------- Forwarded message ----------
Date: Sat, 21 Aug 2021 15:30:34 +0800
From: kernel test robot <lkp(a)intel.com>
To: kbuild(a)lists.01.org
Cc: lkp(a)intel.com, Julia Lawall <julia.lawall(a)lip6.fr>
Subject: [tnguy-next-queue:dev-queue 101/126]
drivers/net/ethernet/intel/ice/ice_tc_lib.c:673:36-61: WARNING avoid newline
at end of message in NL_SET_ERR_MSG_MOD
CC: kbuild-all(a)lists.01.org
CC: Intel Wired LAN <intel-wired-lan(a)lists.osuosl.org>
CC: linux-kernel(a)vger.kernel.org
TO: Kiran Patil <kiran.patil(a)intel.com>
CC: Tony Nguyen <anthony.l.nguyen(a)intel.com>
CC: Priyalee Kushwaha <priyalee.kushwaha(a)intel.com>
CC: Wojciech Drewek <wojciech.drewek(a)intel.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
head: 69bbbd98f4a8fc0e241aa3a01a34985eba06fb0b
commit: 8ef5de630bd1efb718cddc57430f23ef7ed79cf2 [101/126] ice: ndo_setup_tc implementation for PF
:::::: branch date: 13 hours ago
:::::: commit date: 13 hours ago
config: ia64-randconfig-c024-20210821 (attached as .config)
compiler: ia64-linux-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Julia Lawall <julia.lawall(a)lip6.fr>
cocci warnings: (new ones prefixed by >>)
>> drivers/net/ethernet/intel/ice/ice_tc_lib.c:673:36-61: WARNING avoid newline at end of message in NL_SET_ERR_MSG_MOD
vim +673 drivers/net/ethernet/intel/ice/ice_tc_lib.c
8ef5de630bd1ef Kiran Patil 2021-08-06 653
8ef5de630bd1ef Kiran Patil 2021-08-06 654 /**
8ef5de630bd1ef Kiran Patil 2021-08-06 655 * ice_del_tc_fltr - deletes a filter from HW table
8ef5de630bd1ef Kiran Patil 2021-08-06 656 * @vsi: Pointer to VSI
8ef5de630bd1ef Kiran Patil 2021-08-06 657 * @fltr: Pointer to struct ice_tc_flower_fltr
8ef5de630bd1ef Kiran Patil 2021-08-06 658 *
8ef5de630bd1ef Kiran Patil 2021-08-06 659 * This function deletes a filter from HW table and manages book-keeping
8ef5de630bd1ef Kiran Patil 2021-08-06 660 */
8ef5de630bd1ef Kiran Patil 2021-08-06 661 static int ice_del_tc_fltr(struct ice_vsi *vsi, struct ice_tc_flower_fltr *fltr)
8ef5de630bd1ef Kiran Patil 2021-08-06 662 {
8ef5de630bd1ef Kiran Patil 2021-08-06 663 struct ice_rule_query_data rule_rem;
8ef5de630bd1ef Kiran Patil 2021-08-06 664 struct ice_pf *pf = vsi->back;
8ef5de630bd1ef Kiran Patil 2021-08-06 665 int err;
8ef5de630bd1ef Kiran Patil 2021-08-06 666
8ef5de630bd1ef Kiran Patil 2021-08-06 667 rule_rem.rid = fltr->rid;
8ef5de630bd1ef Kiran Patil 2021-08-06 668 rule_rem.rule_id = fltr->rule_id;
8ef5de630bd1ef Kiran Patil 2021-08-06 669 rule_rem.vsi_handle = fltr->dest_id;
8ef5de630bd1ef Kiran Patil 2021-08-06 670 err = ice_rem_adv_rule_by_id(&pf->hw, &rule_rem);
8ef5de630bd1ef Kiran Patil 2021-08-06 671 if (err) {
8ef5de630bd1ef Kiran Patil 2021-08-06 672 if (err == ICE_ERR_DOES_NOT_EXIST) {
8ef5de630bd1ef Kiran Patil 2021-08-06 @673 NL_SET_ERR_MSG_MOD(fltr->extack, "filter does not exist\n");
8ef5de630bd1ef Kiran Patil 2021-08-06 674 return -ENOENT;
8ef5de630bd1ef Kiran Patil 2021-08-06 675 }
8ef5de630bd1ef Kiran Patil 2021-08-06 676 NL_SET_ERR_MSG_MOD(fltr->extack, "Failed to delete TC flower filter");
8ef5de630bd1ef Kiran Patil 2021-08-06 677 return -EIO;
8ef5de630bd1ef Kiran Patil 2021-08-06 678 }
8ef5de630bd1ef Kiran Patil 2021-08-06 679
8ef5de630bd1ef Kiran Patil 2021-08-06 680 return 0;
8ef5de630bd1ef Kiran Patil 2021-08-06 681 }
8ef5de630bd1ef Kiran Patil 2021-08-06 682
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
drivers/media/platform/qcom/camss/camss-vfe-170.c:191:20: warning: unused function 'vfe_reg_clr'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fa54d366a6e4fe3e16322abdb8b5115f8be0da8b
commit: 7319cdf189bb643c6d56e5898ef89ad7c3ef6c31 media: camss: Add support for VFE hardware version Titan 170
date: 5 months ago
config: mips-randconfig-r014-20210821 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 9e9d70591e72fc6762b4b9a226b68ed1307419bf)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# 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 7319cdf189bb643c6d56e5898ef89ad7c3ef6c31
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=mips SHELL=/bin/bash drivers/media/platform/qcom/camss/
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/media/platform/qcom/camss/camss-vfe-170.c:191:20: warning: unused function 'vfe_reg_clr'
static inline void vfe_reg_clr(struct vfe_device u32 reg, u32 clr_bits)
^
fatal error: error in backend: Nested variants found in inline asm string: '.if ( 0x00 ) != -1)) 0x00 ) != -1)) : ($( static struct ftrace_branch_data __attribute__((__aligned__(4))) __attribute__((__section__("_ftrace_branch"))) __if_trace = $( .func = __func__, .file = "arch/mips/include/asm/barrier.h", .line = 16, $); 0x00 ) != -1)) : $))) ) && ( (1 << 0) ); .set push; .set mips64r2; .rept 1; sync 0x00; .endr; .set pop; .else; ; .endif'
clang-14: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 14.0.0 (git://gitmirror/llvm_project 9e9d70591e72fc6762b4b9a226b68ed1307419bf)
Target: mipsel-unknown-linux
Thread model: posix
InstalledDir: /opt/cross/clang-9e9d70591e/bin
clang-14: note: diagnostic msg:
Makefile arch drivers include kernel nr_bisected scripts source usr
vim +/vfe_reg_clr +191 drivers/media/platform/qcom/camss/camss-vfe-170.c
190
> 191 static inline void vfe_reg_clr(struct vfe_device *vfe, u32 reg, u32 clr_bits)
192 {
193 u32 bits = readl_relaxed(vfe->base + reg);
194
195 writel_relaxed(bits & ~clr_bits, vfe->base + reg);
196 }
197
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH v8 09/14] iio: afe: rescale: fix accuracy for small fractional scales
by kernel test robot
Hi Liam,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on 6cbb3aa0f9d5d23221df787cf36f74d3866fdb78]
url: https://github.com/0day-ci/linux/commits/Liam-Beguin/iio-afe-add-temperat...
base: 6cbb3aa0f9d5d23221df787cf36f74d3866fdb78
config: i386-randconfig-r026-20210821 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/e5c2e1505fa3f8cf9fe6d3a21f3a5c585...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Liam-Beguin/iio-afe-add-temperature-rescaling-support/20210821-032112
git checkout e5c2e1505fa3f8cf9fe6d3a21f3a5c585efc6dce
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
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 >>):
ld: drivers/iio/afe/iio-rescale.o: in function `rescale_process_scale':
>> drivers/iio/afe/iio-rescale.c:56: undefined reference to `__divdi3'
vim +56 drivers/iio/afe/iio-rescale.c
20
21 int rescale_process_scale(struct rescale *rescale, int scale_type,
22 int *val, int *val2)
23 {
24 s64 tmp;
25 s32 rem, rem2;
26 u32 mult;
27 u32 neg;
28
29 switch (scale_type) {
30 case IIO_VAL_INT:
31 *val *= rescale->numerator;
32 if (rescale->denominator == 1)
33 return scale_type;
34 *val2 = rescale->denominator;
35 return IIO_VAL_FRACTIONAL;
36 case IIO_VAL_FRACTIONAL:
37 case IIO_VAL_FRACTIONAL_LOG2:
38 tmp = (s64)*val * 1000000000LL;
39 tmp = div_s64(tmp, rescale->denominator);
40 tmp *= rescale->numerator;
41
42 tmp = div_s64_rem(tmp, 1000000000LL, &rem);
43 *val = tmp;
44
45 /*
46 * For small values, the approximation can be costly,
47 * change scale type to maintain accuracy.
48 *
49 * 100 vs. 10000000 NANO caps the error to about 100 ppm.
50 */
51 if (scale_type == IIO_VAL_FRACTIONAL)
52 tmp = *val2;
53 else
54 tmp = 1 << *val2;
55
> 56 if (abs(rem) > 10000000 && abs(*val / tmp) < 100) {
57 *val = div_s64_rem(*val, tmp, &rem2);
58
59 *val2 = div_s64(rem, tmp);
60 if (rem2)
61 *val2 += div_s64(rem2 * 1000000000LL, tmp);
62
63 return IIO_VAL_INT_PLUS_NANO;
64 }
65
66 return scale_type;
67 case IIO_VAL_INT_PLUS_NANO:
68 case IIO_VAL_INT_PLUS_MICRO:
69 if (scale_type == IIO_VAL_INT_PLUS_NANO)
70 mult = 1000000000LL;
71 else
72 mult = 1000000LL;
73 /*
74 * For IIO_VAL_INT_PLUS_{MICRO,NANO} scale types if *val OR
75 * *val2 is negative the schan scale is negative
76 */
77 neg = *val < 0 || *val2 < 0;
78
79 tmp = (s64)abs(*val) * abs(rescale->numerator);
80 *val = div_s64_rem(tmp, abs(rescale->denominator), &rem);
81
82 tmp = (s64)rem * mult + (s64)abs(*val2) * abs(rescale->numerator);
83 tmp = div_s64(tmp, abs(rescale->denominator));
84
85 *val += div_s64_rem(tmp, mult, val2);
86
87 /*
88 * If only one of the rescaler elements or the schan scale is
89 * negative, the combined scale is negative.
90 */
91 if (neg ^ ((rescale->numerator < 0) ^ (rescale->denominator < 0))) {
92 if (*val)
93 *val = -*val;
94 else
95 *val2 = -*val2;
96 }
97
98 return scale_type;
99 default:
100 return -EOPNOTSUPP;
101 }
102 }
103
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[freescale-fslc:pr/416 12336/20667] drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_join.c:814:14: warning: variable 'ft_akm' set but not used
by kernel test robot
tree: https://github.com/Freescale/linux-fslc pr/416
head: 915e71b823c877d351de1cbe650344ef6eace94b
commit: b2d3726eea4f606e61fa5c48dd875605f7299080 [12336/20667] MLK-24484 net: wireless: nxp: mxm_wifiex: upgrade to mxm4x17186.p2 release
config: sh-allmodconfig (attached as .config)
compiler: sh4-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/Freescale/linux-fslc/commit/b2d3726eea4f606e61fa5c48dd...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/416
git checkout b2d3726eea4f606e61fa5c48dd875605f7299080
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=sh
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 >>):
cc1: warning: /mlan: No such file or directory [-Wmissing-include-dirs]
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_join.c:560:5: warning: no previous prototype for 'wlan_update_rsn_ie' [-Wmissing-prototypes]
560 | int wlan_update_rsn_ie(mlan_private *pmpriv,
| ^~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_join.c:752:6: warning: no previous prototype for 'wlan_find_ie' [-Wmissing-prototypes]
752 | t_u8 wlan_find_ie(t_u8 *ie, t_u8 ie_len, t_u8 ie_type)
| ^~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_join.c: In function 'wlan_cmd_802_11_associate':
>> drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_join.c:814:14: warning: variable 'ft_akm' set but not used [-Wunused-but-set-variable]
814 | t_u8 ft_akm = 0;
| ^~~~~~
--
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_join.c:560:5: warning: no previous prototype for 'wlan_update_rsn_ie' [-Wmissing-prototypes]
560 | int wlan_update_rsn_ie(mlan_private *pmpriv,
| ^~~~~~~~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_join.c:752:6: warning: no previous prototype for 'wlan_find_ie' [-Wmissing-prototypes]
752 | t_u8 wlan_find_ie(t_u8 *ie, t_u8 ie_len, t_u8 ie_type)
| ^~~~~~~~~~~~
drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_join.c: In function 'wlan_cmd_802_11_associate':
>> drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_join.c:814:14: warning: variable 'ft_akm' set but not used [-Wunused-but-set-variable]
814 | t_u8 ft_akm = 0;
| ^~~~~~
vim +/ft_akm +814 drivers/net/wireless/nxp/mxm_wifiex/wlan_src/mlan/mlan_join.c
688b67b2c7220b0 Fugang Duan 2020-04-19 781
688b67b2c7220b0 Fugang Duan 2020-04-19 782 /**
688b67b2c7220b0 Fugang Duan 2020-04-19 783 * @brief This function prepares command of association.
688b67b2c7220b0 Fugang Duan 2020-04-19 784 *
688b67b2c7220b0 Fugang Duan 2020-04-19 785 * @param pmpriv A pointer to mlan_private structure
688b67b2c7220b0 Fugang Duan 2020-04-19 786 * @param cmd A pointer to HostCmd_DS_COMMAND structure
688b67b2c7220b0 Fugang Duan 2020-04-19 787 * @param pdata_buf A pointer cast of BSSDescriptor_t from the
688b67b2c7220b0 Fugang Duan 2020-04-19 788 * scan table to assoc
688b67b2c7220b0 Fugang Duan 2020-04-19 789 *
688b67b2c7220b0 Fugang Duan 2020-04-19 790 * @return MLAN_STATUS_SUCCESS or MLAN_STATUS_FAILURE
688b67b2c7220b0 Fugang Duan 2020-04-19 791 */
ec10135c193594e Fugang Duan 2020-08-03 792 mlan_status wlan_cmd_802_11_associate(mlan_private *pmpriv,
ec10135c193594e Fugang Duan 2020-08-03 793 HostCmd_DS_COMMAND *cmd,
ec10135c193594e Fugang Duan 2020-08-03 794 t_void *pdata_buf)
688b67b2c7220b0 Fugang Duan 2020-04-19 795 {
688b67b2c7220b0 Fugang Duan 2020-04-19 796 mlan_status ret = MLAN_STATUS_SUCCESS;
688b67b2c7220b0 Fugang Duan 2020-04-19 797 mlan_adapter *pmadapter = pmpriv->adapter;
688b67b2c7220b0 Fugang Duan 2020-04-19 798 HostCmd_DS_802_11_ASSOCIATE *passo = &cmd->params.associate;
688b67b2c7220b0 Fugang Duan 2020-04-19 799 BSSDescriptor_t *pbss_desc;
688b67b2c7220b0 Fugang Duan 2020-04-19 800 MrvlIEtypes_SsIdParamSet_t *pssid_tlv;
688b67b2c7220b0 Fugang Duan 2020-04-19 801 MrvlIEtypes_PhyParamSet_t *pphy_tlv;
688b67b2c7220b0 Fugang Duan 2020-04-19 802 MrvlIEtypes_SsParamSet_t *pss_tlv;
688b67b2c7220b0 Fugang Duan 2020-04-19 803 MrvlIEtypes_RatesParamSet_t *prates_tlv;
688b67b2c7220b0 Fugang Duan 2020-04-19 804 MrvlIEtypes_AuthType_t *pauth_tlv;
688b67b2c7220b0 Fugang Duan 2020-04-19 805 MrvlIEtypes_RsnParamSet_t *prsn_ie_tlv = MNULL;
688b67b2c7220b0 Fugang Duan 2020-04-19 806 MrvlIEtypes_ChanListParamSet_t *pchan_tlv;
688b67b2c7220b0 Fugang Duan 2020-04-19 807 WLAN_802_11_RATES rates;
688b67b2c7220b0 Fugang Duan 2020-04-19 808 t_u32 rates_size;
688b67b2c7220b0 Fugang Duan 2020-04-19 809 t_u16 tmp_cap;
688b67b2c7220b0 Fugang Duan 2020-04-19 810 t_u8 *pos;
688b67b2c7220b0 Fugang Duan 2020-04-19 811 #ifdef DRV_EMBEDDED_SUPPLICANT
688b67b2c7220b0 Fugang Duan 2020-04-19 812 void *rsn_wpa_ie_tmp = MNULL;
688b67b2c7220b0 Fugang Duan 2020-04-19 813 #endif
688b67b2c7220b0 Fugang Duan 2020-04-19 @814 t_u8 ft_akm = 0;
688b67b2c7220b0 Fugang Duan 2020-04-19 815 t_u8 oper_class;
688b67b2c7220b0 Fugang Duan 2020-04-19 816 t_u8 oper_class_flag = MFALSE;
688b67b2c7220b0 Fugang Duan 2020-04-19 817 MrvlIEtypes_HostMlme_t *host_mlme_tlv = MNULL;
688b67b2c7220b0 Fugang Duan 2020-04-19 818
688b67b2c7220b0 Fugang Duan 2020-04-19 819 ENTER();
688b67b2c7220b0 Fugang Duan 2020-04-19 820
688b67b2c7220b0 Fugang Duan 2020-04-19 821 pbss_desc = (BSSDescriptor_t *)pdata_buf;
688b67b2c7220b0 Fugang Duan 2020-04-19 822 pos = (t_u8 *)passo;
688b67b2c7220b0 Fugang Duan 2020-04-19 823
688b67b2c7220b0 Fugang Duan 2020-04-19 824 cmd->command = wlan_cpu_to_le16(HostCmd_CMD_802_11_ASSOCIATE);
688b67b2c7220b0 Fugang Duan 2020-04-19 825
688b67b2c7220b0 Fugang Duan 2020-04-19 826 /* Save so we know which BSS Desc to use in the response handler */
688b67b2c7220b0 Fugang Duan 2020-04-19 827 pmpriv->pattempted_bss_desc = pbss_desc;
688b67b2c7220b0 Fugang Duan 2020-04-19 828 /* clear assoc_rsp_size */
688b67b2c7220b0 Fugang Duan 2020-04-19 829 pmpriv->assoc_rsp_size = 0;
688b67b2c7220b0 Fugang Duan 2020-04-19 830
6b4a83a75fc1dcc Fugang Duan 2020-05-28 831 memcpy_ext(pmadapter, passo->peer_sta_addr, pbss_desc->mac_address,
6b4a83a75fc1dcc Fugang Duan 2020-05-28 832 sizeof(pbss_desc->mac_address),
688b67b2c7220b0 Fugang Duan 2020-04-19 833 sizeof(passo->peer_sta_addr));
688b67b2c7220b0 Fugang Duan 2020-04-19 834 pos += sizeof(passo->peer_sta_addr);
688b67b2c7220b0 Fugang Duan 2020-04-19 835
688b67b2c7220b0 Fugang Duan 2020-04-19 836 /* Set the listen interval */
688b67b2c7220b0 Fugang Duan 2020-04-19 837 passo->listen_interval = wlan_cpu_to_le16(pmpriv->listen_interval);
688b67b2c7220b0 Fugang Duan 2020-04-19 838 /* Set the beacon period */
688b67b2c7220b0 Fugang Duan 2020-04-19 839 passo->beacon_period = wlan_cpu_to_le16(pbss_desc->beacon_period);
688b67b2c7220b0 Fugang Duan 2020-04-19 840
688b67b2c7220b0 Fugang Duan 2020-04-19 841 pos += sizeof(passo->cap_info);
688b67b2c7220b0 Fugang Duan 2020-04-19 842 pos += sizeof(passo->listen_interval);
688b67b2c7220b0 Fugang Duan 2020-04-19 843 pos += sizeof(passo->beacon_period);
688b67b2c7220b0 Fugang Duan 2020-04-19 844 pos += sizeof(passo->dtim_period);
688b67b2c7220b0 Fugang Duan 2020-04-19 845
688b67b2c7220b0 Fugang Duan 2020-04-19 846 pssid_tlv = (MrvlIEtypes_SsIdParamSet_t *)pos;
688b67b2c7220b0 Fugang Duan 2020-04-19 847 pssid_tlv->header.type = wlan_cpu_to_le16(TLV_TYPE_SSID);
688b67b2c7220b0 Fugang Duan 2020-04-19 848 pssid_tlv->header.len = (t_u16)pbss_desc->ssid.ssid_len;
688b67b2c7220b0 Fugang Duan 2020-04-19 849 memcpy_ext(pmadapter, pssid_tlv->ssid, pbss_desc->ssid.ssid,
688b67b2c7220b0 Fugang Duan 2020-04-19 850 pssid_tlv->header.len, pssid_tlv->header.len);
688b67b2c7220b0 Fugang Duan 2020-04-19 851 pos += sizeof(pssid_tlv->header) + pssid_tlv->header.len;
688b67b2c7220b0 Fugang Duan 2020-04-19 852 pssid_tlv->header.len = wlan_cpu_to_le16(pssid_tlv->header.len);
688b67b2c7220b0 Fugang Duan 2020-04-19 853
688b67b2c7220b0 Fugang Duan 2020-04-19 854 pphy_tlv = (MrvlIEtypes_PhyParamSet_t *)pos;
688b67b2c7220b0 Fugang Duan 2020-04-19 855 pphy_tlv->header.type = wlan_cpu_to_le16(TLV_TYPE_PHY_DS);
688b67b2c7220b0 Fugang Duan 2020-04-19 856 pphy_tlv->header.len = sizeof(pphy_tlv->fh_ds.ds_param_set);
688b67b2c7220b0 Fugang Duan 2020-04-19 857 memcpy_ext(pmadapter, &pphy_tlv->fh_ds.ds_param_set,
688b67b2c7220b0 Fugang Duan 2020-04-19 858 &pbss_desc->phy_param_set.ds_param_set.current_chan,
688b67b2c7220b0 Fugang Duan 2020-04-19 859 sizeof(pphy_tlv->fh_ds.ds_param_set),
688b67b2c7220b0 Fugang Duan 2020-04-19 860 sizeof(pphy_tlv->fh_ds.ds_param_set));
688b67b2c7220b0 Fugang Duan 2020-04-19 861 pos += sizeof(pphy_tlv->header) + pphy_tlv->header.len;
688b67b2c7220b0 Fugang Duan 2020-04-19 862 pphy_tlv->header.len = wlan_cpu_to_le16(pphy_tlv->header.len);
688b67b2c7220b0 Fugang Duan 2020-04-19 863
688b67b2c7220b0 Fugang Duan 2020-04-19 864 pss_tlv = (MrvlIEtypes_SsParamSet_t *)pos;
688b67b2c7220b0 Fugang Duan 2020-04-19 865 pss_tlv->header.type = wlan_cpu_to_le16(TLV_TYPE_CF);
688b67b2c7220b0 Fugang Duan 2020-04-19 866 pss_tlv->header.len = sizeof(pss_tlv->cf_ibss.cf_param_set);
688b67b2c7220b0 Fugang Duan 2020-04-19 867 pos += sizeof(pss_tlv->header) + pss_tlv->header.len;
688b67b2c7220b0 Fugang Duan 2020-04-19 868 pss_tlv->header.len = wlan_cpu_to_le16(pss_tlv->header.len);
688b67b2c7220b0 Fugang Duan 2020-04-19 869
688b67b2c7220b0 Fugang Duan 2020-04-19 870 /* Get the common rates supported between the driver and the BSS Desc */
6b4a83a75fc1dcc Fugang Duan 2020-05-28 871 if (wlan_setup_rates_from_bssdesc(pmpriv, pbss_desc, rates,
6b4a83a75fc1dcc Fugang Duan 2020-05-28 872 &rates_size)) {
688b67b2c7220b0 Fugang Duan 2020-04-19 873 ret = MLAN_STATUS_FAILURE;
688b67b2c7220b0 Fugang Duan 2020-04-19 874 goto done;
688b67b2c7220b0 Fugang Duan 2020-04-19 875 }
688b67b2c7220b0 Fugang Duan 2020-04-19 876
688b67b2c7220b0 Fugang Duan 2020-04-19 877 /* Save the data rates into Current BSS state structure */
688b67b2c7220b0 Fugang Duan 2020-04-19 878 pmpriv->curr_bss_params.num_of_rates = rates_size;
688b67b2c7220b0 Fugang Duan 2020-04-19 879 memcpy_ext(pmadapter, &pmpriv->curr_bss_params.data_rates, rates,
688b67b2c7220b0 Fugang Duan 2020-04-19 880 rates_size, WLAN_SUPPORTED_RATES);
688b67b2c7220b0 Fugang Duan 2020-04-19 881
688b67b2c7220b0 Fugang Duan 2020-04-19 882 /* Setup the Rates TLV in the association command */
688b67b2c7220b0 Fugang Duan 2020-04-19 883 prates_tlv = (MrvlIEtypes_RatesParamSet_t *)pos;
688b67b2c7220b0 Fugang Duan 2020-04-19 884 prates_tlv->header.type = wlan_cpu_to_le16(TLV_TYPE_RATES);
688b67b2c7220b0 Fugang Duan 2020-04-19 885 prates_tlv->header.len = wlan_cpu_to_le16((t_u16)rates_size);
688b67b2c7220b0 Fugang Duan 2020-04-19 886 memcpy_ext(pmadapter, prates_tlv->rates, rates, rates_size, rates_size);
688b67b2c7220b0 Fugang Duan 2020-04-19 887 pos += sizeof(prates_tlv->header) + rates_size;
688b67b2c7220b0 Fugang Duan 2020-04-19 888 PRINTM(MINFO, "ASSOC_CMD: Rates size = %d\n", rates_size);
688b67b2c7220b0 Fugang Duan 2020-04-19 889
688b67b2c7220b0 Fugang Duan 2020-04-19 890 /* Add the Authentication type to be used for Auth frames if needed */
6b4a83a75fc1dcc Fugang Duan 2020-05-28 891 if ((pmpriv->sec_info.authentication_mode != MLAN_AUTH_MODE_AUTO)) {
688b67b2c7220b0 Fugang Duan 2020-04-19 892 pauth_tlv = (MrvlIEtypes_AuthType_t *)pos;
688b67b2c7220b0 Fugang Duan 2020-04-19 893 pauth_tlv->header.type = wlan_cpu_to_le16(TLV_TYPE_AUTH_TYPE);
688b67b2c7220b0 Fugang Duan 2020-04-19 894 pauth_tlv->header.len = sizeof(pauth_tlv->auth_type);
6b4a83a75fc1dcc Fugang Duan 2020-05-28 895 if ((pmpriv->sec_info.wep_status == Wlan802_11WEPEnabled) ||
6b4a83a75fc1dcc Fugang Duan 2020-05-28 896 (pmpriv->sec_info.authentication_mode ==
688b67b2c7220b0 Fugang Duan 2020-04-19 897 MLAN_AUTH_MODE_NETWORKEAP))
6b4a83a75fc1dcc Fugang Duan 2020-05-28 898 pauth_tlv->auth_type = wlan_cpu_to_le16(
6b4a83a75fc1dcc Fugang Duan 2020-05-28 899 (t_u16)pmpriv->sec_info.authentication_mode);
688b67b2c7220b0 Fugang Duan 2020-04-19 900 else if (pmpriv->sec_info.authentication_mode ==
688b67b2c7220b0 Fugang Duan 2020-04-19 901 MLAN_AUTH_MODE_FT)
688b67b2c7220b0 Fugang Duan 2020-04-19 902 pauth_tlv->auth_type =
688b67b2c7220b0 Fugang Duan 2020-04-19 903 wlan_cpu_to_le16(AssocAgentAuth_FastBss_Skip);
688b67b2c7220b0 Fugang Duan 2020-04-19 904 else if (pmpriv->sec_info.authentication_mode ==
688b67b2c7220b0 Fugang Duan 2020-04-19 905 MLAN_AUTH_MODE_SAE)
688b67b2c7220b0 Fugang Duan 2020-04-19 906 pauth_tlv->auth_type =
688b67b2c7220b0 Fugang Duan 2020-04-19 907 wlan_cpu_to_le16(AssocAgentAuth_Wpa3Sae);
688b67b2c7220b0 Fugang Duan 2020-04-19 908 else
688b67b2c7220b0 Fugang Duan 2020-04-19 909 pauth_tlv->auth_type =
688b67b2c7220b0 Fugang Duan 2020-04-19 910 wlan_cpu_to_le16(MLAN_AUTH_MODE_OPEN);
688b67b2c7220b0 Fugang Duan 2020-04-19 911 pos += sizeof(pauth_tlv->header) + pauth_tlv->header.len;
688b67b2c7220b0 Fugang Duan 2020-04-19 912 pauth_tlv->header.len = wlan_cpu_to_le16(pauth_tlv->header.len);
688b67b2c7220b0 Fugang Duan 2020-04-19 913 }
688b67b2c7220b0 Fugang Duan 2020-04-19 914
6b4a83a75fc1dcc Fugang Duan 2020-05-28 915 if (IS_SUPPORT_MULTI_BANDS(pmadapter) &&
6b4a83a75fc1dcc Fugang Duan 2020-05-28 916 (pbss_desc->bss_band & pmpriv->config_bands) &&
6b4a83a75fc1dcc Fugang Duan 2020-05-28 917 !(ISSUPP_11NENABLED(pmadapter->fw_cap_info) &&
6b4a83a75fc1dcc Fugang Duan 2020-05-28 918 (!pbss_desc->disable_11n) &&
6b4a83a75fc1dcc Fugang Duan 2020-05-28 919 (pmpriv->config_bands & BAND_GN ||
6b4a83a75fc1dcc Fugang Duan 2020-05-28 920 pmpriv->config_bands & BAND_AN) &&
6b4a83a75fc1dcc Fugang Duan 2020-05-28 921 (pbss_desc->pht_cap))) {
6b4a83a75fc1dcc Fugang Duan 2020-05-28 922 /* Append a channel TLV for the channel the attempted AP was
6b4a83a75fc1dcc Fugang Duan 2020-05-28 923 * found on */
688b67b2c7220b0 Fugang Duan 2020-04-19 924 pchan_tlv = (MrvlIEtypes_ChanListParamSet_t *)pos;
688b67b2c7220b0 Fugang Duan 2020-04-19 925 pchan_tlv->header.type = wlan_cpu_to_le16(TLV_TYPE_CHANLIST);
688b67b2c7220b0 Fugang Duan 2020-04-19 926 pchan_tlv->header.len =
688b67b2c7220b0 Fugang Duan 2020-04-19 927 wlan_cpu_to_le16(sizeof(ChanScanParamSet_t));
688b67b2c7220b0 Fugang Duan 2020-04-19 928
688b67b2c7220b0 Fugang Duan 2020-04-19 929 memset(pmadapter, pchan_tlv->chan_scan_param, 0x00,
688b67b2c7220b0 Fugang Duan 2020-04-19 930 sizeof(ChanScanParamSet_t));
688b67b2c7220b0 Fugang Duan 2020-04-19 931 pchan_tlv->chan_scan_param[0].chan_number =
688b67b2c7220b0 Fugang Duan 2020-04-19 932 (pbss_desc->phy_param_set.ds_param_set.current_chan);
688b67b2c7220b0 Fugang Duan 2020-04-19 933 PRINTM(MINFO, "Assoc: TLV Chan = %d\n",
688b67b2c7220b0 Fugang Duan 2020-04-19 934 pchan_tlv->chan_scan_param[0].chan_number);
688b67b2c7220b0 Fugang Duan 2020-04-19 935
688b67b2c7220b0 Fugang Duan 2020-04-19 936 pchan_tlv->chan_scan_param[0].bandcfg.chanBand =
688b67b2c7220b0 Fugang Duan 2020-04-19 937 wlan_band_to_radio_type((t_u8)pbss_desc->bss_band);
688b67b2c7220b0 Fugang Duan 2020-04-19 938
688b67b2c7220b0 Fugang Duan 2020-04-19 939 PRINTM(MINFO, "Assoc: TLV Bandcfg = %x\n",
688b67b2c7220b0 Fugang Duan 2020-04-19 940 pchan_tlv->chan_scan_param[0].bandcfg);
688b67b2c7220b0 Fugang Duan 2020-04-19 941 pos += sizeof(pchan_tlv->header) + sizeof(ChanScanParamSet_t);
688b67b2c7220b0 Fugang Duan 2020-04-19 942 }
688b67b2c7220b0 Fugang Duan 2020-04-19 943 if (!pmpriv->wps.session_enable) {
688b67b2c7220b0 Fugang Duan 2020-04-19 944 if ((pmpriv->sec_info.wpa_enabled ||
688b67b2c7220b0 Fugang Duan 2020-04-19 945 pmpriv->sec_info.wpa2_enabled)) {
688b67b2c7220b0 Fugang Duan 2020-04-19 946 prsn_ie_tlv = (MrvlIEtypes_RsnParamSet_t *)pos;
688b67b2c7220b0 Fugang Duan 2020-04-19 947 /* WPA_IE or RSN_IE */
688b67b2c7220b0 Fugang Duan 2020-04-19 948 prsn_ie_tlv->header.type = (t_u16)pmpriv->wpa_ie[0];
688b67b2c7220b0 Fugang Duan 2020-04-19 949 prsn_ie_tlv->header.type =
688b67b2c7220b0 Fugang Duan 2020-04-19 950 prsn_ie_tlv->header.type & 0x00FF;
688b67b2c7220b0 Fugang Duan 2020-04-19 951 prsn_ie_tlv->header.type =
688b67b2c7220b0 Fugang Duan 2020-04-19 952 wlan_cpu_to_le16(prsn_ie_tlv->header.type);
688b67b2c7220b0 Fugang Duan 2020-04-19 953 prsn_ie_tlv->header.len = (t_u16)pmpriv->wpa_ie[1];
688b67b2c7220b0 Fugang Duan 2020-04-19 954 prsn_ie_tlv->header.len =
688b67b2c7220b0 Fugang Duan 2020-04-19 955 prsn_ie_tlv->header.len & 0x00FF;
688b67b2c7220b0 Fugang Duan 2020-04-19 956 if (prsn_ie_tlv->header.len <=
688b67b2c7220b0 Fugang Duan 2020-04-19 957 (sizeof(pmpriv->wpa_ie) - 2))
688b67b2c7220b0 Fugang Duan 2020-04-19 958 memcpy_ext(pmadapter, prsn_ie_tlv->rsn_ie,
688b67b2c7220b0 Fugang Duan 2020-04-19 959 &pmpriv->wpa_ie[2],
688b67b2c7220b0 Fugang Duan 2020-04-19 960 prsn_ie_tlv->header.len,
688b67b2c7220b0 Fugang Duan 2020-04-19 961 prsn_ie_tlv->header.len);
688b67b2c7220b0 Fugang Duan 2020-04-19 962 else {
688b67b2c7220b0 Fugang Duan 2020-04-19 963 ret = MLAN_STATUS_FAILURE;
688b67b2c7220b0 Fugang Duan 2020-04-19 964 goto done;
688b67b2c7220b0 Fugang Duan 2020-04-19 965 }
688b67b2c7220b0 Fugang Duan 2020-04-19 966 HEXDUMP("ASSOC_CMD: RSN IE", (t_u8 *)prsn_ie_tlv,
688b67b2c7220b0 Fugang Duan 2020-04-19 967 sizeof(prsn_ie_tlv->header) +
688b67b2c7220b0 Fugang Duan 2020-04-19 968 prsn_ie_tlv->header.len);
688b67b2c7220b0 Fugang Duan 2020-04-19 969 pos += sizeof(prsn_ie_tlv->header) +
688b67b2c7220b0 Fugang Duan 2020-04-19 970 prsn_ie_tlv->header.len;
688b67b2c7220b0 Fugang Duan 2020-04-19 971 prsn_ie_tlv->header.len =
688b67b2c7220b0 Fugang Duan 2020-04-19 972 wlan_cpu_to_le16(prsn_ie_tlv->header.len);
688b67b2c7220b0 Fugang Duan 2020-04-19 973 /** parse rsn ie to find whether ft akm is used*/
688b67b2c7220b0 Fugang Duan 2020-04-19 974 ft_akm = wlan_ft_akm_is_used(pmpriv, pmpriv->wpa_ie);
688b67b2c7220b0 Fugang Duan 2020-04-19 975 }
688b67b2c7220b0 Fugang Duan 2020-04-19 976 #ifdef DRV_EMBEDDED_SUPPLICANT
688b67b2c7220b0 Fugang Duan 2020-04-19 977 else if (supplicantIsEnabled(pmpriv->psapriv)) {
688b67b2c7220b0 Fugang Duan 2020-04-19 978 supplicantClrEncryptKey(pmpriv->psapriv);
688b67b2c7220b0 Fugang Duan 2020-04-19 979
688b67b2c7220b0 Fugang Duan 2020-04-19 980 if (pbss_desc->prsn_ie)
688b67b2c7220b0 Fugang Duan 2020-04-19 981 rsn_wpa_ie_tmp = pbss_desc->prsn_ie;
688b67b2c7220b0 Fugang Duan 2020-04-19 982 else if (pbss_desc->pwpa_ie)
688b67b2c7220b0 Fugang Duan 2020-04-19 983 rsn_wpa_ie_tmp = pbss_desc->pwpa_ie;
688b67b2c7220b0 Fugang Duan 2020-04-19 984 prsn_ie_tlv = (MrvlIEtypes_RsnParamSet_t *)pos;
6b4a83a75fc1dcc Fugang Duan 2020-05-28 985 pos += supplicantFormatRsnWpaTlv(
6b4a83a75fc1dcc Fugang Duan 2020-05-28 986 pmpriv->psapriv, rsn_wpa_ie_tmp, prsn_ie_tlv);
688b67b2c7220b0 Fugang Duan 2020-04-19 987 }
688b67b2c7220b0 Fugang Duan 2020-04-19 988 #endif
688b67b2c7220b0 Fugang Duan 2020-04-19 989 else if (pmpriv->sec_info.ewpa_enabled) {
688b67b2c7220b0 Fugang Duan 2020-04-19 990 prsn_ie_tlv = (MrvlIEtypes_RsnParamSet_t *)pos;
688b67b2c7220b0 Fugang Duan 2020-04-19 991 if (pbss_desc->pwpa_ie) {
688b67b2c7220b0 Fugang Duan 2020-04-19 992 prsn_ie_tlv->header.type =
6b4a83a75fc1dcc Fugang Duan 2020-05-28 993 (t_u16)(*(pbss_desc->pwpa_ie))
6b4a83a75fc1dcc Fugang Duan 2020-05-28 994 .vend_hdr.element_id;
688b67b2c7220b0 Fugang Duan 2020-04-19 995 prsn_ie_tlv->header.type =
688b67b2c7220b0 Fugang Duan 2020-04-19 996 prsn_ie_tlv->header.type & 0x00FF;
6b4a83a75fc1dcc Fugang Duan 2020-05-28 997 prsn_ie_tlv->header.type = wlan_cpu_to_le16(
6b4a83a75fc1dcc Fugang Duan 2020-05-28 998 prsn_ie_tlv->header.type);
688b67b2c7220b0 Fugang Duan 2020-04-19 999 prsn_ie_tlv->header.len =
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1000 (t_u16)(*(pbss_desc->pwpa_ie))
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1001 .vend_hdr.len;
688b67b2c7220b0 Fugang Duan 2020-04-19 1002 prsn_ie_tlv->header.len =
688b67b2c7220b0 Fugang Duan 2020-04-19 1003 prsn_ie_tlv->header.len & 0x00FF;
688b67b2c7220b0 Fugang Duan 2020-04-19 1004 if (prsn_ie_tlv->header.len <=
688b67b2c7220b0 Fugang Duan 2020-04-19 1005 (sizeof(pmpriv->wpa_ie))) {
688b67b2c7220b0 Fugang Duan 2020-04-19 1006 memcpy_ext(pmadapter,
688b67b2c7220b0 Fugang Duan 2020-04-19 1007 prsn_ie_tlv->rsn_ie,
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1008 &((*(pbss_desc->pwpa_ie))
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1009 .vend_hdr.oui[0]),
688b67b2c7220b0 Fugang Duan 2020-04-19 1010 prsn_ie_tlv->header.len,
688b67b2c7220b0 Fugang Duan 2020-04-19 1011 prsn_ie_tlv->header.len);
688b67b2c7220b0 Fugang Duan 2020-04-19 1012 } else {
688b67b2c7220b0 Fugang Duan 2020-04-19 1013 ret = MLAN_STATUS_FAILURE;
688b67b2c7220b0 Fugang Duan 2020-04-19 1014 goto done;
688b67b2c7220b0 Fugang Duan 2020-04-19 1015 }
688b67b2c7220b0 Fugang Duan 2020-04-19 1016
688b67b2c7220b0 Fugang Duan 2020-04-19 1017 HEXDUMP("ASSOC_CMD: RSN IE",
688b67b2c7220b0 Fugang Duan 2020-04-19 1018 (t_u8 *)prsn_ie_tlv,
688b67b2c7220b0 Fugang Duan 2020-04-19 1019 sizeof(prsn_ie_tlv->header) +
688b67b2c7220b0 Fugang Duan 2020-04-19 1020 prsn_ie_tlv->header.len);
688b67b2c7220b0 Fugang Duan 2020-04-19 1021 pos += sizeof(prsn_ie_tlv->header) +
688b67b2c7220b0 Fugang Duan 2020-04-19 1022 prsn_ie_tlv->header.len;
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1023 prsn_ie_tlv->header.len = wlan_cpu_to_le16(
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1024 prsn_ie_tlv->header.len);
688b67b2c7220b0 Fugang Duan 2020-04-19 1025 }
688b67b2c7220b0 Fugang Duan 2020-04-19 1026 if (pbss_desc->prsn_ie) {
688b67b2c7220b0 Fugang Duan 2020-04-19 1027 prsn_ie_tlv = (MrvlIEtypes_RsnParamSet_t *)pos;
688b67b2c7220b0 Fugang Duan 2020-04-19 1028 prsn_ie_tlv->header.type =
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1029 (t_u16)(*(pbss_desc->prsn_ie))
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1030 .ieee_hdr.element_id;
688b67b2c7220b0 Fugang Duan 2020-04-19 1031 prsn_ie_tlv->header.type =
688b67b2c7220b0 Fugang Duan 2020-04-19 1032 prsn_ie_tlv->header.type & 0x00FF;
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1033 prsn_ie_tlv->header.type = wlan_cpu_to_le16(
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1034 prsn_ie_tlv->header.type);
688b67b2c7220b0 Fugang Duan 2020-04-19 1035 prsn_ie_tlv->header.len =
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1036 (t_u16)(*(pbss_desc->prsn_ie))
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1037 .ieee_hdr.len;
688b67b2c7220b0 Fugang Duan 2020-04-19 1038 prsn_ie_tlv->header.len =
688b67b2c7220b0 Fugang Duan 2020-04-19 1039 prsn_ie_tlv->header.len & 0x00FF;
688b67b2c7220b0 Fugang Duan 2020-04-19 1040 if (prsn_ie_tlv->header.len <=
688b67b2c7220b0 Fugang Duan 2020-04-19 1041 (sizeof(pmpriv->wpa_ie))) {
688b67b2c7220b0 Fugang Duan 2020-04-19 1042 memcpy_ext(pmadapter,
688b67b2c7220b0 Fugang Duan 2020-04-19 1043 prsn_ie_tlv->rsn_ie,
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1044 &((*(pbss_desc->prsn_ie))
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1045 .data[0]),
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1046 prsn_ie_tlv->header.len,
688b67b2c7220b0 Fugang Duan 2020-04-19 1047 prsn_ie_tlv->header.len);
688b67b2c7220b0 Fugang Duan 2020-04-19 1048 ret = wlan_update_rsn_ie(pmpriv,
688b67b2c7220b0 Fugang Duan 2020-04-19 1049 prsn_ie_tlv);
688b67b2c7220b0 Fugang Duan 2020-04-19 1050 if (ret != MLAN_STATUS_SUCCESS) {
688b67b2c7220b0 Fugang Duan 2020-04-19 1051 goto done;
688b67b2c7220b0 Fugang Duan 2020-04-19 1052 }
688b67b2c7220b0 Fugang Duan 2020-04-19 1053 } else {
688b67b2c7220b0 Fugang Duan 2020-04-19 1054 ret = MLAN_STATUS_FAILURE;
688b67b2c7220b0 Fugang Duan 2020-04-19 1055 goto done;
688b67b2c7220b0 Fugang Duan 2020-04-19 1056 }
688b67b2c7220b0 Fugang Duan 2020-04-19 1057
688b67b2c7220b0 Fugang Duan 2020-04-19 1058 HEXDUMP("ASSOC_CMD: RSN IE",
688b67b2c7220b0 Fugang Duan 2020-04-19 1059 (t_u8 *)prsn_ie_tlv,
688b67b2c7220b0 Fugang Duan 2020-04-19 1060 sizeof(prsn_ie_tlv->header) +
688b67b2c7220b0 Fugang Duan 2020-04-19 1061 prsn_ie_tlv->header.len);
688b67b2c7220b0 Fugang Duan 2020-04-19 1062 pos += sizeof(prsn_ie_tlv->header) +
688b67b2c7220b0 Fugang Duan 2020-04-19 1063 prsn_ie_tlv->header.len;
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1064 prsn_ie_tlv->header.len = wlan_cpu_to_le16(
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1065 prsn_ie_tlv->header.len);
688b67b2c7220b0 Fugang Duan 2020-04-19 1066 }
688b67b2c7220b0 Fugang Duan 2020-04-19 1067 }
688b67b2c7220b0 Fugang Duan 2020-04-19 1068 }
688b67b2c7220b0 Fugang Duan 2020-04-19 1069
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1070 if (ISSUPP_11NENABLED(pmadapter->fw_cap_info) &&
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1071 (!pbss_desc->disable_11n) &&
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1072 wlan_11n_bandconfig_allowed(pmpriv, pbss_desc->bss_band))
688b67b2c7220b0 Fugang Duan 2020-04-19 1073 wlan_cmd_append_11n_tlv(pmpriv, pbss_desc, &pos);
688b67b2c7220b0 Fugang Duan 2020-04-19 1074 else if ((pmpriv->hotspot_cfg & HOTSPOT_ENABLED) &&
688b67b2c7220b0 Fugang Duan 2020-04-19 1075 !(pmpriv->hotspot_cfg & HOTSPOT_BY_SUPPLICANT))
688b67b2c7220b0 Fugang Duan 2020-04-19 1076 wlan_add_ext_capa_info_ie(pmpriv, pbss_desc, &pos);
688b67b2c7220b0 Fugang Duan 2020-04-19 1077 if (pmpriv->adapter->ecsa_enable) {
688b67b2c7220b0 Fugang Duan 2020-04-19 1078 oper_class_flag =
688b67b2c7220b0 Fugang Duan 2020-04-19 1079 wlan_find_ie(pmpriv->gen_ie_buf, pmpriv->gen_ie_buf_len,
688b67b2c7220b0 Fugang Duan 2020-04-19 1080 REGULATORY_CLASS);
688b67b2c7220b0 Fugang Duan 2020-04-19 1081 if (!oper_class_flag) {
688b67b2c7220b0 Fugang Duan 2020-04-19 1082 if (MLAN_STATUS_SUCCESS ==
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1083 wlan_get_curr_oper_class(
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1084 pmpriv,
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1085 pbss_desc->phy_param_set.ds_param_set
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1086 .current_chan,
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1087 pbss_desc->curr_bandwidth, &oper_class))
688b67b2c7220b0 Fugang Duan 2020-04-19 1088 wlan_add_supported_oper_class_ie(pmpriv, &pos,
688b67b2c7220b0 Fugang Duan 2020-04-19 1089 oper_class);
688b67b2c7220b0 Fugang Duan 2020-04-19 1090 }
688b67b2c7220b0 Fugang Duan 2020-04-19 1091 }
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1092 if (ISSUPP_11ACENABLED(pmadapter->fw_cap_info) &&
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1093 (!pbss_desc->disable_11n) &&
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1094 wlan_11ac_bandconfig_allowed(pmpriv, pbss_desc->bss_band))
688b67b2c7220b0 Fugang Duan 2020-04-19 1095 wlan_cmd_append_11ac_tlv(pmpriv, pbss_desc, &pos);
688b67b2c7220b0 Fugang Duan 2020-04-19 1096
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1097 if ((IS_FW_SUPPORT_11AX(pmadapter)) && (!pbss_desc->disable_11n) &&
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1098 wlan_11ax_bandconfig_allowed(pmpriv, pbss_desc->bss_band))
688b67b2c7220b0 Fugang Duan 2020-04-19 1099 wlan_cmd_append_11ax_tlv(pmpriv, pbss_desc, &pos);
688b67b2c7220b0 Fugang Duan 2020-04-19 1100
688b67b2c7220b0 Fugang Duan 2020-04-19 1101 wlan_wmm_process_association_req(pmpriv, &pos, &pbss_desc->wmm_ie,
688b67b2c7220b0 Fugang Duan 2020-04-19 1102 pbss_desc->pht_cap);
688b67b2c7220b0 Fugang Duan 2020-04-19 1103 if (pmpriv->sec_info.wapi_enabled && pmpriv->wapi_ie_len)
688b67b2c7220b0 Fugang Duan 2020-04-19 1104 wlan_cmd_append_wapi_ie(pmpriv, &pos);
688b67b2c7220b0 Fugang Duan 2020-04-19 1105
688b67b2c7220b0 Fugang Duan 2020-04-19 1106 if (pmpriv->sec_info.osen_enabled && pmpriv->osen_ie_len)
688b67b2c7220b0 Fugang Duan 2020-04-19 1107 wlan_cmd_append_osen_ie(pmpriv, &pos);
688b67b2c7220b0 Fugang Duan 2020-04-19 1108
688b67b2c7220b0 Fugang Duan 2020-04-19 1109 wlan_cmd_append_generic_ie(pmpriv, &pos);
688b67b2c7220b0 Fugang Duan 2020-04-19 1110
b2d3726eea4f606 Fugang Duan 2020-08-11 1111 if (pbss_desc->pmd_ie)
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1112 wlan_cmd_append_pass_through_ie(
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1113 pmpriv, (IEEEtypes_Generic_t *)pbss_desc->pmd_ie, &pos);
688b67b2c7220b0 Fugang Duan 2020-04-19 1114 wlan_cmd_append_tsf_tlv(pmpriv, &pos, pbss_desc);
688b67b2c7220b0 Fugang Duan 2020-04-19 1115
688b67b2c7220b0 Fugang Duan 2020-04-19 1116 if (pmpriv->curr_bss_params.host_mlme) {
688b67b2c7220b0 Fugang Duan 2020-04-19 1117 host_mlme_tlv = (MrvlIEtypes_HostMlme_t *)pos;
688b67b2c7220b0 Fugang Duan 2020-04-19 1118 host_mlme_tlv->header.type =
688b67b2c7220b0 Fugang Duan 2020-04-19 1119 wlan_cpu_to_le16(TLV_TYPE_HOST_MLME);
688b67b2c7220b0 Fugang Duan 2020-04-19 1120 host_mlme_tlv->header.len =
688b67b2c7220b0 Fugang Duan 2020-04-19 1121 wlan_cpu_to_le16(sizeof(host_mlme_tlv->host_mlme));
688b67b2c7220b0 Fugang Duan 2020-04-19 1122 host_mlme_tlv->host_mlme = MTRUE;
688b67b2c7220b0 Fugang Duan 2020-04-19 1123 pos += sizeof(host_mlme_tlv->header) +
688b67b2c7220b0 Fugang Duan 2020-04-19 1124 host_mlme_tlv->header.len;
688b67b2c7220b0 Fugang Duan 2020-04-19 1125 }
688b67b2c7220b0 Fugang Duan 2020-04-19 1126
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1127 if (wlan_11d_create_dnld_countryinfo(pmpriv,
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1128 (t_u8)pbss_desc->bss_band)) {
688b67b2c7220b0 Fugang Duan 2020-04-19 1129 PRINTM(MERROR, "Dnld_countryinfo_11d failed\n");
688b67b2c7220b0 Fugang Duan 2020-04-19 1130 ret = MLAN_STATUS_FAILURE;
688b67b2c7220b0 Fugang Duan 2020-04-19 1131 goto done;
688b67b2c7220b0 Fugang Duan 2020-04-19 1132 }
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1133 if (wlan_11d_parse_dnld_countryinfo(pmpriv,
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1134 pmpriv->pattempted_bss_desc)) {
688b67b2c7220b0 Fugang Duan 2020-04-19 1135 ret = MLAN_STATUS_FAILURE;
688b67b2c7220b0 Fugang Duan 2020-04-19 1136 goto done;
688b67b2c7220b0 Fugang Duan 2020-04-19 1137 }
688b67b2c7220b0 Fugang Duan 2020-04-19 1138
688b67b2c7220b0 Fugang Duan 2020-04-19 1139 /*
688b67b2c7220b0 Fugang Duan 2020-04-19 1140 * Call 11h join API after capability bits are set so adhoc/infra 11h
688b67b2c7220b0 Fugang Duan 2020-04-19 1141 * behavior can be properly triggered. pos modified if data is appended
688b67b2c7220b0 Fugang Duan 2020-04-19 1142 */
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1143 wlan_11h_process_join(
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1144 pmpriv, &pos, &passo->cap_info, (t_u8)pbss_desc->bss_band,
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1145 pbss_desc->phy_param_set.ds_param_set.current_chan,
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1146 &pbss_desc->wlan_11h_bss_info);
688b67b2c7220b0 Fugang Duan 2020-04-19 1147
688b67b2c7220b0 Fugang Duan 2020-04-19 1148 cmd->size = wlan_cpu_to_le16((t_u16)(pos - (t_u8 *)passo) + S_DS_GEN);
688b67b2c7220b0 Fugang Duan 2020-04-19 1149
688b67b2c7220b0 Fugang Duan 2020-04-19 1150 /* Set the Capability info at last */
688b67b2c7220b0 Fugang Duan 2020-04-19 1151 memcpy_ext(pmadapter, &tmp_cap, &pbss_desc->cap_info,
688b67b2c7220b0 Fugang Duan 2020-04-19 1152 sizeof(passo->cap_info), sizeof(tmp_cap));
688b67b2c7220b0 Fugang Duan 2020-04-19 1153
688b67b2c7220b0 Fugang Duan 2020-04-19 1154 if (pmpriv->config_bands == BAND_B)
688b67b2c7220b0 Fugang Duan 2020-04-19 1155 SHORT_SLOT_TIME_DISABLED(tmp_cap);
688b67b2c7220b0 Fugang Duan 2020-04-19 1156
688b67b2c7220b0 Fugang Duan 2020-04-19 1157 tmp_cap &= CAPINFO_MASK;
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1158 PRINTM(MINFO, "ASSOC_CMD: tmp_cap=%4X CAPINFO_MASK=%4lX\n", tmp_cap,
6b4a83a75fc1dcc Fugang Duan 2020-05-28 1159 CAPINFO_MASK);
688b67b2c7220b0 Fugang Duan 2020-04-19 1160 tmp_cap = wlan_cpu_to_le16(tmp_cap);
688b67b2c7220b0 Fugang Duan 2020-04-19 1161 memcpy_ext(pmadapter, &passo->cap_info, &tmp_cap, sizeof(tmp_cap),
688b67b2c7220b0 Fugang Duan 2020-04-19 1162 sizeof(passo->cap_info));
688b67b2c7220b0 Fugang Duan 2020-04-19 1163
688b67b2c7220b0 Fugang Duan 2020-04-19 1164 done:
688b67b2c7220b0 Fugang Duan 2020-04-19 1165 LEAVE();
688b67b2c7220b0 Fugang Duan 2020-04-19 1166 return ret;
688b67b2c7220b0 Fugang Duan 2020-04-19 1167 }
688b67b2c7220b0 Fugang Duan 2020-04-19 1168
:::::: The code at line 814 was first introduced by commit
:::::: 688b67b2c7220b01521ffe560da7eee33042c7bd MLK-23806-01 net: wireless: nxp: mxm_wifiex: add initial MxM wifi driver
:::::: TO: Fugang Duan <fugang.duan(a)nxp.com>
:::::: CC: Fugang Duan <fugang.duan(a)nxp.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[linux-next:master 1105/9522] include/linux/swiotlb.h:172:57: warning: unused parameter 'dev'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 86ed57fd8c93fdfaabb4f58e78455180fa7d8a84
commit: f4111e39a52aa5d5136d890bbd1aa87c1c8fe3bc [1105/9522] swiotlb: Add restricted DMA alloc/free support
config: i386-randconfig-a016-20210820 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d9c5613e856cf2addfbf892fc4c1ce9ef9feceaa)
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/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 f4111e39a52aa5d5136d890bbd1aa87c1c8fe3bc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386
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 >>):
static inline int mpol_misplaced(struct page *page, struct vm_area_struct *vma,
^
include/linux/mempolicy.h:282:20: warning: unused parameter 'address' [-Wunused-parameter]
unsigned long address)
^
include/linux/mempolicy.h:287:61: warning: unused parameter 'task' [-Wunused-parameter]
static inline void mpol_put_task_policy(struct task_struct *task)
^
include/linux/mempolicy.h:291:57: warning: unused parameter 'gfp' [-Wunused-parameter]
static inline nodemask_t *policy_nodemask_current(gfp_t gfp)
^
In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7:
In file included from drivers/gpu/drm/i915/i915_drv.h:59:
In file included from include/drm/drm_atomic.h:31:
In file included from include/drm/drm_crtc.h:40:
include/drm/drm_modes.h:470:63: warning: unused parameter 'np' [-Wunused-parameter]
static inline int of_get_drm_display_mode(struct device_node *np,
^
include/drm/drm_modes.h:471:33: warning: unused parameter 'dmode' [-Wunused-parameter]
struct drm_display_mode *dmode,
^
include/drm/drm_modes.h:472:13: warning: unused parameter 'bus_flags' [-Wunused-parameter]
u32 *bus_flags, int index)
^
include/drm/drm_modes.h:472:28: warning: unused parameter 'index' [-Wunused-parameter]
u32 *bus_flags, int index)
^
In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7:
In file included from drivers/gpu/drm/i915/i915_drv.h:62:
In file included from include/drm/ttm/ttm_device.h:30:
include/drm/ttm/ttm_resource.h:229:16: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
for (i = 0; i < TTM_MAX_BO_PRIORITY; i++)
~ ^ ~~~~~~~~~~~~~~~~~~~
In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7:
In file included from drivers/gpu/drm/i915/i915_drv.h:74:
In file included from drivers/gpu/drm/i915/display/intel_frontbuffer.h:30:
In file included from drivers/gpu/drm/i915/gem/i915_gem_object_types.h:16:
In file included from drivers/gpu/drm/i915/i915_active.h:13:
In file included from drivers/gpu/drm/i915/i915_request.h:34:
In file included from drivers/gpu/drm/i915/gem/i915_gem_context_types.h:20:
In file included from drivers/gpu/drm/i915/gt/intel_context_types.h:17:
In file included from drivers/gpu/drm/i915/gt/intel_engine_types.h:23:
drivers/gpu/drm/i915/i915_selftest.h:115:55: warning: unused parameter 'pdev' [-Wunused-parameter]
static inline int i915_live_selftests(struct pci_dev *pdev) { return 0; }
^
drivers/gpu/drm/i915/i915_selftest.h:116:55: warning: unused parameter 'pdev' [-Wunused-parameter]
static inline int i915_perf_selftests(struct pci_dev *pdev) { return 0; }
^
In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7:
In file included from drivers/gpu/drm/i915/i915_drv.h:74:
In file included from drivers/gpu/drm/i915/display/intel_frontbuffer.h:30:
In file included from drivers/gpu/drm/i915/gem/i915_gem_object_types.h:16:
In file included from drivers/gpu/drm/i915/i915_active.h:13:
In file included from drivers/gpu/drm/i915/i915_request.h:34:
In file included from drivers/gpu/drm/i915/gem/i915_gem_context_types.h:23:
drivers/gpu/drm/i915/i915_sw_fence.h:62:61: warning: unused parameter 'fence' [-Wunused-parameter]
static inline void i915_sw_fence_fini(struct i915_sw_fence *fence) {}
^
In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7:
In file included from drivers/gpu/drm/i915/i915_drv.h:77:
In file included from drivers/gpu/drm/i915/display/intel_opregion.h:29:
include/linux/pci.h:1567:58: warning: unused parameter 'd' [-Wunused-parameter]
static inline int pci_irqd_intx_xlate(struct irq_domain *d,
^
include/linux/pci.h:1568:31: warning: unused parameter 'node' [-Wunused-parameter]
struct device_node *node,
^
include/linux/pci.h:1570:24: warning: unused parameter 'intsize' [-Wunused-parameter]
unsigned int intsize,
^
include/linux/pci.h:1572:25: warning: unused parameter 'out_type' [-Wunused-parameter]
unsigned int *out_type)
^
In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7:
In file included from drivers/gpu/drm/i915/i915_drv.h:77:
In file included from drivers/gpu/drm/i915/display/intel_opregion.h:29:
In file included from include/linux/pci.h:1840:
In file included from arch/x86/include/asm/pci.h:109:
include/asm-generic/pci.h:11:58: warning: unused parameter 'dev' [-Wunused-parameter]
static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
^
In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7:
In file included from drivers/gpu/drm/i915/i915_drv.h:77:
In file included from drivers/gpu/drm/i915/display/intel_opregion.h:29:
include/linux/pci.h:2364:47: warning: unused parameter 'bus' [-Wunused-parameter]
pci_host_bridge_of_msi_domain(struct pci_bus *bus) { return NULL; }
^
include/linux/pci.h:2365:59: warning: unused parameter 'dev' [-Wunused-parameter]
static inline bool pci_host_of_has_msi_map(struct device *dev) { return false; }
^
In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7:
In file included from drivers/gpu/drm/i915/i915_drv.h:84:
In file included from drivers/gpu/drm/i915/gt/intel_engine.h:17:
In file included from drivers/gpu/drm/i915/gt/intel_gt_types.h:18:
In file included from drivers/gpu/drm/i915/gt/uc/intel_uc.h:9:
In file included from drivers/gpu/drm/i915/gt/uc/intel_guc.h:17:
In file included from drivers/gpu/drm/i915/i915_vma.h:34:
In file included from drivers/gpu/drm/i915/gem/i915_gem_object.h:16:
In file included from drivers/gpu/drm/i915/i915_gem_gtt.h:15:
In file included from drivers/gpu/drm/i915/i915_scatterlist.h:12:
>> include/linux/swiotlb.h:172:57: warning: unused parameter 'dev' [-Wunused-parameter]
static inline struct page *swiotlb_alloc(struct device *dev, size_t size)
^
>> include/linux/swiotlb.h:172:69: warning: unused parameter 'size' [-Wunused-parameter]
static inline struct page *swiotlb_alloc(struct device *dev, size_t size)
^
include/linux/swiotlb.h:176:48: warning: unused parameter 'dev' [-Wunused-parameter]
static inline bool swiotlb_free(struct device *dev, struct page *page,
^
>> include/linux/swiotlb.h:176:66: warning: unused parameter 'page' [-Wunused-parameter]
static inline bool swiotlb_free(struct device *dev, struct page *page,
^
include/linux/swiotlb.h:177:12: warning: unused parameter 'size' [-Wunused-parameter]
size_t size)
^
include/linux/swiotlb.h:181:56: warning: unused parameter 'dev' [-Wunused-parameter]
static inline bool is_swiotlb_for_alloc(struct device *dev)
^
In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7:
In file included from drivers/gpu/drm/i915/i915_drv.h:84:
In file included from drivers/gpu/drm/i915/gt/intel_engine.h:17:
In file included from drivers/gpu/drm/i915/gt/intel_gt_types.h:18:
In file included from drivers/gpu/drm/i915/gt/uc/intel_uc.h:9:
drivers/gpu/drm/i915/gt/uc/intel_guc.h:109:59: warning: unused parameter 'guc' [-Wunused-parameter]
static inline u32 intel_guc_ggtt_offset(struct intel_guc *guc,
^
In file included from drivers/gpu/drm/i915/gt/gen8_engine_cs.c:7:
In file included from drivers/gpu/drm/i915/i915_drv.h:84:
In file included from drivers/gpu/drm/i915/gt/intel_engine.h:17:
In file included from drivers/gpu/drm/i915/gt/intel_gt_types.h:18:
In file included from drivers/gpu/drm/i915/gt/uc/intel_uc.h:10:
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.h:24:72: warning: unused parameter 'guc' [-Wunused-parameter]
static inline bool intel_guc_submission_is_supported(struct intel_guc *guc)
^
drivers/gpu/drm/i915/gt/gen8_engine_cs.c:399:25: warning: unused parameter 'len' [-Wunused-parameter]
u64 offset, u32 len,
^
1645 warnings generated.
--
include/linux/sched/topology.h:211:37: warning: unused parameter 'dattr_new' [-Wunused-parameter]
struct sched_domain_attr *dattr_new)
^
include/linux/sched/topology.h:216:29: warning: unused parameter 'ndoms_new' [-Wunused-parameter]
partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[],
^
include/linux/sched/topology.h:216:54: warning: unused parameter 'doms_new' [-Wunused-parameter]
partition_sched_domains(int ndoms_new, cpumask_var_t doms_new[],
^
include/linux/sched/topology.h:217:30: warning: unused parameter 'dattr_new' [-Wunused-parameter]
struct sched_domain_attr *dattr_new)
^
include/linux/sched/topology.h:221:41: warning: unused parameter 'this_cpu' [-Wunused-parameter]
static inline bool cpus_share_cache(int this_cpu, int that_cpu)
^
include/linux/sched/topology.h:221:55: warning: unused parameter 'that_cpu' [-Wunused-parameter]
static inline bool cpus_share_cache(int this_cpu, int that_cpu)
^
include/linux/sched/topology.h:248:43: warning: unused parameter 'cpu' [-Wunused-parameter]
unsigned long arch_scale_cpu_capacity(int cpu)
^
include/linux/sched/topology.h:256:47: warning: unused parameter 'cpu' [-Wunused-parameter]
unsigned long arch_scale_thermal_pressure(int cpu)
^
include/linux/sched/topology.h:264:54: warning: unused parameter 'cpus' [-Wunused-parameter]
void arch_set_thermal_pressure(const struct cpumask *cpus,
^
include/linux/sched/topology.h:265:25: warning: unused parameter 'th_pressure' [-Wunused-parameter]
unsigned long th_pressure)
^
In file included from drivers/gpu/drm/i915/gt/gen8_ppgtt.c:11:
In file included from drivers/gpu/drm/i915/i915_scatterlist.h:12:
In file included from include/linux/swiotlb.h:5:
In file included from include/linux/device.h:16:
include/linux/energy_model.h:203:48: warning: unused parameter 'dev' [-Wunused-parameter]
int em_dev_register_perf_domain(struct device *dev, unsigned int nr_states,
^
include/linux/energy_model.h:203:66: warning: unused parameter 'nr_states' [-Wunused-parameter]
int em_dev_register_perf_domain(struct device *dev, unsigned int nr_states,
^
include/linux/energy_model.h:204:30: warning: unused parameter 'cb' [-Wunused-parameter]
struct em_data_callback *cb, cpumask_t *span,
^
include/linux/energy_model.h:204:45: warning: unused parameter 'span' [-Wunused-parameter]
struct em_data_callback *cb, cpumask_t *span,
^
include/linux/energy_model.h:205:10: warning: unused parameter 'milliwatts' [-Wunused-parameter]
bool milliwatts)
^
include/linux/energy_model.h:209:65: warning: unused parameter 'dev' [-Wunused-parameter]
static inline void em_dev_unregister_perf_domain(struct device *dev)
^
include/linux/energy_model.h:212:53: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline struct em_perf_domain *em_cpu_get(int cpu)
^
include/linux/energy_model.h:216:63: warning: unused parameter 'dev' [-Wunused-parameter]
static inline struct em_perf_domain *em_pd_get(struct device *dev)
^
include/linux/energy_model.h:220:66: warning: unused parameter 'pd' [-Wunused-parameter]
static inline unsigned long em_cpu_energy(struct em_perf_domain *pd,
^
include/linux/energy_model.h:221:18: warning: unused parameter 'max_util' [-Wunused-parameter]
unsigned long max_util, unsigned long sum_util,
^
include/linux/energy_model.h:221:42: warning: unused parameter 'sum_util' [-Wunused-parameter]
unsigned long max_util, unsigned long sum_util,
^
include/linux/energy_model.h:222:18: warning: unused parameter 'allowed_cpu_cap' [-Wunused-parameter]
unsigned long allowed_cpu_cap)
^
include/linux/energy_model.h:226:63: warning: unused parameter 'pd' [-Wunused-parameter]
static inline int em_pd_nr_perf_states(struct em_perf_domain *pd)
^
In file included from drivers/gpu/drm/i915/gt/gen8_ppgtt.c:11:
In file included from drivers/gpu/drm/i915/i915_scatterlist.h:12:
In file included from include/linux/swiotlb.h:5:
In file included from include/linux/device.h:25:
include/linux/pm.h:30:57: warning: unused parameter 'dev' [-Wunused-parameter]
static inline void pm_vt_switch_required(struct device *dev, bool required)
^
include/linux/pm.h:30:67: warning: unused parameter 'required' [-Wunused-parameter]
static inline void pm_vt_switch_required(struct device *dev, bool required)
^
include/linux/pm.h:33:59: warning: unused parameter 'dev' [-Wunused-parameter]
static inline void pm_vt_switch_unregister(struct device *dev)
^
In file included from drivers/gpu/drm/i915/gt/gen8_ppgtt.c:11:
In file included from drivers/gpu/drm/i915/i915_scatterlist.h:12:
In file included from include/linux/swiotlb.h:5:
include/linux/device.h:657:46: warning: unused parameter 'dev' [-Wunused-parameter]
static inline int dev_to_node(struct device *dev)
^
include/linux/device.h:661:48: warning: unused parameter 'dev' [-Wunused-parameter]
static inline void set_dev_node(struct device *dev, int node)
^
include/linux/device.h:661:57: warning: unused parameter 'node' [-Wunused-parameter]
static inline void set_dev_node(struct device *dev, int node)
^
In file included from drivers/gpu/drm/i915/gt/gen8_ppgtt.c:11:
In file included from drivers/gpu/drm/i915/i915_scatterlist.h:12:
>> include/linux/swiotlb.h:172:57: warning: unused parameter 'dev' [-Wunused-parameter]
static inline struct page *swiotlb_alloc(struct device *dev, size_t size)
^
>> include/linux/swiotlb.h:172:69: warning: unused parameter 'size' [-Wunused-parameter]
static inline struct page *swiotlb_alloc(struct device *dev, size_t size)
^
include/linux/swiotlb.h:176:48: warning: unused parameter 'dev' [-Wunused-parameter]
static inline bool swiotlb_free(struct device *dev, struct page *page,
^
>> include/linux/swiotlb.h:176:66: warning: unused parameter 'page' [-Wunused-parameter]
static inline bool swiotlb_free(struct device *dev, struct page *page,
^
include/linux/swiotlb.h:177:12: warning: unused parameter 'size' [-Wunused-parameter]
size_t size)
^
include/linux/swiotlb.h:181:56: warning: unused parameter 'dev' [-Wunused-parameter]
static inline bool is_swiotlb_for_alloc(struct device *dev)
^
In file included from drivers/gpu/drm/i915/gt/gen8_ppgtt.c:11:
In file included from drivers/gpu/drm/i915/i915_scatterlist.h:14:
In file included from drivers/gpu/drm/i915/i915_gem.h:29:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:5:
include/linux/context_tracking_state.h:51:53: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline bool context_tracking_enabled_cpu(int cpu) { return false; }
^
In file included from drivers/gpu/drm/i915/gt/gen8_ppgtt.c:11:
In file included from drivers/gpu/drm/i915/i915_scatterlist.h:14:
In file included from drivers/gpu/drm/i915/i915_gem.h:29:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:10:
include/linux/vtime.h:28:57: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void vtime_user_enter(struct task_struct *tsk) { }
^
include/linux/vtime.h:29:56: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void vtime_user_exit(struct task_struct *tsk) { }
^
include/linux/vtime.h:30:58: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void vtime_guest_enter(struct task_struct *tsk) { }
^
include/linux/vtime.h:31:57: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void vtime_guest_exit(struct task_struct *tsk) { }
^
include/linux/vtime.h:32:56: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void vtime_init_idle(struct task_struct *tsk, int cpu) { }
^
include/linux/vtime.h:32:65: warning: unused parameter 'cpu' [-Wunused-parameter]
static inline void vtime_init_idle(struct task_struct *tsk, int cpu) { }
^
include/linux/vtime.h:41:58: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void vtime_account_irq(struct task_struct *tsk, unsigned int offset) { }
^
include/linux/vtime.h:41:76: warning: unused parameter 'offset' [-Wunused-parameter]
static inline void vtime_account_irq(struct task_struct *tsk, unsigned int offset) { }
^
include/linux/vtime.h:42:62: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void vtime_account_softirq(struct task_struct *tsk) { }
^
include/linux/vtime.h:43:62: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void vtime_account_hardirq(struct task_struct *tsk) { }
^
include/linux/vtime.h:44:52: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void vtime_flush(struct task_struct *tsk) { }
^
include/linux/vtime.h:117:58: warning: unused parameter 'prev' [-Wunused-parameter]
static inline void vtime_task_switch(struct task_struct *prev) { }
^
include/linux/vtime.h:135:60: warning: unused parameter 'tsk' [-Wunused-parameter]
static inline void irqtime_account_irq(struct task_struct *tsk, unsigned int offset) { }
^
include/linux/vtime.h:135:78: warning: unused parameter 'offset' [-Wunused-parameter]
static inline void irqtime_account_irq(struct task_struct *tsk, unsigned int offset) { }
^
In file included from drivers/gpu/drm/i915/gt/gen8_ppgtt.c:11:
In file included from drivers/gpu/drm/i915/i915_scatterlist.h:14:
In file included from drivers/gpu/drm/i915/i915_gem.h:29:
In file included from include/linux/interrupt.h:20:
In file included from arch/x86/include/asm/sections.h:7:
include/asm-generic/sections.h:70:53: warning: unused parameter 'addr' [-Wunused-parameter]
static inline int arch_is_kernel_text(unsigned long addr)
^
include/asm-generic/sections.h:77:53: warning: unused parameter 'addr' [-Wunused-parameter]
static inline int arch_is_kernel_data(unsigned long addr)
^
In file included from drivers/gpu/drm/i915/gt/gen8_ppgtt.c:11:
In file included from drivers/gpu/drm/i915/i915_scatterlist.h:14:
In file included from drivers/gpu/drm/i915/i915_gem.h:29:
include/linux/interrupt.h:346:49: warning: unused parameter 'irq' [-Wunused-parameter]
static inline int irq_set_affinity(unsigned int irq, const struct cpumask *m)
^
include/linux/interrupt.h:346:76: warning: unused parameter 'm' [-Wunused-parameter]
static inline int irq_set_affinity(unsigned int irq, const struct cpumask *m)
^
include/linux/interrupt.h:351:51: warning: unused parameter 'irq' [-Wunused-parameter]
static inline int irq_force_affinity(unsigned int irq, const struct cpumask *cpumask)
^
include/linux/interrupt.h:351:78: warning: unused parameter 'cpumask' [-Wunused-parameter]
static inline int irq_force_affinity(unsigned int irq, const struct cpumask *cpumask)
^
include/linux/interrupt.h:356:53: warning: unused parameter 'irq' [-Wunused-parameter]
static inline int irq_can_set_affinity(unsigned int irq)
^
include/linux/interrupt.h:361:52: warning: unused parameter 'irq' [-Wunused-parameter]
static inline int irq_select_affinity(unsigned int irq) { return 0; }
^
include/linux/interrupt.h:363:54: warning: unused parameter 'irq' [-Wunused-parameter]
static inline int irq_set_affinity_hint(unsigned int irq,
^
include/linux/interrupt.h:364:28: warning: unused parameter 'm' [-Wunused-parameter]
const struct cpumask *m)
..
vim +/dev +172 include/linux/swiotlb.h
166
167 static inline bool is_swiotlb_for_alloc(struct device *dev)
168 {
169 return dev->dma_io_tlb_mem->for_alloc;
170 }
171 #else
> 172 static inline struct page *swiotlb_alloc(struct device *dev, size_t size)
173 {
174 return NULL;
175 }
> 176 static inline bool swiotlb_free(struct device *dev, struct page *page,
177 size_t size)
178 {
179 return false;
180 }
181 static inline bool is_swiotlb_for_alloc(struct device *dev)
182 {
183 return false;
184 }
185 #endif /* CONFIG_DMA_RESTRICTED_POOL */
186
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month