diff options
author | Nathan Chancellor <[email protected]> | 2018-12-20 17:23:44 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2018-12-20 09:51:31 -0700 |
commit | 5816a0932b4fd74257b8cc5785bc8067186a8723 (patch) | |
tree | 8264ce26871ddbe2b14b548e13b09c523c9ca577 /tools/testing | |
parent | a52c5a16cf19d8a85831bb1b915a221dd4ffae3c (diff) |
drbd: Change drbd_request_detach_interruptible's return type to int
Clang warns when an implicit conversion is done between enumerated
types:
drivers/block/drbd/drbd_state.c:708:8: warning: implicit conversion from
enumeration type 'enum drbd_ret_code' to different enumeration type
'enum drbd_state_rv' [-Wenum-conversion]
rv = ERR_INTR;
~ ^~~~~~~~
drbd_request_detach_interruptible's only call site is in the return
statement of adm_detach, which returns an int. Change the return type of
drbd_request_detach_interruptible to match, silencing Clang's warning.
Reported-by: Nick Desaulniers <[email protected]>
Reviewed-by: Nick Desaulniers <[email protected]>
Signed-off-by: Nathan Chancellor <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions