Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1078560lqh; Sun, 5 May 2024 15:33:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXEdQjlT0qUH33I5Oio0DOvivXLJpQDhOKBkXfFoP3qmOiQY3fRBEzI2eD5ghKzpQjaQuzK9XnqepVuLCuzm9cuphTV32xB9I3w3jqYsg== X-Google-Smtp-Source: AGHT+IEI/37sOxo4ajby8FoPUBd4upxR9FF2b+OGqBP8npRA9ytVqlUG+lj2eZ+NJQ96uiCtcGrl X-Received: by 2002:a05:6a21:3a4b:b0:1af:36df:5159 with SMTP id zu11-20020a056a213a4b00b001af36df5159mr9210436pzb.59.1714948436303; Sun, 05 May 2024 15:33:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714948436; cv=pass; d=google.com; s=arc-20160816; b=l3T3zOaan/Wr/aHLOhIQ+u9ljbPdmQQp7vLvT9aXpkYreGqibOdtUrYabhV++TSldq TcKOSC4zTmsknXQZftwpQwUeWxMZCX3CDWhMUjJ5ONEsmcD1ET5c7c8cbSxXnsbjkSkU +bBtAd2B/n6Zb+5+fmpuqq/nJtPc2Ux+GLXH3HJak0MChB9/3vO9Ka7mdM9wTx1Cey6D K0KJzBh2f8z58eZnwlBlwNNDj7uy+wZT5xd5EOxd60P7NYunECEvv1byvbX2VQpuCrxZ ps06PJcmCRLEUaPqnyUE7axOiTQxwiorslcpNli7toa6ir3VGINz7fTaKrm31ol7FAUJ MnaA== 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=GtjEpRJPrH34FSOryedrRBg8Q3iBIzsGhjwDDvD97F4=; fh=JgJeXMCzVsl382MqyeZAynD6EGGCIPHbPt6UozUsVfk=; b=zNNihkfw5cHPlx2wUwTL3IpHZ3vlyQjg+dqAUsjJsRGtayZ8awdQMeLIWcC38kC6Um L+JM16flOT5DqQyWf9dVQzcDJwKpwxqXLnI91SISxm7fUQcik+b+2ny7ePwQL2BFyo6Z 2wdd5fk57rtjnczyifswfiZrIgMmPaTMM8TPGwcW9P8T0Yho/iqiBqqrPV8uJXkjnxYd pSWNXH1zZr5ngCcjr80Zi7mWUch9qv5juMNW552wV4DAkeScMZegFl8qnNbw8Aw36nd3 XPD7suHnGcuKDu0BEYFr2qNLmqthoOgAG0s8zm8yTt/5NkXN8QclUAz7bGE6arIaRPOA BBBA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="oCBuHfQ/"; 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-169183-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169183-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 ay6-20020a056a00300600b006f474933925si1571229pfb.311.2024.05.05.15.33.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 15:33:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169183-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="oCBuHfQ/"; 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-169183-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169183-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 E662528167E for ; Sun, 5 May 2024 22:33:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 88B3713FD98; Sun, 5 May 2024 22:33:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="oCBuHfQ/" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (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 D866013FD7F for ; Sun, 5 May 2024 22:33:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714948429; cv=none; b=bfZalWY8WTwjTCpvv9wtsLAFqnG5EAfPeISNVDE6v01l1B6iXzZxBdcMHjdOCZLw6SUccOgd9zjOhn2bJuO4BSuEw56IE7e2xzBsqAbJGwjWofR/xDegFlKbDFH85R2ol/Hb7aOv3wFelMU7iw5PJ63PtmpoayCpaOtAD/K9UAc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714948429; c=relaxed/simple; bh=NVy75iIFNvmIbmRgBWApp4Iv7pImltO4vpHqlAOGIsM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dHlcXAAQTz2cQNH5ttCbWnbtvxWxtkP/0Ep+iusIBxoo+8N0MovOmviJgGH5SOUiy/XAQfY3DZFcOQaOTIK2xxyUnc8fLO0qlRvei2BsRzbslLYTFnf5ydicXQO6JYGWMJmNhnA9erdvDH8Gsz64kLfVmWgk77vEjl8tC0W0j7c= 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=oCBuHfQ/; arc=none smtp.client-ip=192.198.163.7 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=1714948428; x=1746484428; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=NVy75iIFNvmIbmRgBWApp4Iv7pImltO4vpHqlAOGIsM=; b=oCBuHfQ/l6zbnP8Cm9tDPS6JEhXmT0JoRNE8iuN5LTStM0VU3RK4HxCg klV8c2mv52tqOUf4xWLaPv6J6H78GecMSbqxZonDNUZMtgt18F2ZNqsB/ 3bZa0mMLMWSgzXIf7OR8p5zW5E9YCwueNSX8e3yvPC+eSYd8yEjVOKysV iBWRvC8/AiL548fgwggII3av70PLqMeUcdR0bY78QToZFUJrrGm/tk017 BVCMXzv/weybpxsPSv0L+XQ7GrrVWPR/zkwLSx00l7WYOFSIJr/LFs7bl 0exoLsZyRVmT6VFAu+tBe7vnMEoF/3V8EcQjnjxPja26XIy5v0B4kMa0W Q==; X-CSE-ConnectionGUID: 6QWJH6ljQkqPt8jePnuNyQ== X-CSE-MsgGUID: NDS/oAo1S++hFYZEbM5Y6g== X-IronPort-AV: E=McAfee;i="6600,9927,11064"; a="36069677" X-IronPort-AV: E=Sophos;i="6.07,257,1708416000"; d="scan'208";a="36069677" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2024 15:33:47 -0700 X-CSE-ConnectionGUID: y35fWdOCQJ2bpOe3MIKTYQ== X-CSE-MsgGUID: JKlQ5+UFRWiJkvIgE1caGA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,257,1708416000"; d="scan'208";a="59174002" Received: from lkp-server01.sh.intel.com (HELO f8b243fe6e68) ([10.239.97.150]) by fmviesa001.fm.intel.com with ESMTP; 05 May 2024 15:33:44 -0700 Received: from kbuild by f8b243fe6e68 with local (Exim 4.96) (envelope-from ) id 1s3kQQ-0000Fs-0o; Sun, 05 May 2024 22:33:42 +0000 Date: Mon, 6 May 2024 06:33:22 +0800 From: kernel test robot To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Lee Jones , Benson Leung , Guenter Roeck , Tzung-Bi Shih Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, Dustin Howett , Mario Limonciello , Thomas =?iso-8859-1?Q?Wei=DFschuh?= Subject: Re: [PATCH] platform/chrome: cros_kbd_led_backlight: enable probing through EC_FEATURE_PWM_KEYB Message-ID: <202405060655.dD06crN0-lkp@intel.com> References: <20240505-cros_ec-kbd-led-framework-v1-1-bfcca69013d2@weissschuh.net> 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: <20240505-cros_ec-kbd-led-framework-v1-1-bfcca69013d2@weissschuh.net> Hi Thomas, kernel test robot noticed the following build errors: [auto build test ERROR on 2fbe479c0024e1c6b992184a799055e19932aa48] url: https://github.com/intel-lab-lkp/linux/commits/Thomas-Wei-schuh/platform-chrome-cros_kbd_led_backlight-enable-probing-through-EC_FEATURE_PWM_KEYB/20240505-174413 base: 2fbe479c0024e1c6b992184a799055e19932aa48 patch link: https://lore.kernel.org/r/20240505-cros_ec-kbd-led-framework-v1-1-bfcca69013d2%40weissschuh.net patch subject: [PATCH] platform/chrome: cros_kbd_led_backlight: enable probing through EC_FEATURE_PWM_KEYB config: x86_64-randconfig-072-20240506 (https://download.01.org/0day-ci/archive/20240506/202405060655.dD06crN0-lkp@intel.com/config) compiler: clang version 18.1.4 (https://github.com/llvm/llvm-project e6c3289804a67ea0bb6a86fadbe454dd93b8d855) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240506/202405060655.dD06crN0-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/202405060655.dD06crN0-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/platform/chrome/cros_kbd_led_backlight.c:218:42: error: redefinition of 'keyboard_led_drvdata_ec_pwm' 218 | static const struct keyboard_led_drvdata keyboard_led_drvdata_ec_pwm = {}; | ^ drivers/platform/chrome/cros_kbd_led_backlight.c:184:57: note: previous definition is here 184 | static const __maybe_unused struct keyboard_led_drvdata keyboard_led_drvdata_ec_pwm = { | ^ >> drivers/platform/chrome/cros_kbd_led_backlight.c:240:14: error: use of undeclared identifier 'keyboard_led_drvdata_ec_pwm_mfd'; did you mean 'keyboard_led_drvdata_acpi'? 240 | drvdata = &keyboard_led_drvdata_ec_pwm_mfd; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | keyboard_led_drvdata_acpi drivers/platform/chrome/cros_kbd_led_backlight.c:114:42: note: 'keyboard_led_drvdata_acpi' declared here 114 | static const struct keyboard_led_drvdata keyboard_led_drvdata_acpi = { | ^ 2 errors generated. vim +240 drivers/platform/chrome/cros_kbd_led_backlight.c 217 > 218 static const struct keyboard_led_drvdata keyboard_led_drvdata_ec_pwm = {}; 219 220 #endif /* IS_ENABLED(CONFIG_MFD_CROS_EC_DEV) */ 221 222 static int keyboard_led_is_mfd_device(struct platform_device *pdev) 223 { 224 if (!IS_ENABLED(CONFIG_MFD_CROS_EC_DEV)) 225 return 0; 226 227 if (!pdev->dev.parent) 228 return 0; 229 230 return strcmp(pdev->dev.parent->driver->name, "cros-ec-dev") == 0; 231 } 232 233 static int keyboard_led_probe(struct platform_device *pdev) 234 { 235 const struct keyboard_led_drvdata *drvdata; 236 struct keyboard_led *keyboard_led; 237 int error; 238 239 if (keyboard_led_is_mfd_device(pdev)) > 240 drvdata = &keyboard_led_drvdata_ec_pwm_mfd; 241 else 242 drvdata = device_get_match_data(&pdev->dev); 243 if (!drvdata) 244 return -EINVAL; 245 246 keyboard_led = devm_kzalloc(&pdev->dev, sizeof(*keyboard_led), GFP_KERNEL); 247 if (!keyboard_led) 248 return -ENOMEM; 249 platform_set_drvdata(pdev, keyboard_led); 250 251 if (drvdata->init) { 252 error = drvdata->init(pdev); 253 if (error) 254 return error; 255 } 256 257 keyboard_led->cdev.name = "chromeos::kbd_backlight"; 258 keyboard_led->cdev.flags |= LED_CORE_SUSPENDRESUME; 259 keyboard_led->cdev.max_brightness = drvdata->max_brightness; 260 keyboard_led->cdev.brightness_set = drvdata->brightness_set; 261 keyboard_led->cdev.brightness_set_blocking = drvdata->brightness_set_blocking; 262 keyboard_led->cdev.brightness_get = drvdata->brightness_get; 263 264 error = devm_led_classdev_register(&pdev->dev, &keyboard_led->cdev); 265 if (error) 266 return error; 267 268 return 0; 269 } 270 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki