tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19 head: ebdaf7021fb9a412f3c7e2f731537c27e52eb09d commit: c9047afcfaf4a9d17038c794a9650c8b4c44a44c [29831/29836] CHROMIUM: Add ma-usb kernel module config: powerpc-randconfig-s032-20210420 (attached as .config) compiler: powerpc64-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3-341-g8af24329-dirty git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel git fetch --no-tags chrome-os chromeos-4.19 git checkout c9047afcfaf4a9d17038c794a9650c8b4c44a44c # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=powerpc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/usb/host/mausb/ip_link.c:100:17: sparse: sparse: cast from restricted __be16 vim +100 drivers/usb/host/mausb/ip_link.c 65 66 static void __mausb_ip_connect(struct work_struct *work) 67 { 68 int status = 0; 69 struct sockaddr *sa; 70 int sa_size; 71 struct mausb_ip_ctx *ip_ctx = container_of(work, struct mausb_ip_ctx, 72 connect_work); 73 unsigned short int family = ip_ctx->dev_addr_in.sa_in.sin_family; 74 75 if (!ip_ctx->udp) { 76 status = sock_create_kern(ip_ctx->net_ns, family, 77 SOCK_STREAM, IPPROTO_TCP, 78 &ip_ctx->client_socket); 79 if (status < 0) { 80 dev_err(mausb_host_dev.this_device, "Failed to create socket: status=%d", 81 status); 82 goto callback; 83 } 84 } else { 85 status = sock_create_kern(ip_ctx->net_ns, family, SOCK_DGRAM, 86 IPPROTO_UDP, &ip_ctx->client_socket); 87 if (status < 0) { 88 dev_err(mausb_host_dev.this_device, "Failed to create socket: status=%d", 89 status); 90 goto callback; 91 } 92 } 93 94 __mausb_ip_set_options((struct socket *)ip_ctx->client_socket, 95 ip_ctx->udp); 96 97 if (family == AF_INET) { 98 sa = (struct sockaddr *)&ip_ctx->dev_addr_in.sa_in; 99 sa_size = sizeof(ip_ctx->dev_addr_in.sa_in); > 100 dev_info(mausb_host_dev.this_device, "Connecting to %pI4:%d, status=%d", 101 &ip_ctx->dev_addr_in.sa_in.sin_addr, 102 htons(ip_ctx->dev_addr_in.sa_in.sin_port), status); 103 #if IS_ENABLED(CONFIG_IPV6) 104 } else if (family == AF_INET6) { 105 sa = (struct sockaddr *)&ip_ctx->dev_addr_in.sa_in6; 106 sa_size = sizeof(ip_ctx->dev_addr_in.sa_in6); 107 dev_info(mausb_host_dev.this_device, "Connecting to %pI6c:%d, status=%d", 108 &ip_ctx->dev_addr_in.sa_in6.sin6_addr, 109 htons(ip_ctx->dev_addr_in.sa_in6.sin6_port), status); 110 #endif 111 } else { 112 dev_err(mausb_host_dev.this_device, "Wrong network family provided"); 113 status = -EINVAL; 114 goto callback; 115 } 116 117 status = kernel_connect(ip_ctx->client_socket, sa, sa_size, O_RDWR); 118 if (status < 0) { 119 dev_err(mausb_host_dev.this_device, "Failed to connect to host, status=%d", 120 status); 121 goto clear_socket; 122 } 123 124 queue_work(ip_ctx->recv_workq, &ip_ctx->recv_work); 125 126 goto callback; 127 128 clear_socket: 129 sock_release(ip_ctx->client_socket); 130 ip_ctx->client_socket = NULL; 131 callback: 132 ip_ctx->fn_callback(ip_ctx->ctx, ip_ctx->channel, MAUSB_LINK_CONNECT, 133 status, NULL); 134 } 135 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org