Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5100993rdb; Tue, 12 Dec 2023 21:01:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEoo7OEZ/08msKJwpPGPrCbaeUdzm3pbiFDVIkMZC5Aw+DoYQujyVSMulylAP8hN8+m+GLU X-Received: by 2002:a05:6808:2288:b0:3ba:e0c:398a with SMTP id bo8-20020a056808228800b003ba0e0c398amr4978696oib.58.1702443668545; Tue, 12 Dec 2023 21:01:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702443668; cv=none; d=google.com; s=arc-20160816; b=Ze8wc0CdcBmrMaPO+TuDiwoM2Dlnn7iJGEKu4Kof9h063a+jXf5qn4ogJZ7qpRYDdo gIHZWbqKR9B3dQBnTqlH7cGLOyjt7IkB6wTtUnz2BtI0OeJZMJhqICthUtgVzV1o/o25 ZW+bPj4DCqbjwLeRsng3X1pQ3rFFGLQXxvaGwhiHEJbobbcpfKpwN2IBH+zKK2aii/L7 tjXoRGVZTS0YrFbrO4/0nY+t6jeLtsA44JqpnG8z6Ckomo9z1JTbIZlvB5HYPHC5eGra IqpImS21d0SSPbd6jFfW0dQPVU9T9qOfQY4wZLBfYvZ/gdmrdKqrhLXWDN5YvMdMTV2O Qz9w== 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=6FP75mVV87/Rpkve4mcAbSnC5rAYdciKcILxTlqg1dU=; fh=qOWt3PUddFeGrG9HiYZwXKCu3qdxthRYnF9S31GB9w8=; b=CfQuFNe3xsXVrpozet9b8Nd+mzzxCmwlKSCmSjBydMxlo5db6Fpl0LDaxVdfwkST4q NQtpAHzcOFNXlWbbi75T4qxdsQ+j8kHgfrrYZRmtrIA+XjNkzaEhpQAewkRycsdd3bbb mYH1uXD4L9a+DXSdMWoiYEaEw0XzIGVVRgeotUau733PKRUjakUryl+2RT0avqmUZQQT QJIWaPOPf9PTOeA87nDcmusAiI9itlJfRorDwVgNjomyhZ7AYoQ3+StxN0Vzc5WG75v/ c/y7NArdiN+UobDh5ZP/+Bqu9TQ4I8RiRFUP0kRsWSmeQ3CLD2IlbuEYAbOvjPFPQOjZ Oxmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hEXyEv+M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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. [23.128.96.35]) by mx.google.com with ESMTPS id kp12-20020a056a00464c00b006ce73355c1bsi9008894pfb.59.2023.12.12.21.01.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 21:01:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hEXyEv+M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 898E18076C9C; Tue, 12 Dec 2023 21:00:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378505AbjLMFAJ (ORCPT + 99 others); Wed, 13 Dec 2023 00:00:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjLMFAH (ORCPT ); Wed, 13 Dec 2023 00:00:07 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9094AB7; Tue, 12 Dec 2023 21:00:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702443614; x=1733979614; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=E2++cigaU5epJz8MvyaCLgexIN/en3jBO7RKWMnmda8=; b=hEXyEv+MaRQonEHyWV7MFR+NRwEiNjGZ/fgTwWHn6+P6o7OC+c29qq4t QRHdIIXDVQGFq/rOWDIh1Gohh21ZMkAlJKmx/63PHfq7M9vu16yNRJWl7 YIuF5teDr2pybOWWprndqqLJ8TAdFeitA/7iYfW9dgi+75GkE3kdfHWOr 8yBiENT4LWSn1FbaqL2iEaNHdLI//7416ZlC6Jj1cBONRp8vnDhJqD/Zi CPCeZW75VLqu6KQUWg5pBxSKE7iEIOyqcO4phj1VKnd0kA70Ee3YD+dMe 2FeSa2JNLOccugsJ/Dgv6zOG1UjjLKhP0/r2L2dw1vu0HNUhNhyqyp9Ar g==; X-IronPort-AV: E=McAfee;i="6600,9927,10922"; a="8289894" X-IronPort-AV: E=Sophos;i="6.04,272,1695711600"; d="scan'208";a="8289894" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2023 21:00:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10922"; a="1105181391" X-IronPort-AV: E=Sophos;i="6.04,272,1695711600"; d="scan'208";a="1105181391" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 12 Dec 2023 21:00:07 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rDHLp-000K5V-2Q; Wed, 13 Dec 2023 05:00:05 +0000 Date: Wed, 13 Dec 2023 12:59:59 +0800 From: kernel test robot To: Christian Marangi , Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , David Epping , "Russell King (Oracle)" , Harini Katakam , linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org Subject: Re: [net-next PATCH v5 3/3] net: phy: add support for PHY package MMD read/write Message-ID: <202312131208.HLapuT6A-lkp@intel.com> References: <20231212123743.29829-3-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231212123743.29829-3-ansuelsmth@gmail.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 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]); Tue, 12 Dec 2023 21:00:35 -0800 (PST) Hi Christian, kernel test robot noticed the following build warnings: [auto build test WARNING on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Christian-Marangi/net-phy-restructure-__phy_write-read_mmd-to-helper-and-phydev-user/20231212-203921 base: net-next/main patch link: https://lore.kernel.org/r/20231212123743.29829-3-ansuelsmth%40gmail.com patch subject: [net-next PATCH v5 3/3] net: phy: add support for PHY package MMD read/write config: arm-defconfig (https://download.01.org/0day-ci/archive/20231213/202312131208.HLapuT6A-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231213/202312131208.HLapuT6A-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/202312131208.HLapuT6A-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/net/phy/phy-core.c:777: warning: expecting prototype for __phy_package_write_mmd(). Prototype was for phy_package_write_mmd() instead vim +777 drivers/net/phy/phy-core.c 757 758 /** 759 * __phy_package_write_mmd - write MMD reg relative to PHY package base addr 760 * @phydev: The phy_device struct 761 * @addr_offset: The offset to be added to PHY package base_addr 762 * @devad: The MMD to write to 763 * @regnum: The register on the MMD to write 764 * @val: value to write to @regnum 765 * 766 * Convenience helper for writing a register of an MMD on a given PHY 767 * using the PHY package base address. The base address is added to 768 * the addr_offset value. 769 * 770 * Same calling rules as for phy_write(); 771 * 772 * NOTE: It's assumed that the entire PHY package is either C22 or C45. 773 */ 774 int phy_package_write_mmd(struct phy_device *phydev, 775 unsigned int addr_offset, int devad, 776 u32 regnum, u16 val) > 777 { 778 struct phy_package_shared *shared = phydev->shared; 779 int addr = shared->base_addr + addr_offset; 780 int ret; 781 782 if (addr >= PHY_MAX_ADDR) 783 return -EIO; 784 785 if (regnum > (u16)~0 || devad > 32) 786 return -EINVAL; 787 788 phy_lock_mdio_bus(phydev); 789 ret = mmd_phy_write(phydev->mdio.bus, addr, phydev->is_c45, devad, 790 regnum, val); 791 phy_unlock_mdio_bus(phydev); 792 793 return ret; 794 } 795 EXPORT_SYMBOL(phy_package_write_mmd); 796 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki