Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7149042rwr; Wed, 10 May 2023 04:44:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ68LmlfAZZDgAt2bLbLQU4qBVeoFtUS7FQU3D+tttBspPc+AUw6Mol9hwCQUzoosQ5ZuhbG X-Received: by 2002:a17:903:210d:b0:1a9:86ca:38ce with SMTP id o13-20020a170903210d00b001a986ca38cemr13719053ple.4.1683719077234; Wed, 10 May 2023 04:44:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683719077; cv=none; d=google.com; s=arc-20160816; b=049XbbV/v3HOs1HUdPduPH1wmYDY1ux75DHK6RSBIIKv2dBSQS2FXzuxSgm5e8c9NP ovAzfuSXxpCAsYz11zY9uO1k2+r9dAjRoEANBKoOetL+JBTq9lBKNzomlfTp17Rm37RA BbT49Nqq87JLzH46fw+PDRMXmoZ58ZJuPrwUy+lriaC29Ty83ZMXZlVk7bkoOhQS/ixt POH74n6C2CWDQQnQ18roCy6v1fvKqUFaFG3g+YyiIQTbh90DqvdQRxhNeGrqH/LzggMB 7FDdlq2OoXgbyXNsYuRMPyy6HUXxrdViD8bHa9D6coy55zpsk+vkd6OFFaJ1c7uKth0H jJgg== 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=QCKtI6KEOPAWXIPIOZn66huzjKgQQJ4mgXYcdwCAEKk=; b=TGssXPXVfzyWI5sePaT5HnK67w9WItXa4lUwINhVLHn8i494FekOWaPGPWsS3ZXaTn i0+PoU5mlXlL/vWatu+ZBpAkMeHKcySyjgKjpVCYuZN8Fyv8/SvlkM7+9LWp2eTyIf1x /wqAX8DDMc4y3AYRAHH6FqY8HDQ+UH0y3YuY1krsRvCdHxh2aC81fD0WP5nCYOz7l0aH cZyskEyeouN6zL/CGlpZVr/0fFCTfs461J/eejOLRGMc74kkXEPmlNfJmMoboxdWeFp2 DxNS64SHRiRqXi0rIaM5nHa4YvM9i3olX8ZFeHiHHdoeGtqdGLNxobYDSgdkzsFRwSFo IQFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dXBGBh5R; 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 q7-20020a170902dac700b001a507d6feb8si4306628plx.628.2023.05.10.04.44.22; Wed, 10 May 2023 04:44:37 -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=dXBGBh5R; 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 S236768AbjEJLg4 (ORCPT + 99 others); Wed, 10 May 2023 07:36:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235317AbjEJLgy (ORCPT ); Wed, 10 May 2023 07:36:54 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 834A67DBD; Wed, 10 May 2023 04:36:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683718594; x=1715254594; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=OIHMQRBUSAAIKqFfKJ0b5Sjxv6B77OgJnTeBhK6P5aQ=; b=dXBGBh5R/o3DNHsgtLR5PAgJEaS6vokq+bbHJWyges3p7jCX5REzbD++ 5iC3umMYUQQQX1JpcGRAV8OXdApiNEjSfKVUskqMOq56ubax45wvRBTtO bafcS7BNPwbJYqwWmv9DeoBlXM19KAW77dRnoS80B2YxZs922UEVYv9Mq drqtoSMwXYpeG1ZGXAo7C0eMSIWZA3+bQ51sA/LZeZX6km2U1rY5469Mo Z89tMXjyg56LnV8AlqVUphxc5y7V/oXnH4e7Ca5av7OrM4CCIS2NC1dfJ prZ49O77EoN4kv6soGDQ9QGdsnxUG8xj4tiW7S+uzbuDHwYIBqCEbl2EP w==; X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="347651912" X-IronPort-AV: E=Sophos;i="5.99,264,1677571200"; d="scan'208";a="347651912" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2023 04:36:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="764253680" X-IronPort-AV: E=Sophos;i="5.99,264,1677571200"; d="scan'208";a="764253680" Received: from lkp-server01.sh.intel.com (HELO dea6d5a4f140) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 10 May 2023 04:36:29 -0700 Received: from kbuild by dea6d5a4f140 with local (Exim 4.96) (envelope-from ) id 1pwi7Q-0003EC-2a; Wed, 10 May 2023 11:36:28 +0000 Date: Wed, 10 May 2023 19:36:19 +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: <202305101922.dXHLqoSw-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: x86_64-randconfig-a003 (https://download.01.org/0day-ci/archive/20230510/202305101922.dXHLqoSw-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) 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=x86_64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 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/202305101922.dXHLqoSw-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/net/mdio/fwnode_mdio.c:64:10: error: implicit declaration of function 'fwnode_gpiod_get_index' is invalid in C99 [-Werror,-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: implicit declaration of function 'gpiod_set_value_cansleep' is invalid in C99 [-Werror,-Wimplicit-function-declaration] gpiod_set_value_cansleep(reset, 0); ^ >> drivers/net/mdio/fwnode_mdio.c:71:2: error: implicit declaration of function 'gpiod_put' is invalid in C99 [-Werror,-Wimplicit-function-declaration] gpiod_put(reset); ^ 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