diff options
author | Mike Snitzer <snitzer@redhat.com> | 2020-11-14 01:52:28 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-11 15:25:04 +0300 |
commit | c40329943ab411fb2581018751c51caffd003916 (patch) | |
tree | 35201ebbfe93dae103ce76906a9fcfbd61998940 /samples | |
parent | 1d02176d8f9aa4481158665a590551ad55c22789 (diff) | |
download | linux-c40329943ab411fb2581018751c51caffd003916.tar.xz |
dm writecache: remove BUG() and fail gracefully instead
commit 857c4c0a8b2888d806f4308c58f59a6a81a1dee9 upstream.
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: 48debafe4f2f ("dm: add writecache target")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions