diff options
author | 2024-02-28 23:49:12 +0100 | |
---|---|---|
committer | 2024-03-06 13:04:18 -0800 | |
commit | 72741db6836b4fc3c810e33a53f7cb9cf2cd48a7 (patch) | |
tree | dcf9d8f372934e78311422314d3ff7959d01a5ff /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | mm/mempolicy: use a folio in do_mbind() (diff) | |
download | wireguard-linux-72741db6836b4fc3c810e33a53f7cb9cf2cd48a7.tar.xz wireguard-linux-72741db6836b4fc3c810e33a53f7cb9cf2cd48a7.zip |
mm: page_alloc: use div64_ul() instead of do_div()
Fixes Coccinelle/coccicheck warning reported by do_div.cocci.
Compared to do_div(), div64_ul() does not implicitly cast the divisor and
does not unnecessarily calculate the remainder.
Link: https://lkml.kernel.org/r/20240228224911.1164-2-thorsten.blum@toblux.com
Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions