|WARNING| sched: fix infinite loop in rational approximation
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Thu Nov 26 07:53:33 CET 2026
Test-Label: ai-code-review
Test-Status: WARNING
https://dpdk.org/patch/173187
_AI Code Review_
=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-26
**Warning: test_sched.c, `#include <rte_approx.h>` placed outside the non-Windows block**
```c
+#include <rte_approx.h>
#include <rte_cycles.h>
```
The new include sits above `#ifdef RTE_EXEC_ENV_WINDOWS`. The existing `#include <rte_sched.h>` is deliberately placed inside the `#else` branch, and the Windows stubs state that sched is not supported there. The Windows stub `test_sched_approx()` does not use anything from `rte_approx.h`.
Including a sched library header unconditionally risks breaking the Windows build of app/test, since the sched lib is not built on that platform. Move the include next to `#include <rte_sched.h>` inside the `#else` block:
```c
#else
#include <rte_approx.h>
#include <rte_sched.h>
```
Review-Result: WARNING
More information about the test-report
mailing list