Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3314139imu; Wed, 7 Nov 2018 08:25:19 -0800 (PST) X-Google-Smtp-Source: AJdET5dw3Xd2N2BnjZkc4BwZkqshAuQ9HujHZHE+o+d030qCNSrDeXv3bBForXYMETWaLe09yqpi X-Received: by 2002:a63:7044:: with SMTP id a4mr696783pgn.359.1541607918949; Wed, 07 Nov 2018 08:25:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541607918; cv=none; d=google.com; s=arc-20160816; b=oMKv54E1SECr4NAwbLyBjk7fgM23slAUV8L8RFsTbbxXuzE9iy4QgLgFMJXeWKnMje nCnwr9EU3gO10zjWGyNjukxsKL353P2sHOIsrps14zIf3N1SlHOB0SlGT7d+a7W9jEED AVF1oxbrsKCXNBshOt0izYVwzL7W3NnSVPtc/A5jzoBw6AGQRQ0B50AKL52TJIMI7brJ LfMFvI7HdkvhAurKmZOUooQF087nhLmcX0BiW3zSz8Fo1/hp03Ide3b485ebG9yLW+fQ OT/jqOs2INHOQa//Tu9d+0vkpxTtQkZIPQq6CZC08O57RU9DGn7Dkr8HfkUPjzCE6e1p v1Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=SfqKMeqoPfXjyVhqROAYvGYhkqC401xIrTMJMJp/Svw=; b=v3XWF3WXedk0xQdj510H/rDN+nfwwCDIixMTPFsHiRO/PVCh4m13pTul78UtLeFC70 99+AhnosgZS8A0Nshz62DZB3TW5rks3Fo5WZIL+hycOIsgoHyVVG4aHjGCvPQM6rNkpZ qjPDdd4gkBmYe5nDm6HyepPD8LvXE/WWQK2YfZfnSAwEKk1MWXJBHsIClstn+4c9FwGr 8rKAkgDxkja92KDJaAzXlQHNyrABmNLCwNptD8T2TNpZhS3jO352XnzYrdQm2Khy/Xic El33bdkrnkR9JyfIq3SvHHgKunQoxHCNAEvwMQY6d8jV91pKTUaWiTpXOxQk1jLxq7+V jApQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=Zc3CsACo; 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 h2-v6si1092270plh.157.2018.11.07.08.25.03; Wed, 07 Nov 2018 08:25:18 -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; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=Zc3CsACo; 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 S1731373AbeKHByz (ORCPT + 99 others); Wed, 7 Nov 2018 20:54:55 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:38488 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727546AbeKHByz (ORCPT ); Wed, 7 Nov 2018 20:54:55 -0500 Received: by mail-lj1-f193.google.com with SMTP id q186-v6so15268851ljb.5 for ; Wed, 07 Nov 2018 08:23:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SfqKMeqoPfXjyVhqROAYvGYhkqC401xIrTMJMJp/Svw=; b=Zc3CsACoDNWsCeeqrk6Hb4Hrfhn+oPeA5JExHi9dL1JQ4Xzeg4INE5uoaaot4MNeVh H2v/qrDNVfu2jS+fIH8azS5/eEicjg3yu9ldy1h1JAmJ4cpRepX0CQi8Lr2BYlGMxhkR dmyADIpp5XCBPg4PP297/Sv23HoS3x1neDsQvgbWfvX+HmMvbshULq3NRVGTIo2iwaOK Lq13wpeOVaO8OdtO/ZQ30M5OeHvACz/YR8V2ERTOxtJKttyat8TJ0TJBqQUKjYmpWd40 g67W2pcBKRbmTeJ5N4QyHwyOHf3lwWX8qB4UudkJ8mMSVnndrky4bLiZIm84CpDc6q+q V90g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SfqKMeqoPfXjyVhqROAYvGYhkqC401xIrTMJMJp/Svw=; b=KNHZYOzgjPYUbzR2sD7l/Y5jTp7jYKRWCHv3Ilv7DykUiezCgjVQ7MMurTkysrD0B3 q2qWi1u+v6pzP6N52gKgqWcSdXS1uwdgsDU4HcSJrXbtv1IiOsqCvyDD2dpbd6zc0yoX i56qrEl9FwedwaGgRJzURHmB7yvRNinEoNZ/ruPrjMxYwIrQ1F/D8FCExRfXhUr+GzL+ CCwSVKPpHgfH58x/7mWffBOYviuVxHmKjIgukDIqjinYkHvey15po9DGIyQMENyvZ7l+ ckH+W0W5/Q8WKqXPrfr7gwveNr+PIh+czWEhy3Vx46PE2behOBrgBH9XsW9K0DFD0X3q Fy6A== X-Gm-Message-State: AGRZ1gL+u+1q10yRkoPYtdUtkPSGN0POu7kJ+emn1Auk9T0RI9LeQKmO hTp5w+fRBFj1tsq8/8oYLFGij76D8u7FnEuq3EmKgw== X-Received: by 2002:a2e:350e:: with SMTP id z14-v6mr549125ljz.49.1541607830569; Wed, 07 Nov 2018 08:23:50 -0800 (PST) MIME-Version: 1.0 References: <20181107144516.4587-1-aryabinin@virtuozzo.com> In-Reply-To: <20181107144516.4587-1-aryabinin@virtuozzo.com> From: Olof Johansson Date: Wed, 7 Nov 2018 08:23:38 -0800 Message-ID: Subject: Re: [PATCH v2] ubsan: don't mark __ubsan_handle_builtin_unreachable as noreturn To: aryabinin@virtuozzo.com Cc: Andrew Morton , Linux Kernel Mailing List , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 7, 2018 at 6:45 AM Andrey Ryabinin wrote: > > From: Arnd Bergmann > > 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 is actually a GCC's bug. In GCC internals > __ubsan_handle_builtin_unreachable() declared with both 'noreturn' and > 'const' attributes instead of only 'noreturn': > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84210 > > Workaround this by removing the noreturn attribute. > > [aryabinin: Add information about GCC bug in changelog] > Signed-off-by: Arnd Bergmann > Signed-off-by: Andrey Ryabinin Acked-by: Olof Johansson While it's a GCC bug, it's there in official releases now and it makes warnings noisy so we'd rather silence it. -Olof