Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1185302imm; Sun, 2 Sep 2018 12:56:30 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYzjKit931hkl7WKJNNsZc2XqGhaIGodDYMYr6rDOUChkeRKaY0Jnyc4Kgtf53h8Q3FTmyt X-Received: by 2002:a63:d443:: with SMTP id i3-v6mr22718067pgj.216.1535918190507; Sun, 02 Sep 2018 12:56:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535918190; cv=none; d=google.com; s=arc-20160816; b=HVj2G5LnYYxI1PocOK8jxjunTRlRWHKwWBfpnE6JnLrkpcC9jqrecWL5Ly97Cb3Yfc jNnd1OOKsQUQfOrSa41NdMSWsuiGVjqLSTpyf6kbPvwVjVB/+UJi+64/N0Gl/Z+xI3g6 He/AeS/ueCk9kd9VDAJVF8MavIk/hmrGy22BXOxegNvsyU6JmEYVtY5j1yNasoAJVT9P zEAzwCjGyDqkbd7/ZNOcLHZyhwyif+b35vPK2hdaH0xyH3ZD1AtonaFmRme7C7QAlfAX 4Cn9POqThrNRCNe7Xp6EuT9JFBZYOXjlPO/gdVYZrcAKIIrnDQ8vOzNQMYqk2njf2QpW XPtQ== 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:arc-authentication-results; bh=/YmLB6NtwOplNfhH2/mPHSmNWmmRlhjCayK9oxU9CGI=; b=OB7J5t0MixlUZT4KKFyNotEpsZM7E5DhNBY4eAYvAjxwhBQw5QPHlsVE7/BuSKQnMx Ih3wvN4e0fXQaXYROWcg8FyzjtRA7whSq8zLvwFv1ckplij17/0qmNH0/NBmUqZaL4Dx QLQ6Xd2x215POSLk3m8SzoqUl+vEytzz3Z1FRHMmmDa38UiElKRbH1Drq8dvUl1nvJfN zeWUVnvdtbeyCG4XkBwL/R2B9Seif1cM4ZNAjys9WO3Wl//D2DTOO1TESryg4oMaLjFN Ya72dZr03B3WTI9ZxpsBmLaKnPNZ7iMCcFExstl6eczdlwsx/wl0FL5+/VFRU4uR2qD0 vlaA== 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 o6-v6si14553794pgp.631.2018.09.02.12.56.13; Sun, 02 Sep 2018 12:56:30 -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; 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 S1727142AbeICAL4 (ORCPT + 99 others); Sun, 2 Sep 2018 20:11:56 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:41949 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726978AbeICAL4 (ORCPT ); Sun, 2 Sep 2018 20:11:56 -0400 Received: by mail-qt0-f196.google.com with SMTP id t39-v6so19836777qtc.8 for ; Sun, 02 Sep 2018 12:55:03 -0700 (PDT) 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=/YmLB6NtwOplNfhH2/mPHSmNWmmRlhjCayK9oxU9CGI=; b=OLAFaeNpMwH0vspa0/R8OxK8Tlhpie3n1tgafTY1svSk5za7szHG8sNA9z8iSry0rC pDwbtnRdz7V/3KOkUrKYxiv+n70Fy2FPrSY7pbAk69EFlZDDoy+WEr4YmzpXEZPkF2L7 oTfLtj2n5jpo+fRjj1V3+cmMJ/vVL2/zVZhMgtZraMETNIhn66PwDhRTpggpPAl1ss2/ 3C0f28O1gZ6Kg+xvL3kFj3is4oZrfsftfwVz0U+w1TzgZZ2TOvjyklaHDFnS4FjlNhvM NbefU11r3Sid9ZZpTxhnjUAjvNBC/tTkxnH6UggLR0/Rp0rURS4g7KPaKZx3BGf2wypk WXQg== X-Gm-Message-State: APzg51Co3aoEhjaYmwR5+zXoFljQi60yljxOUZPolu76hQZcVLqNQ3bl 96jj0rMg/0kVkQCk5rIvnNu8lYAq0JlAqbFcTuow3aLP X-Received: by 2002:aed:3608:: with SMTP id e8-v6mr24675027qtb.75.1535918102943; Sun, 02 Sep 2018 12:55:02 -0700 (PDT) MIME-Version: 1.0 References: <20180831170514.24665-1-miguel.ojeda.sandonis@gmail.com> In-Reply-To: From: Arnd Bergmann Date: Sun, 2 Sep 2018 21:54:46 +0200 Message-ID: Subject: Re: [PATCH 1/7] Compiler Attributes: remove unused attributes To: Nick Desaulniers Cc: Miguel Ojeda Sandonis , Joe Perches , Linus Torvalds , Linux Kernel Mailing List , efriedma@codeaurora.org, Christopher Li , Kees Cook , Ingo Molnar , Geert Uytterhoeven , gregkh , Masahiro Yamada , asmadeus@codewreck.org 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 Fri, Aug 31, 2018 at 11:27 PM Nick Desaulniers wrote: > On Fri, Aug 31, 2018 at 1:23 PM Miguel Ojeda > wrote: > > On Fri, Aug 31, 2018 at 8:43 PM, Nick Desaulniers > > > I don't think minimal supported versions are required for these clean > > > ups, and would not block these patches from landing on that. > > > > > > Also, haven't found anyone using ICC yet to comment on minimal version > > > requirements. > > > > For clang, by the way, __naked should go out of -gcc.h. > > Yep, Arnd's note in the other thread was a valuable insight and I agree with it. > > > I guess that > > is breaking ARM clang builds at the moment (didn't check)? > > Huh? 32-bit ARM has a number of problems with clang at the moment, one of them is the lack of a __naked definition, which causes it fail building if any of these files are enabled: arch/arm/mach-exynos/mcpm-exynos.c:static void __naked exynos_pm_power_up_setup(unsigned int affinity_level) arch/arm/mach-vexpress/tc2_pm.c:static void __naked tc2_pm_power_up_setup(unsigned int affinity_level) arch/arm/mm/copypage-fa.c:static void __naked arch/arm/mm/copypage-feroceon.c:static void __naked arch/arm/mm/copypage-v4mc.c:static void __naked arch/arm/mm/copypage-v4wb.c:static void __naked arch/arm/mm/copypage-v4wt.c:static void __naked arch/arm/mm/copypage-xsc3.c:static void __naked arch/arm/mm/copypage-xscale.c:static void __naked There is a related problem in all the copypage files: even if we add __naked, clang refuses to compile them because it is more restrictive than gcc about enforcing the __naked function rules. I'll send a patch for that soon. Arnd