[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202110071408.6OrLlXqL-lkp@intel.com>
Date: Thu, 7 Oct 2021 14:53:14 +0800
From: kernel test robot <lkp@...el.com>
To: Jude Shih <shenshih@....com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Alex Deucher <alexander.deucher@....com>,
Nicholas Kazlauskas <Nicholas.Kazlauskas@....com>
Subject: [agd5f:drm-next 150/172]
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:11348:5:
warning: no previous prototype for 'amdgpu_dm_set_dmub_async_sync_status'
tree: https://gitlab.freedesktop.org/agd5f/linux.git drm-next
head: 7d89172afed6caa88148f7f68b3ad11cdbf431aa
commit: 88f52b1fff891e79e7b14743996fdd39692784d7 [150/172] drm/amd/display: Support for SET_CONFIG processing with DMUB
config: alpha-randconfig-r004-20211004 (attached as .config)
compiler: alpha-linux-gcc (GCC) 11.2.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
git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f drm-next
git checkout 88f52b1fff891e79e7b14743996fdd39692784d7
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:34:
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2819:26: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
2819 | uint64_t temp;
| ^~~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: At top level:
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:11348:5: warning: no previous prototype for 'amdgpu_dm_set_dmub_async_sync_status' [-Wmissing-prototypes]
11348 | int amdgpu_dm_set_dmub_async_sync_status(bool is_cmd_aux, struct dc_context *ctx,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/amdgpu_dm_set_dmub_async_sync_status +11348 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c
11347
11348 int amdgpu_dm_set_dmub_async_sync_status(bool is_cmd_aux, struct dc_context *ctx,
11349 uint8_t status_type, uint32_t *operation_result)
11350 {
11351 struct amdgpu_device *adev = ctx->driver_context;
11352 int return_status = -1;
11353 struct dmub_notification *p_notify = adev->dm.dmub_notify;
11354
11355 if (is_cmd_aux) {
11356 if (status_type == DMUB_ASYNC_TO_SYNC_ACCESS_SUCCESS) {
11357 return_status = p_notify->aux_reply.length;
11358 *operation_result = p_notify->result;
11359 } else if (status_type == DMUB_ASYNC_TO_SYNC_ACCESS_TIMEOUT) {
11360 *operation_result = AUX_RET_ERROR_TIMEOUT;
11361 } else if (status_type == DMUB_ASYNC_TO_SYNC_ACCESS_FAIL) {
11362 *operation_result = AUX_RET_ERROR_ENGINE_ACQUIRE;
11363 } else {
11364 *operation_result = AUX_RET_ERROR_UNKNOWN;
11365 }
11366 } else {
11367 if (status_type == DMUB_ASYNC_TO_SYNC_ACCESS_SUCCESS) {
11368 return_status = 0;
11369 *operation_result = p_notify->sc_status;
11370 } else {
11371 *operation_result = SET_CONFIG_UNKNOWN_ERROR;
11372 }
11373 }
11374
11375 return return_status;
11376 }
11377
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (32172 bytes)
Powered by blists - more mailing lists