[LTP] [PATCH 1/2] ioprio: use ioprio.h kernel header if it exists

Linus Walleij linus.walleij@linaro.org
Wed Jun 7 08:44:18 CEST 2023


On Mon, Jun 5, 2023 at 6:41 AM Damien Le Moal <dlemoal@kernel.org> wrote:

> For the ioprio system call test cases, avoid blindly defining the
> IOPRIO_XXX macro internally and instead use the kernel user API header
> file if it exists. Given that the definitions in this header file have
> changed over time, make sure to test for the existence of the macro
> IOPRIO_PRIO_LEVEL macro and define it if it does not exist. Similarly,
> use IOPRIO_NR_LEVELS to define IOPRIO_PRIO_NUM if that macro exists.
>
> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij


More information about the ltp mailing list