Skip to content

Commit 3ede7b6

Browse files
committed
Track down some misrenames
1 parent 842bdaa commit 3ede7b6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

offload/liboffload/API/Common.td

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def ErrorCode : Enum {
112112
Etor<"INVALID_DEVICE", "invalid device">,
113113
Etor<"INVALID_QUEUE", "invalid queue">,
114114
Etor<"INVALID_EVENT", "invalid event">,
115+
Etor<"INVALID_KERNEL", "invalid kernel">,
115116
];
116117
}
117118

offload/liboffload/API/Kernel.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def : Function {
7171

7272
def : Function {
7373
let name = "olGetKernelInfo";
74-
let desc = "Queries the given property of the device.";
74+
let desc = "Queries the given property of the kernel.";
7575
let details = [];
7676
let params = [
7777
Param<"ol_kernel_handle_t", "Kernel", "handle of the kernel instance", PARAM_IN>,
@@ -89,13 +89,13 @@ def : Function {
8989
"`PropSize == 0`",
9090
"If `PropSize` is less than the real number of bytes needed to return the info."
9191
]>,
92-
Return<"OL_ERRC_INVALID_DEVICE">
92+
Return<"OL_ERRC_INVALID_KERNEL">
9393
];
9494
}
9595

9696
def : Function {
9797
let name = "olGetKernelInfoSize";
98-
let desc = "Returns the storage size of the given device query.";
98+
let desc = "Returns the storage size of the given kernel query.";
9999
let details = [];
100100
let params = [
101101
Param<"ol_kernel_handle_t", "Kernel", "handle of the kernel instance", PARAM_IN>,
@@ -106,6 +106,6 @@ def : Function {
106106
Return<"OL_ERRC_UNSUPPORTED_ENUMERATION", [
107107
"If `PropName` is not supported by the kernel."
108108
]>,
109-
Return<"OL_ERRC_INVALID_DEVICE">
109+
Return<"OL_ERRC_INVALID_KERNEL">
110110
];
111111
}

0 commit comments

Comments
 (0)