From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (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 4EDF71F9EBD for ; Fri, 17 Jan 2025 10:42:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737110548; cv=none; b=Wmb4dIhiytHomVZH5esykucFDLtfWo5L4u8CfZ3hAHroi610cJ6YY+m0NNNVrRaIF8bkGgtgR7MriH6kf3Pbeb1C/vfjDbJoGBYnH76t/NB9gg6r0JgVcrLjxac98acVV4zebEhEvdEj3iLK/ijsvKdjTRAM7cOpPV8rAgjtC4E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737110548; c=relaxed/simple; bh=REY7nCSiaX+falD92vRUezvg4FH/+RZv5pUUDqsh0t8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Xmay1S9YWWR4uRLSggI8bWxbkhGhxWNUuQkCmsr2fIw+GH5qb73gkOfqueNQ5ql0IJaZ629YUxI0ObBZsxpSEL659BLVZUOR6E8Mqo7Zl4wgtFbJFZ0Iz5xU4AySq8EW340YzKfDIS/5aB+3wN/5Td7u4tKLPw7Py07Tz/itDRg= 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=mANubnvz; arc=none smtp.client-ip=192.198.163.10 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="mANubnvz" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1737110546; x=1768646546; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=REY7nCSiaX+falD92vRUezvg4FH/+RZv5pUUDqsh0t8=; b=mANubnvz7Rd/BJ/WiY3FClYQ2Taps96x+MUFeU+5/MNTIol8PCFXJ6YO kKOxwNZVM4L16hafeh8cJseJuM8yfwUMrdST23NDk4FLG0L19SPQkB+k5 HEOvFeCM4k37as8nnW8D1deKkcFExYS8ZTZK+Hv6MKyiwI6OIicnbFFKq +U8XzrtBcBNhm7iGzB8bxJkE2dWYqsfBDCbVuCDymwnuUJi9lxZ546DTG jalTsHlmnmp3EHxL+LneoNBqQKFT2e5iSsuXnFSCs9l8oBGDJAW5o+3e7 FohMKj4deUNU2d4TIJO0mbkitKxFBf/3cHWzu5QIStdzI16fiDxOLT7Qw Q==; X-CSE-ConnectionGUID: yhJzl+8bQM2OgJyArCoswA== X-CSE-MsgGUID: FVoFnxWsQrie0jmrYSG9Dg== X-IronPort-AV: E=McAfee;i="6700,10204,11314"; a="48956217" X-IronPort-AV: E=Sophos;i="6.12,310,1728975600"; d="scan'208";a="48956217" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2025 02:42:26 -0800 X-CSE-ConnectionGUID: ZnDcquxRT1CFnbu/kj6r9w== X-CSE-MsgGUID: a0pU3cS3SF+XcxyERBKA4w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,211,1732608000"; d="scan'208";a="105734338" Received: from lkp-server01.sh.intel.com (HELO d63d4d77d921) ([10.239.97.150]) by fmviesa007.fm.intel.com with ESMTP; 17 Jan 2025 02:42:24 -0800 Received: from kbuild by d63d4d77d921 with local (Exim 4.96) (envelope-from ) id 1tYjny-000T4t-1H; Fri, 17 Jan 2025 10:42:22 +0000 Date: Fri, 17 Jan 2025 18:42:08 +0800 From: kernel test robot To: Jonas Andreasson , Liam Girdwood , Mark Brown Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, kernel@axis.com, Jonas Andreasson Subject: Re: [PATCH] regulator: TPS6287X: Use min/max uV to get VRANGE Message-ID: <202501171805.BfxHTcAh-lkp@intel.com> References: <20250115-tps-fix-v1-1-2bd7b316409d@axis.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: <20250115-tps-fix-v1-1-2bd7b316409d@axis.com> Hi Jonas, kernel test robot noticed the following build warnings: [auto build test WARNING on adc218676eef25575469234709c2d87185ca223a] url: https://github.com/intel-lab-lkp/linux/commits/Jonas-Andreasson/regulator-TPS6287X-Use-min-max-uV-to-get-VRANGE/20250115-175832 base: adc218676eef25575469234709c2d87185ca223a patch link: https://lore.kernel.org/r/20250115-tps-fix-v1-1-2bd7b316409d%40axis.com patch subject: [PATCH] regulator: TPS6287X: Use min/max uV to get VRANGE config: x86_64-randconfig-121-20250116 (https://download.01.org/0day-ci/archive/20250117/202501171805.BfxHTcAh-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/20250117/202501171805.BfxHTcAh-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/202501171805.BfxHTcAh-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/regulator/tps6287x-regulator.c:203:57: sparse: sparse: incorrect type in argument 2 (different modifiers) @@ expected struct regulator_desc *desc @@ got struct regulator_desc const * @@ drivers/regulator/tps6287x-regulator.c:203:57: sparse: expected struct regulator_desc *desc drivers/regulator/tps6287x-regulator.c:203:57: sparse: got struct regulator_desc const * drivers/regulator/tps6287x-regulator.c: note: in included file (through include/linux/mmzone.h, include/linux/gfp.h, include/linux/slab.h, ...): include/linux/page-flags.h:237:46: sparse: sparse: self-comparison always evaluates to false include/linux/page-flags.h:237:46: sparse: sparse: self-comparison always evaluates to false vim +203 drivers/regulator/tps6287x-regulator.c 179 180 static int tps6287x_i2c_probe(struct i2c_client *i2c) 181 { 182 struct device *dev = &i2c->dev; 183 struct regulator_config config = {}; 184 struct tps6287x_reg_data *reg_data; 185 struct regulator_dev *rdev; 186 187 reg_data = devm_kzalloc(dev, sizeof(struct tps6287x_reg_data), GFP_KERNEL); 188 189 if (!reg_data) 190 return -ENOMEM; 191 192 config.regmap = devm_regmap_init_i2c(i2c, &tps6287x_regmap_config); 193 if (IS_ERR(config.regmap)) { 194 dev_err(dev, "Failed to init i2c\n"); 195 return PTR_ERR(config.regmap); 196 } 197 198 config.dev = dev; 199 config.of_node = dev->of_node; 200 config.init_data = of_get_regulator_init_data(dev, dev->of_node, 201 &tps6287x_reg); 202 > 203 reg_data->range = tps6287x_best_range(&config, &tps6287x_reg); 204 205 rdev = devm_regulator_register(dev, &tps6287x_reg, &config); 206 if (IS_ERR(rdev)) { 207 dev_err(dev, "Failed to register regulator\n"); 208 return PTR_ERR(rdev); 209 } 210 211 rdev->reg_data = (void *)reg_data; 212 dev_dbg(dev, "Probed regulator\n"); 213 214 return 0; 215 } 216 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki