[saeed:net-next-mlx5 14/15] net/ethtool/linkmodes.c:169:48: warning: initialized field overwritten
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux.git net-next-mlx5
head: cff94391545e746a9a3f8e4e2e6ad1ecbe13dc09
commit: 26126b040268ca778529f991d859709523e3521a [14/15] ethtool: Add support for 100Gbps per lane link modes
config: x86_64-defconfig (attached as .config)
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 <<):
>> net/ethtool/linkmodes.c:169:48: warning: initialized field overwritten [-Woverride-init]
[ETHTOOL_LINK_MODE(_speed, _type, _duplex)] = { ^
>> net/ethtool/linkmodes.c:260:2: note: in expansion of macro '__DEFINE_LINK_MODE_PARAMS'
__DEFINE_LINK_MODE_PARAMS(400000, CR8, Full),
^~~~~~~~~~~~~~~~~~~~~~~~~
net/ethtool/linkmodes.c:169:48: note: (near initialization for 'link_mode_params[73]')
[ETHTOOL_LINK_MODE(_speed, _type, _duplex)] = { ^
>> net/ethtool/linkmodes.c:260:2: note: in expansion of macro '__DEFINE_LINK_MODE_PARAMS'
__DEFINE_LINK_MODE_PARAMS(400000, CR8, Full),
^~~~~~~~~~~~~~~~~~~~~~~~~
vim +169 net/ethtool/linkmodes.c
bfbcfe2032e70b Michal Kubecek 2019-12-27 167
bfbcfe2032e70b Michal Kubecek 2019-12-27 168 #define __DEFINE_LINK_MODE_PARAMS(_speed, _type, _duplex) \
bfbcfe2032e70b Michal Kubecek 2019-12-27 @169 [ETHTOOL_LINK_MODE(_speed, _type, _duplex)] = { \
bfbcfe2032e70b Michal Kubecek 2019-12-27 170 .speed = SPEED_ ## _speed, \
bfbcfe2032e70b Michal Kubecek 2019-12-27 171 .duplex = __DUPLEX_ ## _duplex \
bfbcfe2032e70b Michal Kubecek 2019-12-27 172 }
bfbcfe2032e70b Michal Kubecek 2019-12-27 173 #define __DUPLEX_Half DUPLEX_HALF
bfbcfe2032e70b Michal Kubecek 2019-12-27 174 #define __DUPLEX_Full DUPLEX_FULL
bfbcfe2032e70b Michal Kubecek 2019-12-27 175 #define __DEFINE_SPECIAL_MODE_PARAMS(_mode) \
bfbcfe2032e70b Michal Kubecek 2019-12-27 176 [ETHTOOL_LINK_MODE_ ## _mode ## _BIT] = { \
bfbcfe2032e70b Michal Kubecek 2019-12-27 177 .speed = SPEED_UNKNOWN, \
bfbcfe2032e70b Michal Kubecek 2019-12-27 178 .duplex = DUPLEX_UNKNOWN, \
bfbcfe2032e70b Michal Kubecek 2019-12-27 179 }
bfbcfe2032e70b Michal Kubecek 2019-12-27 180
bfbcfe2032e70b Michal Kubecek 2019-12-27 181 static const struct link_mode_info link_mode_params[] = {
bfbcfe2032e70b Michal Kubecek 2019-12-27 182 __DEFINE_LINK_MODE_PARAMS(10, T, Half),
bfbcfe2032e70b Michal Kubecek 2019-12-27 183 __DEFINE_LINK_MODE_PARAMS(10, T, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 184 __DEFINE_LINK_MODE_PARAMS(100, T, Half),
bfbcfe2032e70b Michal Kubecek 2019-12-27 185 __DEFINE_LINK_MODE_PARAMS(100, T, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 186 __DEFINE_LINK_MODE_PARAMS(1000, T, Half),
bfbcfe2032e70b Michal Kubecek 2019-12-27 187 __DEFINE_LINK_MODE_PARAMS(1000, T, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 188 __DEFINE_SPECIAL_MODE_PARAMS(Autoneg),
bfbcfe2032e70b Michal Kubecek 2019-12-27 189 __DEFINE_SPECIAL_MODE_PARAMS(TP),
bfbcfe2032e70b Michal Kubecek 2019-12-27 190 __DEFINE_SPECIAL_MODE_PARAMS(AUI),
bfbcfe2032e70b Michal Kubecek 2019-12-27 191 __DEFINE_SPECIAL_MODE_PARAMS(MII),
bfbcfe2032e70b Michal Kubecek 2019-12-27 192 __DEFINE_SPECIAL_MODE_PARAMS(FIBRE),
bfbcfe2032e70b Michal Kubecek 2019-12-27 193 __DEFINE_SPECIAL_MODE_PARAMS(BNC),
bfbcfe2032e70b Michal Kubecek 2019-12-27 194 __DEFINE_LINK_MODE_PARAMS(10000, T, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 195 __DEFINE_SPECIAL_MODE_PARAMS(Pause),
bfbcfe2032e70b Michal Kubecek 2019-12-27 196 __DEFINE_SPECIAL_MODE_PARAMS(Asym_Pause),
bfbcfe2032e70b Michal Kubecek 2019-12-27 197 __DEFINE_LINK_MODE_PARAMS(2500, X, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 198 __DEFINE_SPECIAL_MODE_PARAMS(Backplane),
bfbcfe2032e70b Michal Kubecek 2019-12-27 199 __DEFINE_LINK_MODE_PARAMS(1000, KX, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 200 __DEFINE_LINK_MODE_PARAMS(10000, KX4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 201 __DEFINE_LINK_MODE_PARAMS(10000, KR, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 202 [ETHTOOL_LINK_MODE_10000baseR_FEC_BIT] = {
bfbcfe2032e70b Michal Kubecek 2019-12-27 203 .speed = SPEED_10000,
bfbcfe2032e70b Michal Kubecek 2019-12-27 204 .duplex = DUPLEX_FULL,
bfbcfe2032e70b Michal Kubecek 2019-12-27 205 },
bfbcfe2032e70b Michal Kubecek 2019-12-27 206 __DEFINE_LINK_MODE_PARAMS(20000, MLD2, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 207 __DEFINE_LINK_MODE_PARAMS(20000, KR2, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 208 __DEFINE_LINK_MODE_PARAMS(40000, KR4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 209 __DEFINE_LINK_MODE_PARAMS(40000, CR4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 210 __DEFINE_LINK_MODE_PARAMS(40000, SR4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 211 __DEFINE_LINK_MODE_PARAMS(40000, LR4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 212 __DEFINE_LINK_MODE_PARAMS(56000, KR4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 213 __DEFINE_LINK_MODE_PARAMS(56000, CR4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 214 __DEFINE_LINK_MODE_PARAMS(56000, SR4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 215 __DEFINE_LINK_MODE_PARAMS(56000, LR4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 216 __DEFINE_LINK_MODE_PARAMS(25000, CR, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 217 __DEFINE_LINK_MODE_PARAMS(25000, KR, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 218 __DEFINE_LINK_MODE_PARAMS(25000, SR, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 219 __DEFINE_LINK_MODE_PARAMS(50000, CR2, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 220 __DEFINE_LINK_MODE_PARAMS(50000, KR2, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 221 __DEFINE_LINK_MODE_PARAMS(100000, KR4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 222 __DEFINE_LINK_MODE_PARAMS(100000, SR4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 223 __DEFINE_LINK_MODE_PARAMS(100000, CR4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 224 __DEFINE_LINK_MODE_PARAMS(100000, LR4_ER4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 225 __DEFINE_LINK_MODE_PARAMS(50000, SR2, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 226 __DEFINE_LINK_MODE_PARAMS(1000, X, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 227 __DEFINE_LINK_MODE_PARAMS(10000, CR, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 228 __DEFINE_LINK_MODE_PARAMS(10000, SR, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 229 __DEFINE_LINK_MODE_PARAMS(10000, LR, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 230 __DEFINE_LINK_MODE_PARAMS(10000, LRM, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 231 __DEFINE_LINK_MODE_PARAMS(10000, ER, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 232 __DEFINE_LINK_MODE_PARAMS(2500, T, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 233 __DEFINE_LINK_MODE_PARAMS(5000, T, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 234 __DEFINE_SPECIAL_MODE_PARAMS(FEC_NONE),
bfbcfe2032e70b Michal Kubecek 2019-12-27 235 __DEFINE_SPECIAL_MODE_PARAMS(FEC_RS),
bfbcfe2032e70b Michal Kubecek 2019-12-27 236 __DEFINE_SPECIAL_MODE_PARAMS(FEC_BASER),
bfbcfe2032e70b Michal Kubecek 2019-12-27 237 __DEFINE_LINK_MODE_PARAMS(50000, KR, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 238 __DEFINE_LINK_MODE_PARAMS(50000, SR, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 239 __DEFINE_LINK_MODE_PARAMS(50000, CR, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 240 __DEFINE_LINK_MODE_PARAMS(50000, LR_ER_FR, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 241 __DEFINE_LINK_MODE_PARAMS(50000, DR, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 242 __DEFINE_LINK_MODE_PARAMS(100000, KR2, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 243 __DEFINE_LINK_MODE_PARAMS(100000, SR2, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 244 __DEFINE_LINK_MODE_PARAMS(100000, CR2, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 245 __DEFINE_LINK_MODE_PARAMS(100000, LR2_ER2_FR2, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 246 __DEFINE_LINK_MODE_PARAMS(100000, DR2, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 247 __DEFINE_LINK_MODE_PARAMS(200000, KR4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 248 __DEFINE_LINK_MODE_PARAMS(200000, SR4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 249 __DEFINE_LINK_MODE_PARAMS(200000, LR4_ER4_FR4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 250 __DEFINE_LINK_MODE_PARAMS(200000, DR4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 251 __DEFINE_LINK_MODE_PARAMS(200000, CR4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 252 __DEFINE_LINK_MODE_PARAMS(100, T1, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 253 __DEFINE_LINK_MODE_PARAMS(1000, T1, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 254 __DEFINE_LINK_MODE_PARAMS(400000, KR8, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 255 __DEFINE_LINK_MODE_PARAMS(400000, SR8, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 256 __DEFINE_LINK_MODE_PARAMS(400000, LR8_ER8_FR8, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 257 __DEFINE_LINK_MODE_PARAMS(400000, DR8, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 258 __DEFINE_LINK_MODE_PARAMS(400000, CR8, Full),
f623e597050144 Aya Levin 2020-02-11 259 __DEFINE_SPECIAL_MODE_PARAMS(FEC_LLRS),
26126b040268ca Meir Lichtinger 2020-03-08 @260 __DEFINE_LINK_MODE_PARAMS(400000, CR8, Full),
26126b040268ca Meir Lichtinger 2020-03-08 261 __DEFINE_LINK_MODE_PARAMS(100000, KR, Full),
26126b040268ca Meir Lichtinger 2020-03-08 262 __DEFINE_LINK_MODE_PARAMS(100000, SR, Full),
26126b040268ca Meir Lichtinger 2020-03-08 263 __DEFINE_LINK_MODE_PARAMS(100000, LR_ER_FR, Full),
26126b040268ca Meir Lichtinger 2020-03-08 264 __DEFINE_LINK_MODE_PARAMS(100000, DR, Full),
26126b040268ca Meir Lichtinger 2020-03-08 265 __DEFINE_LINK_MODE_PARAMS(100000, CR, Full),
26126b040268ca Meir Lichtinger 2020-03-08 266 __DEFINE_LINK_MODE_PARAMS(200000, KR2, Full),
26126b040268ca Meir Lichtinger 2020-03-08 267 __DEFINE_LINK_MODE_PARAMS(200000, SR2, Full),
26126b040268ca Meir Lichtinger 2020-03-08 268 __DEFINE_LINK_MODE_PARAMS(200000, LR2_ER2_FR2, Full),
26126b040268ca Meir Lichtinger 2020-03-08 269 __DEFINE_LINK_MODE_PARAMS(200000, DR2, Full),
26126b040268ca Meir Lichtinger 2020-03-08 270 __DEFINE_LINK_MODE_PARAMS(200000, CR2, Full),
26126b040268ca Meir Lichtinger 2020-03-08 271 __DEFINE_LINK_MODE_PARAMS(400000, KR4, Full),
26126b040268ca Meir Lichtinger 2020-03-08 272 __DEFINE_LINK_MODE_PARAMS(400000, SR4, Full),
26126b040268ca Meir Lichtinger 2020-03-08 273 __DEFINE_LINK_MODE_PARAMS(400000, LR4_ER4_FR4, Full),
26126b040268ca Meir Lichtinger 2020-03-08 274 __DEFINE_LINK_MODE_PARAMS(400000, DR4, Full),
26126b040268ca Meir Lichtinger 2020-03-08 275 __DEFINE_LINK_MODE_PARAMS(400000, CR4, Full),
bfbcfe2032e70b Michal Kubecek 2019-12-27 276 };
bfbcfe2032e70b Michal Kubecek 2019-12-27 277
:::::: The code at line 169 was first introduced by commit
:::::: bfbcfe2032e70bd8598d680d39ac177d507e39ac ethtool: set link modes related data with LINKMODES_SET request
:::::: TO: Michal Kubecek <mkubecek(a)suse.cz>
:::::: 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
arch/s390/include/asm/lowcore.h:191:33: warning: function 'perf_trace_qla_log_event' might be a candidate for 'gnu_printf' format attribute
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 642b151f45dd54809ea00ecd3976a56c1ec9b53d
commit: 598a90f2002c4c4daee24d76d24e8270c7075eef scsi: qla2xxx: add ring buffer for tracing debug logs
date: 10 weeks ago
config: s390-allyesconfig (attached as .config)
compiler: s390-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 598a90f2002c4c4daee24d76d24e8270c7075eef
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
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 <<):
In file included from include/trace/define_trace.h:102,
from include/trace/events/qla.h:39,
from drivers/scsi/qla2xxx/qla_dbg.c:77:
include/trace/events/qla.h: In function 'trace_event_raw_event_qla_log_event':
include/trace/trace_events.h:691:9: warning: function 'trace_event_raw_event_qla_log_event' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
691 | struct trace_event_raw_##call *entry; | ^~~~~~~~~~~~~~~~
include/trace/events/qla.h:12:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
12 | DECLARE_EVENT_CLASS(qla_log_event,
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/compiler_types.h:68,
from <command-line>:
include/trace/events/qla.h: In function 'perf_trace_qla_log_event':
>> arch/s390/include/asm/lowcore.h:191:33: warning: function 'perf_trace_qla_log_event' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
191 | #define S390_lowcore (*((struct lowcore *) 0))
| ^~~~~~~
include/linux/compiler-gcc.h:58:26: note: in definition of macro 'RELOC_HIDE'
58 | (typeof(ptr)) (__ptr + (off)); | ^~~
>> include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~~
>> arch/s390/include/asm/percpu.h:12:25: note: in expansion of macro 'S390_lowcore'
12 | #define __my_cpu_offset S390_lowcore.percpu_offset
| ^~~~~~~~~~~~
>> include/asm-generic/percpu.h:44:53: note: in expansion of macro '__my_cpu_offset'
44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset)
| ^~~~~~~~~~~~~~~
>> include/linux/percpu-defs.h:242:2: note: in expansion of macro 'arch_raw_cpu_ptr'
242 | arch_raw_cpu_ptr(ptr); | ^~~~~~~~~~~~~~~~
include/linux/percpu-defs.h:252:27: note: in expansion of macro 'raw_cpu_ptr'
252 | #define this_cpu_ptr(ptr) raw_cpu_ptr(ptr)
| ^~~~~~~~~~~
>> include/trace/perf.h:48:9: note: in expansion of macro 'this_cpu_ptr'
48 | head = this_cpu_ptr(event_call->perf_events); | ^~~~~~~~~~~~
include/trace/events/qla.h:12:1: note: in expansion of macro 'DECLARE_EVENT_CLASS'
12 | DECLARE_EVENT_CLASS(qla_log_event,
| ^~~~~~~~~~~~~~~~~~~
vim +191 arch/s390/include/asm/lowcore.h
cbb870c8221147 Heiko Carstens 2010-02-26 190
c667aeacc16e0d Heiko Carstens 2015-12-31 @191 #define S390_lowcore (*((struct lowcore *) 0))
cbb870c8221147 Heiko Carstens 2010-02-26 192
:::::: The code at line 191 was first introduced by commit
:::::: c667aeacc16e0de9e205faa93f57121d6f691973 s390: rename struct _lowcore to struct lowcore
:::::: TO: Heiko Carstens <heiko.carstens(a)de.ibm.com>
:::::: CC: Martin Schwidefsky <schwidefsky(a)de.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[hch-misc:set_fs-net-tunnel.2 5/9] net/ipv6/sit.c:460:6: warning: variable 'err' set but not used
by kbuild test robot
tree: git://git.infradead.org/users/hch/misc.git set_fs-net-tunnel.2
head: a0235d8add44d23022a18073e3ef61f10c2ec3bd
commit: a6e4b2bdb18cbd8dc7c3c5136fefbd807f47dae5 [5/9] sit: refactor ipip6_tunnel_ioctl
config: x86_64-defconfig (attached as .config)
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 <<):
net/ipv6/sit.c: In function 'ipip6_tunnel_prl_ctl':
>> net/ipv6/sit.c:460:6: warning: variable 'err' set but not used [-Wunused-but-set-variable]
int err;
^~~
vim +/err +460 net/ipv6/sit.c
454
455 static int ipip6_tunnel_prl_ctl(struct net_device *dev, struct ifreq *ifr,
456 int cmd)
457 {
458 struct ip_tunnel *t = netdev_priv(dev);
459 struct ip_tunnel_prl prl;
> 460 int err;
461
462 if (!ns_capable(t->net->user_ns, CAP_NET_ADMIN))
463 return -EPERM;
464 if (dev == dev_to_sit_net(dev)->fb_tunnel_dev)
465 return -EINVAL;
466
467 if (copy_from_user(&prl, ifr->ifr_ifru.ifru_data, sizeof(prl)))
468 return -EFAULT;
469
470 switch (cmd) {
471 case SIOCDELPRL:
472 err = ipip6_tunnel_del_prl(t, &prl);
473 break;
474 case SIOCADDPRL:
475 case SIOCCHGPRL:
476 err = ipip6_tunnel_add_prl(t, &prl, cmd == SIOCCHGPRL);
477 break;
478 }
479 dst_cache_reset(&t->dst_cache);
480 netdev_state_change(dev);
481 return 0;
482 }
483
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[krisman-unicode:for-next 1/2] sparc64-linux-ld: utf8-test.c:undefined reference to `kunit_ptr_not_err_assert_format'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/krisman/unicode.git for-next
head: cfeb007a96b15cafe1b8cc7aa8d43da77a97b7ae
commit: d269543a1dcb29d198f1e8f0dd0a249a563bc2ee [1/2] unicode: implement utf8 unit tests as a KUnit test suite.
config: sparc64-allmodconfig (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
git checkout d269543a1dcb29d198f1e8f0dd0a249a563bc2ee
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc64
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 <<):
sparc64-linux-ld: fs/unicode/utf8-test.o: in function `kunit_test_suites_init':
utf8-test.c:(.text+0x10): undefined reference to `__kunit_test_suites_init'
sparc64-linux-ld: fs/unicode/utf8-test.o: in function `utf8_test_comparisons':
utf8-test.c:(.text+0x48): undefined reference to `kunit_ptr_not_err_assert_format'
>> sparc64-linux-ld: utf8-test.c:(.text+0x50): undefined reference to `kunit_ptr_not_err_assert_format'
>> sparc64-linux-ld: utf8-test.c:(.text+0xb4): undefined reference to `kunit_do_assertion'
>> sparc64-linux-ld: utf8-test.c:(.text+0xbc): undefined reference to `kunit_binary_assert_format'
sparc64-linux-ld: utf8-test.c:(.text+0xd0): undefined reference to `kunit_binary_assert_format'
sparc64-linux-ld: utf8-test.c:(.text+0x16c): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: utf8-test.c:(.text+0x220): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: fs/unicode/utf8-test.o: in function `utf8_test_nfdicf':
utf8-test.c:(.text+0x288): undefined reference to `kunit_ptr_not_err_assert_format'
sparc64-linux-ld: utf8-test.c:(.text+0x290): undefined reference to `kunit_ptr_not_err_assert_format'
sparc64-linux-ld: utf8-test.c:(.text+0x2ec): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: utf8-test.c:(.text+0x2f8): undefined reference to `kunit_binary_assert_format'
sparc64-linux-ld: utf8-test.c:(.text+0x340): undefined reference to `kunit_binary_assert_format'
sparc64-linux-ld: utf8-test.c:(.text+0x3f0): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: utf8-test.c:(.text+0x460): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: utf8-test.c:(.text+0x4c8): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: utf8-test.c:(.text+0x51c): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: utf8-test.c:(.text+0x59c): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: fs/unicode/utf8-test.o: in function `utf8_test_nfdi':
utf8-test.c:(.text+0x608): undefined reference to `kunit_ptr_not_err_assert_format'
sparc64-linux-ld: utf8-test.c:(.text+0x610): undefined reference to `kunit_ptr_not_err_assert_format'
sparc64-linux-ld: utf8-test.c:(.text+0x66c): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: utf8-test.c:(.text+0x678): undefined reference to `kunit_binary_assert_format'
sparc64-linux-ld: utf8-test.c:(.text+0x6c0): undefined reference to `kunit_binary_assert_format'
sparc64-linux-ld: utf8-test.c:(.text+0x774): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: utf8-test.c:(.text+0x7e4): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: utf8-test.c:(.text+0x84c): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: utf8-test.c:(.text+0x8a0): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: utf8-test.c:(.text+0x928): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: fs/unicode/utf8-test.o: in function `utf8_test_supported_versions':
utf8-test.c:(.text+0x998): undefined reference to `kunit_unary_assert_format'
>> sparc64-linux-ld: utf8-test.c:(.text+0x9a4): undefined reference to `kunit_unary_assert_format'
sparc64-linux-ld: utf8-test.c:(.text+0x9cc): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: utf8-test.c:(.text+0xa28): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: utf8-test.c:(.text+0xa80): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: utf8-test.c:(.text+0xae0): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: utf8-test.c:(.text+0xb30): undefined reference to `kunit_do_assertion'
sparc64-linux-ld: fs/unicode/utf8-test.o:utf8-test.c:(.text+0xb8c): more undefined references to `kunit_do_assertion' follow
sparc64-linux-ld: fs/unicode/utf8-test.o: in function `kunit_test_suites_exit':
utf8-test.c:(.exit.text+0x8): undefined reference to `__kunit_test_suites_exit'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[krisman-unicode:for-next 1/2] s390-linux-ld: utf8-test.c:undefined reference to `kunit_do_assertion'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/krisman/unicode.git for-next
head: cfeb007a96b15cafe1b8cc7aa8d43da77a97b7ae
commit: d269543a1dcb29d198f1e8f0dd0a249a563bc2ee [1/2] unicode: implement utf8 unit tests as a KUnit test suite.
config: s390-allmodconfig (attached as .config)
compiler: s390-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 d269543a1dcb29d198f1e8f0dd0a249a563bc2ee
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390
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 <<):
s390-linux-ld: fs/unicode/utf8-test.o: in function `kunit_test_suites_init':
utf8-test.c:(.text+0x30): undefined reference to `__kunit_test_suites_init'
s390-linux-ld: fs/unicode/utf8-test.o: in function `utf8_test_comparisons':
utf8-test.c:(.text+0xf8): undefined reference to `kunit_ptr_not_err_assert_format'
>> s390-linux-ld: utf8-test.c:(.text+0x198): undefined reference to `kunit_do_assertion'
>> s390-linux-ld: utf8-test.c:(.text+0x1bc): undefined reference to `kunit_binary_assert_format'
s390-linux-ld: utf8-test.c:(.text+0x2fa): undefined reference to `kunit_do_assertion'
s390-linux-ld: utf8-test.c:(.text+0x442): undefined reference to `kunit_do_assertion'
s390-linux-ld: fs/unicode/utf8-test.o: in function `utf8_test_nfdicf':
utf8-test.c:(.text+0x560): undefined reference to `kunit_ptr_not_err_assert_format'
s390-linux-ld: utf8-test.c:(.text+0x606): undefined reference to `kunit_do_assertion'
s390-linux-ld: utf8-test.c:(.text+0x60c): undefined reference to `kunit_binary_assert_format'
s390-linux-ld: utf8-test.c:(.text+0x706): undefined reference to `kunit_do_assertion'
s390-linux-ld: utf8-test.c:(.text+0x7cc): undefined reference to `kunit_do_assertion'
s390-linux-ld: utf8-test.c:(.text+0x88a): undefined reference to `kunit_do_assertion'
s390-linux-ld: utf8-test.c:(.text+0x99c): undefined reference to `kunit_do_assertion'
s390-linux-ld: utf8-test.c:(.text+0xa80): undefined reference to `kunit_do_assertion'
s390-linux-ld: fs/unicode/utf8-test.o: in function `utf8_test_nfdi':
utf8-test.c:(.text+0xbc8): undefined reference to `kunit_ptr_not_err_assert_format'
s390-linux-ld: utf8-test.c:(.text+0xc6e): undefined reference to `kunit_do_assertion'
s390-linux-ld: utf8-test.c:(.text+0xc74): undefined reference to `kunit_binary_assert_format'
s390-linux-ld: utf8-test.c:(.text+0xd6e): undefined reference to `kunit_do_assertion'
s390-linux-ld: utf8-test.c:(.text+0xe34): undefined reference to `kunit_do_assertion'
s390-linux-ld: utf8-test.c:(.text+0xef2): undefined reference to `kunit_do_assertion'
s390-linux-ld: utf8-test.c:(.text+0x1004): undefined reference to `kunit_do_assertion'
s390-linux-ld: utf8-test.c:(.text+0x10e8): undefined reference to `kunit_do_assertion'
s390-linux-ld: fs/unicode/utf8-test.o: in function `utf8_test_supported_versions':
utf8-test.c:(.text+0x1216): undefined reference to `kunit_unary_assert_format'
s390-linux-ld: utf8-test.c:(.text+0x1266): undefined reference to `kunit_do_assertion'
s390-linux-ld: utf8-test.c:(.text+0x12e4): undefined reference to `kunit_do_assertion'
s390-linux-ld: utf8-test.c:(.text+0x1362): undefined reference to `kunit_do_assertion'
s390-linux-ld: utf8-test.c:(.text+0x13e4): undefined reference to `kunit_do_assertion'
s390-linux-ld: utf8-test.c:(.text+0x1466): undefined reference to `kunit_do_assertion'
s390-linux-ld: fs/unicode/utf8-test.o:utf8-test.c:(.text+0x14e8): more undefined references to `kunit_do_assertion' follow
s390-linux-ld: fs/unicode/utf8-test.o: in function `kunit_test_suites_exit':
utf8-test.c:(.exit.text+0x2a): undefined reference to `__kunit_test_suites_exit'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[lkp] [+4007 bytes kernel size regression] [i386-tinyconfig] [3389d7a0a4] iov_iter: Add ITER_MAPPING
by kbuild test robot
FYI, we noticed a +4007 bytes kernel size regression due to commit:
commit: 3389d7a0a4d77044d7a575f009d07cd6dc48452f (iov_iter: Add ITER_MAPPING)
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-iter
Details as below (size data is obtained by `nm --size-sort vmlinux`):
1bcfb218: fscache: Remove the I/O operation manager
3389d7a0: iov_iter: Add ITER_MAPPING
+-------------------------------------+----------+----------+-------+
| symbol | 1bcfb218 | 3389d7a0 | delta |
+-------------------------------------+----------+----------+-------+
| bzImage | 439552 | 440864 | 1312 |
| nm.T.iov_iter_get_pages | 589 | 939 | 350 |
| nm.T.iov_iter_get_pages_alloc | 715 | 1062 | 347 |
| nm.T.csum_and_copy_to_iter | 1027 | 1304 | 277 |
| nm.T.csum_and_copy_from_iter | 844 | 1094 | 250 |
| nm.T.csum_and_copy_from_iter_full | 654 | 900 | 246 |
| nm.T.iov_iter_for_each_range | 352 | 582 | 230 |
| nm.T._copy_to_iter | 778 | 996 | 218 |
| nm.T._copy_from_iter | 560 | 772 | 212 |
| nm.T._copy_from_iter_nocache | 560 | 772 | 212 |
| nm.T.iov_iter_copy_from_user_atomic | 425 | 635 | 210 |
| nm.T.iov_iter_npages | 445 | 654 | 209 |
| nm.T.iov_iter_advance | 436 | 638 | 202 |
| nm.T._copy_from_iter_full | 399 | 595 | 196 |
| nm.T._copy_from_iter_full_nocache | 399 | 595 | 196 |
| nm.T.iov_iter_gap_alignment | 328 | 516 | 188 |
| nm.T.iov_iter_alignment | 329 | 494 | 165 |
| nm.T.iov_iter_zero | 661 | 817 | 156 |
| nm.T.iov_iter_mapping | 0 | 47 | 47 |
| nm.t.xas_retry | 0 | 30 | 30 |
| nm.t.memzero_page | 0 | 25 | 25 |
| nm.t.csum_block_add | 0 | 23 | 23 |
| nm.T.iov_iter_revert | 200 | 210 | 10 |
| nm.T.dup_iter | 70 | 78 | 8 |
| nm.T.iov_iter_single_seg_count | 41 | 44 | 3 |
| nm.t.csum_and_memcpy | 43 | 40 | -3 |
+-------------------------------------+----------+----------+-------+
Thanks,
Kbuild test robot
2 years, 4 months
[bluetooth-next:master 4/9] net/bluetooth/l2cap_sock.c:1084:21: sparse: sparse: incorrect type in argument 1 (different address spaces)
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
head: 1e5479be46a70389e1059818a2e9358858eaa5fc
commit: 3ee7b7cd83900bb711efadbf16fa096a615a1566 [4/9] Bluetooth: Add BT_MODE socket option
config: sh-randconfig-s001-20200519 (attached as .config)
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-193-gb8fad4bc-dirty
git checkout 3ee7b7cd83900bb711efadbf16fa096a615a1566
# save the attached .config to linux build tree
make C=1 ARCH=sh 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 >>)
./arch/sh/include/generated/uapi/asm/unistd_32.h:411:37: sparse: sparse: no newline at end of file
net/bluetooth/l2cap_sock.c:428:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderefint const *__gu_addr @@
net/bluetooth/l2cap_sock.c:428:13: sparse: expected int const *__gu_addr
net/bluetooth/l2cap_sock.c:428:13: sparse: got int [noderef] <asn:1> *optlen
net/bluetooth/l2cap_sock.c:428:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] <asn:1> * @@ got ] <asn:1> * @@
net/bluetooth/l2cap_sock.c:428:13: sparse: expected void const volatile [noderef] <asn:1> *
net/bluetooth/l2cap_sock.c:428:13: sparse: got int const *__gu_addr
net/bluetooth/l2cap_sock.c:553:13: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected int const *__gu_addr @@ got int [noderefint const *__gu_addr @@
net/bluetooth/l2cap_sock.c:553:13: sparse: expected int const *__gu_addr
net/bluetooth/l2cap_sock.c:553:13: sparse: got int [noderef] <asn:1> *optlen
net/bluetooth/l2cap_sock.c:553:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] <asn:1> * @@ got ] <asn:1> * @@
net/bluetooth/l2cap_sock.c:553:13: sparse: expected void const volatile [noderef] <asn:1> *
net/bluetooth/l2cap_sock.c:553:13: sparse: got int const *__gu_addr
net/bluetooth/l2cap_sock.c:785:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] unsigned int const *__gu_addr @@
net/bluetooth/l2cap_sock.c:785:21: sparse: expected unsigned int const *__gu_addr
net/bluetooth/l2cap_sock.c:785:21: sparse: got unsigned int [noderef] [usertype] <asn:1> *
net/bluetooth/l2cap_sock.c:785:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] <asn:1> * @@ got [noderef] <asn:1> * @@
net/bluetooth/l2cap_sock.c:785:21: sparse: expected void const volatile [noderef] <asn:1> *
net/bluetooth/l2cap_sock.c:785:21: sparse: got unsigned int const *__gu_addr
net/bluetooth/l2cap_sock.c:942:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] unsigned int const *__gu_addr @@
net/bluetooth/l2cap_sock.c:942:21: sparse: expected unsigned int const *__gu_addr
net/bluetooth/l2cap_sock.c:942:21: sparse: got unsigned int [noderef] [usertype] <asn:1> *
net/bluetooth/l2cap_sock.c:942:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] <asn:1> * @@ got [noderef] <asn:1> * @@
net/bluetooth/l2cap_sock.c:942:21: sparse: expected void const volatile [noderef] <asn:1> *
net/bluetooth/l2cap_sock.c:942:21: sparse: got unsigned int const *__gu_addr
net/bluetooth/l2cap_sock.c:957:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] unsigned int const *__gu_addr @@
net/bluetooth/l2cap_sock.c:957:21: sparse: expected unsigned int const *__gu_addr
net/bluetooth/l2cap_sock.c:957:21: sparse: got unsigned int [noderef] [usertype] <asn:1> *
net/bluetooth/l2cap_sock.c:957:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] <asn:1> * @@ got [noderef] <asn:1> * @@
net/bluetooth/l2cap_sock.c:957:21: sparse: expected void const volatile [noderef] <asn:1> *
net/bluetooth/l2cap_sock.c:957:21: sparse: got unsigned int const *__gu_addr
net/bluetooth/l2cap_sock.c:1005:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] unsigned int const *__gu_addr @@
net/bluetooth/l2cap_sock.c:1005:21: sparse: expected unsigned int const *__gu_addr
net/bluetooth/l2cap_sock.c:1005:21: sparse: got unsigned int [noderef] [usertype] <asn:1> *
net/bluetooth/l2cap_sock.c:1005:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] <asn:1> * @@ got [noderef] <asn:1> * @@
net/bluetooth/l2cap_sock.c:1005:21: sparse: expected void const volatile [noderef] <asn:1> *
net/bluetooth/l2cap_sock.c:1005:21: sparse: got unsigned int const *__gu_addr
net/bluetooth/l2cap_sock.c:1053:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned short const *__gu_addr @@ got unsigned short [noderefunsigned short const *__gu_addr @@
net/bluetooth/l2cap_sock.c:1053:21: sparse: expected unsigned short const *__gu_addr
net/bluetooth/l2cap_sock.c:1053:21: sparse: got unsigned short [noderef] [usertype] <asn:1> *
net/bluetooth/l2cap_sock.c:1053:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] <asn:1> * @@ got le [noderef] <asn:1> * @@
net/bluetooth/l2cap_sock.c:1053:21: sparse: expected void const volatile [noderef] <asn:1> *
net/bluetooth/l2cap_sock.c:1053:21: sparse: got unsigned short const *__gu_addr
net/bluetooth/l2cap_sock.c:1084:21: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned char const *__gu_addr @@ got unsigned char [noderef]unsigned char const *__gu_addr @@
net/bluetooth/l2cap_sock.c:1084:21: sparse: expected unsigned char const *__gu_addr
net/bluetooth/l2cap_sock.c:1084:21: sparse: got unsigned char [noderef] [usertype] <asn:1> *
>> net/bluetooth/l2cap_sock.c:1084:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] <asn:1> * @@ got e [noderef] <asn:1> * @@
net/bluetooth/l2cap_sock.c:1084:21: sparse: expected void const volatile [noderef] <asn:1> *
net/bluetooth/l2cap_sock.c:1084:21: sparse: got unsigned char const *__gu_addr
vim +1084 net/bluetooth/l2cap_sock.c
860
861 static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname,
862 char __user *optval, unsigned int optlen)
863 {
864 struct sock *sk = sock->sk;
865 struct l2cap_chan *chan = l2cap_pi(sk)->chan;
866 struct bt_security sec;
867 struct bt_power pwr;
868 struct l2cap_conn *conn;
869 int len, err = 0;
870 u32 opt;
871
872 BT_DBG("sk %p", sk);
873
874 if (level == SOL_L2CAP)
875 return l2cap_sock_setsockopt_old(sock, optname, optval, optlen);
876
877 if (level != SOL_BLUETOOTH)
878 return -ENOPROTOOPT;
879
880 lock_sock(sk);
881
882 switch (optname) {
883 case BT_SECURITY:
884 if (chan->chan_type != L2CAP_CHAN_CONN_ORIENTED &&
885 chan->chan_type != L2CAP_CHAN_FIXED &&
886 chan->chan_type != L2CAP_CHAN_RAW) {
887 err = -EINVAL;
888 break;
889 }
890
891 sec.level = BT_SECURITY_LOW;
892
893 len = min_t(unsigned int, sizeof(sec), optlen);
894 if (copy_from_user((char *) &sec, optval, len)) {
895 err = -EFAULT;
896 break;
897 }
898
899 if (sec.level < BT_SECURITY_LOW ||
900 sec.level > BT_SECURITY_FIPS) {
901 err = -EINVAL;
902 break;
903 }
904
905 chan->sec_level = sec.level;
906
907 if (!chan->conn)
908 break;
909
910 conn = chan->conn;
911
912 /* change security for LE channels */
913 if (chan->scid == L2CAP_CID_ATT) {
914 if (smp_conn_security(conn->hcon, sec.level)) {
915 err = -EINVAL;
916 break;
917 }
918
919 set_bit(FLAG_PENDING_SECURITY, &chan->flags);
920 sk->sk_state = BT_CONFIG;
921 chan->state = BT_CONFIG;
922
923 /* or for ACL link */
924 } else if ((sk->sk_state == BT_CONNECT2 &&
925 test_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags)) ||
926 sk->sk_state == BT_CONNECTED) {
927 if (!l2cap_chan_check_security(chan, true))
928 set_bit(BT_SK_SUSPEND, &bt_sk(sk)->flags);
929 else
930 sk->sk_state_change(sk);
931 } else {
932 err = -EINVAL;
933 }
934 break;
935
936 case BT_DEFER_SETUP:
937 if (sk->sk_state != BT_BOUND && sk->sk_state != BT_LISTEN) {
938 err = -EINVAL;
939 break;
940 }
941
942 if (get_user(opt, (u32 __user *) optval)) {
943 err = -EFAULT;
944 break;
945 }
946
947 if (opt) {
948 set_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags);
949 set_bit(FLAG_DEFER_SETUP, &chan->flags);
950 } else {
951 clear_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags);
952 clear_bit(FLAG_DEFER_SETUP, &chan->flags);
953 }
954 break;
955
956 case BT_FLUSHABLE:
957 if (get_user(opt, (u32 __user *) optval)) {
958 err = -EFAULT;
959 break;
960 }
961
962 if (opt > BT_FLUSHABLE_ON) {
963 err = -EINVAL;
964 break;
965 }
966
967 if (opt == BT_FLUSHABLE_OFF) {
968 conn = chan->conn;
969 /* proceed further only when we have l2cap_conn and
970 No Flush support in the LM */
971 if (!conn || !lmp_no_flush_capable(conn->hcon->hdev)) {
972 err = -EINVAL;
973 break;
974 }
975 }
976
977 if (opt)
978 set_bit(FLAG_FLUSHABLE, &chan->flags);
979 else
980 clear_bit(FLAG_FLUSHABLE, &chan->flags);
981 break;
982
983 case BT_POWER:
984 if (chan->chan_type != L2CAP_CHAN_CONN_ORIENTED &&
985 chan->chan_type != L2CAP_CHAN_RAW) {
986 err = -EINVAL;
987 break;
988 }
989
990 pwr.force_active = BT_POWER_FORCE_ACTIVE_ON;
991
992 len = min_t(unsigned int, sizeof(pwr), optlen);
993 if (copy_from_user((char *) &pwr, optval, len)) {
994 err = -EFAULT;
995 break;
996 }
997
998 if (pwr.force_active)
999 set_bit(FLAG_FORCE_ACTIVE, &chan->flags);
1000 else
1001 clear_bit(FLAG_FORCE_ACTIVE, &chan->flags);
1002 break;
1003
1004 case BT_CHANNEL_POLICY:
1005 if (get_user(opt, (u32 __user *) optval)) {
1006 err = -EFAULT;
1007 break;
1008 }
1009
1010 if (opt > BT_CHANNEL_POLICY_AMP_PREFERRED) {
1011 err = -EINVAL;
1012 break;
1013 }
1014
1015 if (chan->mode != L2CAP_MODE_ERTM &&
1016 chan->mode != L2CAP_MODE_STREAMING) {
1017 err = -EOPNOTSUPP;
1018 break;
1019 }
1020
1021 chan->chan_policy = (u8) opt;
1022
1023 if (sk->sk_state == BT_CONNECTED &&
1024 chan->move_role == L2CAP_MOVE_ROLE_NONE)
1025 l2cap_move_start(chan);
1026
1027 break;
1028
1029 case BT_SNDMTU:
1030 if (!bdaddr_type_is_le(chan->src_type)) {
1031 err = -EINVAL;
1032 break;
1033 }
1034
1035 /* Setting is not supported as it's the remote side that
1036 * decides this.
1037 */
1038 err = -EPERM;
1039 break;
1040
1041 case BT_RCVMTU:
1042 if (!bdaddr_type_is_le(chan->src_type)) {
1043 err = -EINVAL;
1044 break;
1045 }
1046
1047 if (chan->mode == L2CAP_MODE_LE_FLOWCTL &&
1048 sk->sk_state == BT_CONNECTED) {
1049 err = -EISCONN;
1050 break;
1051 }
1052
1053 if (get_user(opt, (u16 __user *) optval)) {
1054 err = -EFAULT;
1055 break;
1056 }
1057
1058 if (chan->mode == L2CAP_MODE_EXT_FLOWCTL &&
1059 sk->sk_state == BT_CONNECTED)
1060 err = l2cap_chan_reconfigure(chan, opt);
1061 else
1062 chan->imtu = opt;
1063
1064 break;
1065
1066 case BT_MODE:
1067 if (!enable_ecred) {
1068 err = -ENOPROTOOPT;
1069 break;
1070 }
1071
1072 BT_DBG("sk->sk_state %u", sk->sk_state);
1073
1074 if (sk->sk_state != BT_BOUND) {
1075 err = -EINVAL;
1076 break;
1077 }
1078
1079 if (chan->chan_type != L2CAP_CHAN_CONN_ORIENTED) {
1080 err = -EINVAL;
1081 break;
1082 }
1083
> 1084 if (get_user(opt, (u8 __user *) optval)) {
1085 err = -EFAULT;
1086 break;
1087 }
1088
1089 BT_DBG("opt %u", opt);
1090
1091 err = l2cap_set_mode(chan, opt);
1092 if (err)
1093 break;
1094
1095 BT_DBG("mode 0x%2.2x", chan->mode);
1096
1097 break;
1098
1099 default:
1100 err = -ENOPROTOOPT;
1101 break;
1102 }
1103
1104 release_sock(sk);
1105 return err;
1106 }
1107
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
drivers/iio/accel/bma400_i2c.c:21: undefined reference to `__devm_regmap_init_i2c'
by kbuild test robot
Hi Dave,
It's probably a bug fix that unveils the link errors.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 642b151f45dd54809ea00ecd3976a56c1ec9b53d
commit: 7ebdc26a315ac0f13369eaf922bcee3ede576438 Merge tag 'drm-misc-next-fixes-2020-02-07' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
date: 3 months ago
config: arm64-randconfig-r024-20200518 (attached as .config)
compiler: aarch64-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 7ebdc26a315ac0f13369eaf922bcee3ede576438
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
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 <<):
aarch64-linux-ld: drivers/iio/accel/bma400_i2c.o: in function `bma400_i2c_probe':
>> drivers/iio/accel/bma400_i2c.c:21: undefined reference to `__devm_regmap_init_i2c'
vim +21 drivers/iio/accel/bma400_i2c.c
465c811f1f201a Dan Robertson 2019-12-20 15
465c811f1f201a Dan Robertson 2019-12-20 16 static int bma400_i2c_probe(struct i2c_client *client,
465c811f1f201a Dan Robertson 2019-12-20 17 const struct i2c_device_id *id)
465c811f1f201a Dan Robertson 2019-12-20 18 {
465c811f1f201a Dan Robertson 2019-12-20 19 struct regmap *regmap;
465c811f1f201a Dan Robertson 2019-12-20 20
465c811f1f201a Dan Robertson 2019-12-20 @21 regmap = devm_regmap_init_i2c(client, &bma400_regmap_config);
465c811f1f201a Dan Robertson 2019-12-20 22 if (IS_ERR(regmap)) {
465c811f1f201a Dan Robertson 2019-12-20 23 dev_err(&client->dev, "failed to create regmap\n");
465c811f1f201a Dan Robertson 2019-12-20 24 return PTR_ERR(regmap);
465c811f1f201a Dan Robertson 2019-12-20 25 }
465c811f1f201a Dan Robertson 2019-12-20 26
465c811f1f201a Dan Robertson 2019-12-20 27 return bma400_probe(&client->dev, regmap, id->name);
465c811f1f201a Dan Robertson 2019-12-20 28 }
465c811f1f201a Dan Robertson 2019-12-20 29
:::::: The code at line 21 was first introduced by commit
:::::: 465c811f1f201a7554a95cf003bc06a239606e9b iio: accel: Add driver for the BMA400
:::::: TO: Dan Robertson <dan(a)dlrobertson.com>
:::::: CC: Jonathan Cameron <Jonathan.Cameron(a)huawei.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[android-common:android-4.14-stable 22/22] drivers/gpu/drm/virtio/virtgpu_vq.c:1130:23: sparse: sparse: incorrect type in assignment (different base types)
by kbuild test robot
tree: https://android.googlesource.com/kernel/common android-4.14-stable
head: 4d701a3899580b291122ab7b147bc20981afd349
commit: 4d701a3899580b291122ab7b147bc20981afd349 [22/22] CHROMIUM: drm/virtio: rebase zero-copy patches to virgl/drm-misc-next
config: i386-allyesconfig (attached as .config)
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-193-gb8fad4bc-dirty
git checkout 4d701a3899580b291122ab7b147bc20981afd349
# save the attached .config to linux build tree
make C=1 ARCH=i386 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/gpu/drm/virtio/virtgpu_vq.c:200:33: sparse: sparse: restricted __le32 degrades to integer
drivers/gpu/drm/virtio/virtgpu_vq.c:200:43: sparse: sparse: restricted __le32 degrades to integer
>> drivers/gpu/drm/virtio/virtgpu_vq.c:1130:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __le64 [usertype] offset @@ got urestricted __le64 [usertype] offset @@
>> drivers/gpu/drm/virtio/virtgpu_vq.c:1130:23: sparse: expected restricted __le64 [usertype] offset
>> drivers/gpu/drm/virtio/virtgpu_vq.c:1130:23: sparse: got unsigned long long [usertype] offset
vim +1130 drivers/gpu/drm/virtio/virtgpu_vq.c
1107
1108 void virtio_gpu_cmd_map(struct virtio_gpu_device *vgdev,
1109 struct virtio_gpu_object *bo,
1110 uint64_t offset,
1111 struct virtio_gpu_fence *fence)
1112 {
1113 struct virtio_gpu_resource_map *cmd_p;
1114 struct virtio_gpu_vbuffer *vbuf;
1115 struct virtio_gpu_resp_map_info *resp_buf;
1116
1117 resp_buf = kzalloc(sizeof(*resp_buf), GFP_KERNEL);
1118 if (!resp_buf) {
1119 DRM_ERROR("allocation failure\n");
1120 return;
1121 }
1122
1123 cmd_p = virtio_gpu_alloc_cmd_resp(vgdev,
1124 virtio_gpu_cmd_resource_map_cb, &vbuf, sizeof(*cmd_p),
1125 sizeof(struct virtio_gpu_resp_map_info), resp_buf);
1126 memset(cmd_p, 0, sizeof(*cmd_p));
1127
1128 cmd_p->hdr.type = cpu_to_le32(VIRTIO_GPU_CMD_RESOURCE_MAP);
1129 cmd_p->resource_id = cpu_to_le32(bo->hw_res_handle);
> 1130 cmd_p->offset = offset;
1131
1132 virtio_gpu_queue_fenced_ctrl_buffer(vgdev, vbuf, &cmd_p->hdr, fence);
1133 }
1134
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [RFC] arm64: Enable perf events based hard lockup detector
by kbuild test robot
Hi Sumit,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on arm-soc/for-next arm/for-next kvmarm/next linus/master v5.7-rc5 next-20200515]
[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/Sumit-Garg/arm64-Enable-perf-eve...
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
config: arm64-randconfig-r025-20200515 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 9d4cf5bd421fb6467ff5f00e26a37527246dd4d6)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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/perf/arm_pmu.c:613:20: error: use of undeclared identifier 'cpu_irq_ops'; did you mean 'cpu_map_ops'?
irq_ops = per_cpu(cpu_irq_ops, smp_processor_id());
^~~~~~~~~~~
cpu_map_ops
include/linux/percpu-defs.h:269:43: note: expanded from macro 'per_cpu'
#define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
^
include/linux/percpu-defs.h:235:20: note: expanded from macro 'per_cpu_ptr'
__verify_pcpu_ptr(ptr); ^
include/linux/percpu-defs.h:219:47: note: expanded from macro '__verify_pcpu_ptr'
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; ^
include/linux/bpf_types.h:108:35: note: 'cpu_map_ops' declared here
BPF_MAP_TYPE(BPF_MAP_TYPE_CPUMAP, cpu_map_ops)
^
drivers/perf/arm_pmu.c:613:20: error: use of undeclared identifier 'cpu_irq_ops'; did you mean 'cpu_map_ops'?
irq_ops = per_cpu(cpu_irq_ops, smp_processor_id());
^~~~~~~~~~~
cpu_map_ops
include/linux/percpu-defs.h:269:43: note: expanded from macro 'per_cpu'
#define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
^
include/linux/percpu-defs.h:236:20: note: expanded from macro 'per_cpu_ptr'
SHIFT_PERCPU_PTR((ptr), per_cpu_offset((cpu))); ^
include/linux/percpu-defs.h:231:23: note: expanded from macro 'SHIFT_PERCPU_PTR'
RELOC_HIDE((typeof(*(__p)) __kernel __force *)(__p), (__offset))
^
include/linux/compiler.h:165:31: note: expanded from macro 'RELOC_HIDE'
__ptr = (unsigned long) (ptr); ^
include/linux/bpf_types.h:108:35: note: 'cpu_map_ops' declared here
BPF_MAP_TYPE(BPF_MAP_TYPE_CPUMAP, cpu_map_ops)
^
drivers/perf/arm_pmu.c:613:20: error: use of undeclared identifier 'cpu_irq_ops'; did you mean 'cpu_map_ops'?
irq_ops = per_cpu(cpu_irq_ops, smp_processor_id());
^~~~~~~~~~~
cpu_map_ops
include/linux/percpu-defs.h:269:43: note: expanded from macro 'per_cpu'
#define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
^
include/linux/percpu-defs.h:236:20: note: expanded from macro 'per_cpu_ptr'
SHIFT_PERCPU_PTR((ptr), per_cpu_offset((cpu))); ^
include/linux/percpu-defs.h:231:49: note: expanded from macro 'SHIFT_PERCPU_PTR'
RELOC_HIDE((typeof(*(__p)) __kernel __force *)(__p), (__offset))
^
include/linux/compiler.h:165:31: note: expanded from macro 'RELOC_HIDE'
__ptr = (unsigned long) (ptr); ^
include/linux/bpf_types.h:108:35: note: 'cpu_map_ops' declared here
BPF_MAP_TYPE(BPF_MAP_TYPE_CPUMAP, cpu_map_ops)
^
drivers/perf/arm_pmu.c:613:20: error: use of undeclared identifier 'cpu_irq_ops'; did you mean 'cpu_map_ops'?
irq_ops = per_cpu(cpu_irq_ops, smp_processor_id());
^~~~~~~~~~~
cpu_map_ops
include/linux/percpu-defs.h:269:43: note: expanded from macro 'per_cpu'
#define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
^
include/linux/percpu-defs.h:236:20: note: expanded from macro 'per_cpu_ptr'
SHIFT_PERCPU_PTR((ptr), per_cpu_offset((cpu))); ^
include/linux/percpu-defs.h:231:23: note: expanded from macro 'SHIFT_PERCPU_PTR'
RELOC_HIDE((typeof(*(__p)) __kernel __force *)(__p), (__offset))
^
include/linux/compiler.h:166:13: note: expanded from macro 'RELOC_HIDE'
(typeof(ptr)) (__ptr + (off)); })
^
include/linux/bpf_types.h:108:35: note: 'cpu_map_ops' declared here
BPF_MAP_TYPE(BPF_MAP_TYPE_CPUMAP, cpu_map_ops)
^
drivers/perf/arm_pmu.c:613:20: error: use of undeclared identifier 'cpu_irq_ops'; did you mean 'cpu_map_ops'?
irq_ops = per_cpu(cpu_irq_ops, smp_processor_id());
^~~~~~~~~~~
cpu_map_ops
include/linux/percpu-defs.h:269:43: note: expanded from macro 'per_cpu'
#define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
^
include/linux/percpu-defs.h:236:20: note: expanded from macro 'per_cpu_ptr'
SHIFT_PERCPU_PTR((ptr), per_cpu_offset((cpu))); ^
include/linux/percpu-defs.h:231:49: note: expanded from macro 'SHIFT_PERCPU_PTR'
RELOC_HIDE((typeof(*(__p)) __kernel __force *)(__p), (__offset))
^
include/linux/compiler.h:166:13: note: expanded from macro 'RELOC_HIDE'
(typeof(ptr)) (__ptr + (off)); })
^
include/linux/bpf_types.h:108:35: note: 'cpu_map_ops' declared here
BPF_MAP_TYPE(BPF_MAP_TYPE_CPUMAP, cpu_map_ops)
^
>> drivers/perf/arm_pmu.c:613:10: error: assigning to 'const struct pmu_irq_ops *' from incompatible type 'typeof (*((&(cpu_map_ops))))' (aka 'const struct bpf_map_ops')
irq_ops = per_cpu(cpu_irq_ops, smp_processor_id());
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/perf/arm_pmu.c:614:18: error: use of undeclared identifier 'pmunmi_ops'
if (irq_ops == &pmunmi_ops || irq_ops == &percpu_pmunmi_ops)
^
drivers/perf/arm_pmu.c:614:44: error: use of undeclared identifier 'percpu_pmunmi_ops'
if (irq_ops == &pmunmi_ops || irq_ops == &percpu_pmunmi_ops)
^
8 errors generated.
vim +613 drivers/perf/arm_pmu.c
608
609 bool arm_pmu_irq_is_nmi(void)
610 {
611 const struct pmu_irq_ops *irq_ops;
612
> 613 irq_ops = per_cpu(cpu_irq_ops, smp_processor_id());
614 if (irq_ops == &pmunmi_ops || irq_ops == &percpu_pmunmi_ops)
615 return true;
616 else
617 return false;
618 }
619
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months