From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Julia Lawall <julia.lawall@inria.fr>
Subject: [linux-next:master 8029/12321] drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:44:16-17: WARNING opportunity for max()
Date: Fri, 10 May 2024 11:17:48 +0800 [thread overview]
Message-ID: <202405101146.5Rqgih24-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: Linux Memory Management List <linux-mm@kvack.org>
TO: Alex Deucher <alexander.deucher@amd.com>
CC: "Shaoyun.liu" <shaoyunl@amd.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 704ba27ac55579704ba1289392448b0c66b56258
commit: eef016ba89862ba8317916269f9f369f317cd264 [8029/12321] drm/amdgpu/mes11: Use a separate fence per transaction
:::::: branch date: 21 hours ago
:::::: commit date: 13 days ago
config: x86_64-randconfig-102-20240509 (https://download.01.org/0day-ci/archive/20240510/202405101146.5Rqgih24-lkp@intel.com/config)
compiler: clang version 18.1.4 (https://github.com/llvm/llvm-project e6c3289804a67ea0bb6a86fadbe454dd93b8d855)
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>
| Reported-by: Julia Lawall <julia.lawall@inria.fr>
| Closes: https://lore.kernel.org/r/202405101146.5Rqgih24-lkp@intel.com/
cocci warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c:44:16-17: WARNING opportunity for max()
vim +44 drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
eef016ba89862b Alex Deucher 2024-04-18 39
eef016ba89862b Alex Deucher 2024-04-18 40 while ((s64)(wait_seq - *fence) > 0 && timeout > 0) {
eef016ba89862b Alex Deucher 2024-04-18 41 udelay(2);
eef016ba89862b Alex Deucher 2024-04-18 42 timeout -= 2;
eef016ba89862b Alex Deucher 2024-04-18 43 }
eef016ba89862b Alex Deucher 2024-04-18 @44 return timeout > 0 ? timeout : 0;
eef016ba89862b Alex Deucher 2024-04-18 45 }
eef016ba89862b Alex Deucher 2024-04-18 46
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-05-10 3:18 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=202405101146.5Rqgih24-lkp@intel.com \
--to=lkp@intel.com \
--cc=julia.lawall@inria.fr \
--cc=oe-kbuild@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 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 read-only IMAP folder(s) and NNTP newsgroup(s).