Re: [PATCH net-next 1/2] flow_dissector: Parse multiple MPLS Label Stack Entries
by kbuild test robot
Hi Guillaume,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
[also build test ERROR on net/master sparc-next/master linus/master v5.7-rc6 next-20200519]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Guillaume-Nault/flow_dissector-c...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 4f65e2f483b6f764c15094d14dd53dda048a4048
config: alpha-allyesconfig (attached as .config)
compiler: alpha-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/build_bug.h:5,
from include/linux/bitfield.h:10,
from drivers/net/ethernet/netronome/nfp/flower/match.c:4:
drivers/net/ethernet/netronome/nfp/flower/match.c: In function 'nfp_flower_compile_mac':
>> drivers/net/ethernet/netronome/nfp/flower/match.c:100:57: error: 'struct flow_dissector_key_mpls' has no member named 'mpls_label'
100 | t_mpls = FIELD_PREP(NFP_FLOWER_MASK_MPLS_LB, match.key->mpls_label) |
| ^~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) | ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? | ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK'
94 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); | ^~~~~~~~~~~~~~~~
drivers/net/ethernet/netronome/nfp/flower/match.c:100:12: note: in expansion of macro 'FIELD_PREP'
100 | t_mpls = FIELD_PREP(NFP_FLOWER_MASK_MPLS_LB, match.key->mpls_label) |
| ^~~~~~~~~~
>> drivers/net/ethernet/netronome/nfp/flower/match.c:100:57: error: 'struct flow_dissector_key_mpls' has no member named 'mpls_label'
100 | t_mpls = FIELD_PREP(NFP_FLOWER_MASK_MPLS_LB, match.key->mpls_label) |
| ^~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) | ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? | ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK'
94 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); | ^~~~~~~~~~~~~~~~
drivers/net/ethernet/netronome/nfp/flower/match.c:100:12: note: in expansion of macro 'FIELD_PREP'
100 | t_mpls = FIELD_PREP(NFP_FLOWER_MASK_MPLS_LB, match.key->mpls_label) |
| ^~~~~~~~~~
In file included from drivers/net/ethernet/netronome/nfp/flower/match.c:4:
>> drivers/net/ethernet/netronome/nfp/flower/match.c:100:57: error: 'struct flow_dissector_key_mpls' has no member named 'mpls_label'
100 | t_mpls = FIELD_PREP(NFP_FLOWER_MASK_MPLS_LB, match.key->mpls_label) |
| ^~
include/linux/bitfield.h:95:20: note: in definition of macro 'FIELD_PREP'
95 | ((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask); | ^~~~
In file included from include/linux/build_bug.h:5,
from include/linux/bitfield.h:10,
from drivers/net/ethernet/netronome/nfp/flower/match.c:4:
>> drivers/net/ethernet/netronome/nfp/flower/match.c:101:50: error: 'struct flow_dissector_key_mpls' has no member named 'mpls_tc'
101 | FIELD_PREP(NFP_FLOWER_MASK_MPLS_TC, match.key->mpls_tc) |
| ^~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) | ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? | ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK'
94 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); | ^~~~~~~~~~~~~~~~
drivers/net/ethernet/netronome/nfp/flower/match.c:101:5: note: in expansion of macro 'FIELD_PREP'
101 | FIELD_PREP(NFP_FLOWER_MASK_MPLS_TC, match.key->mpls_tc) |
| ^~~~~~~~~~
>> drivers/net/ethernet/netronome/nfp/flower/match.c:101:50: error: 'struct flow_dissector_key_mpls' has no member named 'mpls_tc'
101 | FIELD_PREP(NFP_FLOWER_MASK_MPLS_TC, match.key->mpls_tc) |
| ^~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) | ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? | ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK'
94 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); | ^~~~~~~~~~~~~~~~
drivers/net/ethernet/netronome/nfp/flower/match.c:101:5: note: in expansion of macro 'FIELD_PREP'
101 | FIELD_PREP(NFP_FLOWER_MASK_MPLS_TC, match.key->mpls_tc) |
| ^~~~~~~~~~
In file included from drivers/net/ethernet/netronome/nfp/flower/match.c:4:
>> drivers/net/ethernet/netronome/nfp/flower/match.c:101:50: error: 'struct flow_dissector_key_mpls' has no member named 'mpls_tc'
101 | FIELD_PREP(NFP_FLOWER_MASK_MPLS_TC, match.key->mpls_tc) |
| ^~
include/linux/bitfield.h:95:20: note: in definition of macro 'FIELD_PREP'
95 | ((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask); | ^~~~
In file included from include/linux/build_bug.h:5,
from include/linux/bitfield.h:10,
from drivers/net/ethernet/netronome/nfp/flower/match.c:4:
>> drivers/net/ethernet/netronome/nfp/flower/match.c:102:51: error: 'struct flow_dissector_key_mpls' has no member named 'mpls_bos'
102 | FIELD_PREP(NFP_FLOWER_MASK_MPLS_BOS, match.key->mpls_bos) |
| ^~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) | ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? | ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK'
94 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); | ^~~~~~~~~~~~~~~~
drivers/net/ethernet/netronome/nfp/flower/match.c:102:5: note: in expansion of macro 'FIELD_PREP'
102 | FIELD_PREP(NFP_FLOWER_MASK_MPLS_BOS, match.key->mpls_bos) |
| ^~~~~~~~~~
>> drivers/net/ethernet/netronome/nfp/flower/match.c:102:51: error: 'struct flow_dissector_key_mpls' has no member named 'mpls_bos'
102 | FIELD_PREP(NFP_FLOWER_MASK_MPLS_BOS, match.key->mpls_bos) |
| ^~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) | ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? | ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK'
94 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); | ^~~~~~~~~~~~~~~~
drivers/net/ethernet/netronome/nfp/flower/match.c:102:5: note: in expansion of macro 'FIELD_PREP'
102 | FIELD_PREP(NFP_FLOWER_MASK_MPLS_BOS, match.key->mpls_bos) |
| ^~~~~~~~~~
In file included from drivers/net/ethernet/netronome/nfp/flower/match.c:4:
>> drivers/net/ethernet/netronome/nfp/flower/match.c:102:51: error: 'struct flow_dissector_key_mpls' has no member named 'mpls_bos'
102 | FIELD_PREP(NFP_FLOWER_MASK_MPLS_BOS, match.key->mpls_bos) |
| ^~
include/linux/bitfield.h:95:20: note: in definition of macro 'FIELD_PREP'
95 | ((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask); | ^~~~
In file included from include/linux/build_bug.h:5,
from include/linux/bitfield.h:10,
from drivers/net/ethernet/netronome/nfp/flower/match.c:4:
drivers/net/ethernet/netronome/nfp/flower/match.c:105:58: error: 'struct flow_dissector_key_mpls' has no member named 'mpls_label'
105 | t_mpls = FIELD_PREP(NFP_FLOWER_MASK_MPLS_LB, match.mask->mpls_label) |
| ^~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) | ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? | ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK'
94 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); | ^~~~~~~~~~~~~~~~
drivers/net/ethernet/netronome/nfp/flower/match.c:105:12: note: in expansion of macro 'FIELD_PREP'
105 | t_mpls = FIELD_PREP(NFP_FLOWER_MASK_MPLS_LB, match.mask->mpls_label) |
| ^~~~~~~~~~
drivers/net/ethernet/netronome/nfp/flower/match.c:105:58: error: 'struct flow_dissector_key_mpls' has no member named 'mpls_label'
105 | t_mpls = FIELD_PREP(NFP_FLOWER_MASK_MPLS_LB, match.mask->mpls_label) |
| ^~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) | ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? | ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK'
94 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); | ^~~~~~~~~~~~~~~~
drivers/net/ethernet/netronome/nfp/flower/match.c:105:12: note: in expansion of macro 'FIELD_PREP'
105 | t_mpls = FIELD_PREP(NFP_FLOWER_MASK_MPLS_LB, match.mask->mpls_label) |
| ^~~~~~~~~~
In file included from drivers/net/ethernet/netronome/nfp/flower/match.c:4:
drivers/net/ethernet/netronome/nfp/flower/match.c:105:58: error: 'struct flow_dissector_key_mpls' has no member named 'mpls_label'
105 | t_mpls = FIELD_PREP(NFP_FLOWER_MASK_MPLS_LB, match.mask->mpls_label) |
| ^~
include/linux/bitfield.h:95:20: note: in definition of macro 'FIELD_PREP'
95 | ((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask); | ^~~~
In file included from include/linux/build_bug.h:5,
from include/linux/bitfield.h:10,
from drivers/net/ethernet/netronome/nfp/flower/match.c:4:
drivers/net/ethernet/netronome/nfp/flower/match.c:106:51: error: 'struct flow_dissector_key_mpls' has no member named 'mpls_tc'
106 | FIELD_PREP(NFP_FLOWER_MASK_MPLS_TC, match.mask->mpls_tc) |
| ^~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) | ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? | ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK'
94 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); | ^~~~~~~~~~~~~~~~
drivers/net/ethernet/netronome/nfp/flower/match.c:106:5: note: in expansion of macro 'FIELD_PREP'
106 | FIELD_PREP(NFP_FLOWER_MASK_MPLS_TC, match.mask->mpls_tc) |
| ^~~~~~~~~~
drivers/net/ethernet/netronome/nfp/flower/match.c:106:51: error: 'struct flow_dissector_key_mpls' has no member named 'mpls_tc'
106 | FIELD_PREP(NFP_FLOWER_MASK_MPLS_TC, match.mask->mpls_tc) |
| ^~
include/linux/compiler.h:330:9: note: in definition of macro '__compiletime_assert'
330 | if (!(condition)) | ^~~~~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
350 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
49 | BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? | ^~~~~~~~~~~~~~~~
include/linux/bitfield.h:94:3: note: in expansion of macro '__BF_FIELD_CHECK'
94 | __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); | ^~~~~~~~~~~~~~~~
drivers/net/ethernet/netronome/nfp/flower/match.c:106:5: note: in expansion of macro 'FIELD_PREP'
vim +100 drivers/net/ethernet/netronome/nfp/flower/match.c
5571e8c9f2419c Pieter Jansen van Vuuren 2017-06-29 76
5571e8c9f2419c Pieter Jansen van Vuuren 2017-06-29 77 static void
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 78 nfp_flower_compile_mac(struct nfp_flower_mac_mpls *ext,
31c491e56ad1ad John Hurley 2019-12-17 79 struct nfp_flower_mac_mpls *msk, struct flow_rule *rule)
5571e8c9f2419c Pieter Jansen van Vuuren 2017-06-29 80 {
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 81 memset(ext, 0, sizeof(struct nfp_flower_mac_mpls));
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 82 memset(msk, 0, sizeof(struct nfp_flower_mac_mpls));
5571e8c9f2419c Pieter Jansen van Vuuren 2017-06-29 83
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 84 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_ETH_ADDRS)) {
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 85 struct flow_match_eth_addrs match;
5571e8c9f2419c Pieter Jansen van Vuuren 2017-06-29 86
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 87 flow_rule_match_eth_addrs(rule, &match);
5571e8c9f2419c Pieter Jansen van Vuuren 2017-06-29 88 /* Populate mac frame. */
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 89 ether_addr_copy(ext->mac_dst, &match.key->dst[0]);
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 90 ether_addr_copy(ext->mac_src, &match.key->src[0]);
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 91 ether_addr_copy(msk->mac_dst, &match.mask->dst[0]);
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 92 ether_addr_copy(msk->mac_src, &match.mask->src[0]);
a7cd39e0c7805a Pieter Jansen van Vuuren 2017-08-25 93 }
5571e8c9f2419c Pieter Jansen van Vuuren 2017-06-29 94
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 95 if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_MPLS)) {
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 96 struct flow_match_mpls match;
bb055c198d9b2b Pieter Jansen van Vuuren 2017-10-06 97 u32 t_mpls;
bb055c198d9b2b Pieter Jansen van Vuuren 2017-10-06 98
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 99 flow_rule_match_mpls(rule, &match);
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 @100 t_mpls = FIELD_PREP(NFP_FLOWER_MASK_MPLS_LB, match.key->mpls_label) |
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 @101 FIELD_PREP(NFP_FLOWER_MASK_MPLS_TC, match.key->mpls_tc) |
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 @102 FIELD_PREP(NFP_FLOWER_MASK_MPLS_BOS, match.key->mpls_bos) |
bb055c198d9b2b Pieter Jansen van Vuuren 2017-10-06 103 NFP_FLOWER_MASK_MPLS_Q;
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 104 ext->mpls_lse = cpu_to_be32(t_mpls);
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 105 t_mpls = FIELD_PREP(NFP_FLOWER_MASK_MPLS_LB, match.mask->mpls_label) |
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 106 FIELD_PREP(NFP_FLOWER_MASK_MPLS_TC, match.mask->mpls_tc) |
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 107 FIELD_PREP(NFP_FLOWER_MASK_MPLS_BOS, match.mask->mpls_bos) |
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 108 NFP_FLOWER_MASK_MPLS_Q;
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 109 msk->mpls_lse = cpu_to_be32(t_mpls);
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 110 } else if (flow_rule_match_key(rule, FLOW_DISSECTOR_KEY_BASIC)) {
a64119415ff248 Pieter Jansen van Vuuren 2018-06-25 111 /* Check for mpls ether type and set NFP_FLOWER_MASK_MPLS_Q
a64119415ff248 Pieter Jansen van Vuuren 2018-06-25 112 * bit, which indicates an mpls ether type but without any
a64119415ff248 Pieter Jansen van Vuuren 2018-06-25 113 * mpls fields.
a64119415ff248 Pieter Jansen van Vuuren 2018-06-25 114 */
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 115 struct flow_match_basic match;
a64119415ff248 Pieter Jansen van Vuuren 2018-06-25 116
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 117 flow_rule_match_basic(rule, &match);
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 118 if (match.key->n_proto == cpu_to_be16(ETH_P_MPLS_UC) ||
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 119 match.key->n_proto == cpu_to_be16(ETH_P_MPLS_MC)) {
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 120 ext->mpls_lse = cpu_to_be32(NFP_FLOWER_MASK_MPLS_Q);
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 121 msk->mpls_lse = cpu_to_be32(NFP_FLOWER_MASK_MPLS_Q);
8f2566225ae2d6 Pablo Neira Ayuso 2019-02-02 122 }
bb055c198d9b2b Pieter Jansen van Vuuren 2017-10-06 123 }
5571e8c9f2419c Pieter Jansen van Vuuren 2017-06-29 124 }
5571e8c9f2419c Pieter Jansen van Vuuren 2017-06-29 125
:::::: The code at line 100 was first introduced by commit
:::::: 8f2566225ae2d62d532bb1810ed74fa4bbc5bbdb flow_offload: add flow_rule and flow_match structures and use them
:::::: TO: Pablo Neira Ayuso <pablo(a)netfilter.org>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[arc:topic-zol-remove 31/50] include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git topic-zol-remove
head: 706f0ffb515d976d57112a19f9b11049d473848c
commit: 0f81f9cfa6066b6ada647ea1621509f05106f37a [31/50] ARC: cmpxchg/xchg: rewrite as macros to make type safe
config: arc-randconfig-s001-20200520 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-193-gb8fad4bc-dirty
git checkout 0f81f9cfa6066b6ada647ea1621509f05106f37a
# save the attached .config to linux build tree
make W=1 C=1 ARCH=arc CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
net/core/sock.c:1120:25: sparse: sparse: undefined identifier '__builtin_arc_sr'
include/linux/atomic-fallback.h:918:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
include/linux/atomic-fallback.h:957:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
--
include/linux/atomic-fallback.h:918:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
include/asm-generic/atomic-long.h:906:16: sparse: sparse: undefined identifier '__builtin_arc_sr'
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
include/linux/atomic-fallback.h:957:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
include/linux/atomic-fallback.h:957:13: sparse: sparse: not a function <noident>
include/linux/atomic-fallback.h:957:13: sparse: sparse: not a function <noident>
--
net/core/dev.c:3185:23: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted __wsum [usertype] csum @@ got [usertype] csum @@
net/core/dev.c:3185:23: sparse: expected restricted __wsum [usertype] csum
net/core/dev.c:3185:23: sparse: got unsigned int
net/core/dev.c:3185:23: sparse: sparse: cast from restricted __wsum
net/core/dev.c:3185:23: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted __wsum [usertype] csum @@ got [usertype] csum @@
net/core/dev.c:3185:23: sparse: expected restricted __wsum [usertype] csum
net/core/dev.c:3185:23: sparse: got unsigned int
net/core/dev.c:3185:23: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] val @@ got d int [usertype] val @@
net/core/dev.c:3185:23: sparse: expected unsigned int [usertype] val
net/core/dev.c:3185:23: sparse: got restricted __wsum
net/core/dev.c:3185:23: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted __wsum [usertype] csum @@ got [usertype] csum @@
net/core/dev.c:3185:23: sparse: expected restricted __wsum [usertype] csum
net/core/dev.c:3185:23: sparse: got unsigned int
net/core/dev.c:3185:23: sparse: sparse: cast from restricted __wsum
net/core/dev.c:3185:23: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted __wsum [usertype] csum @@ got [usertype] csum @@
net/core/dev.c:3185:23: sparse: expected restricted __wsum [usertype] csum
net/core/dev.c:3185:23: sparse: got unsigned int
net/core/dev.c:3185:23: sparse: sparse: cast from restricted __wsum
net/core/dev.c:3185:23: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted __wsum [usertype] csum @@ got [usertype] csum @@
net/core/dev.c:3185:23: sparse: expected restricted __wsum [usertype] csum
net/core/dev.c:3185:23: sparse: got unsigned int
net/core/dev.c:3185:23: sparse: sparse: cast from restricted __wsum
net/core/dev.c:3185:23: sparse: sparse: incorrect type in argument 4 (different base types) @@ expected restricted __wsum [usertype] csum @@ got [usertype] csum @@
net/core/dev.c:3185:23: sparse: expected restricted __wsum [usertype] csum
net/core/dev.c:3185:23: sparse: got unsigned int
net/core/dev.c:3185:23: sparse: sparse: cast from restricted __wsum
net/core/dev.c:6209:18: sparse: sparse: undefined identifier '__builtin_arc_sr'
net/core/dev.c:6279:18: sparse: sparse: undefined identifier '__builtin_arc_sr'
net/core/dev.c:6377:29: sparse: sparse: undefined identifier '__builtin_arc_sr'
include/linux/atomic-fallback.h:918:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
--
include/linux/atomic-fallback.h:918:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
--
net/netfilter/nf_conntrack_core.c:2310:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
net/netfilter/nf_conntrack_core.c:2310:9: sparse: void ( [noderef] <asn:4> * )( ... )
net/netfilter/nf_conntrack_core.c:2310:9: sparse: void ( * )( ... )
net/netfilter/nf_conntrack_core.c:2627:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
net/netfilter/nf_conntrack_core.c:2627:9: sparse: void ( [noderef] <asn:4> * )( ... )
net/netfilter/nf_conntrack_core.c:2627:9: sparse: void ( * )( ... )
net/netfilter/nf_conntrack_core.c:113:13: sparse: sparse: context imbalance in 'nf_conntrack_double_unlock' - unexpected unlock
net/netfilter/nf_conntrack_core.c:123:13: sparse: sparse: context imbalance in 'nf_conntrack_double_lock' - wrong count at exit
net/netfilter/nf_conntrack_core.c:153:9: sparse: sparse: context imbalance in 'nf_conntrack_all_lock' - wrong count at exit
net/netfilter/nf_conntrack_core.c:164:13: sparse: sparse: context imbalance in 'nf_conntrack_all_unlock' - unexpected unlock
include/linux/atomic-fallback.h:918:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
--
net/netfilter/nf_conntrack_netlink.c:1693:34: sparse: sparse: incompatible types in comparison expression (different address spaces):
net/netfilter/nf_conntrack_netlink.c:1693:34: sparse: struct nf_conntrack_helper [noderef] <asn:4> *
net/netfilter/nf_conntrack_netlink.c:1693:34: sparse: struct nf_conntrack_helper *
net/netfilter/nf_conntrack_netlink.c:3145:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected char const *cs @@ got char [noderechar const *cs @@
net/netfilter/nf_conntrack_netlink.c:3145:29: sparse: expected char const *cs
net/netfilter/nf_conntrack_netlink.c:3145:29: sparse: got char [noderef] <asn:4> *
include/linux/atomic-fallback.h:918:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
include/linux/atomic-fallback.h:957:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
include/linux/atomic-fallback.h:957:13: sparse: sparse: not a function <noident>
--
net/ipv4/route.c:496:27: sparse: sparse: undefined identifier '__builtin_arc_sr'
net/ipv4/route.c:503:18: sparse: sparse: undefined identifier '__builtin_arc_sr'
net/ipv4/route.c:783:46: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned int [usertype] key @@ got restrunsigned int [usertype] key @@
net/ipv4/route.c:783:46: sparse: expected unsigned int [usertype] key
net/ipv4/route.c:783:46: sparse: got restricted __be32 [usertype] new_gw
net/ipv4/route.c:1485:16: sparse: sparse: undefined identifier '__builtin_arc_sr'
net/ipv4/route.c:3020:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be16 [usertype] len @@ got [usertype] len @@
net/ipv4/route.c:3020:27: sparse: expected restricted __be16 [usertype] len
net/ipv4/route.c:3020:27: sparse: got unsigned int
include/net/route.h:366:48: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned int [usertype] key @@ got restrunsigned int [usertype] key @@
include/net/route.h:366:48: sparse: expected unsigned int [usertype] key
include/net/route.h:366:48: sparse: got restricted __be32 [usertype] daddr
include/net/route.h:366:48: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned int [usertype] key @@ got restrunsigned int [usertype] key @@
include/net/route.h:366:48: sparse: expected unsigned int [usertype] key
include/net/route.h:366:48: sparse: got restricted __be32 [usertype] daddr
include/linux/atomic-fallback.h:957:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
include/linux/atomic-fallback.h:957:13: sparse: sparse: not a function <noident>
include/linux/atomic-fallback.h:918:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
--
net/ipv4/tcp_ipv4.c:2681:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *data @@ got struct tcp_congestion_ops const [noderevoid const *data @@
net/ipv4/tcp_ipv4.c:2681:41: sparse: expected void const *data
net/ipv4/tcp_ipv4.c:2681:41: sparse: got struct tcp_congestion_ops const [noderef] <asn:4> *tcp_congestion_control
net/ipv4/tcp_ipv4.c:2789:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const *data @@ got struct tcp_congestion_ops const [noderef] <asn:4> *extern [addressable]void const *data @@
net/ipv4/tcp_ipv4.c:2789:45: sparse: expected void const *data
net/ipv4/tcp_ipv4.c:2789:45: sparse: got struct tcp_congestion_ops const [noderef] <asn:4> *extern [addressable] [toplevel] tcp_congestion_control
net/ipv4/tcp_ipv4.c:2793:50: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tcp_congestion_ops const [noderef] <asn:4> *tcp_congestion_control @@ got s const [noderef] <asn:4> *tcp_congestion_control @@
net/ipv4/tcp_ipv4.c:2793:50: sparse: expected struct tcp_congestion_ops const [noderef] <asn:4> *tcp_congestion_control
net/ipv4/tcp_ipv4.c:2793:50: sparse: got struct tcp_congestion_ops *
arch/arc/include/asm/checksum.h:27:22: sparse: sparse: restricted __wsum degrades to integer
arch/arc/include/asm/checksum.h:27:32: sparse: sparse: restricted __wsum degrades to integer
arch/arc/include/asm/checksum.h:29:11: sparse: sparse: bad assignment (-=) to restricted __wsum
arch/arc/include/asm/checksum.h:30:16: sparse: sparse: restricted __wsum degrades to integer
arch/arc/include/asm/checksum.h:30:18: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __sum16 @@ got cted __sum16 @@
arch/arc/include/asm/checksum.h:30:18: sparse: expected restricted __sum16
arch/arc/include/asm/checksum.h:30:18: sparse: got unsigned int
include/linux/atomic-fallback.h:918:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
--
>> net/ipv4/tcp_cong.c:228:24: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct tcp_congestion_ops const [noderef] <asn:4> *_val_ @@ got ngestion_ops const [noderef] <asn:4> *_val_ @@
>> net/ipv4/tcp_cong.c:228:24: sparse: expected struct tcp_congestion_ops const [noderef] <asn:4> *_val_
net/ipv4/tcp_cong.c:228:24: sparse: got struct tcp_congestion_ops *[assigned] ca
net/ipv4/tcp_cong.c:228:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct tcp_congestion_ops const *prev @@ got struct tcp_congestion_ops construct tcp_congestion_ops const *prev @@
net/ipv4/tcp_cong.c:228:22: sparse: expected struct tcp_congestion_ops const *prev
>> net/ipv4/tcp_cong.c:228:22: sparse: got struct tcp_congestion_ops const [noderef] <asn:4> *[assigned] _val_
--
include/linux/atomic-fallback.h:957:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
include/linux/atomic-fallback.h:918:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
include/linux/atomic-fallback.h:957:13: sparse: sparse: not a function <noident>
--
net/xfrm/xfrm_policy.c:1293:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct hlist_head *odst @@ got struct hlist_head struct hlist_head *odst @@
net/xfrm/xfrm_policy.c:1293:22: sparse: expected struct hlist_head *odst
net/xfrm/xfrm_policy.c:1293:22: sparse: got struct hlist_head [noderef] <asn:4> *table
net/xfrm/xfrm_policy.c:3952:43: sparse: sparse: incompatible types in comparison expression (different address spaces):
net/xfrm/xfrm_policy.c:3952:43: sparse: struct xfrm_policy_afinfo const [noderef] <asn:4> *
net/xfrm/xfrm_policy.c:3952:43: sparse: struct xfrm_policy_afinfo const *
net/xfrm/xfrm_policy.c:4042:29: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct hlist_head [noderef] <asn:4> *table @@ got [noderef] <asn:4> *table @@
net/xfrm/xfrm_policy.c:4042:29: sparse: expected struct hlist_head [noderef] <asn:4> *table
net/xfrm/xfrm_policy.c:4042:29: sparse: got struct hlist_head *
net/xfrm/xfrm_policy.c:4069:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct hlist_head *n @@ got struct hlist_head struct hlist_head *n @@
net/xfrm/xfrm_policy.c:4069:36: sparse: expected struct hlist_head *n
net/xfrm/xfrm_policy.c:4069:36: sparse: got struct hlist_head [noderef] <asn:4> *table
net/xfrm/xfrm_policy.c:4097:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct hlist_head const *h @@ got struct hliststruct hlist_head const *h @@
net/xfrm/xfrm_policy.c:4097:17: sparse: expected struct hlist_head const *h
net/xfrm/xfrm_policy.c:4097:17: sparse: got struct hlist_head [noderef] <asn:4> *table
net/xfrm/xfrm_policy.c:4098:36: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct hlist_head *n @@ got struct hlist_head struct hlist_head *n @@
net/xfrm/xfrm_policy.c:4098:36: sparse: expected struct hlist_head *n
net/xfrm/xfrm_policy.c:4098:36: sparse: got struct hlist_head [noderef] <asn:4> *table
net/xfrm/xfrm_policy.c:244:9: sparse: sparse: context imbalance in 'xfrm_policy_get_afinfo' - different lock contexts for basic block
include/linux/rcupdate.h:653:9: sparse: sparse: context imbalance in '__xfrm_dst_lookup' - unexpected unlock
include/linux/rbtree.h:84:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
include/linux/rbtree.h:84:9: sparse: struct rb_node [noderef] <asn:4> *
include/linux/rbtree.h:84:9: sparse: struct rb_node *
include/linux/rbtree.h:84:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
include/linux/rbtree.h:84:9: sparse: struct rb_node [noderef] <asn:4> *
include/linux/rbtree.h:84:9: sparse: struct rb_node *
include/linux/atomic-fallback.h:957:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
include/linux/atomic-fallback.h:957:13: sparse: sparse: not a function <noident>
include/linux/atomic-fallback.h:918:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
--
include/linux/atomic-fallback.h:918:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
--
net/ipv6/route.c:666:22: sparse: sparse: undefined identifier '__builtin_arc_sr'
net/ipv6/route.c:1414:16: sparse: sparse: undefined identifier '__builtin_arc_sr'
net/ipv6/route.c:2320:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] flow_label @@ got d int [usertype] flow_label @@
net/ipv6/route.c:2320:39: sparse: expected unsigned int [usertype] flow_label
net/ipv6/route.c:2320:39: sparse: got restricted __be32
include/linux/atomic-fallback.h:957:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
include/linux/atomic-fallback.h:918:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
include/linux/atomic-fallback.h:957:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
include/linux/atomic-fallback.h:957:13: sparse: sparse: not a function <noident>
include/linux/atomic-fallback.h:957:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
include/linux/atomic-fallback.h:957:13: sparse: sparse: not a function <noident>
include/linux/atomic-fallback.h:957:13: sparse: sparse: not a function <noident>
include/linux/atomic-fallback.h:957:13: sparse: sparse: not a function <noident>
include/linux/atomic-fallback.h:957:13: sparse: sparse: not a function <noident>
include/linux/atomic-fallback.h:957:13: sparse: sparse: not a function <noident>
--
include/linux/atomic-fallback.h:918:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
--
net/rxrpc/conn_object.c:421:21: sparse: sparse: undefined identifier '__builtin_arc_sr'
include/linux/atomic-fallback.h:918:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
--
include/linux/atomic-fallback.h:957:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
include/linux/atomic-fallback.h:918:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
>> include/linux/atomic-fallback.h:918:13: sparse: sparse: not a function <noident>
--
drivers/usb/gadget/function/f_fs.c:899:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
drivers/usb/gadget/function/f_fs.c:937:13: sparse: sparse: undefined identifier '__builtin_arc_sr'
drivers/usb/gadget/function/f_fs.c:2857:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] wMaxPacketSize @@ got resunsigned short [usertype] wMaxPacketSize @@
drivers/usb/gadget/function/f_fs.c:2857:32: sparse: expected unsigned short [usertype] wMaxPacketSize
drivers/usb/gadget/function/f_fs.c:2857:32: sparse: got restricted __le16 [usertype] wMaxPacketSize
drivers/usb/gadget/function/f_fs.c:2882:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] wMaxPacketSize @@ got tricted __le16 [usertype] wMaxPacketSize @@
drivers/usb/gadget/function/f_fs.c:2882:36: sparse: expected restricted __le16 [usertype] wMaxPacketSize
drivers/usb/gadget/function/f_fs.c:2882:36: sparse: got unsigned short [usertype] wMaxPacketSize
drivers/usb/gadget/function/f_fs.c:91:17: sparse: sparse: undefined identifier '__builtin_arc_sr'
>> drivers/usb/gadget/function/f_fs.c:91:17: sparse: sparse: not a function <noident>
>> drivers/usb/gadget/function/f_fs.c:91:17: sparse: sparse: not a function <noident>
>> drivers/usb/gadget/function/f_fs.c:91:17: sparse: sparse: not a function <noident>
>> drivers/usb/gadget/function/f_fs.c:91:17: sparse: sparse: not a function <noident>
>> drivers/usb/gadget/function/f_fs.c:91:17: sparse: sparse: not a function <noident>
--
drivers/gpu/drm/scheduler/sched_entity.c:192:21: sparse: sparse: undefined identifier '__builtin_arc_sr'
include/asm-generic/atomic-long.h:906:16: sparse: sparse: undefined identifier '__builtin_arc_sr'
>> include/asm-generic/atomic-long.h:906:16: sparse: sparse: not a function <noident>
vim +918 include/linux/atomic-fallback.h
9fa45070a2e59a Mark Rutland 2018-09-04 912
9fa45070a2e59a Mark Rutland 2018-09-04 913 #ifndef atomic_try_cmpxchg
9fa45070a2e59a Mark Rutland 2018-09-04 914 static inline bool
9fa45070a2e59a Mark Rutland 2018-09-04 915 atomic_try_cmpxchg(atomic_t *v, int *old, int new)
9fa45070a2e59a Mark Rutland 2018-09-04 916 {
9fa45070a2e59a Mark Rutland 2018-09-04 917 int r, o = *old;
9fa45070a2e59a Mark Rutland 2018-09-04 @918 r = atomic_cmpxchg(v, o, new);
9fa45070a2e59a Mark Rutland 2018-09-04 919 if (unlikely(r != o))
9fa45070a2e59a Mark Rutland 2018-09-04 920 *old = r;
9fa45070a2e59a Mark Rutland 2018-09-04 921 return likely(r == o);
9fa45070a2e59a Mark Rutland 2018-09-04 922 }
9fa45070a2e59a Mark Rutland 2018-09-04 923 #define atomic_try_cmpxchg atomic_try_cmpxchg
9fa45070a2e59a Mark Rutland 2018-09-04 924 #endif
9fa45070a2e59a Mark Rutland 2018-09-04 925
:::::: The code at line 918 was first introduced by commit
:::::: 9fa45070a2e59a871e1cd3370173369f3a4f61e2 locking/atomics: Switch to generated fallbacks
:::::: TO: Mark Rutland <mark.rutland(a)arm.com>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[morimoto-linux:fw-cleanup-2020-05-21-v1 125/189] drivers/sh/clk/cpg.c:49:9: error: assignment to 'unsigned int (*)(const void *)' from incompatible pointer type 'unsigned int (*)(void *)'
by kbuild test robot
tree: https://github.com/morimoto/linux fw-cleanup-2020-05-21-v1
head: 359a2b114d515701ce6fb31f140ef197655e6a55
commit: 360c87a9781b04f64059dcace71fc0f59f3365b0 [125/189] sh: clkfwk: remove r8/r16/r32
config: sh-se7712_defconfig (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
git checkout 360c87a9781b04f64059dcace71fc0f59f3365b0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
drivers/sh/clk/cpg.c: In function 'sh_clk_mstp_enable':
>> drivers/sh/clk/cpg.c:49:9: error: assignment to 'unsigned int (*)(const void *)' from incompatible pointer type 'unsigned int (*)(void *)' [-Werror=incompatible-pointer-types]
49 | read = ioread8;
| ^
drivers/sh/clk/cpg.c:51:9: error: assignment to 'unsigned int (*)(const void *)' from incompatible pointer type 'unsigned int (*)(void *)' [-Werror=incompatible-pointer-types]
51 | read = ioread16;
| ^
drivers/sh/clk/cpg.c:53:9: error: assignment to 'unsigned int (*)(const void *)' from incompatible pointer type 'unsigned int (*)(void *)' [-Werror=incompatible-pointer-types]
53 | read = ioread32;
| ^
cc1: some warnings being treated as errors
vim +49 drivers/sh/clk/cpg.c
38
39 static int sh_clk_mstp_enable(struct clk *clk)
40 {
41 sh_clk_write(sh_clk_read(clk) & ~(1 << clk->enable_bit), clk);
42 if (clk->status_reg) {
43 unsigned int (*read)(const void __iomem *addr);
44 int i;
45 void __iomem *mapped_status = (phys_addr_t)clk->status_reg -
46 (phys_addr_t)clk->enable_reg + clk->mapped_reg;
47
48 if (clk->flags & CLK_ENABLE_REG_8BIT)
> 49 read = ioread8;
50 else if (clk->flags & CLK_ENABLE_REG_16BIT)
51 read = ioread16;
52 else
53 read = ioread32;
54
55 for (i = 1000;
56 (read(mapped_status) & (1 << clk->enable_bit)) && i;
57 i--)
58 cpu_relax();
59 if (!i) {
60 pr_err("cpg: failed to enable %p[%d]\n",
61 clk->enable_reg, clk->enable_bit);
62 return -ETIMEDOUT;
63 }
64 }
65 return 0;
66 }
67
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [PATCH v2 2/7] ASoC: soc-link: move soc_rtd_xxx()
by kbuild test robot
Hi Kuninori,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on asoc/for-next]
[also build test WARNING on next-20200519]
[cannot apply to sound/for-next v5.7-rc6]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Kuninori-Morimoto/ASoC-add-soc-l...
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: x86_64-randconfig-r016-20200521 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
sound/soc/soc-link.c:28:5: warning: no previous prototype for function 'snd_soc_link_init' [-Wmissing-prototypes]
int snd_soc_link_init(struct snd_soc_pcm_runtime *rtd)
^
sound/soc/soc-link.c:28:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int snd_soc_link_init(struct snd_soc_pcm_runtime *rtd)
^
static
>> sound/soc/soc-link.c:38:5: warning: no previous prototype for function 'snd_soc_link_startup' [-Wmissing-prototypes]
int snd_soc_link_startup(struct snd_soc_pcm_runtime *rtd,
^
sound/soc/soc-link.c:38:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int snd_soc_link_startup(struct snd_soc_pcm_runtime *rtd,
^
static
>> sound/soc/soc-link.c:50:6: warning: no previous prototype for function 'snd_soc_link_shutdown' [-Wmissing-prototypes]
void snd_soc_link_shutdown(struct snd_soc_pcm_runtime *rtd,
^
sound/soc/soc-link.c:50:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void snd_soc_link_shutdown(struct snd_soc_pcm_runtime *rtd,
^
static
>> sound/soc/soc-link.c:58:5: warning: no previous prototype for function 'snd_soc_link_prepare' [-Wmissing-prototypes]
int snd_soc_link_prepare(struct snd_soc_pcm_runtime *rtd,
^
sound/soc/soc-link.c:58:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int snd_soc_link_prepare(struct snd_soc_pcm_runtime *rtd,
^
static
>> sound/soc/soc-link.c:70:5: warning: no previous prototype for function 'snd_soc_link_hw_params' [-Wmissing-prototypes]
int snd_soc_link_hw_params(struct snd_soc_pcm_runtime *rtd,
^
sound/soc/soc-link.c:70:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int snd_soc_link_hw_params(struct snd_soc_pcm_runtime *rtd,
^
static
>> sound/soc/soc-link.c:83:6: warning: no previous prototype for function 'snd_soc_link_hw_free' [-Wmissing-prototypes]
void snd_soc_link_hw_free(struct snd_soc_pcm_runtime *rtd,
^
sound/soc/soc-link.c:83:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void snd_soc_link_hw_free(struct snd_soc_pcm_runtime *rtd,
^
static
>> sound/soc/soc-link.c:91:5: warning: no previous prototype for function 'snd_soc_link_trigger' [-Wmissing-prototypes]
int snd_soc_link_trigger(struct snd_soc_pcm_runtime *rtd,
^
sound/soc/soc-link.c:91:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int snd_soc_link_trigger(struct snd_soc_pcm_runtime *rtd,
^
static
7 warnings generated.
vim +/snd_soc_link_startup +38 sound/soc/soc-link.c
37
> 38 int snd_soc_link_startup(struct snd_soc_pcm_runtime *rtd,
39 struct snd_pcm_substream *substream)
40 {
41 int ret = 0;
42
43 if (rtd->dai_link->ops &&
44 rtd->dai_link->ops->startup)
45 ret = rtd->dai_link->ops->startup(substream);
46
47 return soc_link_ret(rtd, ret);
48 }
49
> 50 void snd_soc_link_shutdown(struct snd_soc_pcm_runtime *rtd,
51 struct snd_pcm_substream *substream)
52 {
53 if (rtd->dai_link->ops &&
54 rtd->dai_link->ops->shutdown)
55 rtd->dai_link->ops->shutdown(substream);
56 }
57
> 58 int snd_soc_link_prepare(struct snd_soc_pcm_runtime *rtd,
59 struct snd_pcm_substream *substream)
60 {
61 int ret = 0;
62
63 if (rtd->dai_link->ops &&
64 rtd->dai_link->ops->prepare)
65 ret = rtd->dai_link->ops->prepare(substream);
66
67 return soc_link_ret(rtd, ret);
68 }
69
> 70 int snd_soc_link_hw_params(struct snd_soc_pcm_runtime *rtd,
71 struct snd_pcm_substream *substream,
72 struct snd_pcm_hw_params *params)
73 {
74 int ret = 0;
75
76 if (rtd->dai_link->ops &&
77 rtd->dai_link->ops->hw_params)
78 ret = rtd->dai_link->ops->hw_params(substream, params);
79
80 return soc_link_ret(rtd, ret);
81 }
82
> 83 void snd_soc_link_hw_free(struct snd_soc_pcm_runtime *rtd,
84 struct snd_pcm_substream *substream)
85 {
86 if (rtd->dai_link->ops &&
87 rtd->dai_link->ops->hw_free)
88 rtd->dai_link->ops->hw_free(substream);
89 }
90
> 91 int snd_soc_link_trigger(struct snd_soc_pcm_runtime *rtd,
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[linux-review:UPDATE-20200521-054700/Krzysztof-Wilczynski/PCI-Reference-bridge-window-resources-explicitly/20200520-055415 1/1] drivers/pci/setup-bus.c:1189:2: error: use of undeclared identifier 'mmio1_res'
by kbuild test robot
tree: https://github.com/0day-ci/linux/commits/UPDATE-20200521-054700/Krzysztof...
head: ba7ef1e97861cc12a3504eb041305fc1049d7049
commit: ba7ef1e97861cc12a3504eb041305fc1049d7049 [1/1] PCI: Move from using PCI_BRIDGE_RESOURCES to bridge resource definitions
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout ba7ef1e97861cc12a3504eb041305fc1049d7049
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/pci/setup-bus.c:1189:2: error: use of undeclared identifier 'mmio1_res'
mmio1_res->start = pci_cardbus_mem_size;
^
drivers/pci/setup-bus.c:1190:2: error: use of undeclared identifier 'mmio1_res'
mmio1_res->end = b_res->start + b_res_3_size - 1;
^
drivers/pci/setup-bus.c:1191:2: error: use of undeclared identifier 'mmio1_res'
mmio1_res->flags |= IORESOURCE_MEM | IORESOURCE_STARTALIGN;
^
3 errors generated.
vim +/mmio1_res +1189 drivers/pci/setup-bus.c
1108
1109 static void pci_bus_size_cardbus(struct pci_bus *bus,
1110 struct list_head *realloc_head)
1111 {
1112 struct pci_dev *bridge = bus->self;
1113 struct resource *b_res;
1114 resource_size_t b_res_3_size = pci_cardbus_mem_size * 2;
1115 u16 ctrl;
1116
1117 b_res = &bridge->resource[PCI_CB_BRIDGE_IO_0_WINDOW];
1118 if (b_res->parent)
1119 goto handle_b_res_1;
1120 /*
1121 * Reserve some resources for CardBus. We reserve a fixed amount
1122 * of bus space for CardBus bridges.
1123 */
1124 b_res->start = pci_cardbus_io_size;
1125 b_res->end = b_res->start + pci_cardbus_io_size - 1;
1126 b_res->flags |= IORESOURCE_IO | IORESOURCE_STARTALIGN;
1127 if (realloc_head) {
1128 b_res->end -= pci_cardbus_io_size;
1129 add_to_list(realloc_head, bridge, b_res, pci_cardbus_io_size,
1130 pci_cardbus_io_size);
1131 }
1132
1133 handle_b_res_1:
1134 b_res = &bridge->resource[PCI_CB_BRIDGE_IO_1_WINDOW];
1135 if (b_res->parent)
1136 goto handle_b_res_2;
1137 b_res->start = pci_cardbus_io_size;
1138 b_res->end = b_res->start + pci_cardbus_io_size - 1;
1139 b_res->flags |= IORESOURCE_IO | IORESOURCE_STARTALIGN;
1140 if (realloc_head) {
1141 b_res->end -= pci_cardbus_io_size;
1142 add_to_list(realloc_head, bridge, b_res, pci_cardbus_io_size,
1143 pci_cardbus_io_size);
1144 }
1145
1146 handle_b_res_2:
1147 /* MEM1 must not be pref MMIO */
1148 pci_read_config_word(bridge, PCI_CB_BRIDGE_CONTROL, &ctrl);
1149 if (ctrl & PCI_CB_BRIDGE_CTL_PREFETCH_MEM1) {
1150 ctrl &= ~PCI_CB_BRIDGE_CTL_PREFETCH_MEM1;
1151 pci_write_config_word(bridge, PCI_CB_BRIDGE_CONTROL, ctrl);
1152 pci_read_config_word(bridge, PCI_CB_BRIDGE_CONTROL, &ctrl);
1153 }
1154
1155 /* Check whether prefetchable memory is supported by this bridge. */
1156 pci_read_config_word(bridge, PCI_CB_BRIDGE_CONTROL, &ctrl);
1157 if (!(ctrl & PCI_CB_BRIDGE_CTL_PREFETCH_MEM0)) {
1158 ctrl |= PCI_CB_BRIDGE_CTL_PREFETCH_MEM0;
1159 pci_write_config_word(bridge, PCI_CB_BRIDGE_CONTROL, ctrl);
1160 pci_read_config_word(bridge, PCI_CB_BRIDGE_CONTROL, &ctrl);
1161 }
1162
1163 b_res = &bridge->resource[PCI_CB_BRIDGE_MEM_0_WINDOW];
1164 if (b_res->parent)
1165 goto handle_b_res_3;
1166 /*
1167 * If we have prefetchable memory support, allocate two regions.
1168 * Otherwise, allocate one region of twice the size.
1169 */
1170 if (ctrl & PCI_CB_BRIDGE_CTL_PREFETCH_MEM0) {
1171 b_res->start = pci_cardbus_mem_size;
1172 b_res->end = b_res->start + pci_cardbus_mem_size - 1;
1173 b_res->flags |= IORESOURCE_MEM | IORESOURCE_PREFETCH |
1174 IORESOURCE_STARTALIGN;
1175 if (realloc_head) {
1176 b_res->end -= pci_cardbus_mem_size;
1177 add_to_list(realloc_head, bridge, b_res,
1178 pci_cardbus_mem_size, pci_cardbus_mem_size);
1179 }
1180
1181 /* Reduce that to half */
1182 b_res_3_size = pci_cardbus_mem_size;
1183 }
1184
1185 handle_b_res_3:
1186 b_res = &bridge->resource[PCI_CB_BRIDGE_MEM_1_WINDOW];
1187 if (b_res->parent)
1188 goto handle_done;
> 1189 mmio1_res->start = pci_cardbus_mem_size;
1190 mmio1_res->end = b_res->start + b_res_3_size - 1;
1191 mmio1_res->flags |= IORESOURCE_MEM | IORESOURCE_STARTALIGN;
1192 if (realloc_head) {
1193 b_res->end -= b_res_3_size;
1194 add_to_list(realloc_head, bridge, b_res, b_res_3_size,
1195 pci_cardbus_mem_size);
1196 }
1197
1198 handle_done:
1199 ;
1200 }
1201
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [PATCH v2 1/7] ASoC: add soc-link.c
by kbuild test robot
Hi Kuninori,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on asoc/for-next]
[also build test WARNING on sound/for-next v5.7-rc6 next-20200519]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Kuninori-Morimoto/ASoC-add-soc-l...
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: x86_64-randconfig-r016-20200521 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> sound/soc/soc-link.c:28:5: warning: no previous prototype for function 'snd_soc_link_init' [-Wmissing-prototypes]
int snd_soc_link_init(struct snd_soc_pcm_runtime *rtd)
^
sound/soc/soc-link.c:28:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int snd_soc_link_init(struct snd_soc_pcm_runtime *rtd)
^
static
1 warning generated.
vim +/snd_soc_link_init +28 sound/soc/soc-link.c
27
> 28 int snd_soc_link_init(struct snd_soc_pcm_runtime *rtd)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[RFC PATCH linux-next] drm/msm/a6xx: a6xx_hfi_send_start() can be static
by kbuild test robot
Fixes: 8167e6fa76c8 ("drm/msm/a6xx: HFI v2 for A640 and A650")
Signed-off-by: kbuild test robot <lkp(a)intel.com>
---
a6xx_hfi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/msm/adreno/a6xx_hfi.c b/drivers/gpu/drm/msm/adreno/a6xx_hfi.c
index f9db69e771214..9921e632f1ca2 100644
--- a/drivers/gpu/drm/msm/adreno/a6xx_hfi.c
+++ b/drivers/gpu/drm/msm/adreno/a6xx_hfi.c
@@ -342,7 +342,7 @@ static int a6xx_hfi_send_test(struct a6xx_gmu *gmu)
NULL, 0);
}
-int a6xx_hfi_send_start(struct a6xx_gmu *gmu)
+static int a6xx_hfi_send_start(struct a6xx_gmu *gmu)
{
struct a6xx_hfi_msg_start msg = { 0 };
@@ -350,7 +350,7 @@ int a6xx_hfi_send_start(struct a6xx_gmu *gmu)
NULL, 0);
}
-int a6xx_hfi_send_core_fw_start(struct a6xx_gmu *gmu)
+static int a6xx_hfi_send_core_fw_start(struct a6xx_gmu *gmu)
{
struct a6xx_hfi_msg_core_fw_start msg = { 0 };
2 years, 4 months
[linux-nvme:nvme-5.8 26/33] drivers/nvme/target/io-cmd-bdev.c:56: undefined reference to `t10_pi_type1_crc'
by kbuild test robot
tree: git://git.infradead.org/nvme.git nvme-5.8
head: 553d88b29099fdbc11a0a909995003d15a31a458
commit: 02a419071352a5c9a2b24067b3c4f5674025ddb9 [26/33] nvmet: add metadata characteristics for a namespace
config: i386-randconfig-r001-20200520 (attached as .config)
compiler: gcc-6 (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
reproduce:
git checkout 02a419071352a5c9a2b24067b3c4f5674025ddb9
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
ld: drivers/nvme/target/io-cmd-bdev.o: in function `nvmet_bdev_ns_enable_integrity':
>> drivers/nvme/target/io-cmd-bdev.c:56: undefined reference to `t10_pi_type1_crc'
>> ld: drivers/nvme/target/io-cmd-bdev.c:58: undefined reference to `t10_pi_type3_crc'
vim +56 drivers/nvme/target/io-cmd-bdev.c
49
50 static void nvmet_bdev_ns_enable_integrity(struct nvmet_ns *ns)
51 {
52 struct blk_integrity *bi = bdev_get_integrity(ns->bdev);
53
54 if (bi) {
55 ns->metadata_size = bi->tuple_size;
> 56 if (bi->profile == &t10_pi_type1_crc)
57 ns->pi_type = NVME_NS_DPS_PI_TYPE1;
> 58 else if (bi->profile == &t10_pi_type3_crc)
59 ns->pi_type = NVME_NS_DPS_PI_TYPE3;
60 else
61 /* Unsupported metadata type */
62 ns->metadata_size = 0;
63 }
64 }
65
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[linux-nvme:nvme-5.8 30/33] drivers/nvme/target/admin-cmd.c:541:32: sparse: sparse: incorrect type in assignment (different base types)
by kbuild test robot
tree: git://git.infradead.org/nvme.git nvme-5.8
head: 553d88b29099fdbc11a0a909995003d15a31a458
commit: af915d6c11227cc06ab23d2ab5649de066ed3dcc [30/33] nvmet: add metadata/T10-PI support
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-193-gb8fad4bc-dirty
git checkout af915d6c11227cc06ab23d2ab5649de066ed3dcc
# save the attached .config to linux build tree
make C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/nvme/target/admin-cmd.c:541:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le16 [usertype] ms @@ got pe] ms @@
>> drivers/nvme/target/admin-cmd.c:541:32: sparse: expected restricted __le16 [usertype] ms
>> drivers/nvme/target/admin-cmd.c:541:32: sparse: got int metadata_size
vim +541 drivers/nvme/target/admin-cmd.c
472
473 static void nvmet_execute_identify_ns(struct nvmet_req *req)
474 {
475 struct nvmet_ctrl *ctrl = req->sq->ctrl;
476 struct nvmet_ns *ns;
477 struct nvme_id_ns *id;
478 u16 status = 0;
479
480 if (le32_to_cpu(req->cmd->identify.nsid) == NVME_NSID_ALL) {
481 req->error_loc = offsetof(struct nvme_identify, nsid);
482 status = NVME_SC_INVALID_NS | NVME_SC_DNR;
483 goto out;
484 }
485
486 id = kzalloc(sizeof(*id), GFP_KERNEL);
487 if (!id) {
488 status = NVME_SC_INTERNAL;
489 goto out;
490 }
491
492 /* return an all zeroed buffer if we can't find an active namespace */
493 ns = nvmet_find_namespace(ctrl, req->cmd->identify.nsid);
494 if (!ns)
495 goto done;
496
497 nvmet_ns_revalidate(ns);
498
499 /*
500 * nuse = ncap = nsze isn't always true, but we have no way to find
501 * that out from the underlying device.
502 */
503 id->ncap = id->nsze = cpu_to_le64(ns->size >> ns->blksize_shift);
504 switch (req->port->ana_state[ns->anagrpid]) {
505 case NVME_ANA_INACCESSIBLE:
506 case NVME_ANA_PERSISTENT_LOSS:
507 break;
508 default:
509 id->nuse = id->nsze;
510 break;
511 }
512
513 if (ns->bdev)
514 nvmet_bdev_set_limits(ns->bdev, id);
515
516 /*
517 * We just provide a single LBA format that matches what the
518 * underlying device reports.
519 */
520 id->nlbaf = 0;
521 id->flbas = 0;
522
523 /*
524 * Our namespace might always be shared. Not just with other
525 * controllers, but also with any other user of the block device.
526 */
527 id->nmic = (1 << 0);
528 id->anagrpid = cpu_to_le32(ns->anagrpid);
529
530 memcpy(&id->nguid, &ns->nguid, sizeof(id->nguid));
531
532 id->lbaf[0].ds = ns->blksize_shift;
533
534 if (ctrl->pi_support && nvmet_ns_has_pi(ns)) {
535 id->dpc = NVME_NS_DPC_PI_FIRST | NVME_NS_DPC_PI_LAST |
536 NVME_NS_DPC_PI_TYPE1 | NVME_NS_DPC_PI_TYPE2 |
537 NVME_NS_DPC_PI_TYPE3;
538 id->mc = NVME_MC_EXTENDED_LBA;
539 id->dps = ns->pi_type;
540 id->flbas = NVME_NS_FLBAS_META_EXT;
> 541 id->lbaf[0].ms = ns->metadata_size;
542 }
543
544 if (ns->readonly)
545 id->nsattr |= (1 << 0);
546 nvmet_put_namespace(ns);
547 done:
548 status = nvmet_copy_to_sgl(req, 0, id, sizeof(*id));
549 kfree(id);
550 out:
551 nvmet_req_complete(req, status);
552 }
553
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[arc:topic-zol-remove 49/49] arch/arc/kernel/entry-arcv2.S:212: Error: bad expression
by kbuild test robot
Hi Vineet,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git topic-zol-remove
head: 3138fa6a1832fdb830784a9781e63d739c0fdef7
commit: 3138fa6a1832fdb830784a9781e63d739c0fdef7 [49/49] ARC: entry: assembler macros to emulate pseudo instructions
config: arc-randconfig-r021-20200520 (attached as .config)
compiler: arc-elf-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
git checkout 3138fa6a1832fdb830784a9781e63d739c0fdef7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
arch/arc/kernel/entry-arcv2.S: Assembler messages:
>> arch/arc/kernel/entry-arcv2.S:212: Error: bad expression
>> arch/arc/kernel/entry-arcv2.S:212: Error: Brackets in operand field incorrect
>> arch/arc/kernel/entry-arcv2.S:212: Error: syntax error
>> arch/arc/kernel/entry-arcv2.S:212: Error: bad expression
>> arch/arc/kernel/entry-arcv2.S:212: Error: Brackets in operand field incorrect
>> arch/arc/kernel/entry-arcv2.S:212: Error: syntax error
arch/arc/kernel/entry-arcv2.S:220: Error: bad expression
arch/arc/kernel/entry-arcv2.S:220: Error: Brackets in operand field incorrect
arch/arc/kernel/entry-arcv2.S:220: Error: syntax error
arch/arc/kernel/entry-arcv2.S:220: Error: bad expression
arch/arc/kernel/entry-arcv2.S:220: Error: Brackets in operand field incorrect
arch/arc/kernel/entry-arcv2.S:220: Error: syntax error
arch/arc/kernel/entry-arcv2.S:220: Error: bad expression
arch/arc/kernel/entry-arcv2.S:220: Error: Brackets in operand field incorrect
arch/arc/kernel/entry-arcv2.S:220: Error: syntax error
arch/arc/kernel/entry-arcv2.S:220: Error: bad expression
arch/arc/kernel/entry-arcv2.S:220: Error: Brackets in operand field incorrect
arch/arc/kernel/entry-arcv2.S:220: Error: syntax error
arch/arc/kernel/entry-arcv2.S:220: Error: bad expression
arch/arc/kernel/entry-arcv2.S:220: Error: Brackets in operand field incorrect
arch/arc/kernel/entry-arcv2.S:220: Error: syntax error
arch/arc/kernel/entry-arcv2.S:220: Error: bad expression
arch/arc/kernel/entry-arcv2.S:220: Error: Brackets in operand field incorrect
arch/arc/kernel/entry-arcv2.S:220: Error: syntax error
arch/arc/kernel/entry-arcv2.S:220: Error: bad expression
arch/arc/kernel/entry-arcv2.S:220: Error: Brackets in operand field incorrect
arch/arc/kernel/entry-arcv2.S:220: Error: syntax error
arch/arc/kernel/entry-arcv2.S:220: Error: bad expression
arch/arc/kernel/entry-arcv2.S:220: Error: Brackets in operand field incorrect
arch/arc/kernel/entry-arcv2.S:220: Error: syntax error
arch/arc/kernel/entry-arcv2.S:220: Error: bad expression
arch/arc/kernel/entry-arcv2.S:220: Error: Brackets in operand field incorrect
arch/arc/kernel/entry-arcv2.S:220: Error: syntax error
arch/arc/kernel/entry-arcv2.S:220: Error: bad expression
arch/arc/kernel/entry-arcv2.S:220: Error: Brackets in operand field incorrect
arch/arc/kernel/entry-arcv2.S:220: Error: syntax error
vim +212 arch/arc/kernel/entry-arcv2.S
75370ad44075e8 Vineet Gupta 2019-05-22 194
1f6ccfff631467 Vineet Gupta 2013-05-13 195 debug_marker_l1:
e494239a007e60 Vineet Gupta 2018-06-06 196 ; bbit1.nt r0, STATUS_DE_BIT, .Lintr_ret_to_delay_slot
e494239a007e60 Vineet Gupta 2018-06-06 197 btst r0, STATUS_DE_BIT ; Z flag set if bit clear
e494239a007e60 Vineet Gupta 2018-06-06 198 bnz .Lintr_ret_to_delay_slot ; branch if STATUS_DE_BIT set
4255b07f2c9c43 Vineet Gupta 2014-09-22 199
1f6ccfff631467 Vineet Gupta 2013-05-13 200 ; Handle special case #1: (Entry via Exception, Return via IRQ)
1f6ccfff631467 Vineet Gupta 2013-05-13 201 ;
1f6ccfff631467 Vineet Gupta 2013-05-13 202 ; Exception in U mode, preempted in kernel, Intr taken (K mode), orig
1f6ccfff631467 Vineet Gupta 2013-05-13 203 ; task now returning to U mode (riding the Intr)
1f6ccfff631467 Vineet Gupta 2013-05-13 204 ; AUX_IRQ_ACTIVE won't have U bit set (since intr in K mode), hence SP
1f6ccfff631467 Vineet Gupta 2013-05-13 205 ; won't be switched to correct U mode value (from AUX_SP)
1f6ccfff631467 Vineet Gupta 2013-05-13 206 ; So force AUX_IRQ_ACT.U for such a case
1f6ccfff631467 Vineet Gupta 2013-05-13 207
1f6ccfff631467 Vineet Gupta 2013-05-13 208 btst r0, STATUS_U_BIT ; Z flag set if K (Z clear for U)
1f6ccfff631467 Vineet Gupta 2013-05-13 209 bset.nz r11, r11, AUX_IRQ_ACT_BIT_U ; NZ means U
1f6ccfff631467 Vineet Gupta 2013-05-13 210 sr r11, [AUX_IRQ_ACT]
1f6ccfff631467 Vineet Gupta 2013-05-13 211
a4880801a72ecc Vineet Gupta 2019-05-15 @212 INTERRUPT_EPILOGUE
1f6ccfff631467 Vineet Gupta 2013-05-13 213 rtie
1f6ccfff631467 Vineet Gupta 2013-05-13 214
:::::: The code at line 212 was first introduced by commit
:::::: a4880801a72ecc2dcdfa432f81a754f3e7438567 ARCv2: entry: rewrite to enable use of double load/stores LDD/STD
:::::: TO: Vineet Gupta <vgupta(a)synopsys.com>
:::::: CC: Vineet Gupta <vgupta(a)synopsys.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months