From f279e9101361c70fd718058ade683d2bff1b8493 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 3 Aug 2021 11:15:50 -0700 Subject: [PATCH] vkr: mark temp variable internal in CREATE_OBJECT dev_obj is internal to the macro. Rename it to _dev. Signed-off-by: Chia-I Wu Reviewed-by: Yiwei Zhang Reviewed-by: Ryan Neph --- src/venus/vkr_common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/venus/vkr_common.h b/src/venus/vkr_common.h index 0487b4d..0150223 100644 --- a/src/venus/vkr_common.h +++ b/src/venus/vkr_common.h @@ -50,8 +50,8 @@ * hand-edited. Find a better/cleaner way to reduce manual works. */ #define CREATE_OBJECT(obj, vkr_type, vk_obj, vk_cmd, vk_arg) \ - struct vkr_device *dev_obj = (struct vkr_device *)args->device; \ - if (!dev_obj || dev_obj->base.type != VK_OBJECT_TYPE_DEVICE) { \ + struct vkr_device *_dev = (struct vkr_device *)args->device; \ + if (!_dev || _dev->base.type != VK_OBJECT_TYPE_DEVICE) { \ vkr_cs_decoder_set_fatal(&ctx->decoder); \ return; \ } \ @@ -72,7 +72,7 @@ return; \ } \ \ - list_add(&obj->base.track_head, &dev_obj->objects) + list_add(&obj->base.track_head, &_dev->objects) #define DESTROY_OBJECT(obj, vkr_type, vk_obj, vk_cmd, vk_arg) \ struct vkr_##vkr_type *obj = (struct vkr_##vkr_type *)(uintptr_t)args->vk_arg; \