From: Mathieu Desnoyers Date: Mon, 13 Apr 2020 16:16:43 +0000 (-0400) Subject: Use guid_gen for kernels >= 5.7.0 X-Git-Tag: for-upstreaming-review-1~106 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=496a7e97ad97fc1fb490d12426f33f9d96470379;p=lttng-modules.git Use guid_gen for kernels >= 5.7.0 ** note: removes backward compatibility. ** Signed-off-by: Mathieu Desnoyers --- 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);