Skip to content

Fix incorrect fan speed query error being reported - #23117

Closed
kweronsx wants to merge 1 commit into
intel:syclfrom
kweronsx:fix-fanspeed-issue
Closed

Fix incorrect fan speed query error being reported#23117
kweronsx wants to merge 1 commit into
intel:syclfrom
kweronsx:fix-fanspeed-issue

Conversation

@kweronsx

@kweronsx kweronsx commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

This change fixes this CI error:
image

@kweronsx
kweronsx marked this pull request as ready for review September 8, 2026 11:15
@kweronsx
kweronsx requested a review from a team as a code owner September 8, 2026 11:15
Comment on lines 1474 to 1479
@@ -1479,7 +1474,8 @@
auto result = ze2urResult(ZE_CALL_NOCHECK(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it should be more readable.

Suggested change
auto result = ze2urResult(ZE_CALL_NOCHECK(
const auto ZeResult = ZE_CALL_NOCHECK(
zesFanGetState, (Fan, ZES_FAN_SPEED_UNITS_PERCENT, &CurSpeed));
if (ZeResult == ZE_RESULT_ERROR_UNSUPPORTED_FEATURE ||
ZeResult == ZE_RESULT_ERROR_NOT_AVAILABLE)
return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION;
if (ZeResult != ZE_RESULT_SUCCESS)
return ze2urResult(ZeResult);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. I couldn't apply your suggestion directly due to some web error, but I did apply it manually.

@kweronsx
kweronsx requested a review from KFilipek September 8, 2026 12:19
@kweronsx

kweronsx commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

Closing this because the change was already implemented: #23113

@kweronsx kweronsx closed this Sep 8, 2026
@kweronsx
kweronsx deleted the fix-fanspeed-issue branch September 8, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants