Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp302623ybd; Sat, 22 Jun 2019 03:41:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZvko0QB4CUG/6izHNloAgXVBfdWj1y6nhBphtmwvonQvBAyqatAdjVbfftrQLRXFY1Oqk X-Received: by 2002:a65:5202:: with SMTP id o2mr21249998pgp.199.1561200103822; Sat, 22 Jun 2019 03:41:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561200103; cv=none; d=google.com; s=arc-20160816; b=nLoofuIFFAyu0bz1KoneM/R8Y+0Kz8c0T1CDi/eGBhHl/jaZDecYELmOHzH8T5MBpc LEIXExjjaMQRu29xe9UY5y/+Vyry2iNQ4Wb8wyQmwQaZrjeDOxhyA/Rzq5Rvl43GcZK6 c1IL0Xmrg84lsuKVRCrs3T+btUZNnzj2wyhdSxM72JVNKu9W7RR9KWKLRNtdMf+Gop4+ eDyBbE/XOeF/F1PU3DFSJ45FBzzDHPAGiTphaucdP4JX3tWuVaCf2R1DA4v1IYk2CGWI JOhfelS+4TQU7lo4U3UR3KGB5Zik+bnxVLYlAV8PRrH6IZ0MLh25mNZ1K8Er3fehxFQ2 SKJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=8mtGlkFw/6Y3IGBm+ZfEYbvsuWaQ5O7+tyjKENqND5Y=; b=V93waWvV2QpSZVv2L2zP/F9rUlwqsrs24QrhKyQc4s6CYZR7OvbRPo1GvfsexQ+BmW 766g4IpOvzHoNs2uBWsYktRuD+03Z3fKtqHKOvI5I+fpcLR9Aq8flwiVH0viIz7F8w07 WApb5eEOr00/NMf3Mvw3yMS8Tg0Eo4eeIoUxtJp1f3OM25SRqOf7oxNVSHQbaq/EOcZ5 wnQBIjgc7mXMgeGYZdsRtdr5OKCMOoPSzL+35vMv2bbFUHFdt+XDWc5my1+hBkyM65xM 5DaGH2QDLooWNlMYodYM6kG0jLuMOWhINOTEveqo0o7NixcvCjw6NkGnz+or/JQpVXnY ywlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r67si5457889pjb.19.2019.06.22.03.41.27; Sat, 22 Jun 2019 03:41:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726286AbfFVKlX (ORCPT + 99 others); Sat, 22 Jun 2019 06:41:23 -0400 Received: from mga17.intel.com ([192.55.52.151]:32731 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726112AbfFVKlX (ORCPT ); Sat, 22 Jun 2019 06:41:23 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jun 2019 03:41:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,404,1557212400"; d="scan'208";a="165902019" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 22 Jun 2019 03:41:19 -0700 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1hedSQ-000CZ2-Rv; Sat, 22 Jun 2019 18:41:18 +0800 Date: Sat, 22 Jun 2019 18:40:35 +0800 From: kbuild test robot To: Suwan Kim Cc: kbuild-all@01.org, shuah@kernel.org, stern@rowland.harvard.edu, valentina.manea.m@gmail.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Suwan Kim Subject: Re: [PATCH 2/2] usbip: Implement SG support to vhci Message-ID: <201906221828.RndHkR8Y%lkp@intel.com> References: <20190621174553.28862-3-suwan.kim027@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190621174553.28862-3-suwan.kim027@gmail.com> X-Patchwork-Hint: ignore User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Suwan, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on usb/usb-testing] [also build test WARNING on v5.2-rc5 next-20190621] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Suwan-Kim/usbip-Skip-DMA-mapping-and-unmapping-for-urb-at-vhci/20190622-130016 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing reproduce: # apt-get install sparse # sparse version: v0.6.1-rc1-7-g2b96cd8-dirty make ARCH=x86_64 allmodconfig make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) drivers/usb/usbip/usbip_common.c:419:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] command @@ got restrunsigned int [usertype] command @@ drivers/usb/usbip/usbip_common.c:419:33: sparse: expected unsigned int [usertype] command drivers/usb/usbip/usbip_common.c:419:33: sparse: got restricted __be32 [usertype] drivers/usb/usbip/usbip_common.c:420:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] seqnum @@ got restrunsigned int [usertype] seqnum @@ drivers/usb/usbip/usbip_common.c:420:33: sparse: expected unsigned int [usertype] seqnum drivers/usb/usbip/usbip_common.c:420:33: sparse: got restricted __be32 [usertype] drivers/usb/usbip/usbip_common.c:421:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] devid @@ got restrunsigned int [usertype] devid @@ drivers/usb/usbip/usbip_common.c:421:33: sparse: expected unsigned int [usertype] devid drivers/usb/usbip/usbip_common.c:421:33: sparse: got restricted __be32 [usertype] drivers/usb/usbip/usbip_common.c:422:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] direction @@ got restrunsigned int [usertype] direction @@ drivers/usb/usbip/usbip_common.c:422:33: sparse: expected unsigned int [usertype] direction drivers/usb/usbip/usbip_common.c:422:33: sparse: got restricted __be32 [usertype] drivers/usb/usbip/usbip_common.c:423:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] ep @@ got restrunsigned int [usertype] ep @@ drivers/usb/usbip/usbip_common.c:423:33: sparse: expected unsigned int [usertype] ep drivers/usb/usbip/usbip_common.c:423:33: sparse: got restricted __be32 [usertype] drivers/usb/usbip/usbip_common.c:425:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:425:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:425:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:425:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:425:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:425:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:426:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:426:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:426:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:426:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:426:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:426:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:427:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:427:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:427:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:427:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:427:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:427:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:428:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:428:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:428:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:428:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:428:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:428:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:429:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:429:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:429:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:429:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:429:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:429:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:437:37: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] transfer_flags @@ got restrunsigned int [usertype] transfer_flags @@ drivers/usb/usbip/usbip_common.c:437:37: sparse: expected unsigned int [usertype] transfer_flags drivers/usb/usbip/usbip_common.c:437:37: sparse: got restricted __be32 [usertype] >> drivers/usb/usbip/usbip_common.c:438:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] num_sgs @@ got restrunsigned int [usertype] num_sgs @@ >> drivers/usb/usbip/usbip_common.c:438:30: sparse: expected unsigned int [usertype] num_sgs drivers/usb/usbip/usbip_common.c:438:30: sparse: got restricted __be32 [usertype] drivers/usb/usbip/usbip_common.c:445:39: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:445:39: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:445:39: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:445:39: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:445:39: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:445:39: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:446:32: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:446:32: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:446:32: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:446:32: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:446:32: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:446:32: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:477:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] seqnum @@ got restrunsigned int [usertype] seqnum @@ drivers/usb/usbip/usbip_common.c:477:29: sparse: expected unsigned int [usertype] seqnum drivers/usb/usbip/usbip_common.c:477:29: sparse: got restricted __be32 [usertype] drivers/usb/usbip/usbip_common.c:479:31: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:479:31: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:479:31: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:479:31: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:479:31: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:479:31: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:529:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] offset @@ got restrunsigned int [usertype] offset @@ drivers/usb/usbip/usbip_common.c:529:33: sparse: expected unsigned int [usertype] offset drivers/usb/usbip/usbip_common.c:529:33: sparse: got restricted __be32 [usertype] drivers/usb/usbip/usbip_common.c:530:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] length @@ got restrunsigned int [usertype] length @@ drivers/usb/usbip/usbip_common.c:530:33: sparse: expected unsigned int [usertype] length drivers/usb/usbip/usbip_common.c:530:33: sparse: got restricted __be32 [usertype] drivers/usb/usbip/usbip_common.c:531:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] status @@ got restrunsigned int [usertype] status @@ drivers/usb/usbip/usbip_common.c:531:33: sparse: expected unsigned int [usertype] status drivers/usb/usbip/usbip_common.c:531:33: sparse: got restricted __be32 [usertype] drivers/usb/usbip/usbip_common.c:532:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] actual_length @@ got restrunsigned int [usertype] actual_length @@ drivers/usb/usbip/usbip_common.c:532:36: sparse: expected unsigned int [usertype] actual_length drivers/usb/usbip/usbip_common.c:532:36: sparse: got restricted __be32 [usertype] drivers/usb/usbip/usbip_common.c:534:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:534:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:534:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:534:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:534:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:534:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:535:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:535:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:535:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:535:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:535:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:535:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:536:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:536:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:536:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:536:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:536:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:536:35: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:537:38: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:537:38: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:537:38: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:537:38: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:537:38: sparse: sparse: cast to restricted __be32 drivers/usb/usbip/usbip_common.c:537:38: sparse: sparse: cast to restricted __be32 vim +438 drivers/usb/usbip/usbip_common.c 415 416 static void correct_endian_basic(struct usbip_header_basic *base, int send) 417 { 418 if (send) { 419 base->command = cpu_to_be32(base->command); 420 base->seqnum = cpu_to_be32(base->seqnum); 421 base->devid = cpu_to_be32(base->devid); 422 base->direction = cpu_to_be32(base->direction); 423 base->ep = cpu_to_be32(base->ep); 424 } else { 425 base->command = be32_to_cpu(base->command); 426 base->seqnum = be32_to_cpu(base->seqnum); 427 base->devid = be32_to_cpu(base->devid); 428 base->direction = be32_to_cpu(base->direction); > 429 base->ep = be32_to_cpu(base->ep); 430 } 431 } 432 433 static void correct_endian_cmd_submit(struct usbip_header_cmd_submit *pdu, 434 int send) 435 { 436 if (send) { 437 pdu->transfer_flags = cpu_to_be32(pdu->transfer_flags); > 438 pdu->num_sgs = cpu_to_be32(pdu->num_sgs); 439 440 cpu_to_be32s(&pdu->transfer_buffer_length); 441 cpu_to_be32s(&pdu->start_frame); 442 cpu_to_be32s(&pdu->number_of_packets); 443 cpu_to_be32s(&pdu->interval); 444 } else { 445 pdu->transfer_flags = be32_to_cpu(pdu->transfer_flags); 446 pdu->num_sgs = be32_to_cpu(pdu->num_sgs); 447 448 be32_to_cpus(&pdu->transfer_buffer_length); 449 be32_to_cpus(&pdu->start_frame); 450 be32_to_cpus(&pdu->number_of_packets); 451 be32_to_cpus(&pdu->interval); 452 } 453 } 454 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation