From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5AC6C48BF6 for ; Sun, 3 Mar 2024 05:10:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F11D46B0098; Sun, 3 Mar 2024 00:10:15 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EC1EE6B009C; Sun, 3 Mar 2024 00:10:15 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D8A276B009D; Sun, 3 Mar 2024 00:10:15 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id C9C6A6B0098 for ; Sun, 3 Mar 2024 00:10:15 -0500 (EST) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 6D7A61C07EA for ; Sun, 3 Mar 2024 05:10:15 +0000 (UTC) X-FDA: 81854551590.27.DE27CDD Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) by imf18.hostedemail.com (Postfix) with ESMTP id D18321C0005 for ; Sun, 3 Mar 2024 05:10:11 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=RXFIyDtx; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 192.198.163.10 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1709442612; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=qFUv8HpgTVY6CamnqJS1RKGCwEFUDa++JXP10j3bfc4=; b=iQd7dYdRn9apsYU3zJ+2W1XNwMfh93+rAgBAFNExY8Xtan9qHqUDqkStVVYEfKjG8evnB/ mPWln6Ph9SOaoQqo2rqCC7PxFJDv1rYOJI3Sx6dNt/UX8KdQ/PtFtdFJGZ7NTTQlIKipDD FZrlwswTnZCgD6pJuT5mtjnwbEXgmM8= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=RXFIyDtx; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 192.198.163.10 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1709442612; a=rsa-sha256; cv=none; b=I5ufEVQbSuT73VSEzhUHXNRajGMQRyDK8b+4y2fD4mazLGsYGSlfFqWv1GjNbJgB20S1H8 fr7fIBnVcnpJgj/pqfl3FuMseeGFw3xDAUSNJ9jmKYfrz7uRECU5klfRAriY57bJgpKkmS Mx6Tq6WP/Y3velx3440cZtbsQzof5kM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709442611; x=1740978611; h=date:from:to:cc:subject:message-id:mime-version; bh=9Cgb79INeYdX3eEGTdyotC31liBj3nWuwrsbAeFtHd8=; b=RXFIyDtx1iJw69YwKOZPjYmGZZaDeR2bb02gWXXwE1qFshPspNBmLhCh HCo8onXRSWZRpgDR7asipxYC8bJ0ZeLHqRddpC0QAuNgDYgSQ8sKrg/mX 1se38EBwht2/aYGv/WaqDLqoiJZUKydbRY1BvR6FwRTjd+HjQajavIaFE Bl79WueOzLl7V/I0XqawPUJzYKxm2+NrqT7lS0/rEhrzMX9CMMrV7JhK5 rhFxX+6a5vd+uzinfjSxGh8adqloBtcD7o3MhMOPHa5JwpMj1dyv+C/vh 9HiI3S1ssR+0h83s60w4JAGnPYgfXVwE5stduC1erotqGPaAGpflYJ1wa w==; X-IronPort-AV: E=McAfee;i="6600,9927,11001"; a="15360504" X-IronPort-AV: E=Sophos;i="6.06,200,1705392000"; d="scan'208";a="15360504" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2024 21:10:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,200,1705392000"; d="scan'208";a="13137031" Received: from lkp-server01.sh.intel.com (HELO b21307750695) ([10.239.97.150]) by fmviesa005.fm.intel.com with ESMTP; 02 Mar 2024 21:10:08 -0800 Received: from kbuild by b21307750695 with local (Exim 4.96) (envelope-from ) id 1rge6v-0000Ws-2u; Sun, 03 Mar 2024 05:10:05 +0000 Date: Sun, 3 Mar 2024 13:09:28 +0800 From: kernel test robot To: Robert Marko Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Christian Marangi , Andrew Lunn Subject: [linux-next:master 4800/11394] drivers/net/phy/qcom/qca807x.c:501:10: error: call to undeclared function 'qca807x_gpio'; ISO C99 and later do not support implicit function declarations Message-ID: <202403031332.IGAbZzwq-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: D18321C0005 X-Rspam-User: X-Stat-Signature: yjf84r9wd75xjzqcw4z8oh49wr7e4ye7 X-Rspamd-Server: rspam01 X-HE-Tag: 1709442611-186569 X-HE-Meta: U2FsdGVkX19+sD/BoAh0pri5+qJt+Ay09UJUnSn4insxHJC9ajeIKoyWA92XtKTajGOwdEVxvPvlP0WlNVtbnHejNl8V53ZfMjV2Ya+F/77fscaulKWqTkq8GWRe6DzkO1q9p1nfVwUaiMdOkaQ2Eq12l/QSSXDH3q+De9OGy4DEa0lKjDbKds56r7A1sHKXG6KuGUvoOxD797a5Lrc+UBi7N602FzH1310UJwZj8FCksXLG8XhwDg9KMmQhK3X6pOJnZAN73+S9V1fDrJK282qp5+E0QNj7RERVITkm5ZT+q12p/juMvM2uiTH33aq+t5n4U7GVkyvml1zlexQ4ef3imijQ24XSoE4S9u9K+qeg5GoC6vv+IRrwTZLYbAjlYANT3MADoY2gOlVHFrhKWVQA61PNNmFph2CuAmJG9ctKOv1m1Yu3nkIg5y0R8bfaaDp+Bz1XDuR95IzuiB0NDr5mjs4f867+ICCCnt+X2hPUrvKHnU4C4vZapHg11U7xX3uey8NW8D6WH5gwa/QRfFKSDMP1E1RGGaG3ij/g3iE/r+jsmWBduHPB+k1VdsJEK3KR9BwIuSxAuCvQaw8ofNOtA6Rv0IZYOqsIaX4x/Mvbsr9aQZZ+t1clXNCD8qI2ddMPEFcXJ6f7/ygtnNK4UavfjW8VViWHyUakyhwcAWAC/vZEsdJccG9IopU0YGHADvfiZ6BHvoy0nEl9UBqbAR7fmrCetKiqMVczJkWqWa4GysK15GPQTU8q8DMO0eboxsw8M4EVpv1T7NkFVvGqaCd63e2Ov+dcyLGQuBBsQkdE1Td63oT2leV0/si29MkiGm0+ZVFtTw6F82iIU8e3q8tJ2+Fo/3MYM8qZ24eIqGdN9p64AZu0vOxRtwnh895zirSbM5SEDKQ= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 1870cdc0e8dee32e3c221704a2977898ba4c10e8 commit: d1cb613efbd3cd7d0c000167816beb3f248f5eb8 [4800/11394] net: phy: qcom: add support for QCA807x PHY Family config: powerpc64-randconfig-r081-20240303 (https://download.01.org/0day-ci/archive/20240303/202403031332.IGAbZzwq-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 325f51237252e6dab8e4e1ea1fa7acbb4faee1cd) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240303/202403031332.IGAbZzwq-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/202403031332.IGAbZzwq-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/net/phy/qcom/qca807x.c:13: 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:8: In file included from include/linux/cacheflush.h:5: In file included from arch/powerpc/include/asm/cacheflush.h:7: In file included from include/linux/mm.h:2188: include/linux/vmstat.h:508:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 509 | item]; | ~~~~ include/linux/vmstat.h:515:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 515 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 516 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ include/linux/vmstat.h:527:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 527 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 528 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmstat.h:536:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 536 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 537 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/net/phy/qcom/qca807x.c:13: In file included from include/linux/phy.h:16: In file included from include/linux/ethtool.h:19: In file included from include/linux/netlink.h:9: In file included from include/net/scm.h:9: In file included from include/linux/security.h:35: include/linux/bpf.h:742:48: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_arg_type') [-Wenum-enum-conversion] 742 | ARG_PTR_TO_MAP_VALUE_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_MAP_VALUE, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~ include/linux/bpf.h:743:43: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_arg_type') [-Wenum-enum-conversion] 743 | ARG_PTR_TO_MEM_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_MEM, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ include/linux/bpf.h:744:43: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_arg_type') [-Wenum-enum-conversion] 744 | ARG_PTR_TO_CTX_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_CTX, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ include/linux/bpf.h:745:45: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_arg_type') [-Wenum-enum-conversion] 745 | ARG_PTR_TO_SOCKET_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_SOCKET, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~ include/linux/bpf.h:746:44: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_arg_type') [-Wenum-enum-conversion] 746 | ARG_PTR_TO_STACK_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_STACK, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~ include/linux/bpf.h:747:45: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_arg_type') [-Wenum-enum-conversion] 747 | ARG_PTR_TO_BTF_ID_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_BTF_ID, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~ include/linux/bpf.h:751:38: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_arg_type') [-Wenum-enum-conversion] 751 | ARG_PTR_TO_UNINIT_MEM = MEM_UNINIT | ARG_PTR_TO_MEM, | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ include/linux/bpf.h:753:45: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_arg_type') [-Wenum-enum-conversion] 753 | ARG_PTR_TO_FIXED_SIZE_MEM = MEM_FIXED_SIZE | ARG_PTR_TO_MEM, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ include/linux/bpf.h:776:48: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_return_type') [-Wenum-enum-conversion] 776 | RET_PTR_TO_MAP_VALUE_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_MAP_VALUE, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~ include/linux/bpf.h:777:45: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_return_type') [-Wenum-enum-conversion] 777 | RET_PTR_TO_SOCKET_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_SOCKET, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~ include/linux/bpf.h:778:47: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_return_type') [-Wenum-enum-conversion] 778 | RET_PTR_TO_TCP_SOCK_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_TCP_SOCK, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~ include/linux/bpf.h:779:50: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_return_type') [-Wenum-enum-conversion] 779 | RET_PTR_TO_SOCK_COMMON_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_SOCK_COMMON, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~ include/linux/bpf.h:781:49: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_return_type') [-Wenum-enum-conversion] 781 | RET_PTR_TO_DYNPTR_MEM_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_MEM, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ include/linux/bpf.h:782:45: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_return_type') [-Wenum-enum-conversion] 782 | RET_PTR_TO_BTF_ID_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_BTF_ID, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~ include/linux/bpf.h:783:43: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_return_type') [-Wenum-enum-conversion] 783 | RET_PTR_TO_BTF_ID_TRUSTED = PTR_TRUSTED | RET_PTR_TO_BTF_ID, | ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~ include/linux/bpf.h:894:44: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_reg_type') [-Wenum-enum-conversion] 894 | PTR_TO_MAP_VALUE_OR_NULL = PTR_MAYBE_NULL | PTR_TO_MAP_VALUE, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~ include/linux/bpf.h:895:42: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_reg_type') [-Wenum-enum-conversion] 895 | PTR_TO_SOCKET_OR_NULL = PTR_MAYBE_NULL | PTR_TO_SOCKET, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ include/linux/bpf.h:896:46: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_reg_type') [-Wenum-enum-conversion] 896 | PTR_TO_SOCK_COMMON_OR_NULL = PTR_MAYBE_NULL | PTR_TO_SOCK_COMMON, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~ include/linux/bpf.h:897:44: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_reg_type') [-Wenum-enum-conversion] 897 | PTR_TO_TCP_SOCK_OR_NULL = PTR_MAYBE_NULL | PTR_TO_TCP_SOCK, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ include/linux/bpf.h:898:42: warning: bitwise operation between different enumeration types ('enum bpf_type_flag' and 'enum bpf_reg_type') [-Wenum-enum-conversion] 898 | PTR_TO_BTF_ID_OR_NULL = PTR_MAYBE_NULL | PTR_TO_BTF_ID, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ >> drivers/net/phy/qcom/qca807x.c:501:10: error: call to undeclared function 'qca807x_gpio'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 501 | ret = qca807x_gpio(phydev); | ^ drivers/net/phy/qcom/qca807x.c:501:10: note: did you mean 'qca807x_probe'? drivers/net/phy/qcom/qca807x.c:462:12: note: 'qca807x_probe' declared here 462 | static int qca807x_probe(struct phy_device *phydev) | ^ 25 warnings and 1 error generated. vim +/qca807x_gpio +501 drivers/net/phy/qcom/qca807x.c 461 462 static int qca807x_probe(struct phy_device *phydev) 463 { 464 struct device_node *node = phydev->mdio.dev.of_node; 465 struct qca807x_shared_priv *shared_priv; 466 struct device *dev = &phydev->mdio.dev; 467 struct phy_package_shared *shared; 468 struct qca807x_priv *priv; 469 int ret; 470 471 ret = devm_of_phy_package_join(dev, phydev, sizeof(*shared_priv)); 472 if (ret) 473 return ret; 474 475 if (phy_package_probe_once(phydev)) { 476 ret = qca807x_phy_package_probe_once(phydev); 477 if (ret) 478 return ret; 479 } 480 481 shared = phydev->shared; 482 shared_priv = shared->priv; 483 484 /* Make sure PHY follow PHY package mode if enforced */ 485 if (shared_priv->package_mode != PHY_INTERFACE_MODE_NA && 486 phydev->interface != shared_priv->package_mode) 487 return -EINVAL; 488 489 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); 490 if (!priv) 491 return -ENOMEM; 492 493 priv->dac_full_amplitude = of_property_read_bool(node, "qcom,dac-full-amplitude"); 494 priv->dac_full_bias_current = of_property_read_bool(node, "qcom,dac-full-bias-current"); 495 priv->dac_disable_bias_current_tweak = of_property_read_bool(node, 496 "qcom,dac-disable-bias-current-tweak"); 497 498 if (IS_ENABLED(CONFIG_GPIOLIB)) { 499 /* Do not register a GPIO controller unless flagged for it */ 500 if (of_property_read_bool(node, "gpio-controller")) { > 501 ret = qca807x_gpio(phydev); 502 if (ret) 503 return ret; 504 } 505 } 506 507 /* Attach SFP bus on combo port*/ 508 if (phy_read(phydev, QCA807X_CHIP_CONFIGURATION)) { 509 ret = phy_sfp_probe(phydev, &qca807x_sfp_ops); 510 if (ret) 511 return ret; 512 linkmode_set_bit(ETHTOOL_LINK_MODE_FIBRE_BIT, phydev->supported); 513 linkmode_set_bit(ETHTOOL_LINK_MODE_FIBRE_BIT, phydev->advertising); 514 } 515 516 phydev->priv = priv; 517 518 return 0; 519 } 520 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki