[LTP] lapi: Add fallback rdma_user_cm.h definitions

linuxtestproject.agent@gmail.com linuxtestproject.agent@gmail.com
Fri Apr 17 14:02:07 CEST 2026


Hi Andrea,

On Wed, 25 Mar 2026, Andrea Cervesato wrote:
> lapi: Add fallback rdma_user_cm.h definitions

> +#ifdef HAVE_RDMA_RDMA_USER_CM_H
> +# include <rdma/rdma_user_cm.h>
> +#endif
> +
> +#ifndef RDMA_USER_CM_ABI_VERSION

Correct lapi pattern — configure check + fallback guard under
RDMA_USER_CM_ABI_VERSION.

[...]

> device-drivers/rdma: Add ucma_uaf01 test

> +	while (tst_remaining_runtime())
> +		sleep(1);

Standard runtime-loop idiom, not synchronization — fine.

[...]

> +	.taint_check = TST_TAINT_W | TST_TAINT_D,
> +	.needs_kconfigs = (const char *[]) {
> +		"CONFIG_INFINIBAND",
> +		"CONFIG_INFINIBAND_USER_ACCESS",
> +		NULL
> +	},

Good use of needs_kconfigs to skip cleanly on systems without RDMA
support.

Reviewed-by: LTP AI Reviewer <ltp-ai@noreply.github.com>

---
Note:

Our agent completed the review of the patch.

The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.

Regards,
LTP AI Reviewer


More information about the ltp mailing list