drivers/iommu/mtk_iommu.c:438:29: warning: comparison is always false due to limited range of data type
by kernel test robot
Hi Krzysztof,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 625d3449788f85569096780592549d0340e9c0c7
commit: e93a1695d7fb551376b1c1220a267d032b6ad159 iommu: Enable compile testing for some of drivers
date: 4 months ago
config: i386-randconfig-r012-20200622 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout e93a1695d7fb551376b1c1220a267d032b6ad159
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/iommu/mtk_iommu.c: In function 'mtk_iommu_iova_to_phys':
>> drivers/iommu/mtk_iommu.c:438:29: warning: comparison is always false due to limited range of data type [-Wtype-limits]
438 | if (data->enable_4GB && pa >= MTK_IOMMU_4GB_MODE_REMAP_BASE)
| ^~
vim +438 drivers/iommu/mtk_iommu.c
4d689b61944589 Robin Murphy 2017-09-28 429
0df4fabe208d95 Yong Wu 2016-02-23 430 static phys_addr_t mtk_iommu_iova_to_phys(struct iommu_domain *domain,
0df4fabe208d95 Yong Wu 2016-02-23 431 dma_addr_t iova)
0df4fabe208d95 Yong Wu 2016-02-23 432 {
0df4fabe208d95 Yong Wu 2016-02-23 433 struct mtk_iommu_domain *dom = to_mtk_domain(domain);
30e2fccf951238 Yong Wu 2017-08-21 434 struct mtk_iommu_data *data = mtk_iommu_get_m4u_data();
0df4fabe208d95 Yong Wu 2016-02-23 435 phys_addr_t pa;
0df4fabe208d95 Yong Wu 2016-02-23 436
0df4fabe208d95 Yong Wu 2016-02-23 437 pa = dom->iop->iova_to_phys(dom->iop, iova);
b4dad40e4f35bb Yong Wu 2019-08-24 @438 if (data->enable_4GB && pa >= MTK_IOMMU_4GB_MODE_REMAP_BASE)
b4dad40e4f35bb Yong Wu 2019-08-24 439 pa &= ~BIT_ULL(32);
30e2fccf951238 Yong Wu 2017-08-21 440
0df4fabe208d95 Yong Wu 2016-02-23 441 return pa;
0df4fabe208d95 Yong Wu 2016-02-23 442 }
0df4fabe208d95 Yong Wu 2016-02-23 443
:::::: The code at line 438 was first introduced by commit
:::::: b4dad40e4f35bbf2393f35f4492acf799eb8136d iommu/mediatek: Adjust the PA for the 4GB Mode
:::::: TO: Yong Wu <yong.wu(a)mediatek.com>
:::::: CC: Joerg Roedel <jroedel(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[linux-next:master 2782/3273] net/ipv6/icmp.c:442:6: warning: no previous prototype for function 'icmp6_send'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 27f11fea33608cbd321a97cbecfa2ef97dcc1821
commit: cc7a21b6fbd945f8d8f61422ccd27203c1fafeb7 [2782/3273] ipv6: icmp6: avoid indirect call for icmpv6_send()
config: s390-randconfig-r026-20200622 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 1d4c87335d5236ea1f35937e1014980ba961ae34)
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 s390 cross compiling tool for clang build
# apt-get install binutils-s390-linux-gnu
git checkout cc7a21b6fbd945f8d8f61422ccd27203c1fafeb7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=s390
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 >>, old ones prefixed by <<):
include/uapi/linux/swab.h:19:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x000000ffUL) << 24) | ^
In file included from net/ipv6/icmp.c:38:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : ^
include/uapi/linux/swab.h:20:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x0000ff00UL) << 8) | ^
In file included from net/ipv6/icmp.c:38:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : ^
include/uapi/linux/swab.h:21:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | ^
In file included from net/ipv6/icmp.c:38:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:119:21: note: expanded from macro '__swab32'
___constant_swab32(x) : ^
include/uapi/linux/swab.h:22:12: note: expanded from macro '___constant_swab32'
(((__u32)(x) & (__u32)0xff000000UL) >> 24)))
^
In file included from net/ipv6/icmp.c:38:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:490:45: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
val = __le32_to_cpu(__raw_readl(PCI_IOBASE + addr));
~~~~~~~~~~ ^
include/uapi/linux/byteorder/big_endian.h:34:59: note: expanded from macro '__le32_to_cpu'
#define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x))
^
include/uapi/linux/swab.h:120:12: note: expanded from macro '__swab32'
__fswab32(x))
^
In file included from net/ipv6/icmp.c:38:
In file included from include/linux/skbuff.h:31:
In file included from include/linux/dma-mapping.h:11:
In file included from include/linux/scatterlist.h:9:
In file included from arch/s390/include/asm/io.h:72:
include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writeb(value, PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:511:46: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writew(cpu_to_le16(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:521:46: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
__raw_writel(cpu_to_le32(value), PCI_IOBASE + addr);
~~~~~~~~~~ ^
include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
readsl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesb(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesw(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
writesl(PCI_IOBASE + addr, buffer, count);
~~~~~~~~~~ ^
>> net/ipv6/icmp.c:442:6: warning: no previous prototype for function 'icmp6_send' [-Wmissing-prototypes]
void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info,
^
net/ipv6/icmp.c:442:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info,
^
static
21 warnings generated.
vim +/icmp6_send +442 net/ipv6/icmp.c
438
439 /*
440 * Send an ICMP message in response to a packet in error
441 */
> 442 void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info,
443 const struct in6_addr *force_saddr)
444 {
445 struct inet6_dev *idev = NULL;
446 struct ipv6hdr *hdr = ipv6_hdr(skb);
447 struct sock *sk;
448 struct net *net;
449 struct ipv6_pinfo *np;
450 const struct in6_addr *saddr = NULL;
451 struct dst_entry *dst;
452 struct icmp6hdr tmp_hdr;
453 struct flowi6 fl6;
454 struct icmpv6_msg msg;
455 struct ipcm6_cookie ipc6;
456 int iif = 0;
457 int addr_type = 0;
458 int len;
459 u32 mark;
460
461 if ((u8 *)hdr < skb->head ||
462 (skb_network_header(skb) + sizeof(*hdr)) > skb_tail_pointer(skb))
463 return;
464
465 if (!skb->dev)
466 return;
467 net = dev_net(skb->dev);
468 mark = IP6_REPLY_MARK(net, skb->mark);
469 /*
470 * Make sure we respect the rules
471 * i.e. RFC 1885 2.4(e)
472 * Rule (e.1) is enforced by not using icmp6_send
473 * in any code that processes icmp errors.
474 */
475 addr_type = ipv6_addr_type(&hdr->daddr);
476
477 if (ipv6_chk_addr(net, &hdr->daddr, skb->dev, 0) ||
478 ipv6_chk_acast_addr_src(net, skb->dev, &hdr->daddr))
479 saddr = &hdr->daddr;
480
481 /*
482 * Dest addr check
483 */
484
485 if (addr_type & IPV6_ADDR_MULTICAST || skb->pkt_type != PACKET_HOST) {
486 if (type != ICMPV6_PKT_TOOBIG &&
487 !(type == ICMPV6_PARAMPROB &&
488 code == ICMPV6_UNK_OPTION &&
489 (opt_unrec(skb, info))))
490 return;
491
492 saddr = NULL;
493 }
494
495 addr_type = ipv6_addr_type(&hdr->saddr);
496
497 /*
498 * Source addr check
499 */
500
501 if (__ipv6_addr_needs_scope_id(addr_type)) {
502 iif = icmp6_iif(skb);
503 } else {
504 dst = skb_dst(skb);
505 iif = l3mdev_master_ifindex(dst ? dst->dev : skb->dev);
506 }
507
508 /*
509 * Must not send error if the source does not uniquely
510 * identify a single node (RFC2463 Section 2.4).
511 * We check unspecified / multicast addresses here,
512 * and anycast addresses will be checked later.
513 */
514 if ((addr_type == IPV6_ADDR_ANY) || (addr_type & IPV6_ADDR_MULTICAST)) {
515 net_dbg_ratelimited("icmp6_send: addr_any/mcast source [%pI6c > %pI6c]\n",
516 &hdr->saddr, &hdr->daddr);
517 return;
518 }
519
520 /*
521 * Never answer to a ICMP packet.
522 */
523 if (is_ineligible(skb)) {
524 net_dbg_ratelimited("icmp6_send: no reply to icmp error [%pI6c > %pI6c]\n",
525 &hdr->saddr, &hdr->daddr);
526 return;
527 }
528
529 /* Needed by both icmp_global_allow and icmpv6_xmit_lock */
530 local_bh_disable();
531
532 /* Check global sysctl_icmp_msgs_per_sec ratelimit */
533 if (!(skb->dev->flags & IFF_LOOPBACK) && !icmpv6_global_allow(net, type))
534 goto out_bh_enable;
535
536 mip6_addr_swap(skb);
537
538 sk = icmpv6_xmit_lock(net);
539 if (!sk)
540 goto out_bh_enable;
541
542 memset(&fl6, 0, sizeof(fl6));
543 fl6.flowi6_proto = IPPROTO_ICMPV6;
544 fl6.daddr = hdr->saddr;
545 if (force_saddr)
546 saddr = force_saddr;
547 if (saddr) {
548 fl6.saddr = *saddr;
549 } else if (!icmpv6_rt_has_prefsrc(sk, type, &fl6)) {
550 /* select a more meaningful saddr from input if */
551 struct net_device *in_netdev;
552
553 in_netdev = dev_get_by_index(net, IP6CB(skb)->iif);
554 if (in_netdev) {
555 ipv6_dev_get_saddr(net, in_netdev, &fl6.daddr,
556 inet6_sk(sk)->srcprefs,
557 &fl6.saddr);
558 dev_put(in_netdev);
559 }
560 }
561 fl6.flowi6_mark = mark;
562 fl6.flowi6_oif = iif;
563 fl6.fl6_icmp_type = type;
564 fl6.fl6_icmp_code = code;
565 fl6.flowi6_uid = sock_net_uid(net, NULL);
566 fl6.mp_hash = rt6_multipath_hash(net, &fl6, skb, NULL);
567 security_skb_classify_flow(skb, flowi6_to_flowi(&fl6));
568
569 sk->sk_mark = mark;
570 np = inet6_sk(sk);
571
572 if (!icmpv6_xrlim_allow(sk, type, &fl6))
573 goto out;
574
575 tmp_hdr.icmp6_type = type;
576 tmp_hdr.icmp6_code = code;
577 tmp_hdr.icmp6_cksum = 0;
578 tmp_hdr.icmp6_pointer = htonl(info);
579
580 if (!fl6.flowi6_oif && ipv6_addr_is_multicast(&fl6.daddr))
581 fl6.flowi6_oif = np->mcast_oif;
582 else if (!fl6.flowi6_oif)
583 fl6.flowi6_oif = np->ucast_oif;
584
585 ipcm6_init_sk(&ipc6, np);
586 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel);
587
588 dst = icmpv6_route_lookup(net, skb, sk, &fl6);
589 if (IS_ERR(dst))
590 goto out;
591
592 ipc6.hlimit = ip6_sk_dst_hoplimit(np, &fl6, dst);
593
594 msg.skb = skb;
595 msg.offset = skb_network_offset(skb);
596 msg.type = type;
597
598 len = skb->len - msg.offset;
599 len = min_t(unsigned int, len, IPV6_MIN_MTU - sizeof(struct ipv6hdr) - sizeof(struct icmp6hdr));
600 if (len < 0) {
601 net_dbg_ratelimited("icmp: len problem [%pI6c > %pI6c]\n",
602 &hdr->saddr, &hdr->daddr);
603 goto out_dst_release;
604 }
605
606 rcu_read_lock();
607 idev = __in6_dev_get(skb->dev);
608
609 if (ip6_append_data(sk, icmpv6_getfrag, &msg,
610 len + sizeof(struct icmp6hdr),
611 sizeof(struct icmp6hdr),
612 &ipc6, &fl6, (struct rt6_info *)dst,
613 MSG_DONTWAIT)) {
614 ICMP6_INC_STATS(net, idev, ICMP6_MIB_OUTERRORS);
615 ip6_flush_pending_frames(sk);
616 } else {
617 icmpv6_push_pending_frames(sk, &fl6, &tmp_hdr,
618 len + sizeof(struct icmp6hdr));
619 }
620 rcu_read_unlock();
621 out_dst_release:
622 dst_release(dst);
623 out:
624 icmpv6_xmit_unlock(sk);
625 out_bh_enable:
626 local_bh_enable();
627 }
628 EXPORT_SYMBOL(icmp6_send);
629
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[sashal-linux-stable:queue-4.19 201/440] drivers/pci/quirks.c:4556:9: error: implicit declaration of function 'pci_acs_ctrl_enabled'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-4.19
head: 7a462d454a5354302318d17cb32da8ec0c8e1a35
commit: 763f7e59b05ade60cfafee61e37cb10b3a2a013f [201/440] PCI: Add ACS quirk for Intel Root Complex Integrated Endpoints
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 763f7e59b05ade60cfafee61e37cb10b3a2a013f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the sashal-linux-stable/queue-4.19 HEAD 7a462d454a5354302318d17cb32da8ec0c8e1a35 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
In file included from include/linux/kernel.h:10,
from drivers/pci/quirks.c:16:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/xtensa/include/asm/page.h:182:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
182 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
| ^~
include/linux/compiler.h:77:42: note: in definition of macro 'unlikely'
77 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
arch/xtensa/include/asm/page.h:190:32: note: in expansion of macro 'pfn_valid'
190 | #define virt_addr_valid(kaddr) pfn_valid(__pa(kaddr) >> PAGE_SHIFT)
| ^~~~~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/xtensa/include/asm/page.h:182:9: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
182 | ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
| ^~
include/linux/compiler.h:77:42: note: in definition of macro 'unlikely'
77 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/dma-mapping.h:329:2: note: in expansion of macro 'BUG_ON'
329 | BUG_ON(pfn_valid(PHYS_PFN(phys_addr)));
| ^~~~~~
include/linux/dma-mapping.h:329:9: note: in expansion of macro 'pfn_valid'
329 | BUG_ON(pfn_valid(PHYS_PFN(phys_addr)));
| ^~~~~~~~~
drivers/pci/quirks.c: In function 'pci_quirk_rciep_acs':
>> drivers/pci/quirks.c:4556:9: error: implicit declaration of function 'pci_acs_ctrl_enabled'; did you mean 'pci_acs_path_enabled'? [-Werror=implicit-function-declaration]
4556 | return pci_acs_ctrl_enabled(acs_flags,
| ^~~~~~~~~~~~~~~~~~~~
| pci_acs_path_enabled
drivers/pci/quirks.c: In function 'quirk_switchtec_ntb_dma_alias':
drivers/pci/quirks.c:5164:32: warning: variable 'mmio_sys_info' set but not used [-Wunused-but-set-variable]
5164 | struct sys_info_regs __iomem *mmio_sys_info;
| ^~~~~~~~~~~~~
In file included from drivers/pci/quirks.c:18:
drivers/pci/quirks.c: At top level:
drivers/pci/quirks.c:5348:25: error: 'PCI_VENDOR_ID_PERICOM' undeclared here (not in a function); did you mean 'PCI_VENDOR_ID_MYRICOM'?
5348 | DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_PERICOM, 0x400e, pci_fixup_no_pme);
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/pci.h:1855:7: note: in definition of macro 'DECLARE_PCI_FIXUP_SECTION'
1855 | = { vendor, device, class, class_shift, hook };
| ^~~~~~
drivers/pci/quirks.c:5348:1: note: in expansion of macro 'DECLARE_PCI_FIXUP_FINAL'
5348 | DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_PERICOM, 0x400e, pci_fixup_no_pme);
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/pci/quirks.c: In function 'quirk_netmos':
drivers/pci/quirks.c:2201:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
2201 | if (dev->subsystem_vendor == PCI_VENDOR_ID_IBM &&
| ^
drivers/pci/quirks.c:2205:2: note: here
2205 | case PCI_DEVICE_ID_NETMOS_9735:
| ^~~~
cc1: some warnings being treated as errors
vim +4556 drivers/pci/quirks.c
4545
4546 static int pci_quirk_rciep_acs(struct pci_dev *dev, u16 acs_flags)
4547 {
4548 /*
4549 * Intel RCiEP's are required to allow p2p only on translated
4550 * addresses. Refer to Intel VT-d specification, r3.1, sec 3.16,
4551 * "Root-Complex Peer to Peer Considerations".
4552 */
4553 if (pci_pcie_type(dev) != PCI_EXP_TYPE_RC_END)
4554 return -ENOTTY;
4555
> 4556 return pci_acs_ctrl_enabled(acs_flags,
4557 PCI_ACS_SV | PCI_ACS_RR | PCI_ACS_CR | PCI_ACS_UF);
4558 }
4559
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
arch/mips/sgi-ip27/ip27-init.c:123:2: error: implicit declaration of function 'register_smp_ops'
by kernel test robot
Hi Thomas,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 625d3449788f85569096780592549d0340e9c0c7
commit: c823f416097879515a02f3d97aecc1204ffc0773 MIPS: SGI-IP27: move registering of smp ops into IP27 specific code
date: 8 months ago
config: mips-randconfig-r021-20200622 (attached as .config)
compiler: mips64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout c823f416097879515a02f3d97aecc1204ffc0773
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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 >>):
arch/mips/sgi-ip27/ip27-init.c:118:13: warning: no previous prototype for 'plat_mem_setup' [-Wmissing-prototypes]
118 | void __init plat_mem_setup(void)
| ^~~~~~~~~~~~~~
arch/mips/sgi-ip27/ip27-init.c: In function 'plat_mem_setup':
>> arch/mips/sgi-ip27/ip27-init.c:123:2: error: implicit declaration of function 'register_smp_ops' [-Werror=implicit-function-declaration]
123 | register_smp_ops(&ip27_smp_ops);
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/register_smp_ops +123 arch/mips/sgi-ip27/ip27-init.c
117
118 void __init plat_mem_setup(void)
119 {
120 u64 p, e, n_mode;
121 nasid_t nid;
122
> 123 register_smp_ops(&ip27_smp_ops);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids'
by kernel test robot
Hi Jerome,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 625d3449788f85569096780592549d0340e9c0c7
commit: 33901f5b9b16d212ee58865e9e8e80fc813f12da ASoC: meson: add t9015 internal DAC driver
date: 4 months ago
config: x86_64-randconfig-a016-20200622 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 1d4c87335d5236ea1f35937e1014980ba961ae34)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 33901f5b9b16d212ee58865e9e8e80fc813f12da
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids' [-Wunused-const-variable]
static const struct of_device_id t9015_ids[] = {
^
1 warning generated.
vim +/t9015_ids +315 sound/soc/meson/t9015.c
314
> 315 static const struct of_device_id t9015_ids[] = {
316 { .compatible = "amlogic,t9015", },
317 { }
318 };
319 MODULE_DEVICE_TABLE(of, t9015_ids);
320
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
drivers/iio/adc/meson_saradc.c:371:14: note: in expansion of macro 'GENMASK'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 625d3449788f85569096780592549d0340e9c0c7
commit: 295bcca84916cb5079140a89fccb472bb8d1f6e2 linux/bits.h: add compile time sanity check of GENMASK inputs
date: 3 months ago
config: i386-randconfig-r012-20200622 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout 295bcca84916cb5079140a89fccb472bb8d1f6e2
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/bitfield.h:10,
from drivers/iio/adc/meson_saradc.c:8:
drivers/iio/adc/meson_saradc.c: In function 'meson_sar_adc_read_raw_sample':
include/linux/bits.h:26:28: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
26 | __builtin_constant_p((l) > (h)), (l) > (h), 0)))
| ^
include/linux/build_bug.h:16:62: note: in definition of macro 'BUILD_BUG_ON_ZERO'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
>> drivers/iio/adc/meson_saradc.c:371:14: note: in expansion of macro 'GENMASK'
371 | fifo_val &= GENMASK(priv->param->resolution - 1, 0);
| ^~~~~~~
include/linux/bits.h:26:40: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
26 | __builtin_constant_p((l) > (h)), (l) > (h), 0)))
| ^
include/linux/build_bug.h:16:62: note: in definition of macro 'BUILD_BUG_ON_ZERO'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
| ^
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
| ^~~~~~~~~~~~~~~~~~~
>> drivers/iio/adc/meson_saradc.c:371:14: note: in expansion of macro 'GENMASK'
371 | fifo_val &= GENMASK(priv->param->resolution - 1, 0);
| ^~~~~~~
vim +/GENMASK +371 drivers/iio/adc/meson_saradc.c
3adbf34273306f Martin Blumenstingl 2017-01-22 342
3adbf34273306f Martin Blumenstingl 2017-01-22 343 static int meson_sar_adc_read_raw_sample(struct iio_dev *indio_dev,
3adbf34273306f Martin Blumenstingl 2017-01-22 344 const struct iio_chan_spec *chan,
3adbf34273306f Martin Blumenstingl 2017-01-22 345 int *val)
3adbf34273306f Martin Blumenstingl 2017-01-22 346 {
3adbf34273306f Martin Blumenstingl 2017-01-22 347 struct meson_sar_adc_priv *priv = iio_priv(indio_dev);
6a882a2cbeb09b Heiner Kallweit 2017-02-15 348 int regval, fifo_chan, fifo_val, count;
3adbf34273306f Martin Blumenstingl 2017-01-22 349
3af109131b7eb8 Heiner Kallweit 2017-02-15 350 if(!wait_for_completion_timeout(&priv->done,
3af109131b7eb8 Heiner Kallweit 2017-02-15 351 msecs_to_jiffies(MESON_SAR_ADC_TIMEOUT)))
3af109131b7eb8 Heiner Kallweit 2017-02-15 352 return -ETIMEDOUT;
3adbf34273306f Martin Blumenstingl 2017-01-22 353
6a882a2cbeb09b Heiner Kallweit 2017-02-15 354 count = meson_sar_adc_get_fifo_count(indio_dev);
6a882a2cbeb09b Heiner Kallweit 2017-02-15 355 if (count != 1) {
6a882a2cbeb09b Heiner Kallweit 2017-02-15 356 dev_err(&indio_dev->dev,
6a882a2cbeb09b Heiner Kallweit 2017-02-15 357 "ADC FIFO has %d element(s) instead of one\n", count);
6a882a2cbeb09b Heiner Kallweit 2017-02-15 358 return -EINVAL;
3adbf34273306f Martin Blumenstingl 2017-01-22 359 }
3adbf34273306f Martin Blumenstingl 2017-01-22 360
6a882a2cbeb09b Heiner Kallweit 2017-02-15 361 regmap_read(priv->regmap, MESON_SAR_ADC_FIFO_RD, ®val);
6a882a2cbeb09b Heiner Kallweit 2017-02-15 362 fifo_chan = FIELD_GET(MESON_SAR_ADC_FIFO_RD_CHAN_ID_MASK, regval);
827df0571fb32d Martin Blumenstingl 2018-09-25 363 if (fifo_chan != chan->address) {
6a882a2cbeb09b Heiner Kallweit 2017-02-15 364 dev_err(&indio_dev->dev,
827df0571fb32d Martin Blumenstingl 2018-09-25 365 "ADC FIFO entry belongs to channel %d instead of %lu\n",
827df0571fb32d Martin Blumenstingl 2018-09-25 366 fifo_chan, chan->address);
6a882a2cbeb09b Heiner Kallweit 2017-02-15 367 return -EINVAL;
6a882a2cbeb09b Heiner Kallweit 2017-02-15 368 }
3adbf34273306f Martin Blumenstingl 2017-01-22 369
6a882a2cbeb09b Heiner Kallweit 2017-02-15 370 fifo_val = FIELD_GET(MESON_SAR_ADC_FIFO_RD_SAMPLE_VALUE_MASK, regval);
057e5a1109faa0 Martin Blumenstingl 2018-09-23 @371 fifo_val &= GENMASK(priv->param->resolution - 1, 0);
48ba7c3c0b3736 Heiner Kallweit 2017-03-18 372 *val = meson_sar_adc_calib_val(indio_dev, fifo_val);
3adbf34273306f Martin Blumenstingl 2017-01-22 373
3adbf34273306f Martin Blumenstingl 2017-01-22 374 return 0;
3adbf34273306f Martin Blumenstingl 2017-01-22 375 }
3adbf34273306f Martin Blumenstingl 2017-01-22 376
:::::: The code at line 371 was first introduced by commit
:::::: 057e5a1109faa01091a989c224833e2df6003b2e iio: adc: meson-saradc: simplify access to meson_sar_adc_param
:::::: TO: Martin Blumenstingl <martin.blumenstingl(a)googlemail.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, 3 months
Re: [PATCH 4/4] drm: pl111: Update documentation
by kernel test robot
Hi Linus,
I love your patch! Perhaps something to improve:
[auto build test WARNING on drm-exynos/exynos-drm-next]
[also build test WARNING on drm-intel/for-linux-next tegra-drm/drm/tegra/for-next linus/master v5.7 next-20200609]
[cannot apply to drm-tip/drm-tip drm/drm-next]
[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/Linus-Walleij/drm-pl111-Credit-w...
base: https://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git exynos-drm-next
reproduce: make htmldocs
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 >>, old ones prefixed by <<):
include/kunit/test.h:182: warning: Function parameter or member 'debugfs' not described in 'kunit_suite'
include/kunit/test.h:182: warning: Function parameter or member 'log' not described in 'kunit_suite'
include/kunit/test.h:268: warning: Excess function parameter 'suites' description in 'kunit_test_suites'
include/net/mac80211.h:832: warning: Enum value 'IEEE80211_TX_CTRL_HW_80211_ENCAP' not described in enum 'mac80211_tx_control_flags'
net/mac80211/sta_info.h:104: warning: Enum value 'WLAN_STA_USES_ENCRYPTION' not described in enum 'ieee80211_sta_info_flags'
drivers/dma-buf/dma-buf.c:678: warning: Function parameter or member 'importer_ops' not described in 'dma_buf_dynamic_attach'
drivers/dma-buf/dma-buf.c:678: warning: Function parameter or member 'importer_priv' not described in 'dma_buf_dynamic_attach'
include/linux/dma-buf.h:347: warning: Incorrect use of kernel-doc format: * @move_notify
include/linux/gpio/driver.h:499: warning: Function parameter or member 'gc' not described in 'gpiochip_add_data'
include/linux/gpio/driver.h:499: warning: Excess function parameter 'chip' description in 'gpiochip_add_data'
include/linux/iio/iio.h:574: warning: Function parameter or member 'read_buf' not described in 'iio_dev'
include/linux/iio/iio.h:574: warning: Function parameter or member 'read_buf_len' not described in 'iio_dev'
drivers/infiniband/core/umem_odp.c:161: warning: Function parameter or member 'ops' not described in 'ib_umem_odp_alloc_child'
drivers/infiniband/core/umem_odp.c:225: warning: Function parameter or member 'ops' not described in 'ib_umem_odp_get'
drivers/infiniband/ulp/iser/iscsi_iser.h:401: warning: Function parameter or member 'all_list' not described in 'iser_fr_desc'
drivers/infiniband/ulp/iser/iscsi_iser.h:415: warning: Function parameter or member 'all_list' not described in 'iser_fr_pool'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:148: warning: Function parameter or member 'rsvd0' not described in 'opa_vesw_info'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:148: warning: Function parameter or member 'rsvd1' not described in 'opa_vesw_info'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:148: warning: Function parameter or member 'rsvd2' not described in 'opa_vesw_info'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:148: warning: Function parameter or member 'rsvd3' not described in 'opa_vesw_info'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:148: warning: Function parameter or member 'rsvd4' not described in 'opa_vesw_info'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:205: warning: Function parameter or member 'rsvd0' not described in 'opa_per_veswport_info'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:205: warning: Function parameter or member 'rsvd1' not described in 'opa_per_veswport_info'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:205: warning: Function parameter or member 'rsvd2' not described in 'opa_per_veswport_info'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:205: warning: Function parameter or member 'rsvd3' not described in 'opa_per_veswport_info'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:342: warning: Function parameter or member 'reserved' not described in 'opa_veswport_summary_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd0' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd1' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd2' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd3' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd4' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd5' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd6' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd7' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd8' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:394: warning: Function parameter or member 'rsvd9' not described in 'opa_veswport_error_counters'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:460: warning: Function parameter or member 'reserved' not described in 'opa_vnic_vema_mad'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:485: warning: Function parameter or member 'reserved' not described in 'opa_vnic_notice_attr'
drivers/infiniband/ulp/opa_vnic/opa_vnic_encap.h:500: warning: Function parameter or member 'reserved' not described in 'opa_vnic_vema_mad_trap'
include/linux/input/sparse-keymap.h:43: warning: Function parameter or member 'sw' not described in 'key_entry'
include/linux/regulator/machine.h:196: warning: Function parameter or member 'max_uV_step' not described in 'regulation_constraints'
include/linux/regulator/driver.h:223: warning: Function parameter or member 'resume' not described in 'regulator_ops'
include/linux/spi/spi.h:664: warning: Function parameter or member 'buswidth_override_bits' not described in 'spi_controller'
include/linux/spi/spi.h:943: warning: Function parameter or member 'timestamped' not described in 'spi_transfer'
drivers/usb/typec/bus.c:1: warning: 'typec_altmode_register_driver' not found
drivers/usb/typec/bus.c:1: warning: 'typec_altmode_unregister_driver' not found
include/linux/usb.h:713: warning: Function parameter or member 'use_generic_driver' not described in 'usb_device'
include/linux/usb.h:1253: warning: Function parameter or member 'match' not described in 'usb_device_driver'
include/linux/usb.h:1253: warning: Function parameter or member 'id_table' not described in 'usb_device_driver'
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c:1: warning: no structured comments found
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:1: warning: no structured comments found
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3389: warning: Excess function parameter 'suspend' description in 'amdgpu_device_suspend'
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3486: warning: Excess function parameter 'resume' description in 'amdgpu_device_resume'
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3389: warning: Excess function parameter 'suspend' description in 'amdgpu_device_suspend'
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3486: warning: Excess function parameter 'resume' description in 'amdgpu_device_resume'
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3389: warning: Excess function parameter 'suspend' description in 'amdgpu_device_suspend'
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3486: warning: Excess function parameter 'resume' description in 'amdgpu_device_resume'
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:418: warning: Excess function parameter 'tbo' description in 'amdgpu_vram_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:418: warning: Excess function parameter 'place' description in 'amdgpu_vram_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:418: warning: Excess function parameter 'tbo' description in 'amdgpu_vram_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:418: warning: Excess function parameter 'place' description in 'amdgpu_vram_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:418: warning: Excess function parameter 'tbo' description in 'amdgpu_vram_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:418: warning: Excess function parameter 'place' description in 'amdgpu_vram_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:418: warning: Excess function parameter 'tbo' description in 'amdgpu_vram_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:418: warning: Excess function parameter 'place' description in 'amdgpu_vram_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c:279: warning: Excess function parameter 'tbo' description in 'amdgpu_gtt_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c:279: warning: Excess function parameter 'place' description in 'amdgpu_gtt_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c:279: warning: Excess function parameter 'tbo' description in 'amdgpu_gtt_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c:279: warning: Excess function parameter 'place' description in 'amdgpu_gtt_mgr_del'
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3389: warning: Excess function parameter 'suspend' description in 'amdgpu_device_suspend'
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3486: warning: Excess function parameter 'resume' description in 'amdgpu_device_resume'
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h:331: warning: Function parameter or member 'hdcp_workqueue' not described in 'amdgpu_display_manager'
include/drm/drm_dp_helper.h:1767: warning: Function parameter or member 'hbr2_reset' not described in 'drm_dp_phy_test_params'
drivers/gpu/drm/drm_dp_helper.c:1599: warning: Function parameter or member 'dp_rev' not described in 'drm_dp_set_phy_test_pattern'
>> drivers/gpu/drm/pl111/pl111_drv.c:1: warning: 'ARM PrimeCell PL111 CLCD Driver' not found
include/linux/host1x.h:66: warning: Function parameter or member 'parent' not described in 'host1x_client'
include/linux/host1x.h:66: warning: Function parameter or member 'usecount' not described in 'host1x_client'
include/linux/host1x.h:66: warning: Function parameter or member 'lock' not described in 'host1x_client'
include/linux/phylink.h:54: warning: Function parameter or member '__ETHTOOL_DECLARE_LINK_MODE_MASK(advertising' not described in 'phylink_link_state'
include/linux/phylink.h:54: warning: Function parameter or member '__ETHTOOL_DECLARE_LINK_MODE_MASK(lp_advertising' not described in 'phylink_link_state'
include/linux/phylink.h:333: warning: Function parameter or member 'pcs_config' not described in 'int'
include/linux/phylink.h:333: warning: Excess function parameter 'config' description in 'int'
include/linux/phylink.h:333: warning: Excess function parameter 'mode' description in 'int'
include/linux/phylink.h:333: warning: Excess function parameter 'interface' description in 'int'
include/linux/phylink.h:333: warning: Excess function parameter 'advertising' description in 'int'
include/linux/phylink.h:342: warning: Function parameter or member 'pcs_an_restart' not described in 'void'
include/linux/phylink.h:342: warning: Excess function parameter 'config' description in 'void'
include/linux/phylink.h:358: warning: Function parameter or member 'pcs_link_up' not described in 'void'
include/linux/phylink.h:358: warning: Excess function parameter 'config' description in 'void'
include/linux/phylink.h:358: warning: Excess function parameter 'mode' description in 'void'
include/linux/phylink.h:358: warning: Excess function parameter 'interface' description in 'void'
include/linux/phylink.h:358: warning: Excess function parameter 'speed' description in 'void'
include/linux/phylink.h:358: warning: Excess function parameter 'duplex' description in 'void'
Documentation/PCI/boot-interrupts.rst:42: WARNING: Unexpected indentation.
Documentation/PCI/boot-interrupts.rst:52: WARNING: Block quote ends without a blank line; unexpected unindent.
Documentation/PCI/boot-interrupts.rst:92: WARNING: Unexpected indentation.
Documentation/PCI/boot-interrupts.rst:98: WARNING: Unexpected indentation.
Documentation/PCI/boot-interrupts.rst:136: WARNING: Unexpected indentation.
Documentation/PCI/endpoint/pci-endpoint.rst:164: WARNING: duplicate label pci/endpoint/pci-endpoint:apis for the pci endpoint function driver, other instance in Documentation/PCI/endpoint/pci-endpoint.rst
Documentation/PCI/endpoint/pci-endpoint.rst:208: WARNING: duplicate label pci/endpoint/pci-endpoint:other apis, other instance in Documentation/PCI/endpoint/pci-endpoint.rst
Documentation/RCU/Design/Data-Structures/Data-Structures.rst:377: WARNING: duplicate label rcu/design/data-structures/data-structures:grace-period tracking, other instance in Documentation/RCU/Design/Data-Structures/Data-Structures.rst
Documentation/admin-guide/LSM/Smack.rst:380: WARNING: duplicate label admin-guide/lsm/smack:smack, other instance in Documentation/admin-guide/LSM/Smack.rst
Documentation/admin-guide/cgroup-v2.rst:2508: WARNING: duplicate label admin-guide/cgroup-v2:memory, other instance in Documentation/admin-guide/cgroup-v2.rst
Documentation/admin-guide/device-mapper/thin-provisioning.rst:158: WARNING: duplicate label admin-guide/device-mapper/thin-provisioning:thin provisioning, other instance in Documentation/admin-guide/device-mapper/thin-provisioning.rst
Documentation/admin-guide/hw-vuln/spectre.rst:421: WARNING: duplicate label admin-guide/hw-vuln/spectre:spectre variant 1, other instance in Documentation/admin-guide/hw-vuln/spectre.rst
Documentation/admin-guide/hw-vuln/spectre.rst:439: WARNING: duplicate label admin-guide/hw-vuln/spectre:spectre variant 2, other instance in Documentation/admin-guide/hw-vuln/spectre.rst
Documentation/admin-guide/kdump/vmcoreinfo.rst:391: WARNING: duplicate label admin-guide/kdump/vmcoreinfo:kerneloffset, other instance in Documentation/admin-guide/kdump/vmcoreinfo.rst
Documentation/admin-guide/kdump/vmcoreinfo.rst:434: WARNING: duplicate label admin-guide/kdump/vmcoreinfo:contig_page_data, other instance in Documentation/admin-guide/kdump/vmcoreinfo.rst
Documentation/admin-guide/kdump/vmcoreinfo.rst:481: WARNING: duplicate label admin-guide/kdump/vmcoreinfo:node_data|(node_data, max_numnodes), other instance in Documentation/admin-guide/kdump/vmcoreinfo.rst
Documentation/admin-guide/laptops/thinkpad-acpi.rst:623: WARNING: duplicate label admin-guide/laptops/thinkpad-acpi:procfs notes, other instance in Documentation/admin-guide/laptops/thinkpad-acpi.rst
Documentation/admin-guide/laptops/thinkpad-acpi.rst:631: WARNING: duplicate label admin-guide/laptops/thinkpad-acpi:sysfs notes, other instance in Documentation/admin-guide/laptops/thinkpad-acpi.rst
Documentation/admin-guide/laptops/thinkpad-acpi.rst:707: WARNING: duplicate label admin-guide/laptops/thinkpad-acpi:procfs notes, other instance in Documentation/admin-guide/laptops/thinkpad-acpi.rst
Documentation/admin-guide/laptops/thinkpad-acpi.rst:717: WARNING: duplicate label admin-guide/laptops/thinkpad-acpi:sysfs notes, other instance in Documentation/admin-guide/laptops/thinkpad-acpi.rst
Documentation/admin-guide/laptops/thinkpad-acpi.rst:791: WARNING: duplicate label admin-guide/laptops/thinkpad-acpi:procfs notes, other instance in Documentation/admin-guide/laptops/thinkpad-acpi.rst
Documentation/admin-guide/laptops/thinkpad-acpi.rst:820: WARNING: duplicate label admin-guide/laptops/thinkpad-acpi:sysfs notes, other instance in Documentation/admin-guide/laptops/thinkpad-acpi.rst
Documentation/admin-guide/laptops/thinkpad-acpi.rst:951: WARNING: duplicate label admin-guide/laptops/thinkpad-acpi:procfs notes, other instance in Documentation/admin-guide/laptops/thinkpad-acpi.rst
Documentation/admin-guide/laptops/thinkpad-acpi.rst:957: WARNING: duplicate label admin-guide/laptops/thinkpad-acpi:sysfs notes, other instance in Documentation/admin-guide/laptops/thinkpad-acpi.rst
Documentation/admin-guide/laptops/thinkpad-acpi.rst:1044: WARNING: duplicate label admin-guide/laptops/thinkpad-acpi:procfs notes, other instance in Documentation/admin-guide/laptops/thinkpad-acpi.rst
Documentation/admin-guide/laptops/thinkpad-acpi.rst:1053: WARNING: duplicate label admin-guide/laptops/thinkpad-acpi:sysfs notes, other instance in Documentation/admin-guide/laptops/thinkpad-acpi.rst
Documentation/admin-guide/laptops/thinkpad-acpi.rst:1276: WARNING: duplicate label admin-guide/laptops/thinkpad-acpi:procfs notes, other instance in Documentation/admin-guide/laptops/thinkpad-acpi.rst
Documentation/admin-guide/laptops/thinkpad-acpi.rst:1315: WARNING: duplicate label admin-guide/laptops/thinkpad-acpi:sysfs notes, other instance in Documentation/admin-guide/laptops/thinkpad-acpi.rst
Documentation/admin-guide/laptops/thinkpad-acpi.rst:1387: WARNING: duplicate label admin-guide/laptops/thinkpad-acpi:procfs notes, other instance in Documentation/admin-guide/laptops/thinkpad-acpi.rst
Documentation/admin-guide/laptops/thinkpad-acpi.rst:1395: WARNING: duplicate label admin-guide/laptops/thinkpad-acpi:sysfs notes, other instance in Documentation/admin-guide/laptops/thinkpad-acpi.rst
Documentation/admin-guide/laptops/thinkpad-acpi.rst:1424: WARNING: duplicate label admin-guide/laptops/thinkpad-acpi:procfs notes, other instance in Documentation/admin-guide/laptops/thinkpad-acpi.rst
Documentation/admin-guide/laptops/thinkpad-acpi.rst:1449: WARNING: duplicate label admin-guide/laptops/thinkpad-acpi:sysfs notes, other instance in Documentation/admin-guide/laptops/thinkpad-acpi.rst
Documentation/admin-guide/mm/userfaultfd.rst:139: WARNING: Inline emphasis start-string without end-string.
Documentation/admin-guide/mm/userfaultfd.rst:139: WARNING: Inline emphasis start-string without end-string.
Documentation/admin-guide/ras.rst:358: WARNING: Definition list ends without a blank line; unexpected unindent.
Documentation/admin-guide/ras.rst:358: WARNING: Definition list ends without a blank line; unexpected unindent.
Documentation/admin-guide/ras.rst:363: WARNING: Definition list ends without a blank line; unexpected unindent.
Documentation/admin-guide/ras.rst:363: WARNING: Definition list ends without a blank line; unexpected unindent.
Documentation/admin-guide/sysctl/fs.rst:315: WARNING: duplicate label admin-guide/sysctl/fs:aio-nr & aio-max-nr, other instance in Documentation/admin-guide/sysctl/fs.rst
Documentation/arm64/amu.rst:26: WARNING: Unexpected indentation.
Documentation/arm64/amu.rst:60: WARNING: Unexpected indentation.
Documentation/arm64/amu.rst:81: WARNING: Unexpected indentation.
Documentation/arm64/amu.rst:108: WARNING: Unexpected indentation.
Documentation/arm64/booting.rst:253: WARNING: Unexpected indentation.
Documentation/arm64/booting.rst:259: WARNING: Block quote ends without a blank line; unexpected unindent.
Documentation/bpf/prog_cgroup_sockopt.rst:57: WARNING: duplicate label bpf/prog_cgroup_sockopt:return type, other instance in Documentation/bpf/prog_cgroup_sockopt.rst
lib/bitmap.c:189: WARNING: Unexpected indentation.
lib/bitmap.c:190: WARNING: Block quote ends without a blank line; unexpected unindent.
lib/bitmap.c:190: WARNING: Unexpected indentation.
lib/bitmap.c:191: WARNING: Line block ends without a blank line.
kernel/rcu/update.c:65: WARNING: Inline emphasis start-string without end-string.
kernel/rcu/update.c:65: WARNING: Inline emphasis start-string without end-string.
kernel/rcu/update.c:70: WARNING: Inline emphasis start-string without end-string.
kernel/rcu/update.c:82: WARNING: Inline emphasis start-string without end-string.
Documentation/crypto/devel-algos.rst:109: WARNING: duplicate label crypto/devel-algos:registration specifics, other instance in Documentation/crypto/devel-algos.rst
Documentation/dev-tools/coccinelle.rst:391: WARNING: duplicate label dev-tools/coccinelle:example, other instance in Documentation/dev-tools/coccinelle.rst
Documentation/dev-tools/coccinelle.rst:437: WARNING: duplicate label dev-tools/coccinelle:example, other instance in Documentation/dev-tools/coccinelle.rst
Documentation/dev-tools/coccinelle.rst:474: WARNING: duplicate label dev-tools/coccinelle:example, other instance in Documentation/dev-tools/coccinelle.rst
Documentation/dev-tools/kunit/start.rst:109: WARNING: duplicate label dev-tools/kunit/start:running the tests, other instance in Documentation/dev-tools/kunit/start.rst
include/uapi/linux/firewire-cdev.h:312: WARNING: Inline literal start-string without end-string.
drivers/firewire/core-transaction.c:606: WARNING: Inline strong start-string without end-string.
drivers/infiniband/core/verbs.c:2579: WARNING: Unexpected indentation.
drivers/infiniband/core/verbs.c:2581: WARNING: Block quote ends without a blank line; unexpected unindent.
drivers/infiniband/core/verbs.c:2613: WARNING: Unexpected indentation.
drivers/base/platform.c:153: WARNING: Unexpected indentation.
drivers/base/platform.c:232: WARNING: Unexpected indentation.
drivers/ata/libata-core.c:5212: WARNING: Unknown target name: "hw".
Documentation/driver-api/men-chameleon-bus.rst:59: WARNING: duplicate label driver-api/men-chameleon-bus:men chameleon bus, other instance in Documentation/driver-api/men-chameleon-bus.rst
drivers/message/fusion/mptbase.c:5057: WARNING: Definition list ends without a blank line; unexpected unindent.
Documentation/driver-api/parport-lowlevel.rst:246: WARNING: duplicate label driver-api/parport-lowlevel:synopsis, other instance in Documentation/driver-api/parport-lowlevel.rst
Documentation/driver-api/parport-lowlevel.rst:261: WARNING: duplicate label driver-api/parport-lowlevel:description, other instance in Documentation/driver-api/parport-lowlevel.rst
Documentation/driver-api/parport-lowlevel.rst:268: WARNING: duplicate label driver-api/parport-lowlevel:example, other instance in Documentation/driver-api/parport-lowlevel.rst
Documentation/driver-api/parport-lowlevel.rst:285: WARNING: duplicate label driver-api/parport-lowlevel:see also, other instance in Documentation/driver-api/parport-lowlevel.rst
Documentation/driver-api/parport-lowlevel.rst:295: WARNING: duplicate label driver-api/parport-lowlevel:synopsis, other instance in Documentation/driver-api/parport-lowlevel.rst
Documentation/driver-api/parport-lowlevel.rst:304: WARNING: duplicate label driver-api/parport-lowlevel:description, other instance in Documentation/driver-api/parport-lowlevel.rst
Documentation/driver-api/parport-lowlevel.rst:313: WARNING: duplicate label driver-api/parport-lowlevel:return value, other instance in Documentation/driver-api/parport-lowlevel.rst
Documentation/driver-api/parport-lowlevel.rst:319: WARNING: duplicate label driver-api/parport-lowlevel:errors, other instance in Documentation/driver-api/parport-lowlevel.rst
Documentation/driver-api/parport-lowlevel.rst:325: WARNING: duplicate label driver-api/parport-lowlevel:example, other instance in Documentation/driver-api/parport-lowlevel.rst
Documentation/driver-api/parport-lowlevel.rst:351: WARNING: duplicate label driver-api/parport-lowlevel:see also, other instance in Documentation/driver-api/parport-lowlevel.rst
Documentation/driver-api/parport-lowlevel.rst:361: WARNING: duplicate label driver-api/parport-lowlevel:synopsis, other instance in Documentation/driver-api/parport-lowlevel.rst
Documentation/driver-api/parport-lowlevel.rst:380: WARNING: duplicate label driver-api/parport-lowlevel:description, other instance in Documentation/driver-api/parport-lowlevel.rst
Documentation/driver-api/parport-lowlevel.rst:434: WARNING: duplicate label driver-api/parport-lowlevel:return value, other instance in Documentation/driver-api/parport-lowlevel.rst
vim +1 drivers/gpu/drm/pl111/pl111_drv.c
e559355a9da60a Thomas Gleixner 2019-06-01 @1 // SPDX-License-Identifier: GPL-2.0-only
bed41005e6174d Tom Cooksey 2017-04-12 2 /*
bed41005e6174d Tom Cooksey 2017-04-12 3 * (C) COPYRIGHT 2012-2013 ARM Limited. All rights reserved.
bed41005e6174d Tom Cooksey 2017-04-12 4 *
bed41005e6174d Tom Cooksey 2017-04-12 5 * Parts of this file were based on sources as follows:
bed41005e6174d Tom Cooksey 2017-04-12 6 *
bed41005e6174d Tom Cooksey 2017-04-12 7 * Copyright (c) 2006-2008 Intel Corporation
bed41005e6174d Tom Cooksey 2017-04-12 8 * Copyright (c) 2007 Dave Airlie <airlied(a)linux.ie>
bed41005e6174d Tom Cooksey 2017-04-12 9 * Copyright (C) 2011 Texas Instruments
bed41005e6174d Tom Cooksey 2017-04-12 10 */
bed41005e6174d Tom Cooksey 2017-04-12 11
:::::: The code at line 1 was first introduced by commit
:::::: e559355a9da60a2388893d9e9da66c79fd604b9a treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 443
:::::: TO: Thomas Gleixner <tglx(a)linutronix.de>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
drivers/clk/clk-divider.c:39:17: sparse: sparse: incorrect type in argument 1 (different base types)
by kernel test robot
Hi Stephen,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 64677779e8962c20b580b471790fe42367750599
commit: bbd7ffdbef6888459f301c5889f3b14ada38b913 clk: Allow the common clk framework to be selectable
date: 7 weeks ago
config: alpha-randconfig-s032-20200621 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-rc2-13-gc59158c8-dirty
git checkout bbd7ffdbef6888459f301c5889f3b14ada38b913
# save the attached .config to linux build tree
make W=1 C=1 ARCH=alpha CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
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/clk/clk-divider.c:31:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-divider.c:31:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-divider.c:31:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-divider.c:31:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-divider.c:31:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-divider.c:31:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-divider.c:31:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-divider.c:31:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-divider.c:31:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-divider.c:31:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-divider.c:31:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-divider.c:31:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-divider.c:31:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-divider.c:31:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-divider.c:31:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-divider.c:31:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-divider.c:31:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-divider.c:31:24: sparse: sparse: cast to restricted __be32
>> drivers/clk/clk-divider.c:39:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
>> drivers/clk/clk-divider.c:39:17: sparse: expected unsigned int [usertype]
drivers/clk/clk-divider.c:39:17: sparse: got restricted __be32 [usertype]
--
drivers/clk/clk-gate.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-gate.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-gate.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-gate.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-gate.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-gate.c:29:24: sparse: sparse: cast to restricted __be32
>> drivers/clk/clk-gate.c:37:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
>> drivers/clk/clk-gate.c:37:17: sparse: expected unsigned int [usertype]
drivers/clk/clk-gate.c:37:17: sparse: got restricted __be32 [usertype]
drivers/clk/clk-gate.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-gate.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-gate.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-gate.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-gate.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-gate.c:29:24: sparse: sparse: cast to restricted __be32
--
drivers/clk/clk-multiplier.c:18:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-multiplier.c:18:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-multiplier.c:18:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-multiplier.c:18:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-multiplier.c:18:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-multiplier.c:18:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-multiplier.c:18:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-multiplier.c:18:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-multiplier.c:18:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-multiplier.c:18:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-multiplier.c:18:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-multiplier.c:18:24: sparse: sparse: cast to restricted __be32
>> drivers/clk/clk-multiplier.c:26:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
>> drivers/clk/clk-multiplier.c:26:17: sparse: expected unsigned int [usertype]
drivers/clk/clk-multiplier.c:26:17: sparse: got restricted __be32 [usertype]
--
drivers/clk/clk-mux.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-mux.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-mux.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-mux.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-mux.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-mux.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-mux.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-mux.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-mux.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-mux.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-mux.c:29:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-mux.c:29:24: sparse: sparse: cast to restricted __be32
>> drivers/clk/clk-mux.c:37:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
>> drivers/clk/clk-mux.c:37:17: sparse: expected unsigned int [usertype]
drivers/clk/clk-mux.c:37:17: sparse: got restricted __be32 [usertype]
--
drivers/clk/clk-fractional-divider.c:20:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-fractional-divider.c:20:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-fractional-divider.c:20:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-fractional-divider.c:20:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-fractional-divider.c:20:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-fractional-divider.c:20:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-fractional-divider.c:20:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-fractional-divider.c:20:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-fractional-divider.c:20:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-fractional-divider.c:20:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-fractional-divider.c:20:24: sparse: sparse: cast to restricted __be32
drivers/clk/clk-fractional-divider.c:20:24: sparse: sparse: cast to restricted __be32
>> drivers/clk/clk-fractional-divider.c:28:17: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] @@ got restricted __be32 [usertype] @@
>> drivers/clk/clk-fractional-divider.c:28:17: sparse: expected unsigned int [usertype]
drivers/clk/clk-fractional-divider.c:28:17: sparse: got restricted __be32 [usertype]
vim +39 drivers/clk/clk-divider.c
9d9f78ed9af0e4 Mike Turquette 2012-03-15 17
9d9f78ed9af0e4 Mike Turquette 2012-03-15 18 /*
9d9f78ed9af0e4 Mike Turquette 2012-03-15 19 * DOC: basic adjustable divider clock that cannot gate
9d9f78ed9af0e4 Mike Turquette 2012-03-15 20 *
9d9f78ed9af0e4 Mike Turquette 2012-03-15 21 * Traits of this clock:
9d9f78ed9af0e4 Mike Turquette 2012-03-15 22 * prepare - clk_prepare only ensures that parents are prepared
9d9f78ed9af0e4 Mike Turquette 2012-03-15 23 * enable - clk_enable only ensures that parents are enabled
9556f9dad8f576 Brian Norris 2015-04-13 24 * rate - rate is adjustable. clk->rate = ceiling(parent->rate / divisor)
9d9f78ed9af0e4 Mike Turquette 2012-03-15 25 * parent - fixed parent. No clk_set_parent support
9d9f78ed9af0e4 Mike Turquette 2012-03-15 26 */
9d9f78ed9af0e4 Mike Turquette 2012-03-15 27
434d69fad63b44 Jonas Gorski 2019-04-18 28 static inline u32 clk_div_readl(struct clk_divider *divider)
434d69fad63b44 Jonas Gorski 2019-04-18 29 {
434d69fad63b44 Jonas Gorski 2019-04-18 30 if (divider->flags & CLK_DIVIDER_BIG_ENDIAN)
434d69fad63b44 Jonas Gorski 2019-04-18 @31 return ioread32be(divider->reg);
434d69fad63b44 Jonas Gorski 2019-04-18 32
5834fd75e62366 Jonas Gorski 2019-04-18 33 return readl(divider->reg);
434d69fad63b44 Jonas Gorski 2019-04-18 34 }
434d69fad63b44 Jonas Gorski 2019-04-18 35
434d69fad63b44 Jonas Gorski 2019-04-18 36 static inline void clk_div_writel(struct clk_divider *divider, u32 val)
434d69fad63b44 Jonas Gorski 2019-04-18 37 {
434d69fad63b44 Jonas Gorski 2019-04-18 38 if (divider->flags & CLK_DIVIDER_BIG_ENDIAN)
434d69fad63b44 Jonas Gorski 2019-04-18 @39 iowrite32be(val, divider->reg);
434d69fad63b44 Jonas Gorski 2019-04-18 40 else
5834fd75e62366 Jonas Gorski 2019-04-18 41 writel(val, divider->reg);
434d69fad63b44 Jonas Gorski 2019-04-18 42 }
434d69fad63b44 Jonas Gorski 2019-04-18 43
:::::: The code at line 39 was first introduced by commit
:::::: 434d69fad63b443d7afc8aa99264359c9b4e2d3a clk: divider: add explicit big endian support
:::::: TO: Jonas Gorski <jonas.gorski(a)gmail.com>
:::::: CC: Stephen Boyd <sboyd(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[chrome-os:chromeos-4.19 40/56] drivers/iio/light/cros_ec_light_prox.c:378:27: error: expected ')' before 'cros_ec_sensors_push_data'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: 9238e47da086f0075b28712a867544a7cda5e9e1
commit: ce0da0c8ecacc8bc0f2c71a045e9c90779614614 [40/56] BACKPORT: iio: cros_ec: Register to cros_ec_sensorhub when EC supports FIFO
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout ce0da0c8ecacc8bc0f2c71a045e9c90779614614
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the chrome-os/chromeos-4.19 HEAD 9238e47da086f0075b28712a867544a7cda5e9e1 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
In file included from arch/m68k/include/asm/io_mm.h:25,
from arch/m68k/include/asm/io.h:8,
from include/linux/io.h:25,
from include/linux/irq.h:20,
from include/linux/iio/trigger.h:9,
from drivers/iio/light/cros_ec_light_prox.c:13:
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsb':
arch/m68k/include/asm/raw_io.h:83:7: warning: variable '__w' set but not used [-Wunused-but-set-variable]
83 | ({u8 __w, __v = (b); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:399:3: note: in expansion of macro 'rom_out_8'
399 | rom_out_8(port, *buf++);
| ^~~~~~~~~
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw':
arch/m68k/include/asm/raw_io.h:86:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
86 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:417:3: note: in expansion of macro 'rom_out_be16'
417 | rom_out_be16(port, *buf++);
| ^~~~~~~~~~~~
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw_swapw':
arch/m68k/include/asm/raw_io.h:90:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
90 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:435:3: note: in expansion of macro 'rom_out_le16'
435 | rom_out_le16(port, *buf++);
| ^~~~~~~~~~~~
drivers/iio/light/cros_ec_light_prox.c: In function 'cros_ec_light_prox_probe':
>> drivers/iio/light/cros_ec_light_prox.c:378:27: error: expected ')' before 'cros_ec_sensors_push_data'
378 | cros_ec_light_capture
| ^
| )
379 | cros_ec_sensors_push_data);
| ~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/iio/light/cros_ec_light_prox.c:377:8: error: too few arguments to function 'cros_ec_sensors_core_init'
377 | ret = cros_ec_sensors_core_init(pdev, indio_dev, true,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/iio/light/cros_ec_light_prox.c:10:
include/linux/iio/common/cros_ec_sensors_core.h:101:5: note: declared here
101 | int cros_ec_sensors_core_init(struct platform_device *pdev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +378 drivers/iio/light/cros_ec_light_prox.c
363
364
365 static int cros_ec_light_prox_probe(struct platform_device *pdev)
366 {
367 struct device *dev = &pdev->dev;
368 struct iio_dev *indio_dev;
369 struct cros_ec_light_prox_state *state;
370 struct iio_chan_spec *channel;
371 int ret, i, num_channels = CROS_EC_LIGHT_PROX_MIN_CHANNELS;
372
373 indio_dev = devm_iio_device_alloc(dev, sizeof(*state));
374 if (!indio_dev)
375 return -ENOMEM;
376
> 377 ret = cros_ec_sensors_core_init(pdev, indio_dev, true,
> 378 cros_ec_light_capture
379 cros_ec_sensors_push_data);
380 if (ret)
381 return ret;
382
383 indio_dev->info = &cros_ec_light_prox_info;
384 state = iio_priv(indio_dev);
385 state->core.type = state->core.resp->info.type;
386 state->core.loc = state->core.resp->info.location;
387
388 /* Check if we need more sensors for RGB (or XYZ). */
389 state->core.param.cmd = MOTIONSENSE_CMD_INFO;
390 if (cros_ec_light_extra_send_host_cmd(&state->core, 1, 0) == 0 &&
391 state->core.resp->info.type == MOTIONSENSE_TYPE_LIGHT_RGB)
392 num_channels += CROS_EC_SENSOR_MAX_AXIS;
393
394 channel = devm_kcalloc(dev, num_channels, sizeof(*channel), 0);
395 if (channel == NULL)
396 return -ENOMEM;
397
398 indio_dev->channels = channel;
399 indio_dev->num_channels = num_channels;
400
401 cros_ec_light_channel_common(channel);
402 /* Sensor specific */
403 switch (state->core.type) {
404 case MOTIONSENSE_TYPE_LIGHT:
405 channel->type = IIO_LIGHT;
406 if (num_channels < CROS_EC_LIGHT_PROX_MIN_CHANNELS +
407 CROS_EC_SENSOR_MAX_AXIS) {
408 /* For backward compatibility. */
409 channel->info_mask_separate =
410 BIT(IIO_CHAN_INFO_PROCESSED) |
411 BIT(IIO_CHAN_INFO_CALIBBIAS) |
412 BIT(IIO_CHAN_INFO_CALIBSCALE);
413 } else {
414 /*
415 * To set a global scale, as CALIB_SCALE for RGB sensor
416 * is limited between 0 and 2.
417 */
418 channel->info_mask_shared_by_all |=
419 BIT(IIO_CHAN_INFO_SCALE);
420 }
421 break;
422 case MOTIONSENSE_TYPE_PROX:
423 channel->type = IIO_PROXIMITY;
424 break;
425 default:
426 dev_warn(dev, "Unknown motion sensor\n");
427 return -EINVAL;
428 }
429 channel++;
430
431 if (num_channels > CROS_EC_LIGHT_PROX_MIN_CHANNELS) {
432 for (i = CROS_EC_SENSOR_X; i < CROS_EC_SENSOR_MAX_AXIS;
433 i++, channel++) {
434 cros_ec_light_channel_common(channel);
435 channel->scan_index = i + 1;
436 channel->modified = 1;
437 channel->channel2 = IIO_MOD_LIGHT_RED + i;
438 channel->type = IIO_LIGHT;
439 }
440 }
441
442 /* Timestamp */
443 channel->type = IIO_TIMESTAMP;
444 channel->channel = -1;
445 channel->scan_index = num_channels - 1;
446 channel->scan_type.sign = 's';
447 channel->scan_type.realbits = 64;
448 channel->scan_type.storagebits = 64;
449
450 state->core.read_ec_sensors_data = cros_ec_sensors_read_cmd;
451
452 return devm_iio_device_register(dev, indio_dev);
453 }
454
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[chrome-os:chromeos-4.19 20/56] drivers/iio/common/cros_ec_sensors/cros_ec_sensors_ring.c:203:12: error: redefinition of 'cros_ec_get_time_ns'
by kernel test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: 9238e47da086f0075b28712a867544a7cda5e9e1
commit: 4b88c39b1b5ad6db8510376b0b79ced4067740da [20/56] BACKPORT: platform/chrome: cros-ec: Record event timestamp in the hard irq
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 4b88c39b1b5ad6db8510376b0b79ced4067740da
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the chrome-os/chromeos-4.19 HEAD 9238e47da086f0075b28712a867544a7cda5e9e1 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
>> drivers/iio/common/cros_ec_sensors/cros_ec_sensors_ring.c:203:12: error: redefinition of 'cros_ec_get_time_ns'
203 | static s64 cros_ec_get_time_ns(void)
| ^~~~~~~~~~~~~~~~~~~
In file included from include/linux/iio/common/cros_ec_sensors_core.h:22,
from drivers/iio/common/cros_ec_sensors/cros_ec_sensors_ring.c:23:
include/linux/platform_data/cros_ec_proto.h:233:23: note: previous definition of 'cros_ec_get_time_ns' was here
233 | static inline ktime_t cros_ec_get_time_ns(void)
| ^~~~~~~~~~~~~~~~~~~
vim +/cros_ec_get_time_ns +203 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_ring.c
4b208bef8954b0 Enric Balletbo i Serra 2017-06-19 202
25c433d3355981 Gwendal Grignou 2019-10-27 @203 static s64 cros_ec_get_time_ns(void)
25c433d3355981 Gwendal Grignou 2019-10-27 204 {
25c433d3355981 Gwendal Grignou 2019-10-27 205 struct timespec ts;
25c433d3355981 Gwendal Grignou 2019-10-27 206
25c433d3355981 Gwendal Grignou 2019-10-27 207 get_monotonic_boottime(&ts);
25c433d3355981 Gwendal Grignou 2019-10-27 208 return timespec_to_ns(&ts);
25c433d3355981 Gwendal Grignou 2019-10-27 209 }
25c433d3355981 Gwendal Grignou 2019-10-27 210
:::::: The code at line 203 was first introduced by commit
:::::: 25c433d3355981533f4954d8c53de14d4c5f75fe Revert "CHROMIUM: cros-ec: record event timestamp in the hard irq"
:::::: TO: Gwendal Grignou <gwendal(a)chromium.org>
:::::: CC: Commit Bot <commit-bot(a)chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months