drbd: Do not redefine __must_hold()
Subsystems (2)
PATCH 1/1 drbd: Do not redefine __must_hold()
Since __must_hold() is defined in <linux/compiler_types.h>, do not redefine it in DRBD. Compile-tested only.
Signed-off-by Bart Van Assche <[email protected]>
Cc Philipp Reisner <[email protected]>
Cc Lars Ellenberg <[email protected]>
--- drivers/block/drbd/drbd_int.h | 2 -- 1 file changed, 2 deletions(-)
drivers/block/drbd/drbd_int.h +0 -2
@@ -55,12 +55,10 @@# define __protected_by (x) __attribute__((require_context(x,1,999,"rdwr")))# define __protected_read_by (x) __attribute__((require_context(x,1,999,"read")))# define __protected_write_by (x) __attribute__((require_context(x,1,999,"write"))) -# define __must_hold (x) __attribute__((context(x,1,1), require_context(x,1,999,"call")))#else # define __protected_by (x)# define __protected_read_by (x)# define __protected_write_by (x) -# define __must_hold (x)#endif /* shared module parameters, defined in drbd_main.c */
Signature · 1 line
2.17.1
Looks good,
Reviewed-by Christoph Hellwig <[email protected]>
Jens Axboe
maintainerQuoted 2 lines · Bart Van Assche
Since
__must_hold()is defined in <linux/compiler_types.h>, do not redefine it in DRBD. Compile-tested only.
Applied for 4.19, thanks.
Signature · 1 line
Jens Axboe