Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp401722imm; Thu, 14 Jun 2018 23:06:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKeKSdqnzGvPTxgq3o2f4W+eKQ+8rRbnSr/EoU1hYaBSlBF8W+A0tweOPV2xurkZaNvZYeD X-Received: by 2002:a17:902:683:: with SMTP id 3-v6mr382963plh.291.1529042776115; Thu, 14 Jun 2018 23:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529042776; cv=none; d=google.com; s=arc-20160816; b=ppkpSe94gGmXpvRU/RJn1MGypQX1Pia3AM9byVExAe+GTz51UnqadR6Ck3SAFo4Puz rBLGgACa6CI8gR7nl4Y+Bs2SkGajry9M/MSj1lo1gGRu2E5M/TCFd1xHyh4FX74AH72c X4825CehhNmJgi76pViaCArOzSjNqtFeIPgoTYjYmA2WhMyKD31xYgKB/GYHskeWCOfh 6fgnc1Y3O7xZNK84IyTv3jviXFLtK0mjvODxoLEZMWZU01qK1a/+n1TnzHSM9pEgbote EfQxG+UXHJiDueoCd+LQYfNDZLp7KHytdh5jFeKoVU6pM1Ok4UHqoOlPvaAIGBt9wYoV wa3w== 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:arc-authentication-results; bh=MNhxysl8s1bE0+WBkrpOBcStOAIqHnOckTJ1ussvo7E=; b=CuFuM1JP6CUbhCoUx0OdxAJf0a+9FkbRDA7ChL203x4bEOm8G8/thUAAoaW1fGz3bo VbO0eQvhGceLI7zYpa1GAtoh3hhs6uZBdLIVYlhzeR07d+AbPVRVuAlo2Dxu3TXWM+PF EukQi43o+//n1e1vultA0fOQ5lrbO16Jhe3/hs/5Uvumxr8KnvyLaF+Cmi8N6/xEkCFk zenjAN/kGtNtUf/BVG+9zun/Ud/EUv1HpfRBVGdlFJviMMNWVE86QCDPWakKZsYzmQ/E +Lb8put4fFX70kNsM8tONDX9BnH6FKABpZEfBCqpttjRmLiRhAlI48vGDVSLA6wOccJQ JboA== 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 f5-v6si5961057pgu.103.2018.06.14.23.06.01; Thu, 14 Jun 2018 23:06:16 -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 S1755831AbeFOGFG (ORCPT + 99 others); Fri, 15 Jun 2018 02:05:06 -0400 Received: from mga12.intel.com ([192.55.52.136]:56261 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755819AbeFOGFF (ORCPT ); Fri, 15 Jun 2018 02:05:05 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jun 2018 23:05:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,225,1526367600"; d="scan'208";a="47280224" Received: from bee.sh.intel.com (HELO bee) ([10.239.97.14]) by fmsmga007.fm.intel.com with ESMTP; 14 Jun 2018 23:05:01 -0700 Received: from kbuild by bee with local (Exim 4.84_2) (envelope-from ) id 1fThqz-000AyV-Rn; Fri, 15 Jun 2018 14:04:57 +0800 Date: Fri, 15 Jun 2018 14:04:07 +0800 From: kbuild test robot To: linux-kernel-owner@vger.kernel.org Cc: kbuild-all@01.org, Zhouyang Jia , Boris Ostrovsky , Juergen Gross , "James E.J. Bottomley" , "Martin K. Petersen" , xen-devel@lists.xenproject.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] scsi: xen-scsifront: add error handling for xenbus_printf Message-ID: <201806151359.YAoVhcz2%fengguang.wu@intel.com> References: <1529027312-56770-1-git-send-email-jiazhouyang09@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1529027312-56770-1-git-send-email-jiazhouyang09@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: lkp@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on xen-tip/linux-next] [also build test WARNING on v4.17 next-20180614] [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/linux-kernel-owner-vger-kernel-org/scsi-xen-scsifront-add-error-handling-for-xenbus_printf/20180615-094919 base: https://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git linux-next reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) drivers/scsi/xen-scsifront.c:267:21: sparse: expression using sizeof(void) drivers/scsi/xen-scsifront.c:440:33: sparse: expression using sizeof(void) drivers/scsi/xen-scsifront.c:440:33: sparse: expression using sizeof(void) drivers/scsi/xen-scsifront.c:473:33: sparse: expression using sizeof(void) drivers/scsi/xen-scsifront.c:473:33: sparse: expression using sizeof(void) drivers/scsi/xen-scsifront.c:474:33: sparse: expression using sizeof(void) drivers/scsi/xen-scsifront.c:474:33: sparse: expression using sizeof(void) >> drivers/scsi/xen-scsifront.c:663:43: sparse: incorrect type in argument 1 (different base types) @@ expected struct xenbus_device *dev @@ got sstruct xenbus_device *dev @@ drivers/scsi/xen-scsifront.c:663:43: expected struct xenbus_device *dev drivers/scsi/xen-scsifront.c:663:43: got struct xenbus_device ** drivers/scsi/xen-scsifront.c:681:43: sparse: incorrect type in argument 1 (different base types) @@ expected struct xenbus_device *dev @@ got sstruct xenbus_device *dev @@ drivers/scsi/xen-scsifront.c:681:43: expected struct xenbus_device *dev drivers/scsi/xen-scsifront.c:681:43: got struct xenbus_device ** drivers/scsi/xen-scsifront.c:1063:19: sparse: expression using sizeof(void) drivers/scsi/xen-scsifront.c:1064:19: sparse: expression using sizeof(void) drivers/scsi/xen-scsifront.c:1065:19: sparse: expression using sizeof(void) drivers/scsi/xen-scsifront.c: In function 'scsifront_sdev_configure': drivers/scsi/xen-scsifront.c:663:21: error: passing argument 1 of 'xenbus_dev_error' from incompatible pointer type [-Werror=incompatible-pointer-types] xenbus_dev_error(&info->dev, err, ^ In file included from drivers/scsi/xen-scsifront.c:50:0: include/xen/xenbus.h:224:6: note: expected 'struct xenbus_device *' but argument is of type 'struct xenbus_device **' void xenbus_dev_error(struct xenbus_device *dev, int err, const char *fmt, ...); ^~~~~~~~~~~~~~~~ drivers/scsi/xen-scsifront.c: In function 'scsifront_sdev_destroy': drivers/scsi/xen-scsifront.c:681:21: error: passing argument 1 of 'xenbus_dev_error' from incompatible pointer type [-Werror=incompatible-pointer-types] xenbus_dev_error(&info->dev, err, ^ In file included from drivers/scsi/xen-scsifront.c:50:0: include/xen/xenbus.h:224:6: note: expected 'struct xenbus_device *' but argument is of type 'struct xenbus_device **' void xenbus_dev_error(struct xenbus_device *dev, int err, const char *fmt, ...); ^~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +663 drivers/scsi/xen-scsifront.c 653 654 static int scsifront_sdev_configure(struct scsi_device *sdev) 655 { 656 struct vscsifrnt_info *info = shost_priv(sdev->host); 657 int err; 658 659 if (info && current == info->curr) { 660 err = xenbus_printf(XBT_NIL, info->dev->nodename, 661 info->dev_state_path, "%d", XenbusStateConnected); 662 if (err) { > 663 xenbus_dev_error(&info->dev, err, 664 "%s: writing dev_state_path", __func__); 665 return err; 666 } 667 } 668 669 return 0; 670 } 671 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation