Re: [PATCH v2 mptcp-next 5/8] mptcp: faster active backup recovery
by Dan Carpenter
Hi Paolo,
url: https://github.com/0day-ci/linux/commits/Paolo-Abeni/mptcp-refactor-activ...
base: https://github.com/multipath-tcp/mptcp_net-next.git export
config: x86_64-randconfig-m001-20210713 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
New smatch warnings:
net/mptcp/pm_netlink.c:931 mptcp_pm_nl_subflow_chk_stale() error: uninitialized symbol 'push'.
vim +/push +931 net/mptcp/pm_netlink.c
bc57ec20ec19b4d Paolo Abeni 2021-07-13 904 void mptcp_pm_nl_subflow_chk_stale(const struct mptcp_sock *msk, struct sock *ssk)
bc57ec20ec19b4d Paolo Abeni 2021-07-13 905 {
bc57ec20ec19b4d Paolo Abeni 2021-07-13 906 struct mptcp_subflow_context *iter, *subflow = mptcp_subflow_ctx(ssk);
bc57ec20ec19b4d Paolo Abeni 2021-07-13 907 struct sock *sk = (struct sock *)msk;
bc57ec20ec19b4d Paolo Abeni 2021-07-13 908 unsigned int active_max_loss_cnt;
bc57ec20ec19b4d Paolo Abeni 2021-07-13 909 struct net *net = sock_net(sk);
bc57ec20ec19b4d Paolo Abeni 2021-07-13 910 unsigned int stale_loss_cnt;
bc57ec20ec19b4d Paolo Abeni 2021-07-13 911 bool slow, push;
bc57ec20ec19b4d Paolo Abeni 2021-07-13 912
bc57ec20ec19b4d Paolo Abeni 2021-07-13 913 stale_loss_cnt = mptcp_stale_loss_cnt(net);
bc57ec20ec19b4d Paolo Abeni 2021-07-13 914 if (subflow->stale || !stale_loss_cnt || subflow->stale_count <= stale_loss_cnt)
bc57ec20ec19b4d Paolo Abeni 2021-07-13 915 return;
bc57ec20ec19b4d Paolo Abeni 2021-07-13 916
bc57ec20ec19b4d Paolo Abeni 2021-07-13 917 /* look for another available subflow not in loss state */
bc57ec20ec19b4d Paolo Abeni 2021-07-13 918 active_max_loss_cnt = max_t(int, stale_loss_cnt - 1, 1);
bc57ec20ec19b4d Paolo Abeni 2021-07-13 919 mptcp_for_each_subflow(msk, iter) {
bc57ec20ec19b4d Paolo Abeni 2021-07-13 920 if (iter != subflow && mptcp_subflow_active(iter) &&
bc57ec20ec19b4d Paolo Abeni 2021-07-13 921 iter->stale_count < active_max_loss_cnt) {
bc57ec20ec19b4d Paolo Abeni 2021-07-13 922 /* we have some alteratives, try to mark this subflow as idle ...*/
bc57ec20ec19b4d Paolo Abeni 2021-07-13 923 slow = lock_sock_fast(ssk);
bc57ec20ec19b4d Paolo Abeni 2021-07-13 924 if (!tcp_rtx_and_write_queues_empty(ssk)) {
bc57ec20ec19b4d Paolo Abeni 2021-07-13 925 subflow->stale = 1;
bc57ec20ec19b4d Paolo Abeni 2021-07-13 926 push = __mptcp_retransmit_pending_data(sk);
bc57ec20ec19b4d Paolo Abeni 2021-07-13 927 }
"push" uninitialized on else path.
bc57ec20ec19b4d Paolo Abeni 2021-07-13 928 unlock_sock_fast(ssk, slow);
bc57ec20ec19b4d Paolo Abeni 2021-07-13 929
bc57ec20ec19b4d Paolo Abeni 2021-07-13 930 /* pending data on the idle subflow: retransmit */
bc57ec20ec19b4d Paolo Abeni 2021-07-13 @931 if (push)
bc57ec20ec19b4d Paolo Abeni 2021-07-13 932 __mptcp_push_pending(sk, 0);
bc57ec20ec19b4d Paolo Abeni 2021-07-13 933 return;
bc57ec20ec19b4d Paolo Abeni 2021-07-13 934 }
bc57ec20ec19b4d Paolo Abeni 2021-07-13 935 }
bc57ec20ec19b4d Paolo Abeni 2021-07-13 936 }
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [RFC] drm: return int error code from mode_fixup
by kernel test robot
Hi Grace,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next linus/master v5.14-rc1 next-20210714]
[cannot apply to drm/drm-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/Grace-An/drm-return-int-error-co...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: xtensa-randconfig-s031-20210713 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.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-341-g8af24329-dirty
# https://github.com/0day-ci/linux/commit/2f5324deb5c8ffa632b47e073c8f7c270...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Grace-An/drm-return-int-error-code-from-mode_fixup/20210714-154532
git checkout 2f5324deb5c8ffa632b47e073c8f7c27046d79a9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=xtensa
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 >>):
>> drivers/gpu/drm/exynos/exynos_drm_crtc.c:112:16: error: initialization of 'int (*)(struct drm_crtc *, const struct drm_display_mode *, struct drm_display_mode *)' from incompatible pointer type 'bool (*)(struct drm_crtc *, const struct drm_display_mode *, struct drm_display_mode *)' {aka '_Bool (*)(struct drm_crtc *, const struct drm_display_mode *, struct drm_display_mode *)'} [-Werror=incompatible-pointer-types]
112 | .mode_fixup = exynos_crtc_mode_fixup,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/exynos/exynos_drm_crtc.c:112:16: note: (near initialization for 'exynos_crtc_helper_funcs.mode_fixup')
cc1: some warnings being treated as errors
--
>> drivers/gpu/drm/vc4/vc4_dsi.c:1324:16: error: initialization of 'int (*)(struct drm_encoder *, const struct drm_display_mode *, struct drm_display_mode *)' from incompatible pointer type 'bool (*)(struct drm_encoder *, const struct drm_display_mode *, struct drm_display_mode *)' {aka '_Bool (*)(struct drm_encoder *, const struct drm_display_mode *, struct drm_display_mode *)'} [-Werror=incompatible-pointer-types]
1324 | .mode_fixup = vc4_dsi_encoder_mode_fixup,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/vc4/vc4_dsi.c:1324:16: note: (near initialization for 'vc4_dsi_encoder_helper_funcs.mode_fixup')
cc1: some warnings being treated as errors
--
>> drivers/gpu/drm/vc4/vc4_vec.c:501:16: error: initialization of 'int (*)(struct drm_encoder *, const struct drm_display_mode *, struct drm_display_mode *)' from incompatible pointer type 'bool (*)(struct drm_encoder *, const struct drm_display_mode *, struct drm_display_mode *)' {aka '_Bool (*)(struct drm_encoder *, const struct drm_display_mode *, struct drm_display_mode *)'} [-Werror=incompatible-pointer-types]
501 | .mode_fixup = vc4_vec_encoder_mode_fixup,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/vc4/vc4_vec.c:501:16: note: (near initialization for 'vc4_vec_encoder_helper_funcs.mode_fixup')
cc1: some warnings being treated as errors
vim +112 drivers/gpu/drm/exynos/exynos_drm_crtc.c
2466db97e39d54 Andrzej Hajda 2017-09-29 108
2466db97e39d54 Andrzej Hajda 2017-09-29 109
a392276d1dec63 Andrzej Hajda 2017-03-14 110 static const struct drm_crtc_helper_funcs exynos_crtc_helper_funcs = {
c3653fede57f30 Andrzej Hajda 2017-08-24 111 .mode_valid = exynos_crtc_mode_valid,
2466db97e39d54 Andrzej Hajda 2017-09-29 @112 .mode_fixup = exynos_crtc_mode_fixup,
a392276d1dec63 Andrzej Hajda 2017-03-14 113 .atomic_check = exynos_crtc_atomic_check,
a392276d1dec63 Andrzej Hajda 2017-03-14 114 .atomic_begin = exynos_crtc_atomic_begin,
a392276d1dec63 Andrzej Hajda 2017-03-14 115 .atomic_flush = exynos_crtc_atomic_flush,
0b20a0f8c3cb6f Laurent Pinchart 2017-06-30 116 .atomic_enable = exynos_drm_crtc_atomic_enable,
64581714b58bc3 Laurent Pinchart 2017-06-30 117 .atomic_disable = exynos_drm_crtc_atomic_disable,
a392276d1dec63 Andrzej Hajda 2017-03-14 118 };
a392276d1dec63 Andrzej Hajda 2017-03-14 119
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [RFC] drm: return int error code from mode_fixup
by kernel test robot
Hi Grace,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on drm-tip/drm-tip drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next linus/master v5.14-rc1 next-20210714]
[cannot apply to drm/drm-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/Grace-An/drm-return-int-error-co...
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: h8300-randconfig-r023-20210713 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.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/2f5324deb5c8ffa632b47e073c8f7c270...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Grace-An/drm-return-int-error-code-from-mode_fixup/20210714-154532
git checkout 2f5324deb5c8ffa632b47e073c8f7c27046d79a9
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross O=build_dir ARCH=h8300 SHELL=/bin/bash drivers/gpu/drm/
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/linux/err.h:5,
from drivers/gpu/drm/drm_bridge.c:24:
include/linux/scatterlist.h: In function 'sg_set_buf':
include/asm-generic/page.h:89:50: warning: ordered comparison of pointer with null pointer [-Wextra]
89 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/drm_bridge.c: In function 'drm_atomic_bridge_check':
>> drivers/gpu/drm/drm_bridge.c:744:11: error: 'ret' undeclared (first use in this function); did you mean 'net'?
744 | return ret;
| ^~~
| net
drivers/gpu/drm/drm_bridge.c:744:11: note: each undeclared identifier is reported only once for each function it appears in
--
In file included from include/linux/err.h:5,
from include/linux/clk.h:12,
from drivers/gpu/drm/rcar-du/rcar_lvds.c:10:
include/linux/scatterlist.h: In function 'sg_set_buf':
include/asm-generic/page.h:89:50: warning: ordered comparison of pointer with null pointer [-Wextra]
89 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/rcar-du/rcar_lvds.c: At top level:
>> drivers/gpu/drm/rcar-du/rcar_lvds.c:695:16: error: initialization of 'int (*)(struct drm_bridge *, const struct drm_display_mode *, struct drm_display_mode *)' from incompatible pointer type 'bool (*)(struct drm_bridge *, const struct drm_display_mode *, struct drm_display_mode *)' {aka '_Bool (*)(struct drm_bridge *, const struct drm_display_mode *, struct drm_display_mode *)'} [-Werror=incompatible-pointer-types]
695 | .mode_fixup = rcar_lvds_mode_fixup,
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/rcar-du/rcar_lvds.c:695:16: note: (near initialization for 'rcar_lvds_bridge_ops.mode_fixup')
cc1: some warnings being treated as errors
--
In file included from include/linux/kernel.h:11,
from include/linux/unaligned/packed_struct.h:4,
from include/asm-generic/unaligned.h:9,
from ./arch/h8300/include/generated/asm/unaligned.h:1,
from drivers/gpu/drm/bridge/sil-sii8620.c:9:
include/linux/scatterlist.h: In function 'sg_set_buf':
include/asm-generic/page.h:89:50: warning: ordered comparison of pointer with null pointer [-Wextra]
89 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/sil-sii8620.c: At top level:
>> drivers/gpu/drm/bridge/sil-sii8620.c:2283:16: error: initialization of 'int (*)(struct drm_bridge *, const struct drm_display_mode *, struct drm_display_mode *)' from incompatible pointer type 'bool (*)(struct drm_bridge *, const struct drm_display_mode *, struct drm_display_mode *)' {aka '_Bool (*)(struct drm_bridge *, const struct drm_display_mode *, struct drm_display_mode *)'} [-Werror=incompatible-pointer-types]
2283 | .mode_fixup = sii8620_mode_fixup,
| ^~~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/sil-sii8620.c:2283:16: note: (near initialization for 'sii8620_bridge_funcs.mode_fixup')
cc1: some warnings being treated as errors
--
In file included from include/linux/build_bug.h:5,
from include/linux/bits.h:22,
from drivers/gpu/drm/bridge/ti-sn65dsi83.c:28:
include/linux/scatterlist.h: In function 'sg_set_buf':
include/asm-generic/page.h:89:50: warning: ordered comparison of pointer with null pointer [-Wextra]
89 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/ti-sn65dsi83.c: At top level:
>> drivers/gpu/drm/bridge/ti-sn65dsi83.c:569:16: error: initialization of 'int (*)(struct drm_bridge *, const struct drm_display_mode *, struct drm_display_mode *)' from incompatible pointer type 'bool (*)(struct drm_bridge *, const struct drm_display_mode *, struct drm_display_mode *)' {aka '_Bool (*)(struct drm_bridge *, const struct drm_display_mode *, struct drm_display_mode *)'} [-Werror=incompatible-pointer-types]
569 | .mode_fixup = sn65dsi83_mode_fixup,
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/ti-sn65dsi83.c:569:16: note: (near initialization for 'sn65dsi83_funcs.mode_fixup')
cc1: some warnings being treated as errors
--
In file included from include/linux/err.h:5,
from include/linux/clk.h:12,
from drivers/gpu/drm/arm/display/komeda/komeda_crtc.c:7:
include/linux/scatterlist.h: In function 'sg_set_buf':
include/asm-generic/page.h:89:50: warning: ordered comparison of pointer with null pointer [-Wextra]
89 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/arm/display/komeda/komeda_crtc.c: At top level:
>> drivers/gpu/drm/arm/display/komeda/komeda_crtc.c:491:16: error: initialization of 'int (*)(struct drm_crtc *, const struct drm_display_mode *, struct drm_display_mode *)' from incompatible pointer type 'bool (*)(struct drm_crtc *, const struct drm_display_mode *, struct drm_display_mode *)' {aka '_Bool (*)(struct drm_crtc *, const struct drm_display_mode *, struct drm_display_mode *)'} [-Werror=incompatible-pointer-types]
491 | .mode_fixup = komeda_crtc_mode_fixup,
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/arm/display/komeda/komeda_crtc.c:491:16: note: (near initialization for 'komeda_crtc_helper_funcs.mode_fixup')
cc1: some warnings being treated as errors
--
In file included from include/linux/gcd.h:5,
from drivers/gpu/drm/bridge/analogix/anx7625.c:6:
include/linux/scatterlist.h: In function 'sg_set_buf':
include/asm-generic/page.h:89:50: warning: ordered comparison of pointer with null pointer [-Wextra]
89 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:137:2: note: in expansion of macro 'BUG_ON'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:137:10: note: in expansion of macro 'virt_addr_valid'
137 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/analogix/anx7625.c: At top level:
>> drivers/gpu/drm/bridge/analogix/anx7625.c:1607:16: error: initialization of 'int (*)(struct drm_bridge *, const struct drm_display_mode *, struct drm_display_mode *)' from incompatible pointer type 'bool (*)(struct drm_bridge *, const struct drm_display_mode *, struct drm_display_mode *)' {aka '_Bool (*)(struct drm_bridge *, const struct drm_display_mode *, struct drm_display_mode *)'} [-Werror=incompatible-pointer-types]
1607 | .mode_fixup = anx7625_bridge_mode_fixup,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/bridge/analogix/anx7625.c:1607:16: note: (near initialization for 'anx7625_bridge_funcs.mode_fixup')
cc1: some warnings being treated as errors
vim +744 drivers/gpu/drm/drm_bridge.c
723
724 static int drm_atomic_bridge_check(struct drm_bridge *bridge,
725 struct drm_crtc_state *crtc_state,
726 struct drm_connector_state *conn_state)
727 {
728 if (bridge->funcs->atomic_check) {
729 struct drm_bridge_state *bridge_state;
730 int ret;
731
732 bridge_state = drm_atomic_get_new_bridge_state(crtc_state->state,
733 bridge);
734 if (WARN_ON(!bridge_state))
735 return -EINVAL;
736
737 ret = bridge->funcs->atomic_check(bridge, bridge_state,
738 crtc_state, conn_state);
739 if (ret)
740 return ret;
741 } else if (bridge->funcs->mode_fixup) {
742 if (bridge->funcs->mode_fixup(bridge, &crtc_state->mode,
743 &crtc_state->adjusted_mode))
> 744 return ret;
745 }
746
747 return 0;
748 }
749
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[intel-linux-intel-lts:5.10/yocto 10619/10713] drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1357:26: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.10/yocto
head: ef103838a42864a54015a5381b418d55e1762cda
commit: 4a13d96daeb2f402d35b53c718b83609e65d4b3d [10619/10713] v4l: subdev: Add [GS]_ROUTING ioctls and operations
config: sparc-randconfig-s031-20210713 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.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-341-g8af24329-dirty
# https://github.com/intel/linux-intel-lts/commit/4a13d96daeb2f402d35b53c71...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.10/yocto
git checkout 4a13d96daeb2f402d35b53c718b83609e65d4b3d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sparc
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/media/v4l2-core/v4l2-compat-ioctl32.c:1355:20: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct v4l2_subdev_route *routes @@ got void [noderef] __user * @@
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1355:20: sparse: expected struct v4l2_subdev_route *routes
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1355:20: sparse: got void [noderef] __user *
>> drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1357:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const [noderef] __user *addr @@ got struct v4l2_subdev_route *routes @@
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1357:26: sparse: expected void const [noderef] __user *addr
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1357:26: sparse: got struct v4l2_subdev_route *routes
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1593:55: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct v4l2_subdev_routing *kp @@ got void [noderef] __user *[addressable] new_p64 @@
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1593:55: sparse: expected struct v4l2_subdev_routing *kp
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1593:55: sparse: got void [noderef] __user *[addressable] new_p64
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1764:55: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct v4l2_subdev_routing *kp @@ got void [noderef] __user *[addressable] new_p64 @@
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1764:55: sparse: expected struct v4l2_subdev_routing *kp
drivers/media/v4l2-core/v4l2-compat-ioctl32.c:1764:55: sparse: got void [noderef] __user *[addressable] new_p64
vim +1357 drivers/media/v4l2-core/v4l2-compat-ioctl32.c
1342
1343 static int get_v4l2_subdev_routing(struct v4l2_subdev_routing *kp,
1344 struct v4l2_subdev_routing32 __user *up)
1345 {
1346 compat_caddr_t p;
1347
1348 if (!access_ok(up, sizeof(*up)) ||
1349 get_user(p, &up->routes) ||
1350 get_user(kp->num_routes, &up->num_routes) ||
1351 !access_ok(up->reserved, sizeof(*up->reserved)) ||
1352 kp->num_routes > U32_MAX / sizeof(*kp->routes))
1353 return -EFAULT;
1354
1355 kp->routes = compat_ptr(p);
1356
> 1357 if (!access_ok(kp->routes,
1358 kp->num_routes * (u32)sizeof(*kp->routes)))
1359 return -EFAULT;
1360
1361 return 0;
1362 }
1363
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH v1 1/4] serial: 8250_pci: Refactor the loop in pci_ite887x_init()
by Dan Carpenter
Hi Andy,
url: https://github.com/0day-ci/linux/commits/Andy-Shevchenko/serial-8250_pci-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
config: x86_64-randconfig-m001-20210713 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
smatch warnings:
drivers/tty/serial/8250/8250_pci.c:927 pci_ite887x_init() error: buffer overflow 'inta_addr' 7 <= 7 (assuming for loop doesn't break)
vim +927 drivers/tty/serial/8250/8250_pci.c
97f2398f0f6a89 drivers/tty/serial/8250/8250_pci.c Andy Shevchenko 2021-07-13 901 static const short inta_addr[] = { 0x2a0, 0x2c0, 0x220, 0x240, 0x1e0, 0x200, 0x280, };
f79abb828e1d85 drivers/serial/8250_pci.c Ralf Baechle 2007-08-30 902 static int pci_ite887x_init(struct pci_dev *dev)
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 903 {
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 904 int ret, i, type;
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 905 struct resource *iobase = NULL;
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 906 u32 miscr, uartbar, ioport;
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 907
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 908 /* search for the base-ioport */
97f2398f0f6a89 drivers/tty/serial/8250/8250_pci.c Andy Shevchenko 2021-07-13 909 for (i = 0; i < ARRAY_SIZE(inta_addr); i++) {
^^^^^^^^^^^^^^^^^^^^^^^^^
97f2398f0f6a89 drivers/tty/serial/8250/8250_pci.c Andy Shevchenko 2021-07-13 910 iobase = request_region(inta_addr[i], ITE_887x_IOSIZE, "ite887x");
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 911 if (iobase != NULL) {
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 912 /* write POSIO0R - speed | size | ioport */
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 913 pci_write_config_dword(dev, ITE_887x_POSIO0,
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 914 ITE_887x_POSIO_ENABLE | ITE_887x_POSIO_SPEED |
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 915 ITE_887x_POSIO_IOSIZE_32 | inta_addr[i]);
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 916 /* write INTCBAR - ioport */
97f2398f0f6a89 drivers/tty/serial/8250/8250_pci.c Andy Shevchenko 2021-07-13 917 pci_write_config_dword(dev, ITE_887x_INTCBAR, inta_addr[i]);
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 918 ret = inb(inta_addr[i]);
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 919 if (ret != 0xff) {
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 920 /* ioport connected */
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 921 break;
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 922 }
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 923 release_region(iobase->start, ITE_887x_IOSIZE);
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 924 }
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 925 }
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 926
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 @927 if (!inta_addr[i]) {
Should this be changed to if (i == ARRAY_SIZE(inta_addr)) {?
af8c5b8debb046 drivers/tty/serial/8250/8250_pci.c Greg Kroah-Hartman 2013-09-28 928 dev_err(&dev->dev, "ite887x: could not find iobase\n");
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 929 return -ENODEV;
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 930 }
84f8c6fc0e3b6e drivers/serial/8250_pci.c Niels de Vos 2007-08-22 931
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH 2/3] mt76: mt7915: report tx rate directly from tx status
by kernel test robot
Hi Ryder,
I love your patch! Perhaps something to improve:
[auto build test WARNING on wireless-drivers-next/master]
[also build test WARNING on v5.14-rc1 next-20210714]
[cannot apply to wireless-drivers/master]
[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/Ryder-Lee/mt76-mt7915-take-RCU-r...
base: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-ne... master
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.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/787e54058191f647390d63f0f608de62a...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ryder-Lee/mt76-mt7915-take-RCU-read-lock-when-calling-ieee80211_bss_get_elem/20210714-133745
git checkout 787e54058191f647390d63f0f608de62a3d3a3e8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
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/net/wireless/mediatek/mt76/mt7915/mac.c: In function 'mt7915_mac_tx_free':
>> drivers/net/wireless/mediatek/mt76/mt7915/mac.c:1221:23: warning: variable 'phy' set but not used [-Wunused-but-set-variable]
1221 | struct mt7915_phy *phy;
| ^~~
drivers/net/wireless/mediatek/mt76/mt7915/mac.c:1213:6: warning: variable 'stat' set but not used [-Wunused-but-set-variable]
1213 | u8 stat;
| ^~~~
drivers/net/wireless/mediatek/mt76/mt7915/mac.c: In function 'mt7915_mac_add_txs_skb':
>> drivers/net/wireless/mediatek/mt76/mt7915/mac.c:1271:21: warning: variable 'msta' set but not used [-Wunused-but-set-variable]
1271 | struct mt7915_sta *msta;
| ^~~~
drivers/net/wireless/mediatek/mt76/mt7915/mac.c: In function 'mt7915_tx_complete_skb':
drivers/net/wireless/mediatek/mt76/mt7915/mac.c:1463:21: warning: variable 'dev' set but not used [-Wunused-but-set-variable]
1463 | struct mt7915_dev *dev;
| ^~~
vim +/phy +1221 drivers/net/wireless/mediatek/mt76/mt7915/mac.c
e57b7901469fc0 Ryder Lee 2020-04-25 1183
338330bd26b1fe Felix Fietkau 2021-05-07 1184 static void
338330bd26b1fe Felix Fietkau 2021-05-07 1185 mt7915_mac_tx_free(struct mt7915_dev *dev, struct sk_buff *skb)
e57b7901469fc0 Ryder Lee 2020-04-25 1186 {
e57b7901469fc0 Ryder Lee 2020-04-25 1187 struct mt7915_tx_free *free = (struct mt7915_tx_free *)skb->data;
e57b7901469fc0 Ryder Lee 2020-04-25 1188 struct mt76_dev *mdev = &dev->mt76;
4c430774e01b06 Lorenzo Bianconi 2020-11-13 1189 struct mt76_phy *mphy_ext = mdev->phy2;
e57b7901469fc0 Ryder Lee 2020-04-25 1190 struct mt76_txwi_cache *txwi;
e57b7901469fc0 Ryder Lee 2020-04-25 1191 struct ieee80211_sta *sta = NULL;
660915d052c606 Felix Fietkau 2020-09-01 1192 LIST_HEAD(free_list);
660915d052c606 Felix Fietkau 2020-09-01 1193 struct sk_buff *tmp;
e57b7901469fc0 Ryder Lee 2020-04-25 1194 u8 i, count;
5342758d5522db Felix Fietkau 2020-11-21 1195 bool wake = false;
e57b7901469fc0 Ryder Lee 2020-04-25 1196
f8a667a9af9198 Felix Fietkau 2020-08-22 1197 /* clean DMA queues and unmap buffers first */
91990519298e23 Lorenzo Bianconi 2020-11-11 1198 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_PSD], false);
91990519298e23 Lorenzo Bianconi 2020-11-11 1199 mt76_queue_tx_cleanup(dev, dev->mphy.q_tx[MT_TXQ_BE], false);
4c430774e01b06 Lorenzo Bianconi 2020-11-13 1200 if (mphy_ext) {
4c430774e01b06 Lorenzo Bianconi 2020-11-13 1201 mt76_queue_tx_cleanup(dev, mphy_ext->q_tx[MT_TXQ_PSD], false);
4c430774e01b06 Lorenzo Bianconi 2020-11-13 1202 mt76_queue_tx_cleanup(dev, mphy_ext->q_tx[MT_TXQ_BE], false);
4c430774e01b06 Lorenzo Bianconi 2020-11-13 1203 }
f8a667a9af9198 Felix Fietkau 2020-08-22 1204
e57b7901469fc0 Ryder Lee 2020-04-25 1205 /*
e57b7901469fc0 Ryder Lee 2020-04-25 1206 * TODO: MT_TX_FREE_LATENCY is msdu time from the TXD is queued into PLE,
e57b7901469fc0 Ryder Lee 2020-04-25 1207 * to the time ack is received or dropped by hw (air + hw queue time).
e57b7901469fc0 Ryder Lee 2020-04-25 1208 * Should avoid accessing WTBL to get Tx airtime, and use it instead.
e57b7901469fc0 Ryder Lee 2020-04-25 1209 */
e57b7901469fc0 Ryder Lee 2020-04-25 1210 count = FIELD_GET(MT_TX_FREE_MSDU_CNT, le16_to_cpu(free->ctrl));
e57b7901469fc0 Ryder Lee 2020-04-25 1211 for (i = 0; i < count; i++) {
e57b7901469fc0 Ryder Lee 2020-04-25 1212 u32 msdu, info = le32_to_cpu(free->info[i]);
e57b7901469fc0 Ryder Lee 2020-04-25 1213 u8 stat;
e57b7901469fc0 Ryder Lee 2020-04-25 1214
e57b7901469fc0 Ryder Lee 2020-04-25 1215 /*
e57b7901469fc0 Ryder Lee 2020-04-25 1216 * 1'b1: new wcid pair.
e57b7901469fc0 Ryder Lee 2020-04-25 1217 * 1'b0: msdu_id with the same 'wcid pair' as above.
e57b7901469fc0 Ryder Lee 2020-04-25 1218 */
e57b7901469fc0 Ryder Lee 2020-04-25 1219 if (info & MT_TX_FREE_PAIR) {
e57b7901469fc0 Ryder Lee 2020-04-25 1220 struct mt7915_sta *msta;
1daf2522fa1604 Felix Fietkau 2020-07-26 @1221 struct mt7915_phy *phy;
e57b7901469fc0 Ryder Lee 2020-04-25 1222 struct mt76_wcid *wcid;
e57b7901469fc0 Ryder Lee 2020-04-25 1223 u16 idx;
e57b7901469fc0 Ryder Lee 2020-04-25 1224
e57b7901469fc0 Ryder Lee 2020-04-25 1225 count++;
e57b7901469fc0 Ryder Lee 2020-04-25 1226 idx = FIELD_GET(MT_TX_FREE_WLAN_ID, info);
e57b7901469fc0 Ryder Lee 2020-04-25 1227 wcid = rcu_dereference(dev->mt76.wcid[idx]);
e57b7901469fc0 Ryder Lee 2020-04-25 1228 sta = wcid_to_sta(wcid);
e57b7901469fc0 Ryder Lee 2020-04-25 1229 if (!sta)
e57b7901469fc0 Ryder Lee 2020-04-25 1230 continue;
e57b7901469fc0 Ryder Lee 2020-04-25 1231
e57b7901469fc0 Ryder Lee 2020-04-25 1232 msta = container_of(wcid, struct mt7915_sta, wcid);
1daf2522fa1604 Felix Fietkau 2020-07-26 1233 phy = msta->vif->phy;
1daf2522fa1604 Felix Fietkau 2020-07-26 1234 spin_lock_bh(&dev->sta_poll_lock);
1daf2522fa1604 Felix Fietkau 2020-07-26 1235 if (list_empty(&msta->poll_list))
1daf2522fa1604 Felix Fietkau 2020-07-26 1236 list_add_tail(&msta->poll_list, &dev->sta_poll_list);
1daf2522fa1604 Felix Fietkau 2020-07-26 1237 spin_unlock_bh(&dev->sta_poll_lock);
6425791d350301 Felix Fietkau 2020-09-27 1238 continue;
e57b7901469fc0 Ryder Lee 2020-04-25 1239 }
e57b7901469fc0 Ryder Lee 2020-04-25 1240
e57b7901469fc0 Ryder Lee 2020-04-25 1241 msdu = FIELD_GET(MT_TX_FREE_MSDU_ID, info);
e57b7901469fc0 Ryder Lee 2020-04-25 1242 stat = FIELD_GET(MT_TX_FREE_STATUS, info);
e57b7901469fc0 Ryder Lee 2020-04-25 1243
d089692bc7938a Lorenzo Bianconi 2021-04-20 1244 txwi = mt76_token_release(mdev, msdu, &wake);
e57b7901469fc0 Ryder Lee 2020-04-25 1245 if (!txwi)
e57b7901469fc0 Ryder Lee 2020-04-25 1246 continue;
e57b7901469fc0 Ryder Lee 2020-04-25 1247
223fd4f8430810 Felix Fietkau 2021-05-07 1248 mt7915_txwi_free(dev, txwi, sta, &free_list);
e57b7901469fc0 Ryder Lee 2020-04-25 1249 }
0f1c443ca9cfa0 Felix Fietkau 2020-08-20 1250
0f1c443ca9cfa0 Felix Fietkau 2020-08-20 1251 mt7915_mac_sta_poll(dev);
5342758d5522db Felix Fietkau 2020-11-21 1252
d089692bc7938a Lorenzo Bianconi 2021-04-20 1253 if (wake)
d089692bc7938a Lorenzo Bianconi 2021-04-20 1254 mt76_set_tx_blocked(&dev->mt76, false);
5342758d5522db Felix Fietkau 2020-11-21 1255
781eef5b34c57d Felix Fietkau 2020-07-24 1256 mt76_worker_schedule(&dev->mt76.tx_worker);
660915d052c606 Felix Fietkau 2020-09-01 1257
660915d052c606 Felix Fietkau 2020-09-01 1258 napi_consume_skb(skb, 1);
660915d052c606 Felix Fietkau 2020-09-01 1259
660915d052c606 Felix Fietkau 2020-09-01 1260 list_for_each_entry_safe(skb, tmp, &free_list, list) {
660915d052c606 Felix Fietkau 2020-09-01 1261 skb_list_del_init(skb);
660915d052c606 Felix Fietkau 2020-09-01 1262 napi_consume_skb(skb, 1);
660915d052c606 Felix Fietkau 2020-09-01 1263 }
e57b7901469fc0 Ryder Lee 2020-04-25 1264 }
e57b7901469fc0 Ryder Lee 2020-04-25 1265
3de4cb1756565a Felix Fietkau 2021-05-07 1266 static bool
3de4cb1756565a Felix Fietkau 2021-05-07 1267 mt7915_mac_add_txs_skb(struct mt7915_dev *dev, struct mt76_wcid *wcid, int pid,
3de4cb1756565a Felix Fietkau 2021-05-07 1268 __le32 *txs_data)
3de4cb1756565a Felix Fietkau 2021-05-07 1269 {
787e54058191f6 Ryder Lee 2021-07-14 1270 struct ieee80211_supported_band *sband;
787e54058191f6 Ryder Lee 2021-07-14 @1271 struct mt7915_sta *msta;
3de4cb1756565a Felix Fietkau 2021-05-07 1272 struct mt76_dev *mdev = &dev->mt76;
787e54058191f6 Ryder Lee 2021-07-14 1273 struct mt76_phy *mphy;
3de4cb1756565a Felix Fietkau 2021-05-07 1274 struct ieee80211_tx_info *info;
3de4cb1756565a Felix Fietkau 2021-05-07 1275 struct sk_buff_head list;
787e54058191f6 Ryder Lee 2021-07-14 1276 struct rate_info rate = {};
3de4cb1756565a Felix Fietkau 2021-05-07 1277 struct sk_buff *skb;
787e54058191f6 Ryder Lee 2021-07-14 1278 bool cck = false;
787e54058191f6 Ryder Lee 2021-07-14 1279 u32 txrate, txs;
3de4cb1756565a Felix Fietkau 2021-05-07 1280
3de4cb1756565a Felix Fietkau 2021-05-07 1281 mt76_tx_status_lock(mdev, &list);
3de4cb1756565a Felix Fietkau 2021-05-07 1282 skb = mt76_tx_status_skb_get(mdev, wcid, pid, &list);
3de4cb1756565a Felix Fietkau 2021-05-07 1283 if (!skb)
3de4cb1756565a Felix Fietkau 2021-05-07 1284 goto out;
3de4cb1756565a Felix Fietkau 2021-05-07 1285
787e54058191f6 Ryder Lee 2021-07-14 1286 txs = le32_to_cpu(txs_data[0]);
787e54058191f6 Ryder Lee 2021-07-14 1287
3de4cb1756565a Felix Fietkau 2021-05-07 1288 info = IEEE80211_SKB_CB(skb);
787e54058191f6 Ryder Lee 2021-07-14 1289 if (!(txs & MT_TXS0_ACK_ERROR_MASK))
3de4cb1756565a Felix Fietkau 2021-05-07 1290 info->flags |= IEEE80211_TX_STAT_ACK;
3de4cb1756565a Felix Fietkau 2021-05-07 1291
3de4cb1756565a Felix Fietkau 2021-05-07 1292 info->status.ampdu_len = 1;
3de4cb1756565a Felix Fietkau 2021-05-07 1293 info->status.ampdu_ack_len = !!(info->flags &
3de4cb1756565a Felix Fietkau 2021-05-07 1294 IEEE80211_TX_STAT_ACK);
3de4cb1756565a Felix Fietkau 2021-05-07 1295
3de4cb1756565a Felix Fietkau 2021-05-07 1296 info->status.rates[0].idx = -1;
787e54058191f6 Ryder Lee 2021-07-14 1297
787e54058191f6 Ryder Lee 2021-07-14 1298 if (!wcid->sta)
787e54058191f6 Ryder Lee 2021-07-14 1299 goto out;
787e54058191f6 Ryder Lee 2021-07-14 1300
787e54058191f6 Ryder Lee 2021-07-14 1301 msta = container_of(wcid, struct mt7915_sta, wcid);
787e54058191f6 Ryder Lee 2021-07-14 1302 txrate = FIELD_GET(MT_TXS0_TX_RATE, txs);
787e54058191f6 Ryder Lee 2021-07-14 1303
787e54058191f6 Ryder Lee 2021-07-14 1304 rate.mcs = FIELD_GET(MT_TX_RATE_IDX, txrate);
787e54058191f6 Ryder Lee 2021-07-14 1305 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1;
787e54058191f6 Ryder Lee 2021-07-14 1306
787e54058191f6 Ryder Lee 2021-07-14 1307 switch (FIELD_GET(MT_TX_RATE_MODE, txrate)) {
787e54058191f6 Ryder Lee 2021-07-14 1308 case MT_PHY_TYPE_CCK:
787e54058191f6 Ryder Lee 2021-07-14 1309 cck = true;
787e54058191f6 Ryder Lee 2021-07-14 1310 fallthrough;
787e54058191f6 Ryder Lee 2021-07-14 1311 case MT_PHY_TYPE_OFDM:
787e54058191f6 Ryder Lee 2021-07-14 1312 mphy = &dev->mphy;
787e54058191f6 Ryder Lee 2021-07-14 1313 if (wcid->ext_phy && dev->mt76.phy2)
787e54058191f6 Ryder Lee 2021-07-14 1314 mphy = dev->mt76.phy2;
787e54058191f6 Ryder Lee 2021-07-14 1315
787e54058191f6 Ryder Lee 2021-07-14 1316 if (mphy->chandef.chan->band == NL80211_BAND_5GHZ)
787e54058191f6 Ryder Lee 2021-07-14 1317 sband = &mphy->sband_5g.sband;
787e54058191f6 Ryder Lee 2021-07-14 1318 else
787e54058191f6 Ryder Lee 2021-07-14 1319 sband = &mphy->sband_2g.sband;
787e54058191f6 Ryder Lee 2021-07-14 1320
787e54058191f6 Ryder Lee 2021-07-14 1321 rate.mcs = mt76_get_rate(mphy->dev, sband, rate.mcs, cck);
787e54058191f6 Ryder Lee 2021-07-14 1322 rate.legacy = sband->bitrates[rate.mcs].bitrate;
787e54058191f6 Ryder Lee 2021-07-14 1323 break;
787e54058191f6 Ryder Lee 2021-07-14 1324 case MT_PHY_TYPE_HT:
787e54058191f6 Ryder Lee 2021-07-14 1325 case MT_PHY_TYPE_HT_GF:
787e54058191f6 Ryder Lee 2021-07-14 1326 rate.mcs += (rate.nss - 1) * 8;
787e54058191f6 Ryder Lee 2021-07-14 1327 if (rate.mcs > 31)
787e54058191f6 Ryder Lee 2021-07-14 1328 goto out;
787e54058191f6 Ryder Lee 2021-07-14 1329
787e54058191f6 Ryder Lee 2021-07-14 1330 rate.flags = RATE_INFO_FLAGS_MCS;
787e54058191f6 Ryder Lee 2021-07-14 1331 if (wcid->rate.flags & RATE_INFO_FLAGS_SHORT_GI)
787e54058191f6 Ryder Lee 2021-07-14 1332 rate.flags |= RATE_INFO_FLAGS_SHORT_GI;
787e54058191f6 Ryder Lee 2021-07-14 1333 break;
787e54058191f6 Ryder Lee 2021-07-14 1334 case MT_PHY_TYPE_VHT:
787e54058191f6 Ryder Lee 2021-07-14 1335 if (rate.mcs > 9)
787e54058191f6 Ryder Lee 2021-07-14 1336 goto out;
787e54058191f6 Ryder Lee 2021-07-14 1337
787e54058191f6 Ryder Lee 2021-07-14 1338 rate.flags = RATE_INFO_FLAGS_VHT_MCS;
787e54058191f6 Ryder Lee 2021-07-14 1339 break;
787e54058191f6 Ryder Lee 2021-07-14 1340 case MT_PHY_TYPE_HE_SU:
787e54058191f6 Ryder Lee 2021-07-14 1341 case MT_PHY_TYPE_HE_EXT_SU:
787e54058191f6 Ryder Lee 2021-07-14 1342 case MT_PHY_TYPE_HE_TB:
787e54058191f6 Ryder Lee 2021-07-14 1343 case MT_PHY_TYPE_HE_MU:
787e54058191f6 Ryder Lee 2021-07-14 1344 if (rate.mcs > 11)
787e54058191f6 Ryder Lee 2021-07-14 1345 goto out;
787e54058191f6 Ryder Lee 2021-07-14 1346
787e54058191f6 Ryder Lee 2021-07-14 1347 rate.he_gi = wcid->rate.he_gi;
787e54058191f6 Ryder Lee 2021-07-14 1348 rate.he_dcm = FIELD_GET(MT_TX_RATE_DCM, txrate);
787e54058191f6 Ryder Lee 2021-07-14 1349 rate.flags = RATE_INFO_FLAGS_HE_MCS;
787e54058191f6 Ryder Lee 2021-07-14 1350 break;
787e54058191f6 Ryder Lee 2021-07-14 1351 default:
787e54058191f6 Ryder Lee 2021-07-14 1352 goto out;
787e54058191f6 Ryder Lee 2021-07-14 1353 }
787e54058191f6 Ryder Lee 2021-07-14 1354
787e54058191f6 Ryder Lee 2021-07-14 1355 switch (FIELD_GET(MT_TXS0_BW, txs)) {
787e54058191f6 Ryder Lee 2021-07-14 1356 case IEEE80211_STA_RX_BW_160:
787e54058191f6 Ryder Lee 2021-07-14 1357 rate.bw = RATE_INFO_BW_160;
787e54058191f6 Ryder Lee 2021-07-14 1358 break;
787e54058191f6 Ryder Lee 2021-07-14 1359 case IEEE80211_STA_RX_BW_80:
787e54058191f6 Ryder Lee 2021-07-14 1360 rate.bw = RATE_INFO_BW_80;
787e54058191f6 Ryder Lee 2021-07-14 1361 break;
787e54058191f6 Ryder Lee 2021-07-14 1362 case IEEE80211_STA_RX_BW_40:
787e54058191f6 Ryder Lee 2021-07-14 1363 rate.bw = RATE_INFO_BW_40;
787e54058191f6 Ryder Lee 2021-07-14 1364 break;
787e54058191f6 Ryder Lee 2021-07-14 1365 default:
787e54058191f6 Ryder Lee 2021-07-14 1366 rate.bw = RATE_INFO_BW_20;
787e54058191f6 Ryder Lee 2021-07-14 1367 break;
787e54058191f6 Ryder Lee 2021-07-14 1368 }
787e54058191f6 Ryder Lee 2021-07-14 1369 wcid->rate = rate;
3de4cb1756565a Felix Fietkau 2021-05-07 1370
3de4cb1756565a Felix Fietkau 2021-05-07 1371 out:
787e54058191f6 Ryder Lee 2021-07-14 1372 mt76_tx_status_skb_done(mdev, skb, &list);
3de4cb1756565a Felix Fietkau 2021-05-07 1373 mt76_tx_status_unlock(mdev, &list);
3de4cb1756565a Felix Fietkau 2021-05-07 1374
3de4cb1756565a Felix Fietkau 2021-05-07 1375 return !!skb;
3de4cb1756565a Felix Fietkau 2021-05-07 1376 }
3de4cb1756565a Felix Fietkau 2021-05-07 1377
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
arch/sh/kernel/cpu/sh3/serial-sh7720.c:16:32: sparse: sparse: incorrect type in argument 1 (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 40226a3d96ef8ab8980f032681c8bfd46d63874e
commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr()
date: 11 months ago
config: sh-randconfig-s032-20210713 (attached as .config)
compiler: sh4-linux-gcc (GCC) 9.3.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-341-g8af24329-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 e5fc436f06eef54ef512ea55a9db8eb9f2e76959
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sh
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/sh/kernel/cpu/sh3/serial-sh7720.c:16:32: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/kernel/cpu/sh3/serial-sh7720.c:16:32: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh3/serial-sh7720.c:16:32: sparse: got unsigned long
arch/sh/kernel/cpu/sh3/serial-sh7720.c:17:25: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/kernel/cpu/sh3/serial-sh7720.c:17:25: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh3/serial-sh7720.c:17:25: sparse: got unsigned long
arch/sh/kernel/cpu/sh3/serial-sh7720.c:20:32: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/kernel/cpu/sh3/serial-sh7720.c:20:32: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh3/serial-sh7720.c:20:32: sparse: got unsigned long
arch/sh/kernel/cpu/sh3/serial-sh7720.c:21:25: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/kernel/cpu/sh3/serial-sh7720.c:21:25: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh3/serial-sh7720.c:21:25: sparse: got unsigned long
arch/sh/kernel/cpu/sh3/serial-sh7720.c:26:32: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/kernel/cpu/sh3/serial-sh7720.c:26:32: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh3/serial-sh7720.c:26:32: sparse: got unsigned long
arch/sh/kernel/cpu/sh3/serial-sh7720.c:27:25: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/kernel/cpu/sh3/serial-sh7720.c:27:25: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh3/serial-sh7720.c:27:25: sparse: got unsigned long
arch/sh/kernel/cpu/sh3/serial-sh7720.c:30:32: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/kernel/cpu/sh3/serial-sh7720.c:30:32: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh3/serial-sh7720.c:30:32: sparse: got unsigned long
arch/sh/kernel/cpu/sh3/serial-sh7720.c:31:25: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/kernel/cpu/sh3/serial-sh7720.c:31:25: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/kernel/cpu/sh3/serial-sh7720.c:31:25: sparse: got unsigned long
--
>> arch/sh/drivers/dma/dma-sh.c:111:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/drivers/dma/dma-sh.c:111:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/drivers/dma/dma-sh.c:111:16: sparse: got unsigned long
arch/sh/drivers/dma/dma-sh.c:117:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/drivers/dma/dma-sh.c:117:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/drivers/dma/dma-sh.c:117:9: sparse: got unsigned long
arch/sh/drivers/dma/dma-sh.c:151:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/drivers/dma/dma-sh.c:151:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/drivers/dma/dma-sh.c:151:9: sparse: got unsigned long
arch/sh/drivers/dma/dma-sh.c:162:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/drivers/dma/dma-sh.c:162:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/drivers/dma/dma-sh.c:162:16: sparse: got unsigned long
arch/sh/drivers/dma/dma-sh.c:168:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/drivers/dma/dma-sh.c:168:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/drivers/dma/dma-sh.c:168:9: sparse: got unsigned long
arch/sh/drivers/dma/dma-sh.c:186:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/drivers/dma/dma-sh.c:186:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/drivers/dma/dma-sh.c:186:16: sparse: got unsigned long
arch/sh/drivers/dma/dma-sh.c:188:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/drivers/dma/dma-sh.c:188:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/drivers/dma/dma-sh.c:188:9: sparse: got unsigned long
arch/sh/drivers/dma/dma-sh.c:219:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/drivers/dma/dma-sh.c:219:17: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/drivers/dma/dma-sh.c:219:17: sparse: got unsigned long
arch/sh/drivers/dma/dma-sh.c:222:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/drivers/dma/dma-sh.c:222:17: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/drivers/dma/dma-sh.c:222:17: sparse: got unsigned long
arch/sh/drivers/dma/dma-sh.c:224:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/drivers/dma/dma-sh.c:224:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/drivers/dma/dma-sh.c:224:9: sparse: got unsigned long
arch/sh/drivers/dma/dma-sh.c:234:15: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/drivers/dma/dma-sh.c:234:15: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/drivers/dma/dma-sh.c:234:15: sparse: got unsigned long
arch/sh/drivers/dma/dma-sh.c:237:16: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/drivers/dma/dma-sh.c:237:16: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/drivers/dma/dma-sh.c:237:16: sparse: got unsigned long
arch/sh/drivers/dma/dma-sh.c:93:20: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/drivers/dma/dma-sh.c:93:20: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/drivers/dma/dma-sh.c:93:20: sparse: got unsigned long
arch/sh/drivers/dma/dma-sh.c:93:20: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/drivers/dma/dma-sh.c:93:20: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/drivers/dma/dma-sh.c:93:20: sparse: got unsigned long
arch/sh/drivers/dma/dma-sh.c:262:31: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/drivers/dma/dma-sh.c:262:31: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/drivers/dma/dma-sh.c:262:31: sparse: got unsigned long
arch/sh/drivers/dma/dma-sh.c:266:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/drivers/dma/dma-sh.c:266:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/drivers/dma/dma-sh.c:266:9: sparse: got unsigned long
arch/sh/drivers/dma/dma-sh.c:269:9: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/drivers/dma/dma-sh.c:269:9: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/drivers/dma/dma-sh.c:269:9: sparse: got unsigned long
arch/sh/drivers/dma/dma-sh.c:272:14: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected void const volatile [noderef] __iomem *ptr @@ got unsigned long @@
arch/sh/drivers/dma/dma-sh.c:272:14: sparse: expected void const volatile [noderef] __iomem *ptr
arch/sh/drivers/dma/dma-sh.c:272:14: sparse: got unsigned long
vim +16 arch/sh/kernel/cpu/sh3/serial-sh7720.c
61a6976bf19a6c Paul Mundt 2011-06-14 7
61a6976bf19a6c Paul Mundt 2011-06-14 8 static void sh7720_sci_init_pins(struct uart_port *port, unsigned int cflag)
61a6976bf19a6c Paul Mundt 2011-06-14 9 {
61a6976bf19a6c Paul Mundt 2011-06-14 10 unsigned short data;
61a6976bf19a6c Paul Mundt 2011-06-14 11
61a6976bf19a6c Paul Mundt 2011-06-14 12 if (cflag & CRTSCTS) {
61a6976bf19a6c Paul Mundt 2011-06-14 13 /* enable RTS/CTS */
61a6976bf19a6c Paul Mundt 2011-06-14 14 if (port->mapbase == 0xa4430000) { /* SCIF0 */
61a6976bf19a6c Paul Mundt 2011-06-14 15 /* Clear PTCR bit 9-2; enable all scif pins but sck */
61a6976bf19a6c Paul Mundt 2011-06-14 @16 data = __raw_readw(PORT_PTCR);
61a6976bf19a6c Paul Mundt 2011-06-14 17 __raw_writew((data & 0xfc03), PORT_PTCR);
61a6976bf19a6c Paul Mundt 2011-06-14 18 } else if (port->mapbase == 0xa4438000) { /* SCIF1 */
61a6976bf19a6c Paul Mundt 2011-06-14 19 /* Clear PVCR bit 9-2 */
61a6976bf19a6c Paul Mundt 2011-06-14 20 data = __raw_readw(PORT_PVCR);
61a6976bf19a6c Paul Mundt 2011-06-14 21 __raw_writew((data & 0xfc03), PORT_PVCR);
61a6976bf19a6c Paul Mundt 2011-06-14 22 }
61a6976bf19a6c Paul Mundt 2011-06-14 23 } else {
61a6976bf19a6c Paul Mundt 2011-06-14 24 if (port->mapbase == 0xa4430000) { /* SCIF0 */
61a6976bf19a6c Paul Mundt 2011-06-14 25 /* Clear PTCR bit 5-2; enable only tx and rx */
61a6976bf19a6c Paul Mundt 2011-06-14 26 data = __raw_readw(PORT_PTCR);
61a6976bf19a6c Paul Mundt 2011-06-14 27 __raw_writew((data & 0xffc3), PORT_PTCR);
61a6976bf19a6c Paul Mundt 2011-06-14 28 } else if (port->mapbase == 0xa4438000) { /* SCIF1 */
61a6976bf19a6c Paul Mundt 2011-06-14 29 /* Clear PVCR bit 5-2 */
61a6976bf19a6c Paul Mundt 2011-06-14 30 data = __raw_readw(PORT_PVCR);
61a6976bf19a6c Paul Mundt 2011-06-14 31 __raw_writew((data & 0xffc3), PORT_PVCR);
61a6976bf19a6c Paul Mundt 2011-06-14 32 }
61a6976bf19a6c Paul Mundt 2011-06-14 33 }
61a6976bf19a6c Paul Mundt 2011-06-14 34 }
61a6976bf19a6c Paul Mundt 2011-06-14 35
:::::: The code at line 16 was first introduced by commit
:::::: 61a6976bf19a6cf5dfcf37c3536665b316f22d49 serial: sh-sci: Abstract register maps.
:::::: TO: Paul Mundt <lethal(a)linux-sh.org>
:::::: CC: Paul Mundt <lethal(a)linux-sh.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH bpf-next 1/2] tools/lib/bpf: bpf_program__insns allow to retrieve insns in libbpf
by kernel test robot
Hi Lorenzo,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on bpf-next/master]
url: https://github.com/0day-ci/linux/commits/Lorenzo-Fontana/tools-lib-bpf-bp...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: x86_64-rhel-8.3-kselftests (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/999d9928ec3dd02a08da121d137739268...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Lorenzo-Fontana/tools-lib-bpf-bpf_program__insns-allow-to-retrieve-insns-in-libbpf/20210714-023628
git checkout 999d9928ec3dd02a08da121d1377392681c84e51
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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 >>):
Warning: Kernel ABI header at 'tools/include/uapi/linux/bpf.h' differs from latest version at 'include/uapi/linux/bpf.h'
Warning: Kernel ABI header at 'tools/include/uapi/linux/netlink.h' differs from latest version at 'include/uapi/linux/netlink.h'
Warning: Kernel ABI header at 'tools/include/uapi/linux/if_link.h' differs from latest version at 'include/uapi/linux/if_link.h'
In file included from netlink.c:9:
usr/include/linux/if_ether.h:169:1: warning: packed attribute is unnecessary for 'ethhdr' [-Wpacked]
169 | } __attribute__((packed));
| ^
In file included from tools/include/uapi/linux/ethtool.h:19,
from xsk.c:18:
usr/include/linux/if_ether.h:169:1: warning: packed attribute is unnecessary for 'ethhdr' [-Wpacked]
169 | } __attribute__((packed));
| ^
In file included from tools/include/uapi/linux/ethtool.h:19,
from xsk.c:18:
usr/include/linux/if_ether.h:169:1: warning: packed attribute is unnecessary for 'ethhdr' [-Wpacked]
169 | } __attribute__((packed));
| ^
In file included from netlink.c:9:
usr/include/linux/if_ether.h:169:1: warning: packed attribute is unnecessary for 'ethhdr' [-Wpacked]
169 | } __attribute__((packed));
| ^
>> Warning: Num of global symbols in /tools/build/libbpf/sharedobjs/libbpf-in.o (319) does NOT match with num of versioned symbols in /tools/build/libbpf/libbpf.so (318). Please make sure all LIBBPF_API symbols are versioned in libbpf.map.
make[2]: *** [Makefile:186: check_abi] Error 1
make[2]: Target 'all_cmd' not remade because of errors.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months