Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp126762iof; Sun, 5 Jun 2022 23:09:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyZF+yYR8NfUWa8MgF/60GXJsDW6CWc7p1DNyxqllPevHR7tT/6u3oEIN7yDVEBbxdikaB X-Received: by 2002:a17:90b:1bc5:b0:1e3:3c67:37bf with SMTP id oa5-20020a17090b1bc500b001e33c6737bfmr24776659pjb.87.1654495795287; Sun, 05 Jun 2022 23:09:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654495795; cv=none; d=google.com; s=arc-20160816; b=xTnCCSRKOKqNPfNMbp1zE7Nx+dcubEdsW/kRW3QqXsOs+XRlmjD1qPUU2Lj5Ojprca RU5d58yDMAul7UtxHX3R0xblI2ENdO9VO5VQhO72FMTngYxquIbd3HaoWNCY+mxiHPx0 zM7kq9N1u0bJl/AMRB4eLHeqfY4HugTiQhuFPykl+eCArboHrxI5/l6+6uk1PYdPKeQK jSqWgpJlvERIeWIWtO+WbXjr29xanNrrrYWbOgJnUA1werjbeYZwOOogcckQ82kMXiPu q7mPmevb5lWqtLC+I8mukRoivn03gpYl5CXu86Rs3R9sXN0BW/cGpw/pb4k4b6lEW5qU Y0TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=j/5GP1K8+sRyu8PXblj6SzfJxSuJ5pIJOxko4L54FfA=; b=Nj7g4UyHdqaqgJxeKDrXDAe4ftFRQC3FvuMm5E0GPJJW+Xta1WOqKpVcUhiWXMLDqy 39gVxCahgfsgy8tnsIxXSV9nmK5lXO4s/ZH338e4+L7C4QxogIHGw/AsvfecsaWZZaUY 1o6zDl1fPQTIT6ybdih69DUGAV+qA2C4HMTavS9rNciOXEeBhJHpk79D2TpD5DySmGsk 1E8Mn65Crut1RGuX69aARsB/jvjwKHh8WT9dXUdvHDbKplPH4wkUdwAJCpz7m4uKQptJ iMYQQPXeUu/YZQanzL6HtYZ/VcoNESZxaG9WU85E+MBs+6NoQm0DiE0K+/Hv7xdJzTEr X7jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="cXBhZy9/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m2-20020a655642000000b003f5d8756675si21621713pgs.371.2022.06.05.23.09.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 23:09:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="cXBhZy9/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7275E132743; Sun, 5 Jun 2022 22:01:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233156AbiFDHna (ORCPT + 99 others); Sat, 4 Jun 2022 03:43:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230074AbiFDHn3 (ORCPT ); Sat, 4 Jun 2022 03:43:29 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 321CB26AD8 for ; Sat, 4 Jun 2022 00:43:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654328608; x=1685864608; h=date:from:to:cc:subject:message-id:mime-version; bh=CCgJuoWVNZbJwtiACFMwi6Fh+Qv4Q7B3hZ5u3qVENUM=; b=cXBhZy9/E4Lhz6gSiGIyBHPyZGSDuFqCH5Auk2cxOcuMkvpcANqwNEAf 9byixXRUen2Xk1wswhlsST2OA++z/XEz/pPZC6ZOdAdmo4P8Zkhliv5Sm LR65MaKFxOEAGTuxPFuODv1xXOVkSDv0eOzOiXNIZ1wjnO0j2Graqyy6F xLk5fWYzReGgj+dhDWRTDJxe48OeABnMT76mNs69sERyFLluzDXGAA7iq BoH/b7H+KWvhU2pUUdTVIax5wYlogUUZ1Z83mPgaU6+AXsqHgzL6Bi7xe +bp+J3a1FWpngO16RCWEY8KNkPFKisM6PJnYMFfq5Lug5HWGP4IS5o88V Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10367"; a="256884890" X-IronPort-AV: E=Sophos;i="5.91,277,1647327600"; d="scan'208";a="256884890" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2022 00:43:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,277,1647327600"; d="scan'208";a="607792551" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 04 Jun 2022 00:43:22 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nxORN-000ARV-S5; Sat, 04 Jun 2022 07:43:21 +0000 Date: Sat, 4 Jun 2022 15:43:14 +0800 From: kernel test robot To: Robert Hancock Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Andrew Lunn Subject: [linux-stable-rc:linux-4.19.y 1539/2640] drivers/net/ethernet/xilinx/xilinx_axienet_main.c:283:9: error: 'ret' undeclared; did you mean 'net'? Message-ID: <202206041504.QbtKoS72-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Robert, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y head: 8d1c6d3581bb07a2ea5e34376791884a79ff4114 commit: 8b8ad8a7ac24905937c3975b54c4594b93b66ebb [1539/2640] net: axienet: Wait for PhyRstCmplt after core reset config: microblaze-randconfig-r019-20220603 (https://download.01.org/0day-ci/archive/20220604/202206041504.QbtKoS72-lkp@intel.com/config) compiler: microblaze-linux-gcc (GCC) 11.3.0 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 # https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=8b8ad8a7ac24905937c3975b54c4594b93b66ebb git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git git fetch --no-tags linux-stable-rc linux-4.19.y git checkout 8b8ad8a7ac24905937c3975b54c4594b93b66ebb # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=microblaze SHELL=/bin/bash drivers/net/ethernet/xilinx/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/net/ethernet/xilinx/xilinx_axienet_main.c: In function 'axienet_dma_bd_init': >> drivers/net/ethernet/xilinx/xilinx_axienet_main.c:283:9: error: 'ret' undeclared (first use in this function); did you mean 'net'? 283 | ret = read_poll_timeout(axienet_ior, value, | ^~~ | net drivers/net/ethernet/xilinx/xilinx_axienet_main.c:283:9: note: each undeclared identifier is reported only once for each function it appears in drivers/net/ethernet/xilinx/xilinx_axienet_main.c:283:15: error: implicit declaration of function 'read_poll_timeout' [-Werror=implicit-function-declaration] 283 | ret = read_poll_timeout(axienet_ior, value, | ^~~~~~~~~~~~~~~~~ >> drivers/net/ethernet/xilinx/xilinx_axienet_main.c:283:46: error: 'value' undeclared (first use in this function) 283 | ret = read_poll_timeout(axienet_ior, value, | ^~~~~ cc1: some warnings being treated as errors vim +283 drivers/net/ethernet/xilinx/xilinx_axienet_main.c 178 179 /** 180 * axienet_dma_bd_init - Setup buffer descriptor rings for Axi DMA 181 * @ndev: Pointer to the net_device structure 182 * 183 * Return: 0, on success -ENOMEM, on failure 184 * 185 * This function is called to initialize the Rx and Tx DMA descriptor 186 * rings. This initializes the descriptors with required default values 187 * and is called when Axi Ethernet driver reset is called. 188 */ 189 static int axienet_dma_bd_init(struct net_device *ndev) 190 { 191 u32 cr; 192 int i; 193 struct sk_buff *skb; 194 struct axienet_local *lp = netdev_priv(ndev); 195 196 /* Reset the indexes which are used for accessing the BDs */ 197 lp->tx_bd_ci = 0; 198 lp->tx_bd_tail = 0; 199 lp->rx_bd_ci = 0; 200 201 /* Allocate the Tx and Rx buffer descriptors. */ 202 lp->tx_bd_v = dma_zalloc_coherent(ndev->dev.parent, 203 sizeof(*lp->tx_bd_v) * TX_BD_NUM, 204 &lp->tx_bd_p, GFP_KERNEL); 205 if (!lp->tx_bd_v) 206 goto out; 207 208 lp->rx_bd_v = dma_zalloc_coherent(ndev->dev.parent, 209 sizeof(*lp->rx_bd_v) * RX_BD_NUM, 210 &lp->rx_bd_p, GFP_KERNEL); 211 if (!lp->rx_bd_v) 212 goto out; 213 214 for (i = 0; i < TX_BD_NUM; i++) { 215 lp->tx_bd_v[i].next = lp->tx_bd_p + 216 sizeof(*lp->tx_bd_v) * 217 ((i + 1) % TX_BD_NUM); 218 } 219 220 for (i = 0; i < RX_BD_NUM; i++) { 221 lp->rx_bd_v[i].next = lp->rx_bd_p + 222 sizeof(*lp->rx_bd_v) * 223 ((i + 1) % RX_BD_NUM); 224 225 skb = netdev_alloc_skb_ip_align(ndev, lp->max_frm_size); 226 if (!skb) 227 goto out; 228 229 lp->rx_bd_v[i].sw_id_offset = (u32) skb; 230 lp->rx_bd_v[i].phys = dma_map_single(ndev->dev.parent, 231 skb->data, 232 lp->max_frm_size, 233 DMA_FROM_DEVICE); 234 lp->rx_bd_v[i].cntrl = lp->max_frm_size; 235 } 236 237 /* Start updating the Rx channel control register */ 238 cr = axienet_dma_in32(lp, XAXIDMA_RX_CR_OFFSET); 239 /* Update the interrupt coalesce count */ 240 cr = ((cr & ~XAXIDMA_COALESCE_MASK) | 241 ((lp->coalesce_count_rx) << XAXIDMA_COALESCE_SHIFT)); 242 /* Update the delay timer count */ 243 cr = ((cr & ~XAXIDMA_DELAY_MASK) | 244 (XAXIDMA_DFT_RX_WAITBOUND << XAXIDMA_DELAY_SHIFT)); 245 /* Enable coalesce, delay timer and error interrupts */ 246 cr |= XAXIDMA_IRQ_ALL_MASK; 247 /* Write to the Rx channel control register */ 248 axienet_dma_out32(lp, XAXIDMA_RX_CR_OFFSET, cr); 249 250 /* Start updating the Tx channel control register */ 251 cr = axienet_dma_in32(lp, XAXIDMA_TX_CR_OFFSET); 252 /* Update the interrupt coalesce count */ 253 cr = (((cr & ~XAXIDMA_COALESCE_MASK)) | 254 ((lp->coalesce_count_tx) << XAXIDMA_COALESCE_SHIFT)); 255 /* Update the delay timer count */ 256 cr = (((cr & ~XAXIDMA_DELAY_MASK)) | 257 (XAXIDMA_DFT_TX_WAITBOUND << XAXIDMA_DELAY_SHIFT)); 258 /* Enable coalesce, delay timer and error interrupts */ 259 cr |= XAXIDMA_IRQ_ALL_MASK; 260 /* Write to the Tx channel control register */ 261 axienet_dma_out32(lp, XAXIDMA_TX_CR_OFFSET, cr); 262 263 /* Populate the tail pointer and bring the Rx Axi DMA engine out of 264 * halted state. This will make the Rx side ready for reception. 265 */ 266 axienet_dma_out32(lp, XAXIDMA_RX_CDESC_OFFSET, lp->rx_bd_p); 267 cr = axienet_dma_in32(lp, XAXIDMA_RX_CR_OFFSET); 268 axienet_dma_out32(lp, XAXIDMA_RX_CR_OFFSET, 269 cr | XAXIDMA_CR_RUNSTOP_MASK); 270 axienet_dma_out32(lp, XAXIDMA_RX_TDESC_OFFSET, lp->rx_bd_p + 271 (sizeof(*lp->rx_bd_v) * (RX_BD_NUM - 1))); 272 273 /* Write to the RS (Run-stop) bit in the Tx channel control register. 274 * Tx channel is now ready to run. But only after we write to the 275 * tail pointer register that the Tx channel will start transmitting. 276 */ 277 axienet_dma_out32(lp, XAXIDMA_TX_CDESC_OFFSET, lp->tx_bd_p); 278 cr = axienet_dma_in32(lp, XAXIDMA_TX_CR_OFFSET); 279 axienet_dma_out32(lp, XAXIDMA_TX_CR_OFFSET, 280 cr | XAXIDMA_CR_RUNSTOP_MASK); 281 282 /* Wait for PhyRstCmplt bit to be set, indicating the PHY reset has finished */ > 283 ret = read_poll_timeout(axienet_ior, value, 284 value & XAE_INT_PHYRSTCMPLT_MASK, 285 DELAY_OF_ONE_MILLISEC, 50000, false, lp, 286 XAE_IS_OFFSET); 287 if (ret) { 288 dev_err(lp->dev, "%s: timeout waiting for PhyRstCmplt\n", __func__); 289 return ret; 290 } 291 292 return 0; 293 out: 294 axienet_dma_bd_release(ndev); 295 return -ENOMEM; 296 } 297 -- 0-DAY CI Kernel Test Service https://01.org/lkp