[radeon-alex:amd-staging-drm-next 9971/9999] drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:2280:5: warning: no previous prototype for function 'parse_ta_bin_descriptor'
kernel test robot
lkp at intel.com
Wed Jul 8 02:38:29 UTC 2020
tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head: 6b7ad8618edbe6aecf1122e654d08a8237471800
commit: be165aab3d558e3b8573d0e2699c42af5b0f62c8 [9971/9999] drm/amdgpu: updated ta ucode loading
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout be165aab3d558e3b8573d0e2699c42af5b0f62c8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:2280:5: warning: no previous prototype for function 'parse_ta_bin_descriptor' [-Wmissing-prototypes]
int parse_ta_bin_descriptor(struct psp_context *psp,
^
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c:2280:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int parse_ta_bin_descriptor(struct psp_context *psp,
^
static
1 warning generated.
vim +/parse_ta_bin_descriptor +2280 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
2279
> 2280 int parse_ta_bin_descriptor(struct psp_context *psp,
2281 const struct ta_fw_bin_desc *desc,
2282 const struct ta_firmware_header_v2_0 *ta_hdr)
2283 {
2284 uint8_t *ucode_start_addr = NULL;
2285
2286 if (!psp || !desc || !ta_hdr)
2287 return -EINVAL;
2288
2289 ucode_start_addr = (uint8_t *)ta_hdr + le32_to_cpu(desc->offset_bytes);
2290
2291 switch (desc->fw_type) {
2292 case TA_FW_TYPE_PSP_ASD:
2293 psp->asd_fw_version = le32_to_cpu(desc->fw_version);
2294 psp->asd_feature_version = le32_to_cpu(desc->fw_version);
2295 psp->asd_ucode_size = le32_to_cpu(desc->size_bytes);
2296 psp->asd_start_addr = ucode_start_addr;
2297 break;
2298 case TA_FW_TYPE_PSP_XGMI:
2299 psp->ta_xgmi_ucode_version = le32_to_cpu(desc->fw_version);
2300 psp->ta_xgmi_ucode_size = le32_to_cpu(desc->size_bytes);
2301 psp->ta_xgmi_start_addr = ucode_start_addr;
2302 break;
2303 case TA_FW_TYPE_PSP_RAS:
2304 psp->ta_ras_ucode_version = le32_to_cpu(desc->fw_version);
2305 psp->ta_ras_ucode_size = le32_to_cpu(desc->size_bytes);
2306 psp->ta_ras_start_addr = ucode_start_addr;
2307 break;
2308 case TA_FW_TYPE_PSP_HDCP:
2309 psp->ta_hdcp_ucode_version = le32_to_cpu(desc->fw_version);
2310 psp->ta_hdcp_ucode_size = le32_to_cpu(desc->size_bytes);
2311 psp->ta_hdcp_start_addr = ucode_start_addr;
2312 break;
2313 case TA_FW_TYPE_PSP_DTM:
2314 psp->ta_dtm_ucode_version = le32_to_cpu(desc->fw_version);
2315 psp->ta_dtm_ucode_size = le32_to_cpu(desc->size_bytes);
2316 psp->ta_dtm_start_addr = ucode_start_addr;
2317 break;
2318 default:
2319 dev_warn(psp->adev->dev, "Unsupported TA type: %d\n", desc->fw_type);
2320 break;
2321 }
2322
2323 return 0;
2324 }
2325
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 73058 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20200708/929321b4/attachment-0001.gz>
More information about the dri-devel
mailing list