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 19:34:54 +0000 (15:34 -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/genhd.h

index 2992cb43807310a372085fdb89ceee61f500b686..e32c7b68d54f85d60d58744f6ca2e76a88151ddb 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.026972 seconds and 4 git commands to generate.