[nf-next:mmap-netlink 61/68] net/netlink/af_netlink.c:194:39: sparse: incorrect type in return expression (different modifiers)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Patrick,

There are new sparse warnings show up in

tree:   git://150.214.188.80/nf-next mmap-netlink
head:   c7e7243d0b69e2323dde057c28f1102d00e5a3c6
commit: a20a76bdf79a4b6c25df3ad1a48fd601a0b59400 [61/68] netlink: mmaped netlink: ring setup

All sparse warnings:

+ net/netlink/af_netlink.c:194:39: sparse: incorrect type in return expression (different modifiers)
  net/netlink/af_netlink.c:194:39:    expected struct page [pure] *
  net/netlink/af_netlink.c:194:39:    got struct page *
  net/netlink/af_netlink.c:196:24: sparse: incorrect type in return expression (different modifiers)
  net/netlink/af_netlink.c:196:24:    expected struct page [pure] *
  net/netlink/af_netlink.c:196:24:    got struct page *
+ net/netlink/af_netlink.c:397:38: sparse: incorrect type in assignment (different modifiers)
  net/netlink/af_netlink.c:397:38:    expected struct page *page
  net/netlink/af_netlink.c:397:38:    got struct page [pure] *
  net/netlink/af_netlink.c:819:56: sparse: incorrect type in argument 1 (different address spaces)
  net/netlink/af_netlink.c:819:56:    expected void const *<noident>
  net/netlink/af_netlink.c:819:56:    got struct listeners [noderef] <asn:4>*listeners
  net/netlink/af_netlink.c:632:38: sparse: dereference of noderef expression

vim +194 net/netlink/af_netlink.c
   191	static __pure struct page *pgvec_to_page(const void *addr)
   192	{
   193		if (is_vmalloc_addr(addr))
 > 194			return vmalloc_to_page(addr);
   195		else
   196			return virt_to_page(addr);
   197	}

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu <wfg@xxxxxxxxxxxxxxx>                     Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux