mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 06:34:12 +08:00
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. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Cc: Philipp Reisner <philipp.reisner@linbit.com> Cc: Lars Ellenberg <lars.ellenberg@linbit.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
1311326cf4
commit
d05d199883
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user