From 6b65a81d301ca6dc02e2388f0ac1f675d0f48ebd Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 9 May 2024 13:44:05 -0400 Subject: [PATCH] blkdev wrapper: Fix constness warning Upstream commit f8c7511db009d ("block: make block_class constant") makes the block_class const. Reflect this change in the lttng-modules canary function. Signed-off-by: Mathieu Desnoyers Change-Id: Ib3aadd3dedc413f8370b9739f200ce9663c38d99 --- include/wrapper/genhd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wrapper/genhd.h b/include/wrapper/genhd.h index 2992cb43..e32c7b68 100644 --- a/include/wrapper/genhd.h +++ b/include/wrapper/genhd.h @@ -52,7 +52,7 @@ struct class *wrapper_get_block_class(void) * extern struct class block_class; */ static inline -struct class *__canary__get_block_class(void) +const struct class *__canary__get_block_class(void) { return &block_class; } -- 2.34.1