Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5586928imm; Tue, 18 Sep 2018 11:57:07 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda2B7DROUHVZjL128sZ0YmN8JT4RGzt82BREbL/tB5AZucT7ahfLifWnREfCa0eSUoPH2Ln X-Received: by 2002:aa7:824d:: with SMTP id e13-v6mr32288147pfn.97.1537297027143; Tue, 18 Sep 2018 11:57:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537297027; cv=none; d=google.com; s=arc-20160816; b=OQmPSnGKpPjj4ItYiN297Uyyna6MALv1QKYQwp1B5g95Sq7MmcuJlnXCH8NQd969z2 yd9Wm035mGuY4M04HalA8u+CW7dyYv+qMGxxMt/waZ3knCb0NDpIBMbFUlUGH388IVoW vKRwB7bUz0dsAJyFV8cpP9XvatDphz+aTi2d4cRCT8gvcKcqH65LXeKSxxJqH2iTs0lq hr1i2Ba61PrcC7iOBTQo3c5csPH7eMKHh5sAEQSa8r7lnm7dB4BHoN602y9tir9VGqxt 8q9occP77QTU7SKBWU80dHoA1GZNGOLy1fbO5U2OzPgswHDhLeZEL9M7s+WSpkWny/sf Ge2w== 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 :references:in-reply-to:mime-version:dkim-signature; bh=F0zuSQLTrcmgA2kajWrC/u60uTaz8F14+gDbJzTJhsc=; b=wA99IzhTIFI8laO2KCNVT9kQxCoWTsAMGSzhH1B2rTYuOJ6giOkNnC4vP8e3hrKAj8 EwIxn7TIcMzV49Lq+fhbQnojKsaGteovj9LryX5HNHiOrLppQbAdPwoaO2Iq7eLrI7Zi td1wS3VY+oPcBaXU5JfRRaunhSlYMwxunpQ5zOMnxrqKWIbotwI/a6iPrvzlszNDuW/g TLKYPNw7yxLVwaB+e7ZiuDJmk/HGeQ/lsjx3oLu7sCqsvzykLba/fT1/Wnxgf1ZpXp4t SvqO8HbDbniLfOzSuAOvI1K9AO6KfS9T/rniXmEa8dpmwOFTc0E2p+cjvddwW2CAkYt7 oZng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="JrFQ/1Dc"; 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 e6-v6si20318990pfe.31.2018.09.18.11.56.52; Tue, 18 Sep 2018 11:57:07 -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="JrFQ/1Dc"; 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 S1729546AbeISAaV (ORCPT + 99 others); Tue, 18 Sep 2018 20:30:21 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:46611 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727563AbeISAaV (ORCPT ); Tue, 18 Sep 2018 20:30:21 -0400 Received: by mail-qk1-f193.google.com with SMTP id j7-v6so1598679qkd.13; Tue, 18 Sep 2018 11:56:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=F0zuSQLTrcmgA2kajWrC/u60uTaz8F14+gDbJzTJhsc=; b=JrFQ/1Dcusm9572tqEOcMht2LkJn5iCbkJ9/nG4kKpKOhANbC3EV9LFkBIV3+XtX8Z AGggYSGLrAK4zHWWb0w7+bPgyb6ICUOV88yvBAwwXswEMYkHpCYGe5vTjJ+mR6GsCAkZ SZ8hVvpS2Kuc2B967wype96/BvIl590bmN+BLfUhUo3RY1+kasEY7zDzbwRDa9MIGQXP Y37gqUeKtZ7JcBWHlV7yb2B2Jd/tzbIaHNxWUszRuzm1Udnqfie+G+hRICR7fMUr8bYg ZpIvaIeU1IdliLE3JOmTgkPHZro3b9jwGHQ8B5I5DaJJrDFmU7V0hZRHB6c/GgDie9fd XMww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=F0zuSQLTrcmgA2kajWrC/u60uTaz8F14+gDbJzTJhsc=; b=UnuGaK40bkrewxkaLMSYey7FSI8+OlN+UzW92c9RHGOAArn6TljXTLWJSDNP2SfMKk sPwQRe/TTYouXdN6XkCDrkdnE4SOSk2q21rvvpf/0ex+yihYvFLe4Xadi89uv/86pIi9 ueHez3Vg7FhOHCDYftZ7LDt8ni8cXiEpaIzbDp+2mjsLBmQLHz3Kj4/T34AqBf6RPRHK 2TF3efnzi+zAQaKTrL4T0B5/yKc11tGd2DwzdxNHXtgkhpAOolhkRHxZU91C4xIZRwld KJJPUboQFHCwz2tF0hdTMkmNUDz7glAAOROJDp7NbcI9Q1zxJOZifsoJPr1iaYC+ThhE q6uA== X-Gm-Message-State: APzg51BMSicatIgDnxoA7VQWkGQSbVmLtdXnn5ch/NTtx81te5TzeKhW au/yVPaz6u8cncGufLvkpKnCiFJsyYY+GxVVZDumtySL X-Received: by 2002:ae9:ed4b:: with SMTP id c72-v6mr20560584qkg.54.1537296984973; Tue, 18 Sep 2018 11:56:24 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac8:7494:0:0:0:0:0 with HTTP; Tue, 18 Sep 2018 11:56:04 -0700 (PDT) In-Reply-To: <20180918173428.GA21591@kroah.com> References: <20180918165542.4691-1-miguel.ojeda.sandonis@gmail.com> <20180918165542.4691-3-miguel.ojeda.sandonis@gmail.com> <20180918173428.GA21591@kroah.com> From: Miguel Ojeda Date: Tue, 18 Sep 2018 20:56:04 +0200 Message-ID: Subject: Re: [PATCH v2 2/2] Compiler Attributes: naked can be shared To: Greg Kroah-Hartman Cc: linux-kernel , Rasmus Villemoes , Eli Friedman , Christopher Li , Kees Cook , Ingo Molnar , Geert Uytterhoeven , Masahiro Yamada , Joe Perches , Dominique Martinet , Linus Torvalds , linux-sparse@vger.kernel.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 Hi Greg, On Tue, Sep 18, 2018 at 7:34 PM, Greg Kroah-Hartman wrote: > On Tue, Sep 18, 2018 at 06:55:42PM +0200, Miguel Ojeda wrote: >> The naked attribute is supported by at least gcc >= 4.6 (for ARM, >> which is the only current user), gcc >= 8 (for x86), clang >= 3.1 >> and icc >= 13. See https://godbolt.org/z/350Dyc >> >> Therefore, move it out of compiler-gcc.h so that the definition >> is shared by all compilers. >> >> This also fixes Clang support for ARM32 --- 815f0ddb346c >> ("include/linux/compiler*.h: make compiler-*.h mutually exclusive"). > > So, with this applied, does clang really build an arm32 kernel > successfully? No other problem at all? And this isn't really a > regression, arm32 never really worked with clang yet, right? > To recap a bit: these two patches come from the "Compiler Attributes" series which is meant as a general improvement. Since Linus/Andrew/you didn't comment on whether you wanted or not this for 4.19, we are assuming they would go in for 4.20. However, Stefan/Nick/... wanted this for 4.19 instead, they asked me to extract these patches two separately for 4.19. I let them comment further on the status of Clang on arm32. I am going to send a v5 of the entire series without these two patches, based on -rc4 (or -next, which one do you prefer? I would say these patches should be applied early in the -next branches, so that everyone is ready for the change, given it "touches" every translation unit). Cheers, Miguel