Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1084825rdb; Tue, 19 Sep 2023 21:41:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEM0oqUDtRphJZq4HSqDLwDsSSHYLyyNKwBpj4CUgBDcX7CG88sLIs8Tpz98SRk9D+XNxVf X-Received: by 2002:ac8:7f45:0:b0:410:840c:def7 with SMTP id g5-20020ac87f45000000b00410840cdef7mr1772058qtk.25.1695184911835; Tue, 19 Sep 2023 21:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695184911; cv=none; d=google.com; s=arc-20160816; b=aCIDR26wgBlqvio7v5S36zke6Kp3lPWlUctiuvezY4Vkdgm+4rCbDCcY9oCyKp1gON Ex0fjBpRDNCLbRZhdf2MkcR4fi4uT0YS7ZIwarrzI4ahN4GKZl2Q1WGWRnrBSAySuyhe 4eSrgctI+pPnDI70aEY0XU7+CixgAsewAntsqvu7ot/bMh1iAl8ox9QjPbQu11mOxp4G Ff7TBU13mrOQRSoTNo2RDhXUfsDS4yg5BmR6hWytpwXRT/l4uouDjJyqS5ksSPhSjFmI ljgWkQlTyR8vExhRdOdHTimdozZqRO9TRRYR/C4o78wf+Nx8wGiE0NJXV3dbJ82knbc0 2KMQ== 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=lQRxFTzDzxvV6WDQdMDwmUq+PnyTIquuDdwiA6XH2y0=; fh=HzUZCHTPK+sT2ka2I0j+waDTzZJP6xfp/jAt4/LxEIw=; b=XVB5Qkd/JAvuVmTWuuiioXzzu+oDBb9Q/sT7JKf9CCnKnWeo4EtgnvXbL0wVeYSo6a nBgEGUsheTDweufPcLTuYGTNuCU1t1m0NfNakr05GO39JhYkmUyQyPanccnHI9RFDB5h y8yAdQoeDbfDidDe/B1SFegrC8yY9OkJOCNmUUKA8z2MvuUWuUvu8eJVx05/zI7d+/pB QxVFB3MqEMFp+QesxYG4bOit/q0BmDZZnhzilEGVMN6xzLMi/61iwAMoJPMo0AqDn/Yd UUU306fydtxoqL6AtwTPXE09kjn3Qx/HuFQGndgX44zjdijXMD+ZsSkcMEzQo2dkAUy+ xiWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=l0XZJ+cb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id s196-20020a6377cd000000b00578b8016c3esi2221769pgc.138.2023.09.19.21.41.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 21:41:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=l0XZJ+cb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0EFBF802AF11; Tue, 19 Sep 2023 12:53:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232873AbjISTxS (ORCPT + 99 others); Tue, 19 Sep 2023 15:53:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232717AbjISTxP (ORCPT ); Tue, 19 Sep 2023 15:53:15 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD3D98F for ; Tue, 19 Sep 2023 12:53:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695153189; x=1726689189; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=geHwA3OeDB3eBBn9jJ8anp9OdK21qswmKQE2nVcMoVw=; b=l0XZJ+cbjn2wJejj7QsmshcSxpnqqKa9FzvfcNIr+W+PJhEYdnLL0N7f 2S5Y2X8Nkz6W1tivjkWdqjn6pfO4veOCQWL8qy1sLDaDztBRYgjtfcI5M wX7Y1VToyQ2ulnHJmkpyIBpYtjCzu13ZjiHmne+4F4QRWXQkBKt+vvIRm lju52EWmFQ2QmMzy3TNG2PG9+jO5Va4zguE+K3pzl8xrJ+t3l8AXkzfs3 +7R/eShkmrQERRoM1OJKMp/2evgDi9oF0FqAMm2Xa7/K9nOV6V/D3P1gw iJZkfBeMrR3Gep2TVI0+6GAE8lFI9SBwGFINIV0flN0Gt5XJv7WSPmEDG A==; X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="410969233" X-IronPort-AV: E=Sophos;i="6.02,160,1688454000"; d="scan'208";a="410969233" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 12:53:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="1077112204" X-IronPort-AV: E=Sophos;i="6.02,160,1688454000"; d="scan'208";a="1077112204" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 19 Sep 2023 12:53:07 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qigmP-0007rA-06; Tue, 19 Sep 2023 19:53:05 +0000 Date: Wed, 20 Sep 2023 03:52:26 +0800 From: kernel test robot To: Naresh Solanki , broonie@kernel.org, zev@bewilderbeest.net, Liam Girdwood Cc: oe-kbuild-all@lists.linux.dev, Naresh Solanki , linux-kernel@vger.kernel.org Subject: Re: [PATCH] regulator: userspace-consumer: Retrieve supplies from DT Message-ID: <202309200316.ACh8kKEW-lkp@intel.com> References: <20230919061755.3412016-1-naresh.solanki@9elements.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230919061755.3412016-1-naresh.solanki@9elements.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 19 Sep 2023 12:53:21 -0700 (PDT) Hi Naresh, kernel test robot noticed the following build errors: [auto build test ERROR on 451e85e29c9d6f20639d4cfcff4b9dea280178cc] url: https://github.com/intel-lab-lkp/linux/commits/Naresh-Solanki/regulator-userspace-consumer-Retrieve-supplies-from-DT/20230919-141840 base: 451e85e29c9d6f20639d4cfcff4b9dea280178cc patch link: https://lore.kernel.org/r/20230919061755.3412016-1-naresh.solanki%409elements.com patch subject: [PATCH] regulator: userspace-consumer: Retrieve supplies from DT config: i386-randconfig-014-20230919 (https://download.01.org/0day-ci/archive/20230920/202309200316.ACh8kKEW-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230920/202309200316.ACh8kKEW-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/202309200316.ACh8kKEW-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/regulator/userspace-consumer.c: In function 'get_num_supplies': >> drivers/regulator/userspace-consumer.c:126:9: error: implicit declaration of function 'for_each_property_of_node'; did you mean 'for_each_child_of_node'? [-Werror=implicit-function-declaration] 126 | for_each_property_of_node(pdev->dev.of_node, prop) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ | for_each_child_of_node >> drivers/regulator/userspace-consumer.c:126:59: error: expected ';' before '{' token 126 | for_each_property_of_node(pdev->dev.of_node, prop) { | ^~ | ; drivers/regulator/userspace-consumer.c:124:13: warning: unused variable 'num_supplies' [-Wunused-variable] 124 | int num_supplies = 0; | ^~~~~~~~~~~~ drivers/regulator/userspace-consumer.c:136:1: error: no return statement in function returning non-void [-Werror=return-type] 136 | } | ^ drivers/regulator/userspace-consumer.c: In function 'regulator_userspace_consumer_probe': drivers/regulator/userspace-consumer.c:162:67: error: expected ';' before '{' token 162 | for_each_property_of_node(pdev->dev.of_node, prop) { | ^~ | ; cc1: some warnings being treated as errors vim +126 drivers/regulator/userspace-consumer.c 120 121 static int get_num_supplies(struct platform_device *pdev) 122 { 123 struct property *prop; 124 int num_supplies = 0; 125 > 126 for_each_property_of_node(pdev->dev.of_node, prop) { 127 const char *prop_name = prop->name; 128 int len = strlen(prop_name); 129 130 if (len > SUPPLY_SUFFIX_LEN && 131 strcmp(prop_name + len - SUPPLY_SUFFIX_LEN, SUPPLY_SUFFIX) == 0) { 132 num_supplies++; 133 } 134 } 135 return num_supplies; 136 } 137 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki