Received: by 10.223.176.5 with SMTP id f5csp893766wra; Fri, 2 Feb 2018 07:50:12 -0800 (PST) X-Google-Smtp-Source: AH8x225w8TQYV5nQpNLCFAxD5D5ucNVOQzADCq0V5sOJLCaJxqUzwcSfJ9u5u+QnNDqxDPi7BkRH X-Received: by 2002:a17:902:b413:: with SMTP id x19-v6mr12614236plr.420.1517586611946; Fri, 02 Feb 2018 07:50:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517586611; cv=none; d=google.com; s=arc-20160816; b=LZgm8VXSrPyASCkJKKZFjg5a9JSrU5JslqGobI2DgmXPFTlsMaLOs1cS9jQIi5ZP0U 82RauCfWCzteabAcCdeQGD7TKgiXVaIpZvINve9q10zKowhhYsu8QWWRN3A109Hzrm9L lH6FPHq6P3ITLxI3p5PCPEUkcFzuNN2Y+jx2+EVBHKZswIeq3w4tad5mfkUI5uJeM633 pKLCZpyC8yPKsFt8KqN9Cyu3Db77ZuAE3WhKLJTx3DJhNWEtJDviIryxJZKYgKt4RVZ2 xKVlT7RpiyEgXX82RsGSY5GLVFh7FAC81maqfUeteNiOl2SXKDrEdqpd+mJljfIulDnW 0QNg== 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 j189si1193634pgd.404.2018.02.02.07.49.52; Fri, 02 Feb 2018 07:50:11 -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 S1751759AbeBBPsb (ORCPT + 99 others); Fri, 2 Feb 2018 10:48:31 -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(-) 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; -- 2.9.0