Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp290905lqb; Tue, 16 Apr 2024 16:28:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU064Pt6j8270wHaB4iVk7+oqv6RzQYmUGwlxVz76fJ21lk4FHYfUVZJwYEhXuQa0MlYhmlYj7CO+ZKhWNA7Tsb0Gif+zERH+95Cmeb/A== X-Google-Smtp-Source: AGHT+IEwHKJgaLDzXtwXN9DiFzODK6COzN1QXdV7W5v9ZoQp7gqkiZd+9eXW/xmldvXzubU/UeSr X-Received: by 2002:a17:90a:6f84:b0:2a3:ba0:d9f with SMTP id e4-20020a17090a6f8400b002a30ba00d9fmr12400557pjk.11.1713310113791; Tue, 16 Apr 2024 16:28:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713310113; cv=pass; d=google.com; s=arc-20160816; b=BTw5yBD+zj67B0/CRHGO2ENiZZbv/J/Xox1psO2+6SdU5OM/cPX058S6lhWHhfO42l RewDsSDJCewuj8bAJlNyysxRsSO8KYa78rOUITxxVKG9TxvwYzGfHbAfCee1+cELfRXj cO7jtOVHcfZD2XHlluw+32Qa59SKxLRftt60DTNHaPJvYAmGZIJC/6O/sIIoI53DFVHf XmdMRMs4iqF5d2ZOBQOPNDqk0VVfy1nEoOeVdoeiEX59KDuKo0CuSVqY7H7BRUJfRj9k nUVhSnwh41mUgBP/3zoAl3UgaFvfb/69vgVYl4gXpPSUA+8tgBz2erAx2F44eEuuZnyS Ba4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=s/lWMtKFt0N2T3i0rlt88GVreD2ZUZ7k26V5IDFHj4Q=; fh=jo41wm9gEAIDVfy6Y2gg/bCQaY5Z5R9QejJY43x8IPg=; b=g7x5rRehglnZikK2eScj05MBnABW1YdQ+idulG3IKX3QIqNOR516c6MriyYsOhIRbl +Fmq7sArfbMME7jvudQ18TCv4kJpOXhKdRHdkssJSBXx5ej1NHpJGfRxU6POJHfr/6cb oAuJaMUadWI7y/5xEq5Rl1iAsFQCj/qmz5iSmDFkPFfMottBOM2KP6l/i8HVV8l1q4fS wNj+Dt7KnvS2nBP2mv+UYNU0rYx6bQb8D0e76eiyd0woS95IKH5uMzXcfJeCMtibDf0f GB/hGHu2abhLDF0eGdjwzViT7ap/LlK6ufxQTNbtE8vAzn4pvzsL4zls/dUeqqeQbbUJ OJRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=h78knIKr; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-147750-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147750-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ca24-20020a17090af31800b002a30910be42si221854pjb.63.2024.04.16.16.28.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 16:28:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147750-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=h78knIKr; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-147750-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147750-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6F923282E0B for ; Tue, 16 Apr 2024 23:28:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3BBA413A89B; Tue, 16 Apr 2024 23:28:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="h78knIKr" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (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 A6C0213A41B; Tue, 16 Apr 2024 23:28:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713310106; cv=none; b=XqZtDkKLNLHRWUXtrIudd09NFkLGg7xi0QWoP+P8aaPQdbsRcagU2ATPyYDCQ9ZHgOnq/1xPpZ/rEdtup7MsRW/d9bRPqde7hcZI+dpRlAVYNeeZaW25+ETnQoyE2ZviD7PG51niINiuOsk0nGGYIimctcKaQU/Zw13xLGx4Cb0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713310106; c=relaxed/simple; bh=RWjT95QphPZ5AOknCIiCxI3mE5E53bV0YbYg4KQf3RQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UHQG9iUfOIO1HsFzwHprtlITSKfZQ2YfFrfVNxx3cR46DN/gdu4O+bJLoQFZwdE1MF8kV0p4Px73pIMnzCw21v3iC+4stMosuN+dVPuH5/fQljUeVpt86Wc9i22XLmiRTHk7x3qyEogOnxQbA+bN/kPPu/sBZUpO3Q72fZN5a7A= 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=h78knIKr; arc=none smtp.client-ip=192.198.163.8 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713310104; x=1744846104; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=RWjT95QphPZ5AOknCIiCxI3mE5E53bV0YbYg4KQf3RQ=; b=h78knIKr/ZjKUgK6sV9HLmgvLDdw+UcVTUzM/MdQqpwJF/sdmKcYApPp d7iLFTG4vxWgwZZ3cKN6l7pXM2GSrMSmN4pEhdd0AUtQ8xdAHRXVZIsFC VOoWRnWxOe3Nxmzf/jA6jT8kt0Qbo7IjhqCY4BFMMlcrHFruNd+8R/EpF 8QiCp6Dhp0OnQPzyc5awLqPl4QLMriVGgIVjxym3gVPNpsjEpExG+0x/v zeQk3GtglTEPBNMZZmtBPvrIndnZ5aFBKtZ1UDCDRn1iu005gLac+BZks kSdjfBTjhysosD1R9NXPA9Ws3f4DRiOe9UJvzCGHjnTDDbtORzxHWtmdj w==; X-CSE-ConnectionGUID: ohl2ZBz3RAac/o8kfZFKOA== X-CSE-MsgGUID: 1OSof5m0TX+rOrzrN0NfoQ== X-IronPort-AV: E=McAfee;i="6600,9927,11046"; a="26294546" X-IronPort-AV: E=Sophos;i="6.07,207,1708416000"; d="scan'208";a="26294546" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2024 16:28:20 -0700 X-CSE-ConnectionGUID: H/mRELqoQU6ABXfhBxqDvQ== X-CSE-MsgGUID: EjFeB3IYQ/2rC9oO8AUjYA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,207,1708416000"; d="scan'208";a="22478448" Received: from unknown (HELO 23c141fc0fd8) ([10.239.97.151]) by fmviesa008.fm.intel.com with ESMTP; 16 Apr 2024 16:28:16 -0700 Received: from kbuild by 23c141fc0fd8 with local (Exim 4.96) (envelope-from ) id 1rwsDm-0005qD-2G; Tue, 16 Apr 2024 23:28:14 +0000 Date: Wed, 17 Apr 2024 07:27:50 +0800 From: kernel test robot To: Kate Hsuan , Pavel Machek , Lee Jones , linux-leds@vger.kernel.org, platform-driver-x86@vger.kernel.org, Hans de Goede , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , =?iso-8859-1?Q?Andr=E9?= Apitzsch , linux-kernel@vger.kernel.org, Andy Shevchenko , Sebastian Reichel , linux-pm@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Kate Hsuan Subject: Re: [PATCH v6 4/5] power: supply: power-supply-leds: Add charging_orange_full_green trigger for RGB LED Message-ID: <202404170705.Or8MFKNi-lkp@intel.com> References: <20240416053909.256319-5-hpa@redhat.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: <20240416053909.256319-5-hpa@redhat.com> Hi Kate, kernel test robot noticed the following build errors: [auto build test ERROR on sre-power-supply/for-next] [also build test ERROR on lee-leds/for-leds-next linus/master v6.9-rc4] [cannot apply to next-20240416] [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/Kate-Hsuan/platform-x86-android-tablets-other-Add-swnode-for-Xiaomi-pad2-indicator-LED/20240416-134240 base: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git for-next patch link: https://lore.kernel.org/r/20240416053909.256319-5-hpa%40redhat.com patch subject: [PATCH v6 4/5] power: supply: power-supply-leds: Add charging_orange_full_green trigger for RGB LED config: arm-defconfig (https://download.01.org/0day-ci/archive/20240417/202404170705.Or8MFKNi-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240417/202404170705.Or8MFKNi-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/202404170705.Or8MFKNi-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/power/supply/power_supply_leds.c:42:3: error: implicit declaration of function 'led_mc_trigger_event' is invalid in C99 [-Werror,-Wimplicit-function-declaration] led_mc_trigger_event(psy->charging_orange_full_green_trig, ^ drivers/power/supply/power_supply_leds.c:42:3: note: did you mean 'led_trigger_event'? include/linux/leds.h:489:6: note: 'led_trigger_event' declared here void led_trigger_event(struct led_trigger *trigger, enum led_brightness event); ^ 1 error generated. vim +/led_mc_trigger_event +42 drivers/power/supply/power_supply_leds.c 21 22 static void power_supply_update_bat_leds(struct power_supply *psy) 23 { 24 union power_supply_propval status; 25 unsigned int intensity_green[3] = {255, 0, 0}; 26 unsigned int intensity_orange[3] = {128, 0, 255}; 27 unsigned int intensity_red[3] = {0, 0, 255}; 28 29 if (power_supply_get_property(psy, POWER_SUPPLY_PROP_STATUS, &status)) 30 return; 31 32 dev_dbg(&psy->dev, "%s %d\n", __func__, status.intval); 33 34 switch (status.intval) { 35 case POWER_SUPPLY_STATUS_FULL: 36 led_trigger_event(psy->charging_full_trig, LED_FULL); 37 led_trigger_event(psy->charging_trig, LED_OFF); 38 led_trigger_event(psy->full_trig, LED_FULL); 39 /* Going from blink to LED on requires a LED_OFF event to stop blink */ 40 led_trigger_event(psy->charging_blink_full_solid_trig, LED_OFF); 41 led_trigger_event(psy->charging_blink_full_solid_trig, LED_FULL); > 42 led_mc_trigger_event(psy->charging_orange_full_green_trig, 43 intensity_green, 44 ARRAY_SIZE(intensity_green), 45 LED_FULL); 46 break; 47 case POWER_SUPPLY_STATUS_CHARGING: 48 led_trigger_event(psy->charging_full_trig, LED_FULL); 49 led_trigger_event(psy->charging_trig, LED_FULL); 50 led_trigger_event(psy->full_trig, LED_OFF); 51 led_trigger_blink(psy->charging_blink_full_solid_trig, 0, 0); 52 led_mc_trigger_event(psy->charging_orange_full_green_trig, 53 intensity_orange, 54 ARRAY_SIZE(intensity_orange), 55 LED_FULL); 56 break; 57 default: 58 led_trigger_event(psy->charging_full_trig, LED_OFF); 59 led_trigger_event(psy->charging_trig, LED_OFF); 60 led_trigger_event(psy->full_trig, LED_OFF); 61 led_trigger_event(psy->charging_blink_full_solid_trig, 62 LED_OFF); 63 led_mc_trigger_event(psy->charging_orange_full_green_trig, 64 intensity_red, 65 ARRAY_SIZE(intensity_red), 66 LED_OFF); 67 break; 68 } 69 } 70 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki