Re: [RESEND PATCH net-next v2] net: phylink: Add helpers for c22 registers without MDIO
by kernel test robot
Hi Sean,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Sean-Anderson/net-phylink-Add-he...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git bb8cecf8ba127abca8ccd102207a59c55fdae515
config: microblaze-randconfig-m031-20211118 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
smatch warnings:
drivers/net/phy/phylink.c:2952 phylink_mii_c22_pcs_config() warn: always true condition '(adv != -22) => (0-u16max != (-22))'
vim +2952 drivers/net/phy/phylink.c
2930
2931 /**
2932 * phylink_mii_c22_pcs_config() - configure clause 22 PCS
2933 * @pcs: a pointer to a &struct mdio_device.
2934 * @mode: link autonegotiation mode
2935 * @interface: the PHY interface mode being configured
2936 * @advertising: the ethtool advertisement mask
2937 *
2938 * Configure a Clause 22 PCS PHY with the appropriate negotiation
2939 * parameters for the @mode, @interface and @advertising parameters.
2940 * Returns negative error number on failure, zero if the advertisement
2941 * has not changed, or positive if there is a change.
2942 */
2943 int phylink_mii_c22_pcs_config(struct mdio_device *pcs, unsigned int mode,
2944 phy_interface_t interface,
2945 const unsigned long *advertising)
2946 {
2947 bool changed = 0;
2948 u16 adv, bmcr;
2949 int ret;
2950
2951 adv = phylink_mii_c22_pcs_encode_advertisement(interface, advertising);
> 2952 if (adv != -EINVAL) {
2953 ret = mdiobus_modify_changed(pcs->bus, pcs->addr,
2954 MII_ADVERTISE, 0xffff, adv);
2955 if (ret < 0)
2956 return ret;
2957 changed = ret;
2958 }
2959
2960 /* Ensure ISOLATE bit is disabled */
2961 if (mode == MLO_AN_INBAND &&
2962 linkmode_test_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, advertising))
2963 bmcr = BMCR_ANENABLE;
2964 else
2965 bmcr = 0;
2966
2967 ret = mdiodev_modify(pcs, MII_BMCR, BMCR_ANENABLE | BMCR_ISOLATE, bmcr);
2968 if (ret < 0)
2969 return ret;
2970
2971 return changed;
2972 }
2973 EXPORT_SYMBOL_GPL(phylink_mii_c22_pcs_config);
2974
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[linux-next:master 1474/2290] include/net/sock.h:386:45: error: 'struct sock_common' has no member named 'skc_v6_daddr'; did you mean 'skc_daddr'?
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 5191249f880367a4cd675825cd721a8d78f26a45
commit: 4c3d90570bcc2b338f70f61f01110268e281ca3c [1474/2290] fs: dlm: don't call kernel_getpeername() in error_report()
config: nds32-randconfig-r003-20211115 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout 4c3d90570bcc2b338f70f61f01110268e281ca3c
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nds32 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the linux-next/master HEAD 5191249f880367a4cd675825cd721a8d78f26a45 builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
In file included from fs/dlm/lowcomms.c:46:
fs/dlm/lowcomms.c: In function 'lowcomms_error_report':
>> include/net/sock.h:386:45: error: 'struct sock_common' has no member named 'skc_v6_daddr'; did you mean 'skc_daddr'?
386 | #define sk_v6_daddr __sk_common.skc_v6_daddr
| ^~~~~~~~~~~~
include/linux/printk.h:418:33: note: in expansion of macro 'sk_v6_daddr'
418 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/printk.h:446:26: note: in expansion of macro 'printk_index_wrap'
446 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~
include/linux/printk.h:132:17: note: in expansion of macro 'printk'
132 | printk(fmt, ##__VA_ARGS__); \
| ^~~~~~
include/linux/printk.h:644:9: note: in expansion of macro 'no_printk'
644 | no_printk(fmt, ##__VA_ARGS__)
| ^~~~~~~~~
fs/dlm/lowcomms.c:618:17: note: in expansion of macro 'printk_ratelimited'
618 | printk_ratelimited(KERN_ERR "dlm: node %d: socket error "
| ^~~~~~~~~~~~~~~~~~
vim +386 include/net/sock.h
4dc6dc7162c08b Eric Dumazet 2009-07-15 366
68835aba4d9b74 Eric Dumazet 2010-11-30 367 #define sk_dontcopy_begin __sk_common.skc_dontcopy_begin
68835aba4d9b74 Eric Dumazet 2010-11-30 368 #define sk_dontcopy_end __sk_common.skc_dontcopy_end
4dc6dc7162c08b Eric Dumazet 2009-07-15 369 #define sk_hash __sk_common.skc_hash
5080546682bae3 Eric Dumazet 2013-10-02 370 #define sk_portpair __sk_common.skc_portpair
05dbc7b59481ca Eric Dumazet 2013-10-03 371 #define sk_num __sk_common.skc_num
05dbc7b59481ca Eric Dumazet 2013-10-03 372 #define sk_dport __sk_common.skc_dport
5080546682bae3 Eric Dumazet 2013-10-02 373 #define sk_addrpair __sk_common.skc_addrpair
5080546682bae3 Eric Dumazet 2013-10-02 374 #define sk_daddr __sk_common.skc_daddr
5080546682bae3 Eric Dumazet 2013-10-02 375 #define sk_rcv_saddr __sk_common.skc_rcv_saddr
^1da177e4c3f41 Linus Torvalds 2005-04-16 376 #define sk_family __sk_common.skc_family
^1da177e4c3f41 Linus Torvalds 2005-04-16 377 #define sk_state __sk_common.skc_state
^1da177e4c3f41 Linus Torvalds 2005-04-16 378 #define sk_reuse __sk_common.skc_reuse
055dc21a1d1d21 Tom Herbert 2013-01-22 379 #define sk_reuseport __sk_common.skc_reuseport
9fe516ba3fb29b Eric Dumazet 2014-06-27 380 #define sk_ipv6only __sk_common.skc_ipv6only
26abe14379f8e2 Eric W. Biederman 2015-05-08 381 #define sk_net_refcnt __sk_common.skc_net_refcnt
^1da177e4c3f41 Linus Torvalds 2005-04-16 382 #define sk_bound_dev_if __sk_common.skc_bound_dev_if
^1da177e4c3f41 Linus Torvalds 2005-04-16 383 #define sk_bind_node __sk_common.skc_bind_node
8feaf0c0a5488b Arnaldo Carvalho de Melo 2005-08-09 384 #define sk_prot __sk_common.skc_prot
07feaebfcc10cd Eric W. Biederman 2007-09-12 385 #define sk_net __sk_common.skc_net
efe4208f47f907 Eric Dumazet 2013-10-03 @386 #define sk_v6_daddr __sk_common.skc_v6_daddr
efe4208f47f907 Eric Dumazet 2013-10-03 387 #define sk_v6_rcv_saddr __sk_common.skc_v6_rcv_saddr
33cf7c90fe2f97 Eric Dumazet 2015-03-11 388 #define sk_cookie __sk_common.skc_cookie
70da268b569d32 Eric Dumazet 2015-10-08 389 #define sk_incoming_cpu __sk_common.skc_incoming_cpu
8e5eb54d303b7c Eric Dumazet 2015-10-08 390 #define sk_flags __sk_common.skc_flags
ed53d0ab761f5c Eric Dumazet 2015-10-08 391 #define sk_rxhash __sk_common.skc_rxhash
efe4208f47f907 Eric Dumazet 2013-10-03 392
^1da177e4c3f41 Linus Torvalds 2005-04-16 393 socket_lock_t sk_lock;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 394 atomic_t sk_drops;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 395 int sk_rcvlowat;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 396 struct sk_buff_head sk_error_queue;
8b27dae5a2e89a Eric Dumazet 2019-03-22 397 struct sk_buff *sk_rx_skb_cache;
b178bb3dfc30d9 Eric Dumazet 2010-11-16 398 struct sk_buff_head sk_receive_queue;
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 399 /*
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 400 * The backlog queue is special, it is always used with
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 401 * the per-socket spinlock held and requires low latency
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 402 * access. Therefore we special case it's implementation.
b178bb3dfc30d9 Eric Dumazet 2010-11-16 403 * Note : rmem_alloc is in this structure to fill a hole
b178bb3dfc30d9 Eric Dumazet 2010-11-16 404 * on 64bit arches, not because its logically part of
b178bb3dfc30d9 Eric Dumazet 2010-11-16 405 * backlog.
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 406 */
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 407 struct {
b178bb3dfc30d9 Eric Dumazet 2010-11-16 408 atomic_t rmem_alloc;
b178bb3dfc30d9 Eric Dumazet 2010-11-16 409 int len;
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 410 struct sk_buff *head;
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 411 struct sk_buff *tail;
fa438ccfdfd3f6 Eric Dumazet 2007-03-04 412 } sk_backlog;
b178bb3dfc30d9 Eric Dumazet 2010-11-16 413 #define sk_rmem_alloc sk_backlog.rmem_alloc
2c8c56e15df3d4 Eric Dumazet 2014-11-11 414
9115e8cd2a0c6e Eric Dumazet 2016-12-03 415 int sk_forward_alloc;
e0d1095ae34054 Cong Wang 2013-08-01 416 #ifdef CONFIG_NET_RX_BUSY_POLL
dafcc4380deec2 Eliezer Tamir 2013-06-14 417 unsigned int sk_ll_usec;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 418 /* ===== mostly read cache line ===== */
9115e8cd2a0c6e Eric Dumazet 2016-12-03 419 unsigned int sk_napi_id;
b178bb3dfc30d9 Eric Dumazet 2010-11-16 420 #endif
b178bb3dfc30d9 Eric Dumazet 2010-11-16 421 int sk_rcvbuf;
b178bb3dfc30d9 Eric Dumazet 2010-11-16 422
b178bb3dfc30d9 Eric Dumazet 2010-11-16 423 struct sk_filter __rcu *sk_filter;
ceb5d58b217098 Eric Dumazet 2015-11-29 424 union {
eaefd1105bc431 Eric Dumazet 2011-02-18 425 struct socket_wq __rcu *sk_wq;
66256e0b15bd72 Randy Dunlap 2020-02-15 426 /* private: */
ceb5d58b217098 Eric Dumazet 2015-11-29 427 struct socket_wq *sk_wq_raw;
66256e0b15bd72 Randy Dunlap 2020-02-15 428 /* public: */
ceb5d58b217098 Eric Dumazet 2015-11-29 429 };
def8b4faff5ca3 Alexey Dobriyan 2008-10-28 430 #ifdef CONFIG_XFRM
d188ba86dd07a7 Eric Dumazet 2015-12-08 431 struct xfrm_policy __rcu *sk_policy[2];
def8b4faff5ca3 Alexey Dobriyan 2008-10-28 432 #endif
deaa58542b21d2 Eric Dumazet 2012-06-24 433 struct dst_entry *sk_rx_dst;
0e36cbb344575e Cong Wang 2013-01-22 434 struct dst_entry __rcu *sk_dst_cache;
^1da177e4c3f41 Linus Torvalds 2005-04-16 435 atomic_t sk_omem_alloc;
4e07a91c37c69e Arnaldo Carvalho de Melo 2007-05-29 436 int sk_sndbuf;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 437
9115e8cd2a0c6e Eric Dumazet 2016-12-03 438 /* ===== cache line for TX ===== */
9115e8cd2a0c6e Eric Dumazet 2016-12-03 439 int sk_wmem_queued;
14afee4b6092fd Reshetova, Elena 2017-06-30 440 refcount_t sk_wmem_alloc;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 441 unsigned long sk_tsq_flags;
75c119afe14f74 Eric Dumazet 2017-10-05 442 union {
9115e8cd2a0c6e Eric Dumazet 2016-12-03 443 struct sk_buff *sk_send_head;
75c119afe14f74 Eric Dumazet 2017-10-05 444 struct rb_root tcp_rtx_queue;
75c119afe14f74 Eric Dumazet 2017-10-05 445 };
472c2e07eef045 Eric Dumazet 2019-03-22 446 struct sk_buff *sk_tx_skb_cache;
^1da177e4c3f41 Linus Torvalds 2005-04-16 447 struct sk_buff_head sk_write_queue;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 448 __s32 sk_peek_off;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 449 int sk_write_pending;
9b8805a325591c Julian Anastasov 2017-02-06 450 __u32 sk_dst_pending_confirm;
218af599fa635b Eric Dumazet 2017-05-16 451 u32 sk_pacing_status; /* see enum sk_pacing */
9115e8cd2a0c6e Eric Dumazet 2016-12-03 452 long sk_sndtimeo;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 453 struct timer_list sk_timer;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 454 __u32 sk_priority;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 455 __u32 sk_mark;
76a9ebe811fb3d Eric Dumazet 2018-10-15 456 unsigned long sk_pacing_rate; /* bytes per second */
76a9ebe811fb3d Eric Dumazet 2018-10-15 457 unsigned long sk_max_pacing_rate;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 458 struct page_frag sk_frag;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 459 netdev_features_t sk_route_caps;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 460 netdev_features_t sk_route_nocaps;
0a6b2a1dc2a210 Eric Dumazet 2018-02-19 461 netdev_features_t sk_route_forced_caps;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 462 int sk_gso_type;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 463 unsigned int sk_gso_max_size;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 464 gfp_t sk_allocation;
9115e8cd2a0c6e Eric Dumazet 2016-12-03 465 __u32 sk_txhash;
fc64869c48494a Andrey Ryabinin 2016-05-18 466
fc64869c48494a Andrey Ryabinin 2016-05-18 467 /*
fc64869c48494a Andrey Ryabinin 2016-05-18 468 * Because of non atomicity rules, all
fc64869c48494a Andrey Ryabinin 2016-05-18 469 * changes are protected by socket lock.
fc64869c48494a Andrey Ryabinin 2016-05-18 470 */
bf9765145b856f Mat Martineau 2020-01-09 471 u8 sk_padding : 1,
cdfbabfb2f0ce9 David Howells 2017-03-09 472 sk_kern_sock : 1,
28448b80456fea Tom Herbert 2014-05-23 473 sk_no_check_tx : 1,
28448b80456fea Tom Herbert 2014-05-23 474 sk_no_check_rx : 1,
bf9765145b856f Mat Martineau 2020-01-09 475 sk_userlocks : 4;
3a9b76fd0db9f0 Eric Dumazet 2017-11-11 476 u8 sk_pacing_shift;
bf9765145b856f Mat Martineau 2020-01-09 477 u16 sk_type;
bf9765145b856f Mat Martineau 2020-01-09 478 u16 sk_protocol;
bf9765145b856f Mat Martineau 2020-01-09 479 u16 sk_gso_max_segs;
^1da177e4c3f41 Linus Torvalds 2005-04-16 480 unsigned long sk_lingertime;
476e19cfa131e2 Arnaldo Carvalho de Melo 2005-05-05 481 struct proto *sk_prot_creator;
^1da177e4c3f41 Linus Torvalds 2005-04-16 482 rwlock_t sk_callback_lock;
^1da177e4c3f41 Linus Torvalds 2005-04-16 483 int sk_err,
^1da177e4c3f41 Linus Torvalds 2005-04-16 484 sk_err_soft;
becb74f0acca19 Eric Dumazet 2015-03-19 485 u32 sk_ack_backlog;
becb74f0acca19 Eric Dumazet 2015-03-19 486 u32 sk_max_ack_backlog;
86741ec25462e4 Lorenzo Colitti 2016-11-04 487 kuid_t sk_uid;
7fd3253a7de6a3 Björn Töpel 2020-11-30 488 #ifdef CONFIG_NET_RX_BUSY_POLL
7fd3253a7de6a3 Björn Töpel 2020-11-30 489 u8 sk_prefer_busy_poll;
7c951cafc0cb2e Björn Töpel 2020-11-30 490 u16 sk_busy_poll_budget;
7fd3253a7de6a3 Björn Töpel 2020-11-30 491 #endif
35306eb2381444 Eric Dumazet 2021-09-29 492 spinlock_t sk_peer_lock;
109f6e39fa07c4 Eric W. Biederman 2010-06-13 493 struct pid *sk_peer_pid;
109f6e39fa07c4 Eric W. Biederman 2010-06-13 494 const struct cred *sk_peer_cred;
35306eb2381444 Eric Dumazet 2021-09-29 495
^1da177e4c3f41 Linus Torvalds 2005-04-16 496 long sk_rcvtimeo;
b7aa0bf70c4afb Eric Dumazet 2007-04-19 497 ktime_t sk_stamp;
3a0ed3e9619738 Deepa Dinamani 2018-12-27 498 #if BITS_PER_LONG==32
3a0ed3e9619738 Deepa Dinamani 2018-12-27 499 seqlock_t sk_stamp_seq;
3a0ed3e9619738 Deepa Dinamani 2018-12-27 500 #endif
b9f40e21ef4298 Willem de Bruijn 2014-08-04 501 u16 sk_tsflags;
d463126e23f112 Yangbo Lu 2021-06-30 502 int sk_bind_phc;
fc64869c48494a Andrey Ryabinin 2016-05-18 503 u8 sk_shutdown;
09c2d251b70723 Willem de Bruijn 2014-08-04 504 u32 sk_tskey;
52267790ef52d7 Willem de Bruijn 2017-08-03 505 atomic_t sk_zckey;
80b14dee2bea12 Richard Cochran 2018-07-03 506
80b14dee2bea12 Richard Cochran 2018-07-03 507 u8 sk_clockid;
80b14dee2bea12 Richard Cochran 2018-07-03 508 u8 sk_txtime_deadline_mode : 1,
4b15c707535266 Jesus Sanchez-Palencia 2018-07-03 509 sk_txtime_report_errors : 1,
4b15c707535266 Jesus Sanchez-Palencia 2018-07-03 510 sk_txtime_unused : 6;
80b14dee2bea12 Richard Cochran 2018-07-03 511
^1da177e4c3f41 Linus Torvalds 2005-04-16 512 struct socket *sk_socket;
^1da177e4c3f41 Linus Torvalds 2005-04-16 513 void *sk_user_data;
d5f642384e9da7 Alexey Dobriyan 2008-11-04 514 #ifdef CONFIG_SECURITY
^1da177e4c3f41 Linus Torvalds 2005-04-16 515 void *sk_security;
d5f642384e9da7 Alexey Dobriyan 2008-11-04 516 #endif
2a56a1fec290bf Tejun Heo 2015-12-07 517 struct sock_cgroup_data sk_cgrp_data;
baac50bbc3cdfd Johannes Weiner 2016-01-14 518 struct mem_cgroup *sk_memcg;
^1da177e4c3f41 Linus Torvalds 2005-04-16 519 void (*sk_state_change)(struct sock *sk);
676d23690fb62b David S. Miller 2014-04-11 520 void (*sk_data_ready)(struct sock *sk);
^1da177e4c3f41 Linus Torvalds 2005-04-16 521 void (*sk_write_space)(struct sock *sk);
^1da177e4c3f41 Linus Torvalds 2005-04-16 522 void (*sk_error_report)(struct sock *sk);
^1da177e4c3f41 Linus Torvalds 2005-04-16 523 int (*sk_backlog_rcv)(struct sock *sk,
^1da177e4c3f41 Linus Torvalds 2005-04-16 524 struct sk_buff *skb);
ebf4e808fa0b22 Ilya Lesokhin 2018-04-30 525 #ifdef CONFIG_SOCK_VALIDATE_XMIT
ebf4e808fa0b22 Ilya Lesokhin 2018-04-30 526 struct sk_buff* (*sk_validate_xmit_skb)(struct sock *sk,
ebf4e808fa0b22 Ilya Lesokhin 2018-04-30 527 struct net_device *dev,
ebf4e808fa0b22 Ilya Lesokhin 2018-04-30 528 struct sk_buff *skb);
ebf4e808fa0b22 Ilya Lesokhin 2018-04-30 529 #endif
^1da177e4c3f41 Linus Torvalds 2005-04-16 530 void (*sk_destruct)(struct sock *sk);
ef456144da8ef5 Craig Gallek 2016-01-04 531 struct sock_reuseport __rcu *sk_reuseport_cb;
6ac99e8f23d4b1 Martin KaFai Lau 2019-04-26 532 #ifdef CONFIG_BPF_SYSCALL
1f00d375af84fb KP Singh 2020-08-25 533 struct bpf_local_storage __rcu *sk_bpf_storage;
6ac99e8f23d4b1 Martin KaFai Lau 2019-04-26 534 #endif
a4298e4522d687 Eric Dumazet 2016-04-01 535 struct rcu_head sk_rcu;
^1da177e4c3f41 Linus Torvalds 2005-04-16 536 };
^1da177e4c3f41 Linus Torvalds 2005-04-16 537
:::::: The code at line 386 was first introduced by commit
:::::: efe4208f47f907b86f528788da711e8ab9dea44d ipv6: make lookups simpler and faster
:::::: TO: Eric Dumazet <edumazet(a)google.com>
:::::: 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
10 months
[arm:zii 83/128] drivers/net/dsa/bcm_sf2.c:681:32: error: no member named 'phylink_config' in 'struct dsa_port'
by kernel test robot
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head: e2b78f9343e58d06b9b8561ade72f4d5aeb43e4f
commit: c1eecec81dcb1692f5a8da96f10248611bd5dfa4 [83/128] net: dsa: bcm_sf2: switch to use phylink_get_linkmodes()
config: arm-randconfig-r032-20211119 (attached as .config)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
git fetch --no-tags arm zii
git checkout c1eecec81dcb1692f5a8da96f10248611bd5dfa4
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/net/dsa/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/net/dsa/bcm_sf2.c:681:32: error: no member named 'phylink_config' in 'struct dsa_port'
caps = dsa_to_port(ds, port)->phylink_config.mac_capabilities;
~~~~~~~~~~~~~~~~~~~~~ ^
1 error generated.
vim +681 drivers/net/dsa/bcm_sf2.c
672
673 static void bcm_sf2_sw_validate(struct dsa_switch *ds, int port,
674 unsigned long *supported,
675 struct phylink_link_state *state)
676 {
677 struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds);
678 __ETHTOOL_DECLARE_LINK_MODE_MASK(mask) = { 0, };
679 u32 caps;
680
> 681 caps = dsa_to_port(ds, port)->phylink_config.mac_capabilities;
682
683 if (state->interface == PHY_INTERFACE_MODE_RGMII ||
684 state->interface == PHY_INTERFACE_MODE_RGMII_TXID ||
685 state->interface == PHY_INTERFACE_MODE_MII ||
686 state->interface == PHY_INTERFACE_MODE_REVMII)
687 caps |= MAC_ASYM_PAUSE | MAC_SYM_PAUSE;
688
689 /* Allow all the expected bits */
690 phylink_set(mask, Autoneg);
691 phylink_set_port_modes(mask);
692 phylink_get_linkmodes(mask, state->interface, caps);
693
694 linkmode_and(supported, supported, mask);
695 linkmode_and(state->advertising, state->advertising, mask);
696 }
697
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
Re: [PATCH] ipv6: check return value of ipv6_skip_exthdr
by kernel test robot
Hi Jordy,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on klassert-ipsec/master]
[also build test WARNING on klassert-ipsec-next/master linux/master v5.16-rc1 next-20211118]
[cannot apply to linus/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Jordy-Zomer/ipv6-check-return-va...
base: https://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec.git master
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/afe093a81395e12df66d6b2145bcb98d4...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jordy-Zomer/ipv6-check-return-value-of-ipv6_skip_exthdr/20211118-021714
git checkout afe093a81395e12df66d6b2145bcb98d4fc67b55
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
net/ipv6/esp6.c: In function 'esp6_input_done2':
>> net/ipv6/esp6.c:812:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
812 | if (offset < 0)
| ^~
net/ipv6/esp6.c:814:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
814 | goto out;
| ^~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_SOC_MT6359
Depends on SOUND && !UML && SND && SND_SOC && MTK_PMIC_WRAP
Selected by
- SND_SOC_MT8195_MT6359_RT1019_RT5682 && SOUND && !UML && SND && SND_SOC && I2C && SND_SOC_MT8195
vim +/if +812 net/ipv6/esp6.c
782
783 int esp6_input_done2(struct sk_buff *skb, int err)
784 {
785 struct xfrm_state *x = xfrm_input_state(skb);
786 struct xfrm_offload *xo = xfrm_offload(skb);
787 struct crypto_aead *aead = x->data;
788 int hlen = sizeof(struct ip_esp_hdr) + crypto_aead_ivsize(aead);
789 int hdr_len = skb_network_header_len(skb);
790
791 if (!xo || !(xo->flags & CRYPTO_DONE))
792 kfree(ESP_SKB_CB(skb)->tmp);
793
794 if (unlikely(err))
795 goto out;
796
797 err = esp_remove_trailer(skb);
798 if (unlikely(err < 0))
799 goto out;
800
801 if (x->encap) {
802 const struct ipv6hdr *ip6h = ipv6_hdr(skb);
803 int offset = skb_network_offset(skb) + sizeof(*ip6h);
804 struct xfrm_encap_tmpl *encap = x->encap;
805 u8 nexthdr = ip6h->nexthdr;
806 __be16 frag_off, source;
807 struct udphdr *uh;
808 struct tcphdr *th;
809
810 offset = ipv6_skip_exthdr(skb, offset, &nexthdr, &frag_off);
811
> 812 if (offset < 0)
813 err = -EINVAL;
814 goto out;
815
816 uh = (void *)(skb->data + offset);
817 th = (void *)(skb->data + offset);
818 hdr_len += offset;
819
820 switch (x->encap->encap_type) {
821 case TCP_ENCAP_ESPINTCP:
822 source = th->source;
823 break;
824 case UDP_ENCAP_ESPINUDP:
825 case UDP_ENCAP_ESPINUDP_NON_IKE:
826 source = uh->source;
827 break;
828 default:
829 WARN_ON_ONCE(1);
830 err = -EINVAL;
831 goto out;
832 }
833
834 /*
835 * 1) if the NAT-T peer's IP or port changed then
836 * advertize the change to the keying daemon.
837 * This is an inbound SA, so just compare
838 * SRC ports.
839 */
840 if (!ipv6_addr_equal(&ip6h->saddr, &x->props.saddr.in6) ||
841 source != encap->encap_sport) {
842 xfrm_address_t ipaddr;
843
844 memcpy(&ipaddr.a6, &ip6h->saddr.s6_addr, sizeof(ipaddr.a6));
845 km_new_mapping(x, &ipaddr, source);
846
847 /* XXX: perhaps add an extra
848 * policy check here, to see
849 * if we should allow or
850 * reject a packet from a
851 * different source
852 * address/port.
853 */
854 }
855
856 /*
857 * 2) ignore UDP/TCP checksums in case
858 * of NAT-T in Transport Mode, or
859 * perform other post-processing fixes
860 * as per draft-ietf-ipsec-udp-encaps-06,
861 * section 3.1.2
862 */
863 if (x->props.mode == XFRM_MODE_TRANSPORT)
864 skb->ip_summed = CHECKSUM_UNNECESSARY;
865 }
866
867 skb_postpull_rcsum(skb, skb_network_header(skb),
868 skb_network_header_len(skb));
869 skb_pull_rcsum(skb, hlen);
870 if (x->props.mode == XFRM_MODE_TUNNEL)
871 skb_reset_transport_header(skb);
872 else
873 skb_set_transport_header(skb, -hdr_len);
874
875 /* RFC4303: Drop dummy packets without any error */
876 if (err == IPPROTO_NONE)
877 err = -EINVAL;
878
879 out:
880 return err;
881 }
882 EXPORT_SYMBOL_GPL(esp6_input_done2);
883
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[intel-lts:5.4/yocto 16103/18530] drivers/gpu/drm/drm_edid.c:5539:54: sparse: sparse: incorrect type in argument 2 (different modifiers)
by kernel test robot
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: 10c3d69bc60059b194dcfa816cbc1240ffb0431d
commit: 8e2b1510d279aecb1f89907553283c79c1b2b226 [16103/18530] drm/edid: Fix DispID tile parsing for override EDID
config: m68k-randconfig-s031-20211117 (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/intel/linux-intel-lts/commit/8e2b1510d279aecb1f8990755...
git remote add intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.4/yocto
git checkout 8e2b1510d279aecb1f89907553283c79c1b2b226
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/drm_edid.c:5539:54: sparse: sparse: incorrect type in argument 2 (different modifiers) @@ expected char *topology @@ got unsigned char const * @@
drivers/gpu/drm/drm_edid.c:5539:54: sparse: expected char *topology
drivers/gpu/drm/drm_edid.c:5539:54: sparse: got unsigned char const *
drivers/gpu/drm/drm_edid.c:5541:65: sparse: sparse: incorrect type in argument 2 (different modifiers) @@ expected char *topology @@ got unsigned char const * @@
drivers/gpu/drm/drm_edid.c:5541:65: sparse: expected char *topology
drivers/gpu/drm/drm_edid.c:5541:65: sparse: got unsigned char const *
vim +5539 drivers/gpu/drm/drm_edid.c
40d9b043a89e230 Dave Airlie 2014-10-20 5504
5e546cd5b3bc768 Dave Airlie 2016-05-03 5505 static int drm_parse_tiled_block(struct drm_connector *connector,
8e2b1510d279aec Ville Syrjälä 2020-03-13 5506 const struct displayid_block *block)
40d9b043a89e230 Dave Airlie 2014-10-20 5507 {
8e2b1510d279aec Ville Syrjälä 2020-03-13 5508 const struct displayid_tiled_block *tile = (struct displayid_tiled_block *)block;
40d9b043a89e230 Dave Airlie 2014-10-20 5509 u16 w, h;
40d9b043a89e230 Dave Airlie 2014-10-20 5510 u8 tile_v_loc, tile_h_loc;
40d9b043a89e230 Dave Airlie 2014-10-20 5511 u8 num_v_tile, num_h_tile;
40d9b043a89e230 Dave Airlie 2014-10-20 5512 struct drm_tile_group *tg;
40d9b043a89e230 Dave Airlie 2014-10-20 5513
40d9b043a89e230 Dave Airlie 2014-10-20 5514 w = tile->tile_size[0] | tile->tile_size[1] << 8;
40d9b043a89e230 Dave Airlie 2014-10-20 5515 h = tile->tile_size[2] | tile->tile_size[3] << 8;
40d9b043a89e230 Dave Airlie 2014-10-20 5516
40d9b043a89e230 Dave Airlie 2014-10-20 5517 num_v_tile = (tile->topo[0] & 0xf) | (tile->topo[2] & 0x30);
40d9b043a89e230 Dave Airlie 2014-10-20 5518 num_h_tile = (tile->topo[0] >> 4) | ((tile->topo[2] >> 2) & 0x30);
40d9b043a89e230 Dave Airlie 2014-10-20 5519 tile_v_loc = (tile->topo[1] & 0xf) | ((tile->topo[2] & 0x3) << 4);
40d9b043a89e230 Dave Airlie 2014-10-20 5520 tile_h_loc = (tile->topo[1] >> 4) | (((tile->topo[2] >> 2) & 0x3) << 4);
40d9b043a89e230 Dave Airlie 2014-10-20 5521
40d9b043a89e230 Dave Airlie 2014-10-20 5522 connector->has_tile = true;
40d9b043a89e230 Dave Airlie 2014-10-20 5523 if (tile->tile_cap & 0x80)
40d9b043a89e230 Dave Airlie 2014-10-20 5524 connector->tile_is_single_monitor = true;
40d9b043a89e230 Dave Airlie 2014-10-20 5525
40d9b043a89e230 Dave Airlie 2014-10-20 5526 connector->num_h_tile = num_h_tile + 1;
40d9b043a89e230 Dave Airlie 2014-10-20 5527 connector->num_v_tile = num_v_tile + 1;
40d9b043a89e230 Dave Airlie 2014-10-20 5528 connector->tile_h_loc = tile_h_loc;
40d9b043a89e230 Dave Airlie 2014-10-20 5529 connector->tile_v_loc = tile_v_loc;
40d9b043a89e230 Dave Airlie 2014-10-20 5530 connector->tile_h_size = w + 1;
40d9b043a89e230 Dave Airlie 2014-10-20 5531 connector->tile_v_size = h + 1;
40d9b043a89e230 Dave Airlie 2014-10-20 5532
40d9b043a89e230 Dave Airlie 2014-10-20 5533 DRM_DEBUG_KMS("tile cap 0x%x\n", tile->tile_cap);
40d9b043a89e230 Dave Airlie 2014-10-20 5534 DRM_DEBUG_KMS("tile_size %d x %d\n", w + 1, h + 1);
40d9b043a89e230 Dave Airlie 2014-10-20 5535 DRM_DEBUG_KMS("topo num tiles %dx%d, location %dx%d\n",
40d9b043a89e230 Dave Airlie 2014-10-20 5536 num_h_tile + 1, num_v_tile + 1, tile_h_loc, tile_v_loc);
40d9b043a89e230 Dave Airlie 2014-10-20 5537 DRM_DEBUG_KMS("vend %c%c%c\n", tile->topology_id[0], tile->topology_id[1], tile->topology_id[2]);
40d9b043a89e230 Dave Airlie 2014-10-20 5538
40d9b043a89e230 Dave Airlie 2014-10-20 @5539 tg = drm_mode_get_tile_group(connector->dev, tile->topology_id);
40d9b043a89e230 Dave Airlie 2014-10-20 5540 if (!tg) {
40d9b043a89e230 Dave Airlie 2014-10-20 5541 tg = drm_mode_create_tile_group(connector->dev, tile->topology_id);
40d9b043a89e230 Dave Airlie 2014-10-20 5542 }
40d9b043a89e230 Dave Airlie 2014-10-20 5543 if (!tg)
40d9b043a89e230 Dave Airlie 2014-10-20 5544 return -ENOMEM;
40d9b043a89e230 Dave Airlie 2014-10-20 5545
40d9b043a89e230 Dave Airlie 2014-10-20 5546 if (connector->tile_group != tg) {
40d9b043a89e230 Dave Airlie 2014-10-20 5547 /* if we haven't got a pointer,
40d9b043a89e230 Dave Airlie 2014-10-20 5548 take the reference, drop ref to old tile group */
40d9b043a89e230 Dave Airlie 2014-10-20 5549 if (connector->tile_group) {
40d9b043a89e230 Dave Airlie 2014-10-20 5550 drm_mode_put_tile_group(connector->dev, connector->tile_group);
40d9b043a89e230 Dave Airlie 2014-10-20 5551 }
40d9b043a89e230 Dave Airlie 2014-10-20 5552 connector->tile_group = tg;
40d9b043a89e230 Dave Airlie 2014-10-20 5553 } else
40d9b043a89e230 Dave Airlie 2014-10-20 5554 /* if same tile group, then release the ref we just took. */
40d9b043a89e230 Dave Airlie 2014-10-20 5555 drm_mode_put_tile_group(connector->dev, tg);
5e546cd5b3bc768 Dave Airlie 2016-05-03 5556 return 0;
5e546cd5b3bc768 Dave Airlie 2016-05-03 5557 }
5e546cd5b3bc768 Dave Airlie 2016-05-03 5558
:::::: The code at line 5539 was first introduced by commit
:::::: 40d9b043a89e2301e1f97ade055a73ecc28e9afe drm/connector: store tile information from displayid (v3)
:::::: TO: Dave Airlie <airlied(a)redhat.com>
:::::: CC: Dave Airlie <airlied(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[arm:zii 69/128] drivers/net/dsa/mt7530.c:2885:32: error: no member named 'phylink_config' in 'struct dsa_port'
by kernel test robot
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head: e2b78f9343e58d06b9b8561ade72f4d5aeb43e4f
commit: 9d04d7433d7a412ee8ad503394f9db78140caf89 [69/128] net: dsa: mt7530: switch to use phylink_get_linkmodes()
config: arm-randconfig-r032-20211119 (attached as .config)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
git fetch --no-tags arm zii
git checkout 9d04d7433d7a412ee8ad503394f9db78140caf89
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/net/dsa/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/net/dsa/mt7530.c:2420:28: error: use of undeclared identifier 'priv'
if (mt7531_is_rgmii_port(priv, port)) {
^
>> drivers/net/dsa/mt7530.c:2885:32: error: no member named 'phylink_config' in 'struct dsa_port'
caps = dsa_to_port(ds, port)->phylink_config.mac_capabilities;
~~~~~~~~~~~~~~~~~~~~~ ^
2 errors generated.
vim +2885 drivers/net/dsa/mt7530.c
2875
2876 static void
2877 mt753x_phylink_validate(struct dsa_switch *ds, int port,
2878 unsigned long *supported,
2879 struct phylink_link_state *state)
2880 {
2881 __ETHTOOL_DECLARE_LINK_MODE_MASK(mask) = { 0, };
2882 struct mt7530_priv *priv = ds->priv;
2883 u32 caps;
2884
> 2885 caps = dsa_to_port(ds, port)->phylink_config.mac_capabilities;
2886
2887 phylink_set_port_modes(mask);
2888 phylink_get_linkmodes(mask, state->interface, caps);
2889
2890 if (state->interface != PHY_INTERFACE_MODE_TRGMII ||
2891 !phy_interface_mode_is_8023z(state->interface))
2892 phylink_set(mask, Autoneg);
2893
2894 linkmode_and(supported, supported, mask);
2895 linkmode_and(state->advertising, state->advertising, mask);
2896 }
2897
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[agd5f:drm-next 49/92] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:4457:4: error: implicit declaration of function 'DC_LOG_DP2'
by kernel test robot
tree: https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head: eaae0714f4a82df81a60c6aae74c568e8974a716
commit: 9c0dc981c97dc7a439469dff76bacf6415514496 [49/92] drm/amd/display: Reduce dmesg error to a debug print
config: riscv-randconfig-r004-20211118 (attached as .config)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f drm-next
git checkout 9c0dc981c97dc7a439469dff76bacf6415514496
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:37:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.h:30:
In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67:
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2892:12: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
uint64_t temp;
^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:4457:4: error: implicit declaration of function 'DC_LOG_DP2' [-Werror,-Wimplicit-function-declaration]
DC_LOG_DP2("%s: Read LTTPR caps data failed.\n", __func__);
^
1 warning and 1 error generated.
vim +/DC_LOG_DP2 +4457 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c
4446
4447 if (link->lttpr_mode == LTTPR_MODE_NON_TRANSPARENT || link->lttpr_mode == LTTPR_MODE_TRANSPARENT) {
4448 /* By reading LTTPR capability, RX assumes that we will enable
4449 * LTTPR extended aux timeout if LTTPR is present.
4450 */
4451 status = core_link_read_dpcd(
4452 link,
4453 DP_LT_TUNABLE_PHY_REPEATER_FIELD_DATA_STRUCTURE_REV,
4454 lttpr_dpcd_data,
4455 sizeof(lttpr_dpcd_data));
4456 if (status != DC_OK) {
> 4457 DC_LOG_DP2("%s: Read LTTPR caps data failed.\n", __func__);
4458 return false;
4459 }
4460
4461 link->dpcd_caps.lttpr_caps.revision.raw =
4462 lttpr_dpcd_data[DP_LT_TUNABLE_PHY_REPEATER_FIELD_DATA_STRUCTURE_REV -
4463 DP_LT_TUNABLE_PHY_REPEATER_FIELD_DATA_STRUCTURE_REV];
4464
4465 link->dpcd_caps.lttpr_caps.max_link_rate =
4466 lttpr_dpcd_data[DP_MAX_LINK_RATE_PHY_REPEATER -
4467 DP_LT_TUNABLE_PHY_REPEATER_FIELD_DATA_STRUCTURE_REV];
4468
4469 link->dpcd_caps.lttpr_caps.phy_repeater_cnt =
4470 lttpr_dpcd_data[DP_PHY_REPEATER_CNT -
4471 DP_LT_TUNABLE_PHY_REPEATER_FIELD_DATA_STRUCTURE_REV];
4472
4473 link->dpcd_caps.lttpr_caps.max_lane_count =
4474 lttpr_dpcd_data[DP_MAX_LANE_COUNT_PHY_REPEATER -
4475 DP_LT_TUNABLE_PHY_REPEATER_FIELD_DATA_STRUCTURE_REV];
4476
4477 link->dpcd_caps.lttpr_caps.mode =
4478 lttpr_dpcd_data[DP_PHY_REPEATER_MODE -
4479 DP_LT_TUNABLE_PHY_REPEATER_FIELD_DATA_STRUCTURE_REV];
4480
4481 link->dpcd_caps.lttpr_caps.max_ext_timeout =
4482 lttpr_dpcd_data[DP_PHY_REPEATER_EXTENDED_WAIT_TIMEOUT -
4483 DP_LT_TUNABLE_PHY_REPEATER_FIELD_DATA_STRUCTURE_REV];
4484
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
include/asm-generic/io.h:259:16: sparse: sparse: cast to restricted __le16
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4c388a8e740d3235a194f330c8ef327deef710f6
commit: 6e1e90ec027509a7e8d4efbd77a65b32b5a8b3ec regmap: mmio: add config option to allow relaxed MMIO accesses
date: 1 year, 1 month ago
config: ia64-randconfig-s032-20211116 (attached as .config)
compiler: ia64-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 6e1e90ec027509a7e8d4efbd77a65b32b5a8b3ec
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/base/regmap/ drivers/net/ethernet/stmicro/stmmac/ kernel/bpf/ lib/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/base/regmap/regmap-mmio.c: note: in included file (through arch/ia64/include/asm/io.h, include/linux/io.h):
include/asm-generic/io.h:291:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned short [usertype] value @@ got restricted __le16 [usertype] @@
include/asm-generic/io.h:291:22: sparse: expected unsigned short [usertype] value
include/asm-generic/io.h:291:22: sparse: got restricted __le16 [usertype]
include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@
include/asm-generic/io.h:299:22: sparse: expected unsigned int [usertype] value
include/asm-generic/io.h:299:22: sparse: got restricted __le32 [usertype]
include/asm-generic/io.h:236:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] value @@ got restricted __le64 [usertype] @@
include/asm-generic/io.h:236:22: sparse: expected unsigned long long [usertype] value
include/asm-generic/io.h:236:22: sparse: got restricted __le64 [usertype]
include/asm-generic/io.h:307:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] value @@ got restricted __le64 [usertype] @@
include/asm-generic/io.h:307:22: sparse: expected unsigned long long [usertype] value
include/asm-generic/io.h:307:22: sparse: got restricted __le64 [usertype]
>> include/asm-generic/io.h:259:16: sparse: sparse: cast to restricted __le16
include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
include/asm-generic/io.h:193:15: sparse: sparse: cast to restricted __le64
include/asm-generic/io.h:275:16: sparse: sparse: cast to restricted __le64
vim +259 include/asm-generic/io.h
1c8d29696f0d79 Arnd Bergmann 2014-11-11 254
1c8d29696f0d79 Arnd Bergmann 2014-11-11 255 #ifndef readw_relaxed
8875c55437617f Sinan Kaya 2018-04-06 256 #define readw_relaxed readw_relaxed
8875c55437617f Sinan Kaya 2018-04-06 257 static inline u16 readw_relaxed(const volatile void __iomem *addr)
8875c55437617f Sinan Kaya 2018-04-06 258 {
8875c55437617f Sinan Kaya 2018-04-06 @259 return __le16_to_cpu(__raw_readw(addr));
8875c55437617f Sinan Kaya 2018-04-06 260 }
1c8d29696f0d79 Arnd Bergmann 2014-11-11 261 #endif
1c8d29696f0d79 Arnd Bergmann 2014-11-11 262
:::::: The code at line 259 was first introduced by commit
:::::: 8875c55437617fa4351070656bd78e17ed8284a5 io: change readX_relaxed() to remove barriers
:::::: TO: Sinan Kaya <okaya(a)codeaurora.org>
:::::: CC: Arnd Bergmann <arnd(a)arndb.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[arm:zii 78/128] drivers/net/dsa/ocelot/felix_vsc9959.c:940:12: error: use of undeclared identifier 'ocelot_port'
by kernel test robot
tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii
head: e2b78f9343e58d06b9b8561ade72f4d5aeb43e4f
commit: aa6c6c92d19e81faebd965a56b582fdc7371126c [78/128] net: dsa: ocelot: convert to phylink_generic_validate()
config: arm-randconfig-r025-20211118 (attached as .config)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git remote add arm git://git.armlinux.org.uk/~rmk/linux-arm.git
git fetch --no-tags arm zii
git checkout aa6c6c92d19e81faebd965a56b582fdc7371126c
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/net/dsa/ocelot/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/net/dsa/ocelot/felix_vsc9959.c:940:12: error: use of undeclared identifier 'ocelot_port'
__set_bit(ocelot_port->phy_mode,
^
1 error generated.
vim +/ocelot_port +940 drivers/net/dsa/ocelot/felix_vsc9959.c
936
937 static void vsc9959_phylink_get_caps(struct ocelot *ocelot, int port,
938 struct phylink_config *config)
939 {
> 940 __set_bit(ocelot_port->phy_mode,
941 config->supported_interfaces);
942
943 config->mac_capabilities = MAC_ASYM_PAUSE | MAC_SYM_PAUSE |
944 MAC_10 | MAC_100 | MAC_1000 | MAC_2500FD;
945 }
946
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months