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 8F144C433EF for ; Fri, 29 Apr 2022 11:25:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D6A396B0071; Fri, 29 Apr 2022 07:25:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D18AA6B0073; Fri, 29 Apr 2022 07:25:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C079D6B0074; Fri, 29 Apr 2022 07:25:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.a.hostedemail.com [64.99.140.24]) by kanga.kvack.org (Postfix) with ESMTP id B1FA26B0071 for ; Fri, 29 Apr 2022 07:25:19 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 78F5221262 for ; Fri, 29 Apr 2022 11:25:19 +0000 (UTC) X-FDA: 79409685558.23.265CA25 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf16.hostedemail.com (Postfix) with ESMTP id 4FF1F180018 for ; Fri, 29 Apr 2022 11:25:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651231518; x=1682767518; h=date:from:to:cc:subject:message-id:mime-version; bh=1H/Zz80RzjICfq04BmdtN8eyPNz5VFkoK7ZNdqPlOj4=; b=jhIBDfGL8bzd9QH4v2SmqXn78aHxLqtZO/4Zo8OGYxtyQNkJxHcpuPGT nfhVlCnzUX3r53N3/mDjK4Ggq7NGKfSR4VSYoxU+/mXLk4TuvUecuEfAn h1BU70Pe5oLAkFhaVtVpnjf8aEIRvRUFLrEVwWLJjC0/wcucuu1ciSlMI frGA8n4uBXK03+jNcp7CcDLmgDKyndOfG5pGEunvGu7mQ8uqim+fnby59 4U/NV+wC2VHZLH4Mmz1hSB9tdGI2N3mJEMouHgXhTBhheu7Ne85+5LkNv 2qx4ZO/k91M+w2t96vcS52e+N87zudsI+UqWeL9X03QeDxS+9M0wFmbUX w==; X-IronPort-AV: E=McAfee;i="6400,9594,10331"; a="248547432" X-IronPort-AV: E=Sophos;i="5.91,185,1647327600"; d="scan'208";a="248547432" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2022 04:25:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,185,1647327600"; d="scan'208";a="684649326" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 29 Apr 2022 04:25:07 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nkOkF-0006HX-84; Fri, 29 Apr 2022 11:25:07 +0000 Date: Fri, 29 Apr 2022 19:24:50 +0800 From: kernel test robot To: Alex Deucher Cc: kbuild-all@lists.01.org, Linux Memory Management List Subject: [linux-next:master 7388/7959] drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c:1348:5: warning: no previous prototype for 'amdgpu_discovery_get_mall_info' Message-ID: <202204291924.vTGZmerI-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4FF1F180018 X-Stat-Signature: emz6euimffdgc9fo7jd3q5o8ierke4gr X-Rspam-User: Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=jhIBDfGL; spf=none (imf16.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.126) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Server: rspam09 X-HE-Tag: 1651231514-875535 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 5469f0c06732a077c70a759a81f2a1f00b277694 commit: e24d0e91b336762d8756d08b13c2a4e33dceac77 [7388/7959] drm/amdgpu/discovery: move all table parsing into amdgpu_discovery.c config: alpha-buildonly-randconfig-r003-20220428 (https://download.01.org/0day-ci/archive/20220429/202204291924.vTGZmerI-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 11.3.0 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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e24d0e91b336762d8756d08b13c2a4e33dceac77 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout e24d0e91b336762d8756d08b13c2a4e33dceac77 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=alpha SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c:1348:5: warning: no previous prototype for 'amdgpu_discovery_get_mall_info' [-Wmissing-prototypes] 1348 | int amdgpu_discovery_get_mall_info(struct amdgpu_device *adev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/amdgpu_discovery_get_mall_info +1348 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c 24681cb50bcbe0 Alex Deucher 2022-03-29 1347 24681cb50bcbe0 Alex Deucher 2022-03-29 @1348 int amdgpu_discovery_get_mall_info(struct amdgpu_device *adev) 24681cb50bcbe0 Alex Deucher 2022-03-29 1349 { 24681cb50bcbe0 Alex Deucher 2022-03-29 1350 struct binary_header *bhdr; 24681cb50bcbe0 Alex Deucher 2022-03-29 1351 union mall_info *mall_info; 24681cb50bcbe0 Alex Deucher 2022-03-29 1352 u32 u, mall_size_per_umc, m_s_present, half_use; 24681cb50bcbe0 Alex Deucher 2022-03-29 1353 u64 mall_size; f716113aacea12 Alex Deucher 2022-03-30 1354 u16 offset; 24681cb50bcbe0 Alex Deucher 2022-03-29 1355 24681cb50bcbe0 Alex Deucher 2022-03-29 1356 if (!adev->mman.discovery_bin) { 24681cb50bcbe0 Alex Deucher 2022-03-29 1357 DRM_ERROR("ip discovery uninitialized\n"); 24681cb50bcbe0 Alex Deucher 2022-03-29 1358 return -EINVAL; 24681cb50bcbe0 Alex Deucher 2022-03-29 1359 } 24681cb50bcbe0 Alex Deucher 2022-03-29 1360 24681cb50bcbe0 Alex Deucher 2022-03-29 1361 bhdr = (struct binary_header *)adev->mman.discovery_bin; f716113aacea12 Alex Deucher 2022-03-30 1362 offset = le16_to_cpu(bhdr->table_list[MALL_INFO].offset); f716113aacea12 Alex Deucher 2022-03-30 1363 e24d0e91b33676 Alex Deucher 2022-03-30 1364 if (!offset) e24d0e91b33676 Alex Deucher 2022-03-30 1365 return 0; f716113aacea12 Alex Deucher 2022-03-30 1366 f716113aacea12 Alex Deucher 2022-03-30 1367 mall_info = (union mall_info *)(adev->mman.discovery_bin + offset); 24681cb50bcbe0 Alex Deucher 2022-03-29 1368 24681cb50bcbe0 Alex Deucher 2022-03-29 1369 switch (le16_to_cpu(mall_info->v1.header.version_major)) { 24681cb50bcbe0 Alex Deucher 2022-03-29 1370 case 1: 24681cb50bcbe0 Alex Deucher 2022-03-29 1371 mall_size = 0; 24681cb50bcbe0 Alex Deucher 2022-03-29 1372 mall_size_per_umc = le32_to_cpu(mall_info->v1.mall_size_per_m); 24681cb50bcbe0 Alex Deucher 2022-03-29 1373 m_s_present = le32_to_cpu(mall_info->v1.m_s_present); 24681cb50bcbe0 Alex Deucher 2022-03-29 1374 half_use = le32_to_cpu(mall_info->v1.m_half_use); 24681cb50bcbe0 Alex Deucher 2022-03-29 1375 for (u = 0; u < adev->gmc.num_umc; u++) { 24681cb50bcbe0 Alex Deucher 2022-03-29 1376 if (m_s_present & (1 << u)) 24681cb50bcbe0 Alex Deucher 2022-03-29 1377 mall_size += mall_size_per_umc * 2; 24681cb50bcbe0 Alex Deucher 2022-03-29 1378 else if (half_use & (1 << u)) 24681cb50bcbe0 Alex Deucher 2022-03-29 1379 mall_size += mall_size_per_umc / 2; 24681cb50bcbe0 Alex Deucher 2022-03-29 1380 else 24681cb50bcbe0 Alex Deucher 2022-03-29 1381 mall_size += mall_size_per_umc; 24681cb50bcbe0 Alex Deucher 2022-03-29 1382 } 24681cb50bcbe0 Alex Deucher 2022-03-29 1383 adev->gmc.mall_size = mall_size; 24681cb50bcbe0 Alex Deucher 2022-03-29 1384 break; 24681cb50bcbe0 Alex Deucher 2022-03-29 1385 default: 24681cb50bcbe0 Alex Deucher 2022-03-29 1386 dev_err(adev->dev, 24681cb50bcbe0 Alex Deucher 2022-03-29 1387 "Unhandled MALL info table %d.%d\n", 24681cb50bcbe0 Alex Deucher 2022-03-29 1388 le16_to_cpu(mall_info->v1.header.version_major), 24681cb50bcbe0 Alex Deucher 2022-03-29 1389 le16_to_cpu(mall_info->v1.header.version_minor)); 24681cb50bcbe0 Alex Deucher 2022-03-29 1390 return -EINVAL; 24681cb50bcbe0 Alex Deucher 2022-03-29 1391 } 24681cb50bcbe0 Alex Deucher 2022-03-29 1392 return 0; 622469c87fc3e6 Alex Deucher 2022-03-30 1393 } 622469c87fc3e6 Alex Deucher 2022-03-30 1394 :::::: The code at line 1348 was first introduced by commit :::::: 24681cb50bcbe09a4f8f609d35c350c7d246fe5e drm/amdgpu/discovery: add a function to get the mall_size :::::: TO: Alex Deucher :::::: CC: Alex Deucher -- 0-DAY CI Kernel Test Service https://01.org/lkp