[linux-next:master 6417/6649] drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:11348:5: error: no previous prototype for 'amdgpu_dm_set_dmub_async_sync_status'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   f8dc23b3dc0cc5b32dfd0c446e59377736d073a7
commit: 88f52b1fff891e79e7b14743996fdd39692784d7 [6417/6649] drm/amd/display: Support for SET_CONFIG processing with DMUB
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=88f52b1fff891e79e7b14743996fdd39692784d7
        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 88f52b1fff891e79e7b14743996fdd39692784d7
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (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:12: error: variable 'temp' set but not used [-Werror=unused-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:632:6: error: no previous prototype for 'dmub_aux_setconfig_callback' [-Werror=missing-prototypes]
     632 | void dmub_aux_setconfig_callback(struct amdgpu_device *adev, struct dmub_notification *notify)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:648:6: error: no previous prototype for 'dmub_hpd_callback' [-Werror=missing-prototypes]
     648 | void dmub_hpd_callback(struct amdgpu_device *adev, struct dmub_notification *notify)
         |      ^~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:702:6: error: no previous prototype for 'register_dmub_notify_callback' [-Werror=missing-prototypes]
     702 | bool register_dmub_notify_callback(struct amdgpu_device *adev, enum dmub_notification_type type,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function 'dm_update_mst_vcpi_slots_for_dsc':
   drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7167:12: error: variable 'clock' set but not used [-Werror=unused-but-set-variable]
    7167 |  int i, j, clock;
         |            ^~~~~
   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: error: no previous prototype for 'amdgpu_dm_set_dmub_async_sync_status' [-Werror=missing-prototypes]
   11348 | int amdgpu_dm_set_dmub_async_sync_status(bool is_cmd_aux, struct dc_context *ctx,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


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@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux