wsl/hsakmt: refine the header guard

Signed-off-by: Longlong Yao <Longlong.Yao@amd.com>
Part-of: <http://10.67.69.192/wsl/libhsakmt/-/merge_requests/26>
This commit is contained in:
Longlong Yao
2024-09-19 03:34:33 -07:00
committed by Frank Min
orang tua 84bfbf8e52
melakukan a2b449a370
11 mengubah file dengan 25 tambahan dan 25 penghapusan
+2 -2
Melihat File
@@ -1,5 +1,5 @@
#ifndef _ROCR_PM4_CMDS_H_
#define _ROCR_PM4_CMDS_H_
#ifndef _WSL_INC_PM4_CMDS_H_
#define _WSL_INC_PM4_CMDS_H_
#include <cstdint>
+2 -2
Melihat File
@@ -44,8 +44,8 @@
// register values in amd_aql_queue.cpp then this file won't be required. For
// now we are using this file where register details are spelled out in the
// structs/unions below.
#ifndef HSA_RUNTME_CORE_INC_REGISTERS_H_
#define HSA_RUNTME_CORE_INC_REGISTERS_H_
#ifndef _WSL_INC_REGISTERS_H_
#define _WSL_INC_REGISTERS_H_
typedef enum SQ_RSRC_BUF_TYPE {
SQ_RSRC_BUF = 0x00000000,
+2 -2
Melihat File
@@ -40,8 +40,8 @@
//
////////////////////////////////////////////////////////////////////////////////
#ifndef _ROCR_WDDM_TYPES_H_
#define _ROCR_WDDM_TYPES_H_
#ifndef _WSL_INC_THUNK_PROXY_WDDM_TYPES_H_
#define _WSL_INC_THUNK_PROXY_WDDM_TYPES_H_
#include <stdint.h>
+2 -2
Melihat File
@@ -1,7 +1,7 @@
/* Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved. */
#ifndef _CMD_UTIL_H_
#define _CMD_UTIL_H_
#ifndef _WSL_INC_WDDM_CMD_UTIL_H_
#define _WSL_INC_WDDM_CMD_UTIL_H_
#include <string.h>
#include "hsa-runtime/inc/hsa.h"
+2 -2
Melihat File
@@ -40,8 +40,8 @@
//
////////////////////////////////////////////////////////////////////////////////
#ifndef _ROCR_WDDM_H_
#define _ROCR_WDDM_H_
#ifndef _WSL_INC_WDDM_DEVICE_H_
#define _WSL_INC_WDDM_DEVICE_H_
#include <cassert>
#include <ntstatus.h>
+2 -2
Melihat File
@@ -40,8 +40,8 @@
//
////////////////////////////////////////////////////////////////////////////////
#ifndef _ROCR_GPU_MEMORY_H_
#define _ROCR_GPU_MEMORY_H_
#ifndef _WSL_INC_WDDM_GPU_MEMORY_H_
#define _WSL_INC_WDDM_GPU_MEMORY_H_
#include <cstddef>
#include <cstdint>
+2 -2
Melihat File
@@ -39,8 +39,8 @@
// DEALINGS WITH THE SOFTWARE.
//
////////////////////////////////////////////////////////////////////////////////
#ifndef _WDDM_QUEUE_H_
#define _WDDM_QUEUE_H_
#ifndef _WSL_INC_WDDM_QUEUE_H_
#define _WSL_INC_WDDM_QUEUE_H_
#include <cinttypes>
#include <condition_variable>
+2 -2
Melihat File
@@ -40,8 +40,8 @@
//
////////////////////////////////////////////////////////////////////////////////
#ifndef _ROCR_CORE_INC_WDDM_STATUS_H_
#define _ROCR_CORE_INC_WDDM_STATUS_H_
#ifndef _WSL_INC_WDDM_STATUS_H
#define _WSL_INC_WDDM_STATUS_H
enum class ErrorCode {
Success,
+3 -3
Melihat File
@@ -40,8 +40,8 @@
//
////////////////////////////////////////////////////////////////////////////////
#ifndef _ROCR_CORE_INC_WDDM_THUNKS_H_
#define _ROCR_CORE_INC_WDDM_THUNKS_H_
#ifndef _WSL_INC_WDDM_THUNKS_H
#define _WSL_INC_WDDM_THUNKS_H
#include "inc/wddm/status.h"
#include "inc/wddm/types.h"
@@ -229,4 +229,4 @@ inline ErrorCode OpenResourceFromNtHandle(D3DKMT_OPENRESOURCEFROMNTHANDLE *args)
} // namespace thunk
} // namespace wsl
#endif // _ROCR_CORE_INC_WDDM_THUNKS_H_
#endif
+3 -3
Melihat File
@@ -40,8 +40,8 @@
//
////////////////////////////////////////////////////////////////////////////////
#ifndef _ROCR_CORE_INC_WDDM_TYPES_H_
#define _ROCR_CORE_INC_WDDM_TYPES_H_
#ifndef _WSL_INC_WDDM_TYPES_H_
#define _WSL_INC_WDDM_TYPES_H_
#include <cstdint>
#include <ntstatus.h>
@@ -98,4 +98,4 @@ typedef struct _OBJECT_ATTRIBUTES {
(p)->SecurityQualityOfService = NULL; \
}
#endif // _ROCR_CORE_INC_WDDM_TYPES_H_
#endif
+3 -3
Melihat File
@@ -1,5 +1,5 @@
#ifndef VA_MGR_H_
#define VA_MGR_H_
#ifndef _WSL_INC_WDDM_VA_MGR_H_
#define _WSL_INC_WDDM_VA_MGR_H_
#include <mutex>
#include <map>
@@ -83,4 +83,4 @@ private:
} // namespace thunk
} // namespace wsl
#endif // VA_MGR_H_
#endif