From: Mathieu Desnoyers Date: Thu, 9 May 2024 17:44:05 +0000 (-0400) Subject: blkdev wrapper: Fix constness warning X-Git-Tag: v2.13.13~14 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6b65a81d301ca6dc02e2388f0ac1f675d0f48ebd;p=lttng-modules.git 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 --- 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; }