From 496a7e97ad97fc1fb490d12426f33f9d96470379 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 13 Apr 2020 12:16:43 -0400 Subject: [PATCH] Use guid_gen for kernels >= 5.7.0 ** note: removes backward compatibility. ** Signed-off-by: Mathieu Desnoyers --- lttng-events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lttng-events.c b/lttng-events.c index c14ea3f2..1ca4d519 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -134,7 +134,7 @@ struct lttng_session *lttng_session_create(void) goto err; INIT_LIST_HEAD(&session->chan); INIT_LIST_HEAD(&session->events); - uuid_le_gen(&session->uuid); + guid_gen(&session->uuid); metadata_cache = kzalloc(sizeof(struct lttng_metadata_cache), GFP_KERNEL); -- 2.34.1