From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android16-6.12 1/1] drivers/dma-buf/dma-buf.c:443: warning: Function parameter or struct member 'dmabuf_info' not described in 'dma_buf_account_task'
Date: Mon, 22 Jun 2026 17:48:11 +0800 [thread overview]
Message-ID: <202606221731.lS9CWdUD-lkp@intel.com> (raw)
tree: https://android.googlesource.com/kernel/common android16-6.12
head: 74c43557c8aed4002d058c4e88c768a6086df9c2
commit: 0f4908d05ae47a5455d6699296a463859b6eb5e3 [1/1] BACKPORT: ANDROID: Fix 32-bit kernelci build break
config: i386-defconfig (https://download.01.org/0day-ci/archive/20260622/202606221731.lS9CWdUD-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260622/202606221731.lS9CWdUD-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/202606221731.lS9CWdUD-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/dma-buf/dma-buf.c:443: warning: Function parameter or struct member 'dmabuf_info' not described in 'dma_buf_account_task'
drivers/dma-buf/dma-buf.c:443: warning: Excess function parameter 'task' description in 'dma_buf_account_task'
>> drivers/dma-buf/dma-buf.c:458: warning: Function parameter or struct member 'dmabuf_info' not described in 'dma_buf_unaccount_task'
drivers/dma-buf/dma-buf.c:458: warning: Excess function parameter 'task' description in 'dma_buf_unaccount_task'
drivers/dma-buf/dma-buf.c:1006: warning: Function parameter or struct member 'name' not described in 'dma_buf_set_name'
drivers/dma-buf/dma-buf.c:1006: warning: Excess function parameter 'buf' description in 'dma_buf_set_name'
vim +443 drivers/dma-buf/dma-buf.c
d9e55a883822eb T.J. Mercier 2025-12-30 428
d9e55a883822eb T.J. Mercier 2025-12-30 429 /**
d9e55a883822eb T.J. Mercier 2025-12-30 430 * dma_buf_account_task - Account a dmabuf to a task
d9e55a883822eb T.J. Mercier 2025-12-30 431 * @dmabuf: [in] pointer to dma_buf
d9e55a883822eb T.J. Mercier 2025-12-30 432 * @task: [in] pointer to task_struct
d9e55a883822eb T.J. Mercier 2025-12-30 433 *
d9e55a883822eb T.J. Mercier 2025-12-30 434 * When a process obtains a dmabuf file descriptor, or maps a dmabuf, this
d9e55a883822eb T.J. Mercier 2025-12-30 435 * function attributes the provided @dmabuf to the @task. The first time @dmabuf
d9e55a883822eb T.J. Mercier 2025-12-30 436 * is attributed to @task, the buffer's size is added to the @task's dmabuf RSS.
d9e55a883822eb T.J. Mercier 2025-12-30 437 *
d9e55a883822eb T.J. Mercier 2025-12-30 438 * Return:
d9e55a883822eb T.J. Mercier 2025-12-30 439 * * 0 on success
d9e55a883822eb T.J. Mercier 2025-12-30 440 * * A negative error code upon error
d9e55a883822eb T.J. Mercier 2025-12-30 441 */
d9e55a883822eb T.J. Mercier 2025-12-30 442 int dma_buf_account_task(struct dma_buf *dmabuf, struct task_dma_buf_info *dmabuf_info)
d9e55a883822eb T.J. Mercier 2025-12-30 @443 {
d9e55a883822eb T.J. Mercier 2025-12-30 444 return __dma_buf_account_task(dmabuf, dmabuf_info, true);
d50dd969464c6a T.J. Mercier 2025-07-22 445 }
d50dd969464c6a T.J. Mercier 2025-07-22 446
d50dd969464c6a T.J. Mercier 2025-07-22 447 /**
d50dd969464c6a T.J. Mercier 2025-07-22 448 * dma_buf_unaccount_task - Unaccount a dmabuf from a task
d50dd969464c6a T.J. Mercier 2025-07-22 449 * @dmabuf: [in] pointer to dma_buf
d50dd969464c6a T.J. Mercier 2025-07-22 450 * @task: [in] pointer to task_struct
d50dd969464c6a T.J. Mercier 2025-07-22 451 *
d50dd969464c6a T.J. Mercier 2025-07-22 452 * When a process closes a dmabuf file descriptor, or unmaps a dmabuf, this
d50dd969464c6a T.J. Mercier 2025-07-22 453 * function removes the provided @dmabuf attribution from the @task. When all
d50dd969464c6a T.J. Mercier 2025-07-22 454 * references to @dmabuf are removed from @task, the buffer's size is removed
d50dd969464c6a T.J. Mercier 2025-07-22 455 * from the task's dmabuf RSS.
d50dd969464c6a T.J. Mercier 2025-07-22 456 */
f7d26609785ce5 T.J. Mercier 2025-11-12 457 void dma_buf_unaccount_task(struct dma_buf *dmabuf, struct task_dma_buf_info *dmabuf_info)
d50dd969464c6a T.J. Mercier 2025-07-22 @458 {
d50dd969464c6a T.J. Mercier 2025-07-22 459 struct task_dma_buf_record *rec;
d50dd969464c6a T.J. Mercier 2025-07-22 460
a96b41a4e0bc09 Suren Baghdasaryan 2025-08-01 461 if (!static_key_enabled(&dmabuf_accounting_key))
a96b41a4e0bc09 Suren Baghdasaryan 2025-08-01 462 return;
a96b41a4e0bc09 Suren Baghdasaryan 2025-08-01 463
d50dd969464c6a T.J. Mercier 2025-07-22 464 if (!dmabuf_info)
d50dd969464c6a T.J. Mercier 2025-07-22 465 return;
d50dd969464c6a T.J. Mercier 2025-07-22 466
d50dd969464c6a T.J. Mercier 2025-07-22 467 spin_lock(&dmabuf_info->lock);
d50dd969464c6a T.J. Mercier 2025-07-22 468 rec = find_task_dmabuf_record(dmabuf_info, dmabuf);
d50dd969464c6a T.J. Mercier 2025-07-22 469 if (rec) {
d50dd969464c6a T.J. Mercier 2025-07-22 470 if (--rec->refcnt == 0) {
d50dd969464c6a T.J. Mercier 2025-07-22 471 list_del(&rec->node);
d50dd969464c6a T.J. Mercier 2025-07-22 472 dmabuf_info->dmabuf_count--;
d50dd969464c6a T.J. Mercier 2025-07-22 473 dmabuf_info->rss -= dmabuf->size;
2913cc072097bc T.J. Mercier 2025-07-01 474 trace_dmabuf_rss_stat(dmabuf_info->rss, -dmabuf->size, dmabuf);
45ae7f0b6b5f0a T.J. Mercier 2025-07-08 475 atomic64_dec(&dmabuf->nr_task_refs);
d50dd969464c6a T.J. Mercier 2025-07-22 476 } else {
d50dd969464c6a T.J. Mercier 2025-07-22 477 rec = NULL;
d50dd969464c6a T.J. Mercier 2025-07-22 478 }
d50dd969464c6a T.J. Mercier 2025-07-22 479 } else {
f7d26609785ce5 T.J. Mercier 2025-11-12 480 pr_err("Could not find dmabuf %lu in unaccount\n",
f7d26609785ce5 T.J. Mercier 2025-11-12 481 file_inode(dmabuf->file)->i_ino);
d50dd969464c6a T.J. Mercier 2025-07-22 482 }
d50dd969464c6a T.J. Mercier 2025-07-22 483 spin_unlock(&dmabuf_info->lock);
d50dd969464c6a T.J. Mercier 2025-07-22 484 if (rec)
d50dd969464c6a T.J. Mercier 2025-07-22 485 free_task_dmabuf_record(rec);
d50dd969464c6a T.J. Mercier 2025-07-22 486 }
d50dd969464c6a T.J. Mercier 2025-07-22 487
:::::: The code at line 443 was first introduced by commit
:::::: d9e55a883822eb50a6c26cc8603007c3c7b5b99d ANDROID: Don't allocate while atomic in dma_buf_begin_new_exec
:::::: TO: T.J. Mercier <tjmercier@google.com>
:::::: CC: Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-06-22 9:49 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=202606221731.lS9CWdUD-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.