Skip to content

Commit 01ced02

Browse files
committed
ACPI: CPPC: Adjust return code for inline functions in !CONFIG_ACPI_CPPC_LIB
Checkpath emits the following warning: ``` WARNING: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP ``` Adjust the code accordingly. Reviewed-by: Gautham R. Shenoy <[email protected]> Signed-off-by: Mario Limonciello <[email protected]>
1 parent 2bcec09 commit 01ced02

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

include/acpi/cppc_acpi.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -162,31 +162,31 @@ extern int cppc_set_auto_sel(int cpu, bool enable);
162162
#else /* !CONFIG_ACPI_CPPC_LIB */
163163
static inline int cppc_get_desired_perf(int cpunum, u64 *desired_perf)
164164
{
165-
return -ENOTSUPP;
165+
return -EOPNOTSUPP;
166166
}
167167
static inline int cppc_get_nominal_perf(int cpunum, u64 *nominal_perf)
168168
{
169-
return -ENOTSUPP;
169+
return -EOPNOTSUPP;
170170
}
171171
static inline int cppc_get_highest_perf(int cpunum, u64 *highest_perf)
172172
{
173-
return -ENOTSUPP;
173+
return -EOPNOTSUPP;
174174
}
175175
static inline int cppc_get_perf_ctrs(int cpu, struct cppc_perf_fb_ctrs *perf_fb_ctrs)
176176
{
177-
return -ENOTSUPP;
177+
return -EOPNOTSUPP;
178178
}
179179
static inline int cppc_set_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls)
180180
{
181-
return -ENOTSUPP;
181+
return -EOPNOTSUPP;
182182
}
183183
static inline int cppc_set_enable(int cpu, bool enable)
184184
{
185-
return -ENOTSUPP;
185+
return -EOPNOTSUPP;
186186
}
187187
static inline int cppc_get_perf_caps(int cpu, struct cppc_perf_caps *caps)
188188
{
189-
return -ENOTSUPP;
189+
return -EOPNOTSUPP;
190190
}
191191
static inline bool cppc_perf_ctrs_in_pcc(void)
192192
{
@@ -210,27 +210,27 @@ static inline bool cpc_ffh_supported(void)
210210
}
211211
static inline int cpc_read_ffh(int cpunum, struct cpc_reg *reg, u64 *val)
212212
{
213-
return -ENOTSUPP;
213+
return -EOPNOTSUPP;
214214
}
215215
static inline int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val)
216216
{
217-
return -ENOTSUPP;
217+
return -EOPNOTSUPP;
218218
}
219219
static inline int cppc_set_epp_perf(int cpu, struct cppc_perf_ctrls *perf_ctrls, bool enable)
220220
{
221-
return -ENOTSUPP;
221+
return -EOPNOTSUPP;
222222
}
223223
static inline int cppc_get_epp_perf(int cpunum, u64 *epp_perf)
224224
{
225-
return -ENOTSUPP;
225+
return -EOPNOTSUPP;
226226
}
227227
static inline int cppc_set_auto_sel(int cpu, bool enable)
228228
{
229-
return -ENOTSUPP;
229+
return -EOPNOTSUPP;
230230
}
231231
static inline int cppc_get_auto_sel_caps(int cpunum, struct cppc_perf_caps *perf_caps)
232232
{
233-
return -ENOTSUPP;
233+
return -EOPNOTSUPP;
234234
}
235235
#endif /* !CONFIG_ACPI_CPPC_LIB */
236236

0 commit comments

Comments
 (0)