From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (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 8F8AB72602; Mon, 20 Oct 2025 03:30:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760931019; cv=none; b=cVIlBpNhZYzh5gZULbGg6iO9g2nzv8xH6qdiqF8k+iBXlRHNRVf50gZed81tfxtKjCQ+G1aIXwrHj7Z5IYUBfRCZ4VYY7ps6Cz4IaMyDJQQaPGk+fF1sSgRRjbUsJ50XrUxsnNRWuaHEZhuuPj+M6ZUhJG1ME0+r1jyZCeOHEFA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760931019; c=relaxed/simple; bh=V+FRGoMiN1MCwZCSWOtz2tWGmAj7seyi2taSQOonM+k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SiDDkq1kVN1AIzGpNIbvEfQnXhqkGSXhhaWU/MMlZ7X6412i82+g34Ib5r7LKfzJm3movTmiv62GkHcPBCJVCmWCWJmHdBHNE8qfFCEm8Vd29fpdMJAzd9aatagttFJpqsWTnbwZzBARxPmZosXAuyFsjEi9wXJWPL7eea6TjtI= 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=PigfzLYU; arc=none smtp.client-ip=198.175.65.14 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="PigfzLYU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1760931018; x=1792467018; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=V+FRGoMiN1MCwZCSWOtz2tWGmAj7seyi2taSQOonM+k=; b=PigfzLYUTWGLi1sYsVZATT2YEnH0Ergyqiwg6nJNoLexpy+IsioD7GJM 9i0bowj8la3pJH2iSPJk/n2i4Z/oa5nusk9wnUHV/utc/KG+2KmQ//1sh F3cXGm7eScxNbmYx4p4vcoU+QvwRRV+UE0OrSVUIHrX0RGin+GmE8dvIc arPDe3vRlqgzloT2G9vVSTqwvsyGLMVkENjfCv66OwlY7ei3ZAXxTxrQK KChO8FV3zLbr/3BO4RXpTrsRrv23VxeCluQkJbFtG6y5RZANBURTztNta Y/1esS5+5QMq8C/x7vJwWJQ4+NoC/vHg46kKf+50ARrpYUYW/J4GfEKpv Q==; X-CSE-ConnectionGUID: Cr6AR3V2RKqZxO/dBpNbGg== X-CSE-MsgGUID: bqsVmdJwS4mAXw6uaDyoWA== X-IronPort-AV: E=McAfee;i="6800,10657,11531"; a="66882796" X-IronPort-AV: E=Sophos;i="6.17,312,1747724400"; d="scan'208";a="66882796" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2025 20:30:17 -0700 X-CSE-ConnectionGUID: HtalkC0URWq1a8nM4TjSFw== X-CSE-MsgGUID: PtddhK7GRaOL3WdK0nanWg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,241,1754982000"; d="scan'208";a="187648530" Received: from lkp-server02.sh.intel.com (HELO 66d7546c76b2) ([10.239.97.151]) by fmviesa005.fm.intel.com with ESMTP; 19 Oct 2025 20:30:13 -0700 Received: from kbuild by 66d7546c76b2 with local (Exim 4.96) (envelope-from ) id 1vAgb5-0009Sj-2G; Mon, 20 Oct 2025 03:30:11 +0000 Date: Mon, 20 Oct 2025 11:29:28 +0800 From: kernel test robot To: Jonathan Brophy , lee Jones , Pavel Machek , Jonathan Brophy , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Radoslav Tsvetkov Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [PATCH v3 4/4] leds: Add virtualcolor LED group driver Message-ID: <202510201144.TwTDnjSJ-lkp@intel.com> References: <20251019092331.49531-5-professorjonny98@gmail.com> Precedence: bulk X-Mailing-List: devicetree@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: <20251019092331.49531-5-professorjonny98@gmail.com> Hi Jonathan, kernel test robot noticed the following build warnings: [auto build test WARNING on lee-leds/for-leds-next] [also build test WARNING on robh/for-next linus/master v6.18-rc2 next-20251017] [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/Jonathan-Brophy/dt-bindings-Add-virtualcolor-class-dt-bindings-documentation/20251019-172647 base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/leds.git for-leds-next patch link: https://lore.kernel.org/r/20251019092331.49531-5-professorjonny98%40gmail.com patch subject: [PATCH v3 4/4] leds: Add virtualcolor LED group driver config: i386-randconfig-001-20251020 (https://download.01.org/0day-ci/archive/20251020/202510201144.TwTDnjSJ-lkp@intel.com/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251020/202510201144.TwTDnjSJ-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/202510201144.TwTDnjSJ-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/leds/rgb/leds-group-virtualcolor.c:463:38: warning: cast from 'void (*)(struct mutex *)' to 'void (*)(void *)' converts to incompatible function type [-Wcast-function-type-strict] 463 | ret = devm_add_action_or_reset(dev, (void (*)(void *))mutex_destroy, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/device/devres.h:166:34: note: expanded from macro 'devm_add_action_or_reset' 166 | __devm_add_action_or_reset(dev, action, data, #action) | ^~~~~~ 1 warning generated. vim +463 drivers/leds/rgb/leds-group-virtualcolor.c 449 450 static int leds_virtualcolor_probe(struct platform_device *pdev) 451 { 452 struct leds_virtualcolor *vc_data; 453 struct device *dev = &pdev->dev; 454 int count = 0; 455 int ret; 456 457 vc_data = devm_kzalloc(dev, sizeof(*vc_data), GFP_KERNEL); 458 if (!vc_data) 459 return -ENOMEM; 460 461 mutex_init(&vc_data->lock); 462 > 463 ret = devm_add_action_or_reset(dev, (void (*)(void *))mutex_destroy, 464 &vc_data->lock); 465 if (ret) 466 return ret; 467 468 INIT_LIST_HEAD(&vc_data->active_leds); 469 470 vc_data->num_vleds = of_get_child_count(dev->of_node); 471 if (vc_data->num_vleds == 0) { 472 dev_err(dev, "No virtual LEDs defined\n"); 473 return -EINVAL; 474 } 475 476 vc_data->vleds = devm_kcalloc(dev, vc_data->num_vleds, sizeof(*vc_data->vleds), GFP_KERNEL); 477 if (!vc_data->vleds) 478 return -ENOMEM; 479 480 for_each_available_child_of_node_scoped(dev->of_node, child) { 481 struct virtual_led *vled = &vc_data->vleds[count]; 482 483 ret = leds_virtualcolor_init_vled(dev, child, vled, vc_data); 484 if (ret) 485 return ret; 486 487 count++; 488 } 489 490 platform_set_drvdata(pdev, vc_data); 491 492 return 0; 493 } 494 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki