Skip to content
Commit 857c4c0a authored by Mike Snitzer's avatar Mike Snitzer
Browse files

dm writecache: remove BUG() and fail gracefully instead

Building on arch/s390/ results in this build error:

cc1: some warnings being treated as errors
../drivers/md/dm-writecache.c: In function 'persistent_memory_claim':
../drivers/md/dm-writecache.c:323:1: error: no return statement in function returning non-void [-Werror=return-type]

Fix this by replacing the BUG() with an -EOPNOTSUPP return.

Fixes: 48debafe

 ("dm: add writecache target")
Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent e7b62418
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment