From patchwork Fri Feb 2 15:47:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 126742 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp758443ljc; Fri, 2 Feb 2018 07:48:37 -0800 (PST) X-Google-Smtp-Source: AH8x2248xNLN/oNaBcDukgSczPsXqUhjWV+0CW5q+YooCgLRwiVtzjI/eJwiMFF4+M7h9RaKrsZY X-Received: by 10.101.66.12 with SMTP id c12mr32641993pgq.213.1517586517283; Fri, 02 Feb 2018 07:48:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517586517; cv=none; d=google.com; s=arc-20160816; b=gAhC5OQa4z3gpbvaNXSAyds5aGqRY2T7TjL8UGxO3UWMwl5cA3cezXFYOwr6AYKf1K f53wbdb51Td4Pkr5KZeKi5l2fBVBBQfRFxi7vSIpzI3yH8lZVFb9fo8jrB4Vnu4rjFb8 ffARthKOKFSDuI+83ui3KJFrWpC3mnnh/lqFdbOUBtXS48KVIym0pdcc209Ae9ILd3yK 7n1JPXiCVxkvDBVi6ObrtMaNBMfhF4GSW0bW1bN7KAEJ0crfG4kqsQuZeDMaixUHfWg6 0T2U7t6DvVxC1qdJeaDeG66t8Qg3gldnhMSzN6oTZCw+iJO0pRm4D8XyGnI9c1XvxTkH xR2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=jMucvxKYEqBUu2sB61S0F6W2yLdIReXW+sJlh5fxV6c=; b=rjkHEwfEbqx4R+n4heZuLnANP3Yul0bpcjlBKl/kK57K/4pKSIRb+G1kgmx8H9Qk3w 9xT9a24XSpaTlCo/sg/sKYhceZJi6q9PRq6+BsH+8gEIWup9bRWdUSTvUvrHd4XwJ0h4 /EOr/xJgIgL+AMMxypWbkeDtTbsWzPeb0IwBdUrjCB2advOOKyPSVB3Uhf6J3F4Usbic tjZXuau5mQEGYYtmVy1pfkJOAxITcQeVNF3efL7PQqAIK9fbsOTYiYu9m7zhphU4CqRa jD64/iyxr63z8N8h6VgdNl5WWsrFK3OCJGLLShv6thvdNV9vkneoAGIBn/fOX8OZDaH8 uWpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m10si1630816pge.338.2018.02.02.07.48.37; Fri, 02 Feb 2018 07:48:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752026AbeBBPse (ORCPT + 28 others); Fri, 2 Feb 2018 10:48:34 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:51811 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751470AbeBBPsX (ORCPT ); Fri, 2 Feb 2018 10:48:23 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue006 [212.227.15.129]) with ESMTPA (Nemesis) id 0M2kBW-1eyclC2VHy-00siR4; Fri, 02 Feb 2018 16:48:16 +0100 From: Arnd Bergmann To: Andrew Morton , Stephen Rothwell Cc: Nicolas Pitre , Andi Kleen , Arnd Bergmann , Andrey Ryabinin , linux-kernel@vger.kernel.org Subject: [PATCH] ubsan: don't mark __ubsan_handle_builtin_unreachable as noreturn Date: Fri, 2 Feb 2018 16:47:39 +0100 Message-Id: <20180202154813.1625742-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:07p2UKWmTtY/CbrjB0hjtM7SfjdNFCUcCDoKnka08ow3SSmiKZe dlEduRd1/xX9QRqVz2tdKMlZAA41DSiOz1ED37roXtPyjBHkIf1yHy2C0211nmSLbO+U+YY gJVfHHnDB0fILlPXVzUqeZY7PqIjIMUHZBvOqxub2DzPBNKrSLtF/ROubCsM2QiVbCG2ATl ntf0tWNv8J6JJI9ikwn0g== X-UI-Out-Filterresults: notjunk:1; V01:K0:m18opPtAeoE=:pMXRBQJ5cpygikhb6ZI2hu Vu67mSGdzzm9ffGg+Zsym7YVSKjbd8zu8VexlSo7wm41XX2+Y6C46T8vwXPxDIxEm4nl6n8Ns Rk7ncpu4/p6xoZaIQm7Bzfpn49aqKOz4C6+BGGU9Wt44NfeqUsSw74cfYZO1ZdWbpU/+2pDWq XZDwykeBgnCR4zJ/W/a52hTSO7mzN1jqUXHdbG0FQBJHFxBV18wKTeqxLNImgjK5FpRieuy14 5WeBIAwKAgFCiSA+2hoQKKfz+fGobIlm38Oe7KQf4tPP3OiKZoJHjlu/K98zdcjHM6/w952CX TMrndQDkPWQV0tBT5Q514qC7jR5VXjyVmTaVTjEmYAfAYPYCOdeIrc6DNP975iQQljcbVZV9u vHlJiCJXIP68z6MzN3Rz4cJK/jxpbR4CCFi0i2QYQLznhqtAbSwcg8hxGrscgNifujQYRsftM 8ClOVB+T3dUsipVCti2PKyvyA2o/Iuc1CuGpzq/8hcD81cjN0dbY4qNnHyUysFxYTHKmdbCuJ mBj3mRerN5P2TR0R1+5DTgFg53MvSwLakkcGYqjOFEp9f3rT87k13U6Pr/Q6Hu7ETkG8RBLEX M91tf9tSsFg3NNgPn7h60y0OwkJIw8OBvkjvDC+fE1+Am65jZ0H1VUBxCstApZuGmQcAx01Th RV7k5oT1/rSB8aoBPympF1HzSNbRRIWCl+DgU7ZKAz8LEX8rAMeRi3xhXkw+Ajxb2tHZnatNI 6mFTp4/fYBxWofoaF5cPkNlgH3qxdXH/runysw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org gcc-8 complains about the prototype for this function: lib/ubsan.c:432:1: error: ignoring attribute 'noreturn' in declaration of a built-in function '__ubsan_handle_builtin_unreachable' because it conflicts with attribute 'const' [-Werror=attributes] This removes the noreturn attribute. Signed-off-by: Arnd Bergmann --- lib/ubsan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/lib/ubsan.c b/lib/ubsan.c index 59fee96c29a0..aa817d79c47c 100644 --- a/lib/ubsan.c +++ b/lib/ubsan.c @@ -427,7 +427,7 @@ void __ubsan_handle_shift_out_of_bounds(struct shift_out_of_bounds_data *data, EXPORT_SYMBOL(__ubsan_handle_shift_out_of_bounds); -void __noreturn +void __ubsan_handle_builtin_unreachable(struct unreachable_data *data) { unsigned long flags;