Skip to content

Commit d8258b3

Browse files
author
CKI KWF Bot
committed
Merge: mm/memory-tier: fix abstract distance calculation overflow
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/1294 JIRA: https://issues.redhat.com/browse/RHEL-100684 commit cce3510 Author: Li Zhijian <lizhijian@fujitsu.com> Date: Tue Jun 10 14:27:51 2025 +0800 mm/memory-tier: fix abstract distance calculation overflow Signed-off-by: Rafael Aquini <raquini@redhat.com> Approved-by: Waiman Long <longman@redhat.com> Approved-by: Herton R. Krzesinski <herton@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: CKI GitLab Kmaint Pipeline Bot <26919896-cki-kmaint-pipeline-bot@users.noreply.gitlab.com>
2 parents 4f2c821 + 46d1097 commit d8258b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/memory-tiers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* adistance value (slightly faster) than default DRAM adistance to be part of
1919
* the same memory tier.
2020
*/
21-
#define MEMTIER_ADISTANCE_DRAM ((4 * MEMTIER_CHUNK_SIZE) + (MEMTIER_CHUNK_SIZE >> 1))
21+
#define MEMTIER_ADISTANCE_DRAM ((4L * MEMTIER_CHUNK_SIZE) + (MEMTIER_CHUNK_SIZE >> 1))
2222

2323
struct memory_tier;
2424
struct memory_dev_type {

0 commit comments

Comments
 (0)