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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user