summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2026-06-30 12:59:52 +0800
committerMichael S. Tsirkin <mst@redhat.com>2026-08-03 23:08:17 -0400
commitc2ed2f2a6415a84673485e5125be08ed6f732489 (patch)
treecdcf3237ef31eb4d4330a5a108bee4c6d4d850a6 /scripts
parente62363cd022101b6e60507837e0060d158d22f84 (diff)
downloadlinux-next-c2ed2f2a6415a84673485e5125be08ed6f732489.tar.gz
linux-next-c2ed2f2a6415a84673485e5125be08ed6f732489.zip
virtio_mem: fix hardcoded 'vm' variable in bbm iteration macros
virtio_mem_bbm_for_each_bb() and virtio_mem_bbm_for_each_bb_rev() accept a '_vm' parameter to allow callers to pass any variable name referring to the virtio_mem instance. However, the 'for' loop initializer and part of the loop condition use the bare name 'vm' instead of the macro parameter '_vm'. Fix by replacing all bare 'vm->' references inside the macros with the '_vm' parameter, and wrap in parentheses following kernel macro conventions. Signed-off-by: Li RongQing <lirongqing@baidu.com> Acked-by: David Hildenbrand (Arm) <david@kernel.org> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <20260630045952.2188-1-lirongqing@baidu.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions