linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [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'
@ 2021-10-07  6:53 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-07  6:53 UTC (permalink / raw)
  To: Jude Shih; +Cc: kbuild-all, linux-kernel, Alex Deucher, Nicholas Kazlauskas

[-- Attachment #1: Type: text/plain, Size: 3261 bytes --]

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@intel.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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32172 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-07  6:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-07  6:53 [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' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).