blkdev wrapper: Fix constness warning
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 May 2024 17:44:05 +0000 (13:44 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 May 2024 17:44:05 +0000 (13:44 -0400)
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 <mathieu.desnoyers@efficios.com>
Change-Id: Ib3aadd3dedc413f8370b9739f200ce9663c38d99

include/wrapper/blkdev.h

index b637bb91f4ffbd74c78ca5c66902ceda2c03b2a2..76397f6b112bee3263b5d3ffb23da7075a9aa80c 100644 (file)
@@ -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;
 }
This page took 0.026441 seconds and 4 git commands to generate.