Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7031538rwr; Wed, 10 May 2023 02:55:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6IJYhOTNBnHlWOg9ZshCuumU0FPXQI2G4uIHWR6CibMvhck2T5gZr2OKtE9Od+tYAouRoZ X-Received: by 2002:a05:6a00:2ea9:b0:63b:8963:d952 with SMTP id fd41-20020a056a002ea900b0063b8963d952mr19925757pfb.17.1683712527607; Wed, 10 May 2023 02:55:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683712527; cv=none; d=google.com; s=arc-20160816; b=mLJVlbJZuly8CJ9RWeRxzuNW5Q4bzLyY+tR86yTECWvSseKui/8d0wTsIfVN5HJdnm P8Y5y8MUt6/guBxpPuST28WBDwI/q65yRg8mA7G8s7wPjMJWir7DHZx/MSdcWoHC01vJ SJQyG5uLqnQ09yaLc+j0NOJGdTCVTQZ6oQUB/jTc/kL/u4KBH7gTOS6ahlVHGKqcJrnn WLo0ftvKxpUySLn4Rr9HuY0anaUVOW0xcGnLYD44+RtY+nwVWXz1Jm5ny/rGcT6YiwM/ amITw9B8e5U2Y6UCXPw5OKB9hdb8/3+BaBu41T8HOE/K58/CxmNZo7pua4y0q8mfm6tA cdOA== 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=2tVN9aMvbI+lKs/VVLuCeY0wq1rDY3W378Ooy35lDUk=; b=bxcs1JiLl9cxJ6jvZM+tJwimrDb7txplbSWcvxNUQ0e3cKRSPcWsILZjEbg307Loga 6EPqq+qqse8R+Ck7VLZXBbrwHVraOHsvpNAzqfOmiW+DHLws4Fa9wTm92DjCSqc0Sl+P LCooGMiTiXPcUph+A9BvgooDU4AlVkQZBIPzEluDkZx5xvPOHMa2nq7/yNUmmVvGUVq0 IsnaR6ng/TW/AT00Fbdyo8GA3jdhf1rmZOoA9WgJPLe6CVnlTMYpxwtUFytsuVHiLySI waqpiHV6dhBywV3CKAf9Sco8hRwkioxTaklrRevMUB0ldr6ers9+gK8PzWmw9/fNoSP1 QTtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JDDdTlEC; 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 h69-20020a638348000000b0052c6e4e4737si3725767pge.282.2023.05.10.02.55.13; Wed, 10 May 2023 02:55:27 -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=JDDdTlEC; 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 S235752AbjEJJyI (ORCPT + 99 others); Wed, 10 May 2023 05:54:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236523AbjEJJxb (ORCPT ); Wed, 10 May 2023 05:53:31 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA4E759C3; Wed, 10 May 2023 02:53:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683712408; x=1715248408; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=vvkolml/HN19Sg1F836qmjywFOfBzb5v/yoO63FWOBE=; b=JDDdTlECIXzwa7WJF8Bg2sCKhdmDfszGbx4NrV29PRgjuU+CNfF7Ud84 hKt5laqyNRaT9leCsXzbbjZZh8D8vCkcIkr2eVIg+zQR5QxNuo4l2rB3N k1I2lKwXYUA9r5fD7EYuQfhRfmRFudMSn7o1I6vLB7usNZ/J246838TvA w5XojvlUL/8rRoTE6Fk9fNYNEKyl/JlQljUf76xdgzGb31KYR/QzYcURI oAP2PYJRhHFQdgQafwkZ9gayi7jLq8kwd9WF6TmY14mh69t7fDvpjd7/t hST72Sr6g2K4paeK2mI3441Tro6FojlfOw32mOWlLRMmWcBOEW/g6stj5 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="413469508" X-IronPort-AV: E=Sophos;i="5.99,264,1677571200"; d="scan'208";a="413469508" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2023 02:53:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="729884460" X-IronPort-AV: E=Sophos;i="5.99,264,1677571200"; d="scan'208";a="729884460" Received: from lkp-server01.sh.intel.com (HELO dea6d5a4f140) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 10 May 2023 02:53:25 -0700 Received: from kbuild by dea6d5a4f140 with local (Exim 4.96) (envelope-from ) id 1pwgVg-00037S-0c; Wed, 10 May 2023 09:53:24 +0000 Date: Wed, 10 May 2023 17:52:45 +0800 From: kernel test robot To: Yan Wang , andrew@lunn.ch, hkallweit1@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux@armlinux.org.uk Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Yan Wang Subject: Re: [PATCH v3] net: mdiobus: Add a function to deassert reset Message-ID: <202305101702.4xW6vT72-lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,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 Yan, kernel test robot noticed the following build errors: [auto build test ERROR on net-next/main] [also build test ERROR on net/main linus/master v6.4-rc1 next-20230510] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Yan-Wang/net-mdiobus-Add-a-function-to-deassert-reset/20230510-161736 base: net-next/main patch link: https://lore.kernel.org/r/KL1PR01MB5448A33A549CDAD7D68945B9E6779%40KL1PR01MB5448.apcprd01.prod.exchangelabs.com patch subject: [PATCH v3] net: mdiobus: Add a function to deassert reset config: hexagon-randconfig-r045-20230509 (https://download.01.org/0day-ci/archive/20230510/202305101702.4xW6vT72-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b0fb98227c90adf2536c9ad644a74d5e92961111) 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://github.com/intel-lab-lkp/linux/commit/f7ded94d887d1020adb4813c2b1025142288e882 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Yan-Wang/net-mdiobus-Add-a-function-to-deassert-reset/20230510-161736 git checkout f7ded94d887d1020adb4813c2b1025142288e882 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/net/mdio/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202305101702.4xW6vT72-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/net/mdio/fwnode_mdio.c:10: In file included from include/linux/fwnode_mdio.h:9: In file included from include/linux/phy.h:16: In file included from include/linux/ethtool.h:18: In file included from include/linux/if_ether.h:19: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from drivers/net/mdio/fwnode_mdio.c:10: In file included from include/linux/fwnode_mdio.h:9: In file included from include/linux/phy.h:16: In file included from include/linux/ethtool.h:18: In file included from include/linux/if_ether.h:19: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from drivers/net/mdio/fwnode_mdio.c:10: In file included from include/linux/fwnode_mdio.h:9: In file included from include/linux/phy.h:16: In file included from include/linux/ethtool.h:18: In file included from include/linux/if_ether.h:19: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ >> drivers/net/mdio/fwnode_mdio.c:64:10: error: call to undeclared function 'fwnode_gpiod_get_index'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] reset = fwnode_gpiod_get_index(fwnode, "reset", 0, GPIOD_OUT_HIGH, NULL); ^ >> drivers/net/mdio/fwnode_mdio.c:64:53: error: use of undeclared identifier 'GPIOD_OUT_HIGH' reset = fwnode_gpiod_get_index(fwnode, "reset", 0, GPIOD_OUT_HIGH, NULL); ^ >> drivers/net/mdio/fwnode_mdio.c:69:2: error: call to undeclared function 'gpiod_set_value_cansleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] gpiod_set_value_cansleep(reset, 0); ^ >> drivers/net/mdio/fwnode_mdio.c:71:2: error: call to undeclared function 'gpiod_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] gpiod_put(reset); ^ 6 warnings and 4 errors generated. vim +/fwnode_gpiod_get_index +64 drivers/net/mdio/fwnode_mdio.c 59 60 static void fwnode_mdiobus_pre_enable_phy(struct fwnode_handle *fwnode) 61 { 62 struct gpio_desc *reset; 63 > 64 reset = fwnode_gpiod_get_index(fwnode, "reset", 0, GPIOD_OUT_HIGH, NULL); 65 if (IS_ERR(reset) && PTR_ERR(reset) != -EPROBE_DEFER) 66 return; 67 68 usleep_range(100, 200); > 69 gpiod_set_value_cansleep(reset, 0); 70 /*Release the reset pin,it needs to be registered with the PHY.*/ > 71 gpiod_put(reset); 72 } 73 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests