Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4012217ybl; Mon, 12 Aug 2019 09:56:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWqCSrus8+mXvh8vcf4yQ/DX8MsrkAUIOGS6mB0PGQzAMpDQ1n57m/hWrAbVDFNQr7pxx1 X-Received: by 2002:a63:dd17:: with SMTP id t23mr30289798pgg.295.1565628994559; Mon, 12 Aug 2019 09:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565628994; cv=none; d=google.com; s=arc-20160816; b=PTKmgEHSG2c0PbaHcK8K2FzDetMYeeR5js0rXTWZi0Ac43Uv4hoZDdmmoy2mY4ydJq DqQ9QvBD1AgKA3/QxxE1437IlH7sKMRnvi7/xfo8tIfM/pz8DyqYm9qFNKTOxmk6+17o hois4Y87cvfPbonk3Fj5Kzb5HVrVDQ7QfvTsh9xWudaRfGgq3zwIXCsAAHzmfwMXJLcM ZRLwCSK4levPm+UJkNKyHTFuGRldOMDC0x31k9nBSaJjX8YUTR6WvEiob3MHXSDLlJ13 J802OVwtvbjHBmJQiIFUiSWiTelEpuSFh1ybgsfcaHvIjbcZE1gNxHF/saN7iaV/X0EZ qNqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vj44gRBy7Pko0QV87SnpU0f39eDYWrx4v822lLczJLI=; b=aaHwhQLrOE9UEWzMYmFoOIs63r2f8V86rITxnDiy/Jv/GnjlrBD4lkBZ8JWcT9+yxC 8TO1Awmlm6a0iaFXn3GOtZPWkwcsz7uE0qZUwCNcZWY/OE4V/nZp4A5yZ0QAhyin7+XQ Mf0pgpZs6KqeyDYfKFWdKTJS5knOQp4I7tWLnp3cktRFcMIMXcNCL1vfnNRXwSXwyAax ImYHDjvsRPoJvrxnmEctjNd9b3N1veB55bdwrMJKur98gYWWq9LzBO9OJezniW/fosvL jcP8C7qxQgQB1b7OplTfUgonihRTziLvO/JuxYyvA1WjjF5wP3bwDEF7zNV2FEI2O5i0 QZqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pIOzlK+o; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r8si4504344pfh.185.2019.08.12.09.56.17; Mon, 12 Aug 2019 09:56:34 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=pIOzlK+o; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726568AbfHLQzY (ORCPT + 99 others); Mon, 12 Aug 2019 12:55:24 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44291 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbfHLQzX (ORCPT ); Mon, 12 Aug 2019 12:55:23 -0400 Received: by mail-wr1-f67.google.com with SMTP id p17so105175095wrf.11; Mon, 12 Aug 2019 09:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=vj44gRBy7Pko0QV87SnpU0f39eDYWrx4v822lLczJLI=; b=pIOzlK+o9g7e3tz8hpTfcDLXZ7vxOPpgSYA0SeHbKb4dWYJ414ih59uANJjWMgjamm 8+KZImlw+R2OZJ+x43CCP9J4hRveALpYnlxue2s8wZXhAEIhM2wCQbj7WKXMGEh29Pkl 01udM2V8tTcT/m9lLMt+9Z/Y+5cMnKLiLzt+N0OAwPBp+GK2tKoyVj++s0hTjMVTk7H3 IgUx3sRatM0XBdR8ZBhxngPMsjp7JQr2ZRUCiJf/hdaarRvXfYWik5OZx8Fpl6mQdHTb jh6W8Ga1NcDQhN2HhLnO7Ms4OOWNkG5dm6+kk5v7WqB1SZ/AjQa62g+iuAfTsWcpvc9i d3ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=vj44gRBy7Pko0QV87SnpU0f39eDYWrx4v822lLczJLI=; b=tr036CMrm6THjsv9h4Yd4vWZ88xqEbot460zDqcT9w0wPul7xAj9cRDzNB1WiN6IJl yug1CpSkh2wyH0uObGVhXhrE9FFxtxQDmpNlhSUT4iOEL4Aho3hgaB11VWa76070Mntf ez/WRoanh6DW/EkC0fP7hOUmh0p+DKrLW5V9TsyKS5gI/zNIDE8wuvw0w+j519bcelYg j2v5sYcCI9gfVsH65xurHcYTSaI5XgEZnCpstCYoSoASY2jl45zoIs64NUHycxs+kH+9 lqLQp0U8nZSDarYx4bM4/OylD4PMYBYOSOt8BG9xSeMfoRinPEk0LQpzRJxHj1eassQo 6dbw== X-Gm-Message-State: APjAAAXYfxZmxs/eWeMxfPsidttA1I51hEQPkBOu9gaA349ub0+yBZij rLKILouNRlgF5R1noMQZI5A= X-Received: by 2002:adf:eccb:: with SMTP id s11mr9793177wro.351.1565628921084; Mon, 12 Aug 2019 09:55:21 -0700 (PDT) Received: from archlinux-threadripper ([2a01:4f8:222:2f1b::2]) by smtp.gmail.com with ESMTPSA id r17sm9360182wrg.93.2019.08.12.09.55.20 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 12 Aug 2019 09:55:20 -0700 (PDT) Date: Mon, 12 Aug 2019 09:55:18 -0700 From: Nathan Chancellor To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Nick Desaulniers , clang-built-linux@googlegroups.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] powerpc: Avoid clang warnings around setjmp and longjmp Message-ID: <20190812165518.GA6994@archlinux-threadripper> References: <20190812023214.107817-1-natechancellor@gmail.com> <5da5478f-9320-43bd-0f5e-430db2ee9195@c-s.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5da5478f-9320-43bd-0f5e-430db2ee9195@c-s.fr> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 12, 2019 at 07:37:51AM +0200, Christophe Leroy wrote: > > > Le 12/08/2019 ? 04:32, Nathan Chancellor a ?crit?: > > Commit aea447141c7e ("powerpc: Disable -Wbuiltin-requires-header when > > setjmp is used") disabled -Wbuiltin-requires-header because of a warning > > about the setjmp and longjmp declarations. > > > > r367387 in clang added another diagnostic around this, complaining that > > there is no jmp_buf declaration. > > > [...] > > > > > Cc: stable@vger.kernel.org # 4.19+ > > Link: https://github.com/ClangBuiltLinux/linux/issues/625 > > Link: https://github.com/llvm/llvm-project/commit/3be25e79477db2d31ac46493d97eca8c20592b07 > > Signed-off-by: Nathan Chancellor > > --- > > > [...] > > > > > arch/powerpc/kernel/Makefile | 5 +++-- > > arch/powerpc/xmon/Makefile | 5 +++-- > > What about scripts/recordmcount.c and scripts/sortextable.c which contains > calls to setjmp() and longjmp() ? > > And arch/um/ ? > > Christophe Hi Christophe, It looks like all of those will be using the system's setjmp header, which won't cause these warnings. Cheers, Nathan