public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] md: dm-writeback: add __noreturn to BUG-ging function
@ 2020-11-13 22:52 Randy Dunlap
  2020-11-16  7:30 ` Christian Borntraeger
  0 siblings, 1 reply; 10+ messages in thread
From: Randy Dunlap @ 2020-11-13 22:52 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, Mikulas Patocka, Alasdair Kergon, Mike Snitzer,
	dm-devel, Heiko Carstens, Vasily Gorbik, Christian Borntraeger,
	linux-s390

Building on arch/s390/ flags this as an error, so add the
__noreturn attribute modifier to prevent the 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]

Fixes: 48debafe4f2f ("dm: add writecache target")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Mikulas Patocka <mpatocka@redhat.com>
Cc: Alasdair Kergon <agk@redhat.com>
Cc: Mike Snitzer <snitzer@redhat.com>
Cc: dm-devel@redhat.com
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: linux-s390@vger.kernel.org
---
 drivers/md/dm-writecache.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20201113.orig/drivers/md/dm-writecache.c
+++ linux-next-20201113/drivers/md/dm-writecache.c
@@ -317,7 +317,7 @@ err1:
 	return r;
 }
 #else
-static int persistent_memory_claim(struct dm_writecache *wc)
+static int __noreturn persistent_memory_claim(struct dm_writecache *wc)
 {
 	BUG();
 }

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-11-20 14:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-13 22:52 [PATCH] md: dm-writeback: add __noreturn to BUG-ging function Randy Dunlap
2020-11-16  7:30 ` Christian Borntraeger
2020-11-16 23:00   ` Randy Dunlap
2020-11-17 16:31     ` Mike Snitzer
2020-11-18 15:49       ` Mike Snitzer
2020-11-18 16:07         ` Mike Snitzer
2020-11-18 16:35           ` Christian Borntraeger
2020-11-18 16:38             ` Randy Dunlap
2020-11-18 21:24           ` Mikulas Patocka
2020-11-20 14:08             ` Mike Snitzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox