From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (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 8BA8314DFC3; Fri, 23 Feb 2024 23:33:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708731186; cv=none; b=qDuBqE6GNVFaQ5/xCrZdJN72Ov9KICk27K2C6v+iSm4sJRo36RNGt2MvGA8gFOizJAQterJ1u7dRA7XCtzs/XykRYcoD3VvhLyC9UWFJs+53c+Xka5zgxVXhuHBbpyW9Oy/ePYeeQOKfVd9o/TUfyjeIUmxIFh+Ta/0TjAPJl3o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708731186; c=relaxed/simple; bh=Fcx9fo3ASqh+dLKdC3K0y866TyJQISI7Pom5Idu6cVY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=b+bSkFLlw/AIJYXpFs19N9QcEOiUV5G5/aBe2lHyY37C3i+vuuEjoSU1X8iEP6orV+HWN/ZDCebhiASitO4SeGMtGNJwGvYnJCpNlzyPH1L7v1zFSyVkCLsfHxX4swVUokFDHFzaj8BRXhztxRyPBP1Hiqq1Eay4BTj6wW50Yng= 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=UMOACnR/; arc=none smtp.client-ip=198.175.65.18 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="UMOACnR/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708731184; x=1740267184; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Fcx9fo3ASqh+dLKdC3K0y866TyJQISI7Pom5Idu6cVY=; b=UMOACnR/+UUOyD3oJjp7AztQtY3TY8ea5ZcC8DzPELrSnmSOjISvRILb LhEH6rGRr5TAJKjqcnjjDtGb6ecv+FSkDlBHLhaam6FxzZRkTPzZZ7PSc kQEXAK/N9JAlnDKoFGg573DZn72AchPhz556cggDbNhzdkWkU2DA2L8d3 ygkk7h4mMlxFYYl2xW7954yAfyRaUjaEvwK8AFIlcnSJNZiYpeKMcCsXS HG6zdXtQm1YBi0xdU7T+3rO2ufldZAhLBbAljCQhrk7p8XCTsH79cOoLk nqkJgt+I2EGPZH3rHwYg3KSoFjCsxU2meHlFQSQBxKbbhx+/pI9qOY33k Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10993"; a="3202090" X-IronPort-AV: E=Sophos;i="6.06,180,1705392000"; d="scan'208";a="3202090" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2024 15:33:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,180,1705392000"; d="scan'208";a="5990433" Received: from lkp-server02.sh.intel.com (HELO 3c78fa4d504c) ([10.239.97.151]) by fmviesa009.fm.intel.com with ESMTP; 23 Feb 2024 15:33:00 -0800 Received: from kbuild by 3c78fa4d504c with local (Exim 4.96) (envelope-from ) id 1rdf2H-00080G-2X; Fri, 23 Feb 2024 23:32:57 +0000 Date: Sat, 24 Feb 2024 07:32:25 +0800 From: kernel test robot To: Yang Xiwen via B4 Relay , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Philipp Zabel Cc: oe-kbuild-all@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Xiwen Subject: Re: [PATCH 2/2] drivers: bus: simple-pm-bus: Get and deassert resets exclusively Message-ID: <202402240740.rPfLNrGO-lkp@intel.com> References: <20240223-b4-bus-v1-2-2803c3ac4673@outlook.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20240223-b4-bus-v1-2-2803c3ac4673@outlook.com> Hi Yang, kernel test robot noticed the following build warnings: [auto build test WARNING on 8d3dea210042f54b952b481838c1e7dfc4ec751d] url: https://github.com/intel-lab-lkp/linux/commits/Yang-Xiwen-via-B4-Relay/dt-bindings-simple-pm-bus-Add-optional-resets/20240223-115400 base: 8d3dea210042f54b952b481838c1e7dfc4ec751d patch link: https://lore.kernel.org/r/20240223-b4-bus-v1-2-2803c3ac4673%40outlook.com patch subject: [PATCH 2/2] drivers: bus: simple-pm-bus: Get and deassert resets exclusively config: i386-randconfig-061-20240223 (https://download.01.org/0day-ci/archive/20240224/202402240740.rPfLNrGO-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/20240224/202402240740.rPfLNrGO-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/202402240740.rPfLNrGO-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/bus/simple-pm-bus.c:67:50: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected struct device *dev @@ got struct device const *dev @@ drivers/bus/simple-pm-bus.c:67:50: sparse: expected struct device *dev drivers/bus/simple-pm-bus.c:67:50: sparse: got struct device const *dev vim +67 drivers/bus/simple-pm-bus.c 26 27 static int simple_pm_bus_probe(struct platform_device *pdev) 28 { 29 const struct device *dev = &pdev->dev; 30 const struct of_dev_auxdata *lookup = dev_get_platdata(dev); 31 struct device_node *np = dev->of_node; 32 const struct of_device_id *match; 33 struct simple_pm_bus *bus; 34 35 /* 36 * Allow user to use driver_override to bind this driver to a 37 * transparent bus device which has a different compatible string 38 * that's not listed in simple_pm_bus_of_match. We don't want to do any 39 * of the simple-pm-bus tasks for these devices, so return early. 40 */ 41 if (pdev->driver_override) 42 return 0; 43 44 match = of_match_device(dev->driver->of_match_table, dev); 45 /* 46 * These are transparent bus devices (not simple-pm-bus matches) that 47 * have their child nodes populated automatically. So, don't need to 48 * do anything more. We only match with the device if this driver is 49 * the most specific match because we don't want to incorrectly bind to 50 * a device that has a more specific driver. 51 */ 52 if (match && match->data) { 53 if (of_property_match_string(np, "compatible", match->compatible) == 0) 54 return 0; 55 else 56 return -ENODEV; 57 } 58 59 bus = devm_kzalloc(&pdev->dev, sizeof(*bus), GFP_KERNEL); 60 if (!bus) 61 return -ENOMEM; 62 63 bus->num_clks = devm_clk_bulk_get_all(&pdev->dev, &bus->clks); 64 if (bus->num_clks < 0) 65 return dev_err_probe(&pdev->dev, bus->num_clks, "failed to get clocks\n"); 66 > 67 bus->rsts = devm_reset_control_array_get(dev, false, true); 68 if (IS_ERR(bus->rsts)) 69 return dev_err_probe(&pdev->dev, PTR_ERR(bus->rsts), "failed to get resets\n"); 70 71 dev_set_drvdata(&pdev->dev, bus); 72 73 dev_dbg(&pdev->dev, "%s\n", __func__); 74 75 pm_runtime_enable(&pdev->dev); 76 77 if (np) 78 of_platform_populate(np, NULL, lookup, &pdev->dev); 79 80 return 0; 81 } 82 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki