Skip to contentSkip to conversation

drbd: Do not redefine __must_hold()

PATCH In review Bart Van Assche 3 participants 3 messages Jun 25, 2018 – Jun 29, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

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
index b93cbac2cb5a..b9f60030850d 100644
@@ -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
maintainer
#2 lore raw
In reply to Bart Van Assche
Quoted 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