Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5510535imm; Tue, 18 Sep 2018 10:38:43 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda9xybJ605/INpjTWUiRJrl1ZXlrIVFaVbsMaIAIHWFwIUBHmp0ToL4wVbAHX97wjrdwgva X-Received: by 2002:a17:902:bb85:: with SMTP id m5-v6mr30453384pls.46.1537292322981; Tue, 18 Sep 2018 10:38:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537292322; cv=none; d=google.com; s=arc-20160816; b=Peo2QbYRojtHWuNAuEYPII9S103CAo5c3/m/k7p+/0Gjb5dZ1OPYdE8yMUiqw8G70f SI7UzLBj3ldCy8T7kzkWE/5Uzyt6r7bHAhGvOt1UMfMMlo5xudMoxf+16Xs7tT89eI8K jMUzZiD3W4VgW73MB+O0GPCUDsBSMxLLA1K3wDzpVwRqKcUzejyRL2pwpybrZa3JIjxF ji2hU8xQ6AzTmdCBsupYgtVhE6zC0HrT+XUEBoGmow+2+/D+oz7gxG1fbJXJzvuSUkM+ Ly5hb0cqjIHqJIjky8SYRzmFzCBl4SGMnizj6bA9I5rsWVMG0/xfFLk3tMjNiO8NfaGu wnvg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=8vkvbbyYE3V452HTlEHPVV7SgadGiPY5pFJ2PwSRyYo=; b=juUafF+e2aTq0tPKEryxe8LMjmJE1oP8Jekpiqsx98S80Dq8CSn87l4Z+AXmL9sQez mMP+RQQthKDf/2SbIcUR/xPZ9QYP1VgMPTBGrEbUwX3sYG4b3MOJraTMaqmVI2OQtMc8 QPDSgk0QGht1E6k3Ag1QhtH6TKA7jIV1wu6FzCePENVrMmWBPwDDFuOwbo8HHUvZNxL0 oBctXnyOcjLW4UUE4QgztsnHC+QLbsUmZifaWxLMCstQz5WW+UuaZFuw+G5c6J/JKCCG SOPCf9JjSRuanWUZDFdZXffU8Ih8/n9BQMrUxkQffWfOqMPKpZZEyoOho626loXf6k00 LYXQ== 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 n7-v6si19009745plp.71.2018.09.18.10.38.27; Tue, 18 Sep 2018 10:38:42 -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 S1730529AbeIRXLE (ORCPT + 99 others); Tue, 18 Sep 2018 19:11:04 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59434 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729999AbeIRXLE (ORCPT ); Tue, 18 Sep 2018 19:11:04 -0400 Received: from localhost (unknown [62.119.166.9]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 18DFB1083; Tue, 18 Sep 2018 17:37:19 +0000 (UTC) Date: Tue, 18 Sep 2018 19:34:28 +0200 From: Greg Kroah-Hartman To: Miguel Ojeda Cc: linux-kernel@vger.kernel.org, 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 Subject: Re: [PATCH v2 2/2] Compiler Attributes: naked can be shared Message-ID: <20180918173428.GA21591@kroah.com> References: <20180918165542.4691-1-miguel.ojeda.sandonis@gmail.com> <20180918165542.4691-3-miguel.ojeda.sandonis@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180918165542.4691-3-miguel.ojeda.sandonis@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? thanks, greg k-h