From: kernel test robot <lkp@intel.com>
To: Shashank Sharma <shashank.sharma@amd.com>
Cc: oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>,
Alex Deucher <alexander.deucher@amd.com>
Subject: [linux-next:master 6682/11453] drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell_mgr.c:123: warning: Function parameter or member 'doorbell_index' not described in 'amdgpu_doorbell_index_on_bar'
Date: Tue, 22 Aug 2023 06:52:32 +0800 [thread overview]
Message-ID: <202308220614.h0EIBlon-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 47d9bb711707d15b19fad18c8e2b4b027a264a3a
commit: d124aa0ac96358042ba34df091a3bfa6e77fcf6f [6682/11453] drm/amdgpu: get absolute offset from doorbell index
config: i386-randconfig-i016-20230821 (https://download.01.org/0day-ci/archive/20230822/202308220614.h0EIBlon-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230822/202308220614.h0EIBlon-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308220614.h0EIBlon-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell_mgr.c:123: warning: Function parameter or member 'doorbell_index' not described in 'amdgpu_doorbell_index_on_bar'
>> drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell_mgr.c:123: warning: Excess function parameter 'db_index' description in 'amdgpu_doorbell_index_on_bar'
vim +123 drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell_mgr.c
110
111 /**
112 * amdgpu_doorbell_index_on_bar - Find doorbell's absolute offset in BAR
113 *
114 * @adev: amdgpu_device pointer
115 * @db_bo: doorbell object's bo
116 * @db_index: doorbell relative index in this doorbell object
117 *
118 * returns doorbell's absolute index in BAR
119 */
120 uint32_t amdgpu_doorbell_index_on_bar(struct amdgpu_device *adev,
121 struct amdgpu_bo *db_bo,
122 uint32_t doorbell_index)
> 123 {
124 int db_bo_offset;
125
126 db_bo_offset = amdgpu_bo_gpu_offset_no_check(db_bo);
127
128 /* doorbell index is 32 bit but doorbell's size is 64-bit, so *2 */
129 return db_bo_offset / sizeof(u32) + doorbell_index * 2;
130 }
131
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-08-21 22:54 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=202308220614.h0EIBlon-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexander.deucher@amd.com \
--cc=linux-mm@kvack.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=shashank.sharma@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