Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1751797rdg; Sat, 12 Aug 2023 15:09:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFMlvIRaoPD/JvQOJefZQFlMOKHMK66b4fC1SwS6j+CQF+zUx/PQTT6LGeFqgNilPBwnUox X-Received: by 2002:a05:6a00:22c8:b0:687:5c3f:d834 with SMTP id f8-20020a056a0022c800b006875c3fd834mr7557518pfj.11.1691878142038; Sat, 12 Aug 2023 15:09:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691878142; cv=none; d=google.com; s=arc-20160816; b=HrrnTyBORscIOoanpHgh7omgVXfSxIAeW+/sRMkk64d3ONee48u1eTOGIcc7mL7H7A coye5Jqk4/lyHzOCRfXZCzNCFJfFv+Oiew4c6loEbWmQHI6lQWNVnhNoKVh3WAu1l0F2 N2XAMoVt/6Vwbu2XLvvXmlfxZfluYAz7hat0VFC/+TcEXdKgnHGD/WcNENX4YrTK3QUx hdl0L+zQjBlmAF9CkWpO/CQyK8zcYbyw7u5AsVmRq/o/CLFSO+UmyB8/aIzekfqpVMJY znoG4q2pam9ulX/9zxNV/9p1zl24NNKvd1GhmUQ8Dgop+lPTXkxQn6pz9J0M5A2Nl20j 7pHw== 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=kR/c8pr+16p2+o/XtnaHnLq6f9LwEWjnTvJdHPFOnUw=; fh=ogK/cZKrJZ24nHAES+YRmN7FoCKtnppGzrek0qlJvN8=; b=yqS4MBFyRojc54/MeAGxcqiyA04txQeLFXIZp54spu3M5dOSBUwZ1myozpMDYtiXcp Rz5M6TtWL72zQYGGu0xAXLYIHHTNhg6KRuq0cvFvM2vVdbs++xI/VWjWee42FLX3uvII lxiOkGkN9nAuyGPN6ovmbvbkmwCI0Gxos0my1u8nSbxiMVVQX4WWQlOMn0+SzJQRfSsv 0iiLyjioGC9pxHOSawpxEFQa4SPcqDieGl56BlRWXiyLg2s1tUttTjOhAIVuxUD1/cNu irNgiYaBvxQEc3wUjer2qKLFTgA4QDWTWV3nnHV0tYPqQKATcEMMUOdWghvdmgZQ/Xqy CHnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=QJ0RXufW; 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 cr12-20020a056a000f0c00b0068730bad8b5si5558863pfb.209.2023.08.12.15.08.50; Sat, 12 Aug 2023 15:09:02 -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=QJ0RXufW; 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 S231378AbjHLVab (ORCPT + 99 others); Sat, 12 Aug 2023 17:30:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230393AbjHLVa1 (ORCPT ); Sat, 12 Aug 2023 17:30:27 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24C321706; Sat, 12 Aug 2023 14:30: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=1691875830; x=1723411830; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pRiq/xmjLemE5+eZt4bLhSjlC//rAZoKgUD4BEAjCho=; b=QJ0RXufWklkBDrt/kuZs2fQXRfJzs1TupUhHAO1nokbkzVOH16kIOKT5 0IWKpfPodcTv1cYJ4PBOjxwakVqcxaMh2MPhrApjqvRXFtstjX8wnFrnR JCYV3c1yUbMneQrWepQIODGD+5XWN9XMjDLxaM8Yb2i9PzyS8uGSrE8AR 2ee4VikoUuIXv0FWUAY+NXQqYPou2d2VM+Pvv/OerNEJwwKOCCeB+qmmI gIBsEaR/MSrXF9aXoU8Z/orNfdFZUX15vsuQLrvbXrkSWdA7SZgc3IH3Y S0RaGR5U4WirptmIU62I45wazKMrjGO/m93CPhhxF/dB7tpfmXbz3AEat Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10800"; a="374615452" X-IronPort-AV: E=Sophos;i="6.01,168,1684825200"; d="scan'208";a="374615452" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2023 14:30:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10800"; a="732996864" X-IronPort-AV: E=Sophos;i="6.01,168,1684825200"; d="scan'208";a="732996864" Received: from lkp-server01.sh.intel.com (HELO d1ccc7e87e8f) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 12 Aug 2023 14:30:22 -0700 Received: from kbuild by d1ccc7e87e8f with local (Exim 4.96) (envelope-from ) id 1qUwBi-0008nG-3C; Sat, 12 Aug 2023 21:30:22 +0000 Date: Sun, 13 Aug 2023 05:30:16 +0800 From: kernel test robot To: Keguang Zhang , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Thomas Bogendoerfer , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Serge Semin , Keguang Zhang Subject: Re: [PATCH 4/5] net: stmmac: Add glue layer for Loongson-1 SoC Message-ID: <202308130554.Rbxxtltt-lkp@intel.com> References: <20230812151135.1028780-5-keguang.zhang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230812151135.1028780-5-keguang.zhang@gmail.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,URIBL_BLOCKED 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 Keguang, kernel test robot noticed the following build warnings: [auto build test WARNING on 21ef7b1e17d039053edaeaf41142423810572741] url: https://github.com/intel-lab-lkp/linux/commits/Keguang-Zhang/MIPS-loongson32-Remove-Loongson1-MAC-arch-code/20230812-231420 base: 21ef7b1e17d039053edaeaf41142423810572741 patch link: https://lore.kernel.org/r/20230812151135.1028780-5-keguang.zhang%40gmail.com patch subject: [PATCH 4/5] net: stmmac: Add glue layer for Loongson-1 SoC config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20230813/202308130554.Rbxxtltt-lkp@intel.com/config) compiler: hppa-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230813/202308130554.Rbxxtltt-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/202308130554.Rbxxtltt-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c: In function 'ls1x_dwmac_probe': drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c:188:21: error: implicit declaration of function 'of_parse_phandle' [-Werror=implicit-function-declaration] 188 | syscon_np = of_parse_phandle(pdev->dev.of_node, "syscon", 0); | ^~~~~~~~~~~~~~~~ >> drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c:188:19: warning: assignment to 'struct device_node *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 188 | syscon_np = of_parse_phandle(pdev->dev.of_node, "syscon", 0); | ^ drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c:192:17: error: implicit declaration of function 'of_match_node'; did you mean 'for_each_node'? [-Werror=implicit-function-declaration] 192 | match = of_match_node(ls1x_dwmac_syscon_match, syscon_np); | ^~~~~~~~~~~~~ | for_each_node >> drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c:192:15: warning: assignment to 'const struct of_device_id *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 192 | match = of_match_node(ls1x_dwmac_syscon_match, syscon_np); | ^ drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c:194:17: error: implicit declaration of function 'of_node_put'; did you mean 'bpf_module_put'? [-Werror=implicit-function-declaration] 194 | of_node_put(syscon_np); | ^~~~~~~~~~~ | bpf_module_put cc1: some warnings being treated as errors vim +188 drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c 170 171 static int ls1x_dwmac_probe(struct platform_device *pdev) 172 { 173 struct plat_stmmacenet_data *plat_dat; 174 struct stmmac_resources stmmac_res; 175 struct device_node *syscon_np; 176 const struct of_device_id *match; 177 struct regmap *regmap; 178 struct ls1x_dwmac *dwmac; 179 const struct ls1x_dwmac_syscon *syscon; 180 size_t size; 181 int ret; 182 183 ret = stmmac_get_platform_resources(pdev, &stmmac_res); 184 if (ret) 185 return ret; 186 187 /* Probe syscon */ > 188 syscon_np = of_parse_phandle(pdev->dev.of_node, "syscon", 0); 189 if (!syscon_np) 190 return -ENODEV; 191 > 192 match = of_match_node(ls1x_dwmac_syscon_match, syscon_np); 193 if (!match) { 194 of_node_put(syscon_np); 195 return -EINVAL; 196 } 197 syscon = (const struct ls1x_dwmac_syscon *)match->data; 198 199 regmap = syscon_node_to_regmap(syscon_np); 200 of_node_put(syscon_np); 201 if (IS_ERR(regmap)) { 202 ret = PTR_ERR(regmap); 203 dev_err(&pdev->dev, "Unable to map syscon: %d\n", ret); 204 return ret; 205 } 206 207 size = syscon->nr_reg_fields * sizeof(struct regmap_field *); 208 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac) + size, GFP_KERNEL); 209 if (!dwmac) 210 return -ENOMEM; 211 212 plat_dat = stmmac_probe_config_dt(pdev, stmmac_res.mac); 213 if (IS_ERR(plat_dat)) { 214 dev_err(&pdev->dev, "dt configuration failed\n"); 215 return PTR_ERR(plat_dat); 216 } 217 218 plat_dat->bsp_priv = dwmac; 219 plat_dat->init = ls1x_dwmac_init; 220 dwmac->dev = &pdev->dev; 221 dwmac->plat_dat = plat_dat; 222 dwmac->syscon = syscon; 223 dwmac->regmap = regmap; 224 225 ret = stmmac_pltfr_probe(pdev, plat_dat, &stmmac_res); 226 if (ret) 227 goto err_remove_config_dt; 228 229 return 0; 230 231 err_remove_config_dt: 232 if (pdev->dev.of_node) 233 stmmac_remove_config_dt(pdev, plat_dat); 234 235 return ret; 236 } 237 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki