Hi Paolo,

[auto build test ERROR on net-next/master]

url:    
https://github.com/0day-ci/linux/commits/Paolo-Abeni/net-add-protocol-level-recvmmsg-support/20161126-033729
config: i386-randconfig-s0-201647 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   net/socket.c: In function 'recvmmsg_ctx_to_user':
>> net/socket.c:2262:11: error: passing argument 3 of 'copy_msghdr_to_user_gen' 
>> from incompatible pointer type [-Werror=incompatible-pointer-types]
              &mmsg_compat->msg_hdr, &mmsg->msg_hdr,
              ^
   net/socket.c:2115:12: note: expected 'struct msghdr *' but argument is of 
type 'struct user_msghdr *'
    static int copy_msghdr_to_user_gen(struct msghdr *msg_sys, int flags,
               ^~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/copy_msghdr_to_user_gen +2262 net/socket.c

  2256          struct compat_mmsghdr __user *mmsg_compat;
  2257          struct mmsghdr __user *mmsg = *mmsg_ptr;
  2258          int err;
  2259  
  2260          mmsg_compat = (struct compat_mmsghdr __user *)mmsg;
  2261          err = copy_msghdr_to_user_gen(&ctx->msg_sys, flags,
> 2262                                        &mmsg_compat->msg_hdr, 
> &mmsg->msg_hdr,
  2263                                        ctx->uaddr, &ctx->addr, 
ctx->cmsg_ptr);
  2264          if (err)
  2265                  return err;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

Reply via email to