Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp958011rdb; Tue, 19 Sep 2023 16:01:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFKzRLhtFSKekEfRXNnAW5UEnXdxOd6fFH38BL9QfpJjQTUYINckgqzt8oKZu3SzTR5Hyki X-Received: by 2002:a05:6358:938f:b0:131:b4c:b871 with SMTP id h15-20020a056358938f00b001310b4cb871mr1407021rwb.22.1695164488078; Tue, 19 Sep 2023 16:01:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695164488; cv=none; d=google.com; s=arc-20160816; b=c29v8NOrpAncKD7Q1ZG/MLccWMjO0KndXY2UaXoFCorEwa2pc0ytt630uNR3oUwqIW wolknh5B8VuHqx/kjsdCb/QruZ1ZK7MqyagJk7LcYx5AHEZYQjJ0n4+xT7mNY5WPascP k/fstX/vZXYXanF37qj06LUYQp+TRuo30z2kSk5STRtTawvWIFLlLQni5UMXLtsW9XaN 4e/LQyTxifhYFnbSl3hfTvfaVihT6T+5s4jUbvj/f5R2ttxqNflk3sn/j91/pReiRT0I 2et+jFJ6n8h/7IAf8kB6XuvsnivcbJeEjswPoFNcvc00C0LdcY3JdGXk3MophhZLyvY8 JwBw== 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=VCNLz9C8vuAX7/H3+iDD4tZMvqbL/6ZN0L8TUr5dCws=; fh=HzUZCHTPK+sT2ka2I0j+waDTzZJP6xfp/jAt4/LxEIw=; b=NQosfglgG7fXu6HvPa/IYYC6QkJkn072kRoN/YQnDSrOdUe5S2Alu6+VaA+LQKdsm5 2Rt3F7hK2mzafm/VJHxYM+p0qbXdZE0jr2cF53NJyF7Cq3t9b3BFC8ejYDWAf7LV6scj 599FCqseR3XDBlQJ2q9Y9CXmtDjN3tmoD4vDcbntoKZy10z7i4LONNzGYYn6sti+GsdX TzDIUMtompnWrAaGyIxqhPKQwwczwKDLtMHm5xX73PuQEj3YMxZy8Ey0eBWhmByAVL+A oAwyl4DeWGluKXsQPG8n0qnPm9PMB50elraneYB+1sBBCvr1yDjdZaHDCtUm8dbWlrDv DIFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YeAqQmBa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id 6-20020a630a06000000b00573f116fba1si10318438pgk.870.2023.09.19.16.01.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 16:01:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YeAqQmBa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 0D2368246848; Tue, 19 Sep 2023 08:51:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232051AbjISPvh (ORCPT + 99 others); Tue, 19 Sep 2023 11:51:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231191AbjISPvf (ORCPT ); Tue, 19 Sep 2023 11:51:35 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC3559C for ; Tue, 19 Sep 2023 08:51:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695138689; x=1726674689; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ZEsqVicoBTqU5ZL8zjCDbAACxgSal00DMWcaQoZYMmI=; b=YeAqQmBa1zezLJ+hmHdiKxS969KaGjOiLgqJrzAaPrvymVVHo4pTvXzp UsMhNA3KzI/VM2f8V6IIr0I/skUYj0ylNXZ4xErSQ1VGmOJP+1xQ9cdh7 Anc8WoZKN5HcbfIy8Gb6q4zaoh03Y1Q1cXEwJZPxdrd0kQsNYb+ryJNS3 3Po/Og7smecYtYw5dh8SsUQQTjCDOEzmkJgarbH7sH5O/LTiNbZon6qvg bUBWJ44wMOaA4jYKUKtUBzj1c3BTkxCMvaiiIduBoEA3ty22Q1vstQSXt ObdiW2guW7X2tPPwgjFrCIXhrzOzoegwnb87s8luN0ddIn76X9BtUrbX7 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="377291645" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="377291645" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 08:51:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="836481883" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="836481883" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by FMSMGA003.fm.intel.com with ESMTP; 19 Sep 2023 08:51:27 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qid0W-0007a4-2v; Tue, 19 Sep 2023 15:51:24 +0000 Date: Tue, 19 Sep 2023 23:50:28 +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: <202309192318.EFnp91Rd-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=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Tue, 19 Sep 2023 08:51:46 -0700 (PDT) Hi Naresh, kernel test robot noticed the following build warnings: [auto build test WARNING 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/20230919/202309192318.EFnp91Rd-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/20230919/202309192318.EFnp91Rd-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/202309192318.EFnp91Rd-lkp@intel.com/ All warnings (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 +/num_supplies +124 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