wsl/hsakmt: Standardize warning logging with pr_warn_once

Signed-off-by: Horatio Zhang <Hongkun.Zhang@amd.com>
Reviewed-by: Flora Cui <flora.cui@amd.com>
Reviewed-by: Shane Xiao <shane.xiao@amd.com>
Part-of: <http://10.67.69.192/wsl/libhsakmt/-/merge_requests/40>
This commit is contained in:
Horatio Zhang authored and Frank Min committed 2025-11-05 18:53:35 +08:00
1 parent c52d47b644
commit 6d5324c957
8 files changed
+57 -22

No files matched your search

+3
View File
@@ -30,6 +30,7 @@
HSAKMT_STATUS HSAKMTAPI hsaKmtSPMAcquire(HSAuint32 PreferredNode) {
CHECK_DXG_OPEN();
// Used for profiling tools
pr_warn_once("not supported\n");
return HSAKMT_STATUS_NOT_SUPPORTED;
}
@@ -38,11 +39,13 @@ HSAKMT_STATUS HSAKMTAPI hsaKmtSPMSetDestBuffer(
HSAuint32 *SizeCopied, void *DestMemoryAddress, bool *isSPMDataLoss) {
CHECK_DXG_OPEN();
// Used for profiling tools
pr_warn_once("not supported\n");
return HSAKMT_STATUS_NOT_SUPPORTED;
}
HSAKMT_STATUS HSAKMTAPI hsaKmtSPMRelease(HSAuint32 PreferredNode) {
CHECK_DXG_OPEN();
// Used for profiling tools
pr_warn_once("not supported\n");
return HSAKMT_STATUS_NOT_SUPPORTED;
}