Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1508654pxb; Fri, 13 Nov 2020 14:54:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+RWMxp6LnWRT6KXiXlV/XPqLrs/n3piWVBvZRuT6P7d0cSc5jWcv6nRVqLPnv2OR8lkat X-Received: by 2002:a50:a6c9:: with SMTP id f9mr4983864edc.158.1605308090802; Fri, 13 Nov 2020 14:54:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605308090; cv=none; d=google.com; s=arc-20160816; b=eWf2Ta4xFqQaRiktKh01kA0rPh6CT8hSBQGofz3xzmvddqOnkl0+7q+TPwx08q5ye+ HstrRHkID+Y4XBmRQXUDWs6RtjGBhL0rwnDRSESHux7ioLdygtb/RGS5nciBdRYsgthe mzc4prITrVXBVR5gsRaxoB/NaWT1rbjt+vdGWLhMneB3tsnj8+oO37M2zjwY+1HWP3wS BQQu8Hc6zJn7uAiVXYgsSsmjtSA0PFkNXAYbl4SqaFSgTh/jOyQvwOi9hmKLec5NzqRa vFgQCzNUyDsnjNUlYswQY3jG77ZNumnk2WodebDlRZ2DYy1K3Ef1J3PsjHjN68yU2/uv gl+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pjJwRKUevFcY0ivt/D6u+qhWzbAvgz4cA1cjYy+mCI4=; b=gYNobtrx9Ctxi12BFV4/XwjwbRbdn4vE3mdH8ieW3ksmcgOwaNkWwLC5J3itOdvD29 xpEyXmx3XBnbBfAPHSxB7E5eEUceCZ5bfPELz6Q5jr7bi5RaUtu8+6dBAsupBGPLf/n0 AZN3/1XISJkLqTX3nQAO9T3jtZ1mWWaTby3GEZDtaV5zEzuHPwYwKb1IJQnPs8db7bpG 0sD04oaobR1iaN6NVEUC/tXa+ya5+41jx7fFMIeHk1JXm8qt3b5EriXFkCAVZ3gPgvhz q4wBFKQwMaEbEo9uw+APsEUFGbjWPFO8xGAcKoQZxUtEocJDLBReDbiFlQC9jIYLkxrq syoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=pPtVgLW9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c26si6835691eja.409.2020.11.13.14.54.26; Fri, 13 Nov 2020 14:54:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=pPtVgLW9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726189AbgKMWwj (ORCPT + 99 others); Fri, 13 Nov 2020 17:52:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbgKMWwh (ORCPT ); Fri, 13 Nov 2020 17:52:37 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87F66C0613D1; Fri, 13 Nov 2020 14:52:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=pjJwRKUevFcY0ivt/D6u+qhWzbAvgz4cA1cjYy+mCI4=; b=pPtVgLW969ym6HVeW9Y9TLiSs8 0wAHmEwcl6t1eRw4ONQwsU2SMznXI+TezADpnjxFrC6+bo4s7mS2BFda3Pl0LdAcVRGJYGxKPAkOu jdP7xZW+inEIElaMv12sSbeWEK75c4dlb/2iQq08T0XXaHgcM+XEEIysbO549VLwPjPvdksq+sjdV 6icdaIiQP0opKVJ+QW+3Ec7Rm93cqntpR+Ps1VydaPDkOQfoVWRUoPovpa3n1M8WqlSwIF+Q2aTkD 8TUHdNVt13uLEugB10Gcnen2dsvrnOsICBuAftWE7U34ZfDWXxQl6ozysqkwnI77izZ2xv+ZotkXq tAfkEeYg==; Received: from [2601:1c0:6280:3f0::662d] (helo=smtpauth.infradead.org) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kdhvl-0006gG-Qf; Fri, 13 Nov 2020 22:52:34 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Mikulas Patocka , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, Heiko Carstens , Vasily Gorbik , Christian Borntraeger , linux-s390@vger.kernel.org Subject: [PATCH] md: dm-writeback: add __noreturn to BUG-ging function Date: Fri, 13 Nov 2020 14:52:28 -0800 Message-Id: <20201113225228.20563-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Mikulas Patocka Cc: Alasdair Kergon Cc: Mike Snitzer Cc: dm-devel@redhat.com Cc: Heiko Carstens Cc: Vasily Gorbik Cc: Christian Borntraeger 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(); }