Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp3003338rwb; Sat, 6 Aug 2022 10:21:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR4dsuI95tsZ75YTSIAQohyz6tMfCrUULkfCaUVfVkwZ/NlrHmwQ70ys6GErpg0EvSLN9f9V X-Received: by 2002:a63:464b:0:b0:419:78b4:dcf1 with SMTP id v11-20020a63464b000000b0041978b4dcf1mr9526984pgk.500.1659806519200; Sat, 06 Aug 2022 10:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659806519; cv=none; d=google.com; s=arc-20160816; b=aiNBKvzkN22CqmT9CEUwFK5G7RsuCJmJPDTaAcORahM87iTUHnnfW2f0uONpMZ/cxx kbyvPkIeokkw5sVVIk2kzXCfx8LIRLvihdDQhtigKK/WxHvcfMaMrxirERcJwwEz1yw3 3wzG7nAysDVhxxRysNwwHroU+sctROBIucnOkUZJkUvjLX1rBZqA4pYfaUYNk629jvJU wA/vbHMiiMACGj6Scsr5M+llXOG8s1tpmK1HcFG5ZFimYqkf25M8mbNApjlGATNyxMlH o0Po4AOarlwhKfqpPuCNh/VneSz5tCBPvQ3ijNqcS6offAErh68/SELm98CdBmrKtfFz f7RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Y1fIkMmFt4IWXtDh2KGMalb8i/IxatO8UKhXW0nlYzc=; b=cyinK5VRcXADxER8WX/Olh8ICF30XRr/QUx1YbDvzs9ZZQgEMsIXlSxMVvuS4T6Pkr swSU0UNpk2a4gfRnD5Y3S6xEx9jL1L/Y7W6xAJI477vONeXq3K5Mgzqv11tYbc9CvNVD 1DaytCbuWXxIAf+W6ZkrCmzgo/OLGtppLoG94/vLxP9PhtslFKzIUTfc++D1IYCIsZuw DFdRxjZMGDPBLNRxuBMk7l5QQCXph1z+W4ACbV1jRsaUEpFG5wl9/7+1RapveZKpcdAF it/IlEp2NLqChrudEjez4BKrPtJt+zk3VDqvJ1ROGByBeVKWbxYGggccF5/tmDrQu+Rw UUXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="gt6gvS/P"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lr14-20020a17090b4b8e00b001f022fb2b0bsi923306pjb.5.2022.08.06.10.21.46; Sat, 06 Aug 2022 10:21:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="gt6gvS/P"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233672AbiHFQoI (ORCPT + 99 others); Sat, 6 Aug 2022 12:44:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232588AbiHFQoG (ORCPT ); Sat, 6 Aug 2022 12:44:06 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EBF6A183; Sat, 6 Aug 2022 09:44:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659804245; x=1691340245; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=jXbt3yEp1PdNwvWnNUWK/iDHpKohU1vrRqIucTRmWws=; b=gt6gvS/PvNVRedsJ7pAcb55C8XArzl3wks4SOvo2BxuNcpeQi25v70i0 KcKjOH9PNC3J97INJaVmtyJffB+WhEwNSTREJkU0pz95m80B+ewKdeKPP m5pS54sAcaAe+BgxAgYrGbYdut1svojDBtAu7n8MgkF5ItGQ0R7hbc2mp 0l33tF1Wbmksr8d2xcdz1zNHkzQBvE3LL0YWAXAxNRDWUvCIgrnWAER8L wbZu4N+y+6VOGSXvFHDSq576DZPVQf7IBJsz+u+uDRUIkoI6MzMT98oIm 4AtfeemeUQVNGoDAP9PY0krsmBNgevshqIDwf6+vINeCXy+PehIUYTURN g==; X-IronPort-AV: E=McAfee;i="6400,9594,10431"; a="270153055" X-IronPort-AV: E=Sophos;i="5.93,217,1654585200"; d="scan'208";a="270153055" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Aug 2022 09:44:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,217,1654585200"; d="scan'208";a="746173900" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 06 Aug 2022 09:44:03 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oKMuB-000KX3-0L; Sat, 06 Aug 2022 16:44:03 +0000 Date: Sun, 7 Aug 2022 00:43:11 +0800 From: kernel test robot To: Andy Shevchenko , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Pavel Machek Subject: Re: [PATCH v1 1/1] leds: bcm6358: Get rid of custom led_init_default_state_get() Message-ID: <202208070030.kV6Z7e9R-lkp@intel.com> References: <20220802212542.7153-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220802212542.7153-1-andriy.shevchenko@linux.intel.com> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, I love your patch! Yet something to improve: [auto build test ERROR on pavel-leds/for-next] [also build test ERROR on linus/master v5.19 next-20220805] [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/Andy-Shevchenko/leds-bcm6358-Get-rid-of-custom-led_init_default_state_get/20220803-053220 base: git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds.git for-next config: arm-buildonly-randconfig-r004-20220801 (https://download.01.org/0day-ci/archive/20220807/202208070030.kV6Z7e9R-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 52cd00cabf479aa7eb6dbb063b7ba41ea57bce9e) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/intel-lab-lkp/linux/commit/ad3083d8ac0e2beb10b75a7d87085911b4f6139a git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Andy-Shevchenko/leds-bcm6358-Get-rid-of-custom-led_init_default_state_get/20220803-053220 git checkout ad3083d8ac0e2beb10b75a7d87085911b4f6139a # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/leds/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/leds/leds-bcm6358.c:116:10: error: call to undeclared function 'led_init_default_state_get'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] state = led_init_default_state_get(init_data.fwnode); ^ 1 error generated. vim +/led_init_default_state_get +116 drivers/leds/leds-bcm6358.c 93 94 static int bcm6358_led(struct device *dev, struct device_node *nc, u32 reg, 95 void __iomem *mem, spinlock_t *lock) 96 { 97 struct led_init_data init_data = {}; 98 struct bcm6358_led *led; 99 enum led_default_state state; 100 unsigned long val; 101 int rc; 102 103 led = devm_kzalloc(dev, sizeof(*led), GFP_KERNEL); 104 if (!led) 105 return -ENOMEM; 106 107 led->pin = reg; 108 led->mem = mem; 109 led->lock = lock; 110 111 if (of_property_read_bool(nc, "active-low")) 112 led->active_low = true; 113 114 init_data.fwnode = of_fwnode_handle(nc); 115 > 116 state = led_init_default_state_get(init_data.fwnode); 117 switch (state) { 118 case LEDS_DEFSTATE_ON: 119 led->cdev.brightness = LED_FULL; 120 break; 121 case LEDS_DEFSTATE_KEEP: 122 val = bcm6358_led_read(led->mem + BCM6358_REG_MODE); 123 val &= BIT(led->pin); 124 if ((led->active_low && !val) || (!led->active_low && val)) 125 led->cdev.brightness = LED_FULL; 126 else 127 led->cdev.brightness = LED_OFF; 128 break; 129 default: 130 led->cdev.brightness = LED_OFF; 131 } 132 133 bcm6358_led_set(&led->cdev, led->cdev.brightness); 134 135 led->cdev.brightness_set = bcm6358_led_set; 136 137 rc = devm_led_classdev_register_ext(dev, &led->cdev, &init_data); 138 if (rc < 0) 139 return rc; 140 141 dev_dbg(dev, "registered LED %s\n", led->cdev.name); 142 143 return 0; 144 } 145 -- 0-DAY CI Kernel Test Service https://01.org/lkp