linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jude Shih <shenshih@amd.com>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Alex Deucher <alexander.deucher@amd.com>,
	Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Subject: [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: Thu, 7 Oct 2021 17:34:36 +0800	[thread overview]
Message-ID: <202110071733.HB7axcBq-lkp@intel.com> (raw)

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

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

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@lists.01.org

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

                 reply	other threads:[~2021-10-07  9:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202110071733.HB7axcBq-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Nicholas.Kazlauskas@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=shenshih@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox