Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp135357rdh; Sat, 23 Sep 2023 04:52:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGm/8br/iKYjTvqazf7+4/BO6JhAPsLq/XgZBbZoXIwoYQ0p9yUx+T9V48th5wRy7US+9xs X-Received: by 2002:a17:902:d2d1:b0:1c0:d17a:bfe9 with SMTP id n17-20020a170902d2d100b001c0d17abfe9mr2044871plc.46.1695469945997; Sat, 23 Sep 2023 04:52:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695469945; cv=none; d=google.com; s=arc-20160816; b=uDw5P5BeKUBz1ezEAmZr87Dlo8AWev9WPwNVyg6AnSZiFYCGe+QjOc0imu73rR2jtx jFOVQ3BrkaLhFVF3DzTBPW1xrYmHeEvKjta8TD4DMGcI1Mz3jByEkD4zvHXqSAwX4EI2 k/m/+YNfYLsH2T8wGEVG2A0OzTmhUSRvZUF5ePfXZhgXL/5bxnvjDZJuS42OrFqMEZwP JfaJ/yX6ddvpCGphIEFjjyiyEFGYMZHE4/Vg3fXLG/YT2Db+HJ1u6Rcq31MRwVYqIsxV Fc8Snc3lgoeDOjDoJ4eJaVttbsA3nHGpL7YDBBeUoxpPYANuSi21pvXpk30fqbfd6GGt lqmg== 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=KjyC5sB1CVO6qek//ydFE0I6Vv36DcapKeFSvBO43GY=; fh=HzUZCHTPK+sT2ka2I0j+waDTzZJP6xfp/jAt4/LxEIw=; b=vlcdAsfKq/TO2MJJdfMjVw/dNXHSZw5bhcOFtKTKlQz7QJb0O+yYbAAOqCDliV9QZr +LkQ4JrPjVr9DCf5g2/hM7z0SbPq+4gEyfIpFHhh7UrAt7waMRWhKp0b993TjGKK/Yeh k/KqBMZFROEXzuNLIdoeD6N4bJUIgmmVtVFUaLPMpc5diTrEiCHz3mvAmIGMoCnERtfH lwBWmzDIZeWvj8vPfXUbxx6oDAg/KNkaGD+2BGPdWY0TpPXACBpIeEQL5K82neLC8fZa JYFkxlPWgZGBOpkpM1viYuOg73u997vmyzKsZkVQ+8EItFYAnObGn8Mge/6ZaJT7dasH Mvfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E+W1UuRP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id kv16-20020a17090328d000b001bbdd44bbd4si5849259plb.74.2023.09.23.04.52.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 04:52:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E+W1UuRP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 2F6388108BF9; Sat, 23 Sep 2023 03:45:33 -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 S229948AbjIWKp1 (ORCPT + 99 others); Sat, 23 Sep 2023 06:45:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbjIWKp0 (ORCPT ); Sat, 23 Sep 2023 06:45:26 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 911D9194 for ; Sat, 23 Sep 2023 03:45:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695465920; x=1727001920; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Ne1L2SX659vWY1O8tzgihrrpmyg4HBNO9E1cRuo201s=; b=E+W1UuRPQ3Qo6FzGWGlvr+EWSP4bc3R3ONUfB4aYNPfNQonIpoTr6o9u 4ISktdPviYg2SZCYTDKZzHWjIV+Uid1ht8pwKDb4ldIDZIAzOEWLiYLvI UkCDhtU4AHl/5Eqmyqsp94ydVPXIXFSN5p+M8X/QahRxubAe41nuskTcg T6Y+6JJbSdUOsgi8551nDUiU/KYdxZxEmLhn0xNFuovwk5HrJdNZlZQGA xw/REcNXqOAIwiV5Qi5EFDEbo9PC1cBVX9USwKcO+RwnIMAdPVeeWXyI9 /7bfEJGgbHTaKSIxY70RV8oHhtAa1rU47Qlxi5jiT8g2pQLZOf7lfJwlT w==; X-IronPort-AV: E=McAfee;i="6600,9927,10841"; a="383766333" X-IronPort-AV: E=Sophos;i="6.03,171,1694761200"; d="scan'208";a="383766333" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2023 03:45:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10841"; a="994831199" X-IronPort-AV: E=Sophos;i="6.03,171,1694761200"; d="scan'208";a="994831199" Received: from lkp-server02.sh.intel.com (HELO 493f6c7fed5d) ([10.239.97.151]) by fmsmga006.fm.intel.com with ESMTP; 23 Sep 2023 03:45:17 -0700 Received: from kbuild by 493f6c7fed5d with local (Exim 4.96) (envelope-from ) id 1qk08R-00029t-30; Sat, 23 Sep 2023 10:45:15 +0000 Date: Sat, 23 Sep 2023 18:44:50 +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: [RESEND PATCH] regulator: userspace-consumer: Retrieve supplies from DT Message-ID: <202309231829.VrGZUH4E-lkp@intel.com> References: <20230922090330.1570350-1-naresh.solanki@9elements.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230922090330.1570350-1-naresh.solanki@9elements.com> X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no 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]); Sat, 23 Sep 2023 03:45:33 -0700 (PDT) X-Spam-Level: ** 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/20230922-170527 base: 451e85e29c9d6f20639d4cfcff4b9dea280178cc patch link: https://lore.kernel.org/r/20230922090330.1570350-1-naresh.solanki%409elements.com patch subject: [RESEND PATCH] regulator: userspace-consumer: Retrieve supplies from DT config: x86_64-randconfig-161-20230923 (https://download.01.org/0day-ci/archive/20230923/202309231829.VrGZUH4E-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/20230923/202309231829.VrGZUH4E-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/202309231829.VrGZUH4E-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