From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 147194C7C for ; Thu, 26 Sep 2024 12:31:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727353877; cv=none; b=eDEamC8wH5n1Ps8g+niRPY8vuRihVz/740X+BnLbV+CxRfNXf46+1DJb5sb1zruEZSvXyRx6186c65MSSIXHAm8mz3m5Jk3fubBI1LSGm12mj0ZHqWfkQR/0xu4CSj9fZfMSRqyDda5slGx8AW8Zd/VaiTIJVWfbCbDfheAlL6I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727353877; c=relaxed/simple; bh=oG4pL+u8FHsj9tWlEkCvhlIBX/0g7ixy4oeBD3opOVM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hzP4ZVFWT1fjwHAOTqXT74NvnnyGwMH7RGj6/TUN3hDwzsN5SEgXGdu/MdTwxvs+xX9nHtFH4eN0ou8gS4o5m3KiMnnfDJ/Z+uWTDT8A1XSlJdemOV5BXgxuL9oO35M8WHM8iRbOVC3D+q0F64v+LdNaeDEddYAPseko8kB/m+E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=cXEf/Bar; arc=none smtp.client-ip=192.198.163.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cXEf/Bar" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1727353876; x=1758889876; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=oG4pL+u8FHsj9tWlEkCvhlIBX/0g7ixy4oeBD3opOVM=; b=cXEf/BarLNPxPOZwv679pAIR5devbLkcyifZTgb8qqbhTXj14p0n/Kk8 PImUDS9CzJxml2j0Sx1U1Dz6GHWxRKtbO6q2jvjIlgoAW17Ic2oHS1ZVx JMXn9v/5yIfrG+1c5VHsQrdXAG+LPlfvGmiAJ7455dIsp20lbe4dfnWeH s37g7D8SHncmEbZb6DtNvw6iSnqADM+4U+IXx85JqxmdfQO5ZJwcpqiul Nj2CbjlP0p5B+P65dM01scL5Z9N3a+qlZvt3EpWqKK+o+0J0lcdsQFsJC xQV7vouOqnB/P8aZDMtFSATh/uEbr8XXgbe9H2QcNz25UEREmbzhp3iiO Q==; X-CSE-ConnectionGUID: wW509srEQmacviTdCAjTPg== X-CSE-MsgGUID: IHVlFJGuQ4yYLNwgvWzw4Q== X-IronPort-AV: E=McAfee;i="6700,10204,11207"; a="37112842" X-IronPort-AV: E=Sophos;i="6.11,155,1725346800"; d="scan'208";a="37112842" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2024 05:31:15 -0700 X-CSE-ConnectionGUID: 2ZDv/psfRKOJMHZ2aeH2Xw== X-CSE-MsgGUID: GIy8E0oFQnegUxU8mxoCTg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,155,1725346800"; d="scan'208";a="72023775" Received: from lkp-server01.sh.intel.com (HELO 53e96f405c61) ([10.239.97.150]) by orviesa010.jf.intel.com with ESMTP; 26 Sep 2024 05:31:14 -0700 Received: from kbuild by 53e96f405c61 with local (Exim 4.96) (envelope-from ) id 1stneI-000Ki3-32; Thu, 26 Sep 2024 12:31:10 +0000 Date: Thu, 26 Sep 2024 20:30:30 +0800 From: kernel test robot To: Yihang Li , James.Bottomley@hansenpartnership.com, martin.petersen@oracle.com Cc: oe-kbuild-all@lists.linux.dev, linux-scsi@vger.kernel.org, linuxarm@huawei.com, liyihang9@huawei.com Subject: Re: [PATCH 03/13] scsi: hisi_sas: Add firmware information check Message-ID: <202409262056.WfCiaJnA-lkp@intel.com> References: <20240926014332.3905399-4-liyihang9@huawei.com> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240926014332.3905399-4-liyihang9@huawei.com> Hi Yihang, kernel test robot noticed the following build warnings: [auto build test WARNING on jejb-scsi/for-next] [also build test WARNING on mkp-scsi/for-next linus/master v6.11 next-20240926] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Yihang-Li/scsi-hisi_sas-Adjust-priority-of-registering-and-exiting-debugfs-for-security/20240926-094506 base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next patch link: https://lore.kernel.org/r/20240926014332.3905399-4-liyihang9%40huawei.com patch subject: [PATCH 03/13] scsi: hisi_sas: Add firmware information check config: i386-buildonly-randconfig-001-20240926 (https://download.01.org/0day-ci/archive/20240926/202409262056.WfCiaJnA-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240926/202409262056.WfCiaJnA-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202409262056.WfCiaJnA-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/scsi/hisi_sas/hisi_sas_main.c: In function 'hisi_sas_shost_alloc': >> drivers/scsi/hisi_sas/hisi_sas_main.c:2457:32: warning: returning 'int' from a function with return type 'struct Scsi_Host *' makes pointer from integer without a cast [-Wint-conversion] 2457 | return error; | ^~~~~ vim +2457 drivers/scsi/hisi_sas/hisi_sas_main.c 2424 2425 static struct Scsi_Host *hisi_sas_shost_alloc(struct platform_device *pdev, 2426 const struct hisi_sas_hw *hw) 2427 { 2428 struct resource *res; 2429 struct Scsi_Host *shost; 2430 struct hisi_hba *hisi_hba; 2431 struct device *dev = &pdev->dev; 2432 int error; 2433 2434 shost = scsi_host_alloc(hw->sht, sizeof(*hisi_hba)); 2435 if (!shost) { 2436 dev_err(dev, "scsi host alloc failed\n"); 2437 return NULL; 2438 } 2439 hisi_hba = shost_priv(shost); 2440 2441 INIT_WORK(&hisi_hba->rst_work, hisi_sas_rst_work_handler); 2442 hisi_hba->hw = hw; 2443 hisi_hba->dev = dev; 2444 hisi_hba->platform_dev = pdev; 2445 hisi_hba->shost = shost; 2446 SHOST_TO_SAS_HA(shost) = &hisi_hba->sha; 2447 2448 timer_setup(&hisi_hba->timer, NULL, 0); 2449 2450 if (hisi_sas_get_fw_info(hisi_hba) < 0) 2451 goto err_out; 2452 2453 if (hisi_hba->hw->fw_info_check) { 2454 error = hisi_hba->hw->fw_info_check(hisi_hba); 2455 2456 if (error) > 2457 return error; 2458 } 2459 2460 error = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64)); 2461 if (error) { 2462 dev_err(dev, "No usable DMA addressing method\n"); 2463 goto err_out; 2464 } 2465 2466 hisi_hba->regs = devm_platform_ioremap_resource(pdev, 0); 2467 if (IS_ERR(hisi_hba->regs)) 2468 goto err_out; 2469 2470 res = platform_get_resource(pdev, IORESOURCE_MEM, 1); 2471 if (res) { 2472 hisi_hba->sgpio_regs = devm_ioremap_resource(dev, res); 2473 if (IS_ERR(hisi_hba->sgpio_regs)) 2474 goto err_out; 2475 } 2476 2477 if (hisi_sas_alloc(hisi_hba)) { 2478 hisi_sas_free(hisi_hba); 2479 goto err_out; 2480 } 2481 2482 return shost; 2483 err_out: 2484 scsi_host_put(shost); 2485 dev_err(dev, "shost alloc failed\n"); 2486 return NULL; 2487 } 2488 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki