From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 D7C7D2EC09E; Thu, 30 Oct 2025 21:18:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761859094; cv=none; b=QNigrptVYZQIL2YuHyeMRuBU5H8ETAErA1xQAQaQgXlza9YAlOR39c5qO2PILb4LtgdAxf9jwaLkKeeVL9tr2VD91DB9V5Vv5nUc/6J57I1/Bi6/gkqI23y97bF+5+AUD7s1Z9IJwY2WNlSvGHVaBf1BZSeggG4vJ5o5UJc3IvY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761859094; c=relaxed/simple; bh=W+0SK1qT8n+0l/533/lRHWF9H99SYMZQ9sU3yINs8Rg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eN0U85BKDwUb6/c8Rpz5zREXVNR1BsOH3gSowj6Vk/guHzIhlnZ2aBkpn6/HDXxs2gS9istAOjAVfwZZZhiUrCeI9jjdTkplgEi9J1O8f8DRNH7ib0bCZwd7mqMIWV+GrUQTD76djklgQqciBL9IaKlAIh2IOkgbEKTTZcL2ci8= 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=FhFs/8Cw; arc=none smtp.client-ip=198.175.65.12 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="FhFs/8Cw" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1761859094; x=1793395094; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=W+0SK1qT8n+0l/533/lRHWF9H99SYMZQ9sU3yINs8Rg=; b=FhFs/8CwhwMU9DSK/b1WULGKSo7ekilo57+zBjNbUvvPjDfoRc2a25+r FhDsyJvRuXgotW0u+TlaWbCsI6Cp0pcHcpE8ZVUIqmiYGJ33E7G3qldwi Z8lZgmsW6UHr4LowVjD77EyrWlLrx1m0E9G0FvMM3nx3RYmkM1fPXEh62 4+cizn2ZYaSukjimADRCIkDBBrcac84AE/hWpSdswLxaZimUiBUmiV6eE wQPRkjk4D6V5bv/f7y1ywe2FRwgTDSVQhJCrQlaFnEwpdlPSuRo8k6kJU 5e1GuzGf2vf9K/w2mIKWyg4C4HGegLuSd0B9RkT01SBANFVDTc6M60GWc A==; X-CSE-ConnectionGUID: hIOzH4pDRPCU3bCs0/8zYw== X-CSE-MsgGUID: dlzO9D3xQn6sJXJfT60F2g== X-IronPort-AV: E=McAfee;i="6800,10657,11598"; a="75465042" X-IronPort-AV: E=Sophos;i="6.19,267,1754982000"; d="scan'208";a="75465042" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2025 14:18:13 -0700 X-CSE-ConnectionGUID: VZ8phKHuQCi8K6y+EhBKow== X-CSE-MsgGUID: U9alOzekQ3u0J76f6RP/5Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,267,1754982000"; d="scan'208";a="186399100" Received: from lkp-server02.sh.intel.com (HELO 66d7546c76b2) ([10.239.97.151]) by fmviesa008.fm.intel.com with ESMTP; 30 Oct 2025 14:18:10 -0700 Received: from kbuild by 66d7546c76b2 with local (Exim 4.96) (envelope-from ) id 1vEa23-000MXg-2S; Thu, 30 Oct 2025 21:18:07 +0000 Date: Fri, 31 Oct 2025 05:17:28 +0800 From: kernel test robot To: cy_huang@richtek.com, Sebastian Reichel , Krzysztof Kozlowski Cc: oe-kbuild-all@lists.linux.dev, Rob Herring , Conor Dooley , ChiYuan Huang , devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/3] power: supply: rt9756: Add Richtek RT9756 smart cap divider charger Message-ID: <202510310457.iAWJdDLC-lkp@intel.com> References: <5eab51e111b092329519dd2c200858a522780626.1761699952.git.cy_huang@richtek.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: <5eab51e111b092329519dd2c200858a522780626.1761699952.git.cy_huang@richtek.com> Hi, kernel test robot noticed the following build warnings: [auto build test WARNING on sre-power-supply/for-next] [also build test WARNING on krzk-dt/for-next robh/for-next linus/master v6.18-rc3 next-20251030] [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/cy_huang-richtek-com/dt-bindings-power-supply-Add-Richtek-RT9756-smart-cap-divider-charger/20251029-091554 base: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git for-next patch link: https://lore.kernel.org/r/5eab51e111b092329519dd2c200858a522780626.1761699952.git.cy_huang%40richtek.com patch subject: [PATCH v3 2/3] power: supply: rt9756: Add Richtek RT9756 smart cap divider charger config: nios2-randconfig-r112-20251031 (https://download.01.org/0day-ci/archive/20251031/202510310457.iAWJdDLC-lkp@intel.com/config) compiler: nios2-linux-gcc (GCC) 9.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251031/202510310457.iAWJdDLC-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/202510310457.iAWJdDLC-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/power/supply/rt9756.c:645:41: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected unsigned int [usertype] size @@ got restricted gfp_t @@ drivers/power/supply/rt9756.c:645:41: sparse: expected unsigned int [usertype] size drivers/power/supply/rt9756.c:645:41: sparse: got restricted gfp_t >> drivers/power/supply/rt9756.c:645:53: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted gfp_t [usertype] gfp @@ got unsigned int @@ drivers/power/supply/rt9756.c:645:53: sparse: expected restricted gfp_t [usertype] gfp drivers/power/supply/rt9756.c:645:53: sparse: got unsigned int drivers/power/supply/rt9756.c: note: in included file (through include/uapi/linux/swab.h, include/linux/swab.h, include/uapi/linux/byteorder/little_endian.h, ...): arch/nios2/include/uapi/asm/swab.h:25:24: sparse: sparse: too many arguments for function __builtin_custom_ini vim +645 drivers/power/supply/rt9756.c 619 620 static int rt9756_register_psy(struct rt9756_data *data) 621 { 622 struct power_supply_desc *desc = &data->psy_desc; 623 struct power_supply_desc *bat_desc = &data->bat_psy_desc; 624 struct power_supply_config cfg = {}, bat_cfg = {}; 625 struct device *dev = data->dev; 626 char *psy_name, *bat_psy_name, **supplied_to; 627 628 bat_cfg.drv_data = data; 629 bat_cfg.fwnode = dev_fwnode(dev); 630 631 bat_psy_name = devm_kasprintf(dev, GFP_KERNEL, "rt9756-%s-battery", dev_name(dev)); 632 if (!bat_psy_name) 633 return -ENOMEM; 634 635 bat_desc->name = bat_psy_name; 636 bat_desc->type = POWER_SUPPLY_TYPE_BATTERY; 637 bat_desc->properties = rt9756_bat_psy_properties; 638 bat_desc->num_properties = ARRAY_SIZE(rt9756_bat_psy_properties); 639 bat_desc->get_property = rt9756_bat_psy_get_property; 640 641 data->bat_psy = devm_power_supply_register(dev, bat_desc, &bat_cfg); 642 if (IS_ERR(data->bat_psy)) 643 return dev_err_probe(dev, PTR_ERR(data->bat_psy), "Failed to register battery\n"); 644 > 645 supplied_to = devm_kzalloc(dev, GFP_KERNEL, sizeof(*supplied_to)); 646 if (!supplied_to) 647 return -ENOMEM; 648 649 /* Link charger psy to battery psy */ 650 supplied_to[0] = bat_psy_name; 651 652 cfg.drv_data = data; 653 cfg.fwnode = dev_fwnode(dev); 654 cfg.attr_grp = rt9756_sysfs_groups; 655 cfg.supplied_to = supplied_to; 656 cfg.num_supplicants = 1; 657 658 psy_name = devm_kasprintf(dev, GFP_KERNEL, "rt9756-%s", dev_name(dev)); 659 if (!psy_name) 660 return -ENOMEM; 661 662 desc->name = psy_name; 663 desc->type = POWER_SUPPLY_TYPE_USB; 664 desc->usb_types = BIT(POWER_SUPPLY_USB_TYPE_UNKNOWN) | BIT(POWER_SUPPLY_USB_TYPE_SDP) | 665 BIT(POWER_SUPPLY_USB_TYPE_DCP) | BIT(POWER_SUPPLY_USB_TYPE_CDP); 666 desc->properties = rt9756_psy_properties; 667 desc->num_properties = ARRAY_SIZE(rt9756_psy_properties); 668 desc->property_is_writeable = rt9756_psy_property_is_writeable; 669 desc->get_property = rt9756_psy_get_property; 670 desc->set_property = rt9756_psy_set_property; 671 672 data->psy = devm_power_supply_register(dev, desc, &cfg); 673 674 return PTR_ERR_OR_ZERO(data->psy); 675 } 676 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki