From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 869892771B for ; Sat, 18 Jul 2026 11:39:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784374773; cv=none; b=bkD+0m/b4j+fvD72MDFcAEAXValDoTYakRfmYtQW/gpIrxlaCzYTFG1KvnnmPpZHcZM3T3RP9pEoff98uBODXVl4gnJUOPg3i1jljHQBTHMy+vKCNVNOPy8yj4u6SWrS1mrePhwb9uwmsM4AlqtIkrUkhKtLCZYDCmQ5WvNnDqI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784374773; c=relaxed/simple; bh=UHNt3/qRjnJxdBiSGUJBuBEfQiJVnS3Ne+f8aAhmXhA=; h=Date:From:To:Cc:Subject:Message-ID; b=bUQ23DR2otEe2amHtVYmEVG+SBYahFrhOFsYFdj2bf7Y+d0UPIripM5aIJxjHF4Xjk0y86hnDlH5zW5qEJ0kMwWP9xoumkOnceK1HQ29nEek/crUUHkRIcqrr4fll9qgSIUpaAXlLpNbSM70irlpUTWv/aU0+Ti8AjB9n6Q62GA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=XtwJgESS; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="XtwJgESS" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1784374772; x=1815910772; h=date:from:to:cc:subject:message-id; bh=UHNt3/qRjnJxdBiSGUJBuBEfQiJVnS3Ne+f8aAhmXhA=; b=XtwJgESSdOw3F+uvWITpYyNi1JqSsM58WE1FjczXn3w+3ppj8ZJ5rSGw n3msrFym5okqlWwP5lWhgFAjcYILpT39bLC+zdEkhqzkxgZ8Mb3HUT432 zcUmJRFmowG+6QpEsdAxiGEmN5Div70i83c+UWzQplNYzZkUmFfPl9lT4 uoYOk+ACc9BQm6e+1Q+J1HY0CziQP5PDiHG8itCas33R5yIKhJT5TxD2G uUM6gtHVAMVzYkOVOLjtgwMXhF77HwlqHTdIY4JSVQp0K4LSTT6aAdgAQ LUEDPjt/dYlWNX/CXnvK2Q8EiJEoGbSJMpTC8APsA5tDOmYqNDvQhLKk6 w==; X-CSE-ConnectionGUID: LNBzptAZTMi+Jt7hS7hcpw== X-CSE-MsgGUID: 8feRI7cHTfukl1VdwzTKfw== X-IronPort-AV: E=McAfee;i="6800,10657,11849"; a="84799184" X-IronPort-AV: E=Sophos;i="6.25,171,1779174000"; d="scan'208";a="84799184" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2026 04:39:31 -0700 X-CSE-ConnectionGUID: W+UPHLA8Sk6fTzE9eHg0kg== X-CSE-MsgGUID: BFzz16eOQ9CqmBNpFQdvpA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,171,1779174000"; d="scan'208";a="287072299" Received: from lkp-server02.sh.intel.com (HELO ea128546eb3d) ([10.239.97.151]) by orviesa002.jf.intel.com with ESMTP; 18 Jul 2026 04:39:29 -0700 Received: from kbuild by ea128546eb3d with local (Exim 4.98.2) (envelope-from ) id 1wl3O6-00000000Uk6-3xLw; Sat, 18 Jul 2026 11:39:23 +0000 Date: Sat, 18 Jul 2026 19:38:24 +0800 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com Cc: oe-kbuild-all@lists.linux.dev Subject: [android-common:android14-kiwi-6.1 0/192] drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:1727:6: warning: no previous prototype for 'kfd_fill_cache_non_crat_info' Message-ID: <202607181944.sh8m7GHD-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Hi Ma, FYI, the error/warning still remains. tree: https://android.googlesource.com/kernel/common android14-kiwi-6.1 head: 15bdff0dd01eed4ffc4ae138c5a611d8b102a4b6 commit: 0ac954ec7f6c6dd6b7e94340599ba4b788d056d5 [0/192] drm/amdkfd: Fix the warning of array-index-out-of-bounds config: x86_64-buildonly-randconfig-002-20260716 (https://download.01.org/0day-ci/archive/20260718/202607181944.sh8m7GHD-lkp@intel.com/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260718/202607181944.sh8m7GHD-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/202607181944.sh8m7GHD-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:1727:6: warning: no previous prototype for 'kfd_fill_cache_non_crat_info' [-Wmissing-prototypes] 1727 | void kfd_fill_cache_non_crat_info(struct kfd_topology_device *dev, struct kfd_dev *kdev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/kfd_fill_cache_non_crat_info +1727 drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c 1723 1724 /* kfd_fill_cache_non_crat_info - Fill GPU cache info using kfd_gpu_cache_info 1725 * tables 1726 */ > 1727 void kfd_fill_cache_non_crat_info(struct kfd_topology_device *dev, struct kfd_dev *kdev) 1728 { 1729 struct kfd_gpu_cache_info *pcache_info = NULL; 1730 int i, j, k; 1731 int ct = 0; 1732 unsigned int cu_processor_id; 1733 int ret; 1734 unsigned int num_cu_shared; 1735 struct kfd_cu_info cu_info; 1736 struct kfd_cu_info *pcu_info; 1737 int gpu_processor_id; 1738 struct kfd_cache_properties *props_ext; 1739 int num_of_entries = 0; 1740 int num_of_cache_types = 0; 1741 struct kfd_gpu_cache_info cache_info[KFD_MAX_CACHE_TYPES]; 1742 1743 amdgpu_amdkfd_get_cu_info(kdev->adev, &cu_info); 1744 pcu_info = &cu_info; 1745 1746 gpu_processor_id = dev->node_props.simd_id_base; 1747 1748 pcache_info = cache_info; 1749 num_of_cache_types = kfd_get_gpu_cache_info(kdev, &pcache_info); 1750 if (!num_of_cache_types) { 1751 pr_warn("no cache info found\n"); 1752 return; 1753 } 1754 1755 /* For each type of cache listed in the kfd_gpu_cache_info table, 1756 * go through all available Compute Units. 1757 * The [i,j,k] loop will 1758 * if kfd_gpu_cache_info.num_cu_shared = 1 1759 * will parse through all available CU 1760 * If (kfd_gpu_cache_info.num_cu_shared != 1) 1761 * then it will consider only one CU from 1762 * the shared unit 1763 */ 1764 for (ct = 0; ct < num_of_cache_types; ct++) { 1765 cu_processor_id = gpu_processor_id; 1766 if (pcache_info[ct].cache_level == 1) { 1767 for (i = 0; i < pcu_info->num_shader_engines; i++) { 1768 for (j = 0; j < pcu_info->num_shader_arrays_per_engine; j++) { 1769 for (k = 0; k < pcu_info->num_cu_per_sh; k += pcache_info[ct].num_cu_shared) { 1770 1771 ret = fill_in_l1_pcache(&props_ext, pcache_info, pcu_info, 1772 pcu_info->cu_bitmap[i % 4][j + i / 4], ct, 1773 cu_processor_id, k); 1774 1775 if (ret < 0) 1776 break; 1777 1778 if (!ret) { 1779 num_of_entries++; 1780 list_add_tail(&props_ext->list, &dev->cache_props); 1781 } 1782 1783 /* Move to next CU block */ 1784 num_cu_shared = ((k + pcache_info[ct].num_cu_shared) <= 1785 pcu_info->num_cu_per_sh) ? 1786 pcache_info[ct].num_cu_shared : 1787 (pcu_info->num_cu_per_sh - k); 1788 cu_processor_id += num_cu_shared; 1789 } 1790 } 1791 } 1792 } else { 1793 ret = fill_in_l2_l3_pcache(&props_ext, pcache_info, 1794 pcu_info, ct, cu_processor_id); 1795 1796 if (ret < 0) 1797 break; 1798 1799 if (!ret) { 1800 num_of_entries++; 1801 list_add_tail(&props_ext->list, &dev->cache_props); 1802 } 1803 } 1804 } 1805 dev->node_props.caches_count += num_of_entries; 1806 pr_debug("Added [%d] GPU cache entries\n", num_of_entries); 1807 } 1808 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki