From: Mathieu Desnoyers Date: Thu, 9 May 2024 17:44:05 +0000 (-0400) Subject: blkdev wrapper: Fix constness warning X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d2c394c735875111342402ec6cdfb8fc6bcc42d7;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/blkdev.h b/include/wrapper/blkdev.h index b637bb91..76397f6b 100644 --- a/include/wrapper/blkdev.h +++ b/include/wrapper/blkdev.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; }