Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp823277imm; Fri, 31 Aug 2018 14:29:12 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYH4W/cU3HYxKir9BeymF8il1SYW++BJLiggPe3C7RlPZZK7aDVjkVdZCge9LDrD9iTY4g+ X-Received: by 2002:a62:c90a:: with SMTP id k10-v6mr17697507pfg.180.1535750952877; Fri, 31 Aug 2018 14:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535750952; cv=none; d=google.com; s=arc-20160816; b=QKmBkgMtjds7hMiQaNgY6D+0201LzTJoekCyorbFGs6cMnNVf8Jdw9FUzHMQqrV6Ce nUtF9Qtac3y0Sq2tfV+bStX1DDhHsQLH2K5QVJL8H8OY27Ug1S5/z0pSTy1JnC0g/1Vd SXhwhv3EGuApeyT3gWck9IpkBUwmFFtIH5RPS8MyeHGXq7tUq8z9cru1gPQYEcoTqnfq L7IT3Be4cPgKqOkiJLp+NQk3wW0RHzPHVhDlGRr+nfoet9h2TsfC6/SnTH0hjoG2ePb3 U6eP8m6ow3brSSwT+5BkhpD9VKJD8Gfeu+bW55UGk9+ExlBr5/Vqcv9hpKT6XAuVSyOC 32PQ== 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 :arc-authentication-results; bh=YBQ1ZoKWYFj4NcZtxQekXOrFHaOketmXxdxkGOfL+s0=; b=ttrXSfK3APP7ubI8xeXJMtZ1+/BbQnO30Izfd+2SDMGylh+bj6iD06sbRRMw3sUeGC 3uKtpqNBIVZuZrGXWAC51QLN7zf2/sRa9N75TCsiWshNnQqv1E4iGaFgrJ7lU2vjJllL jsew2MqSHkKfqM/iwiOfSHjuUoxLOY+R+Ql7yeleAygL2yVcIKYQNuceqMYvgFk9SeCZ uIvocGiyTxhCCagJevWKYbTqH5FJBHqWMq7+sm9Q6a71TInmRzfA1VlxOTZT6F7uUNNg 7MBih3Z5wv8ENIWQoGLZeSdgJELeYjlJh9gIQYKnETzA7Fpotzyse0duruYsBmSmreQ4 kBjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=c4Qrtmra; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15-v6si10459495pgh.281.2018.08.31.14.28.58; Fri, 31 Aug 2018 14:29:12 -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=@google.com header.s=20161025 header.b=c4Qrtmra; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727595AbeIABgq (ORCPT + 99 others); Fri, 31 Aug 2018 21:36:46 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:34882 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727273AbeIABgp (ORCPT ); Fri, 31 Aug 2018 21:36:45 -0400 Received: by mail-pg1-f195.google.com with SMTP id 7-v6so1041885pgf.2 for ; Fri, 31 Aug 2018 14:27:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YBQ1ZoKWYFj4NcZtxQekXOrFHaOketmXxdxkGOfL+s0=; b=c4QrtmraIxBojLH4IYr491Wu8YkUn+XFo/7C8DDdI+1Aj1vu/T55q2MFZYI5FGcmAw Ml5CX/s5NWrVcvMaG4roR9QlgowsECB7Ipn6Y97AuLRlFFdjdZpFYjhDfdVLE5W6vrW1 SZ35zVdCPeFcUt8FnbxZOn14Fc/tlBpWQPlSZn+bMKNsGD6FVUDzEjpNtwKxhB4qssW3 RuEaGlbIOcUd+eA73CECr2wnqjfmouP6wFVl8D+M5dfdc9qybaSLYY5wxiK+qrv4An6W sG+kbbzBbTFD3vDtbYmeD78A2quJ0ALOGSxU4ZcD71MeZSZjvJe3fmkt+n5pJkwk4oih f6lw== 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=YBQ1ZoKWYFj4NcZtxQekXOrFHaOketmXxdxkGOfL+s0=; b=Ma0+kayf/TbSZSHEZNgKTcCiUafWJ+elIosJnPUOIi3AgL1q9OUn2HkxYTgKmkK5N0 H1xuDJv73Fwgr0bc65ztNJGKlxvFTRarstgeyHZP73JM/SdbwxeKMB5AqiinU4KnNZKw u6z3PSrnmqswLhDKltEU2qJvkeC+bDDUL3gJjDPDeSj+ka0K6YkQl0HKE8JNUbCSkvSG 9NANe0/gxm3oouuv28UGor10A604B12ZglZgitEktaJvLMj+UG66UzgKPevjMbrjuVTZ 9N/yZcQMlx6Uh/Z4ckJVOOXPqPB+hXHQKWp+/lSbhD1ahfD2N2LXqYNJ5GDQsom/T2l3 coCQ== X-Gm-Message-State: APzg51B3ajMtpVOi/MU1jXnsx8zggqm5oNyoBx9X2WT0aiiR9QAGCMzT 4ax676Q0D4IKnBLda583egNa7q8GWAfHz049pvKYqQ== X-Received: by 2002:a63:1363:: with SMTP id 35-v6mr16254112pgt.202.1535750844810; Fri, 31 Aug 2018 14:27:24 -0700 (PDT) MIME-Version: 1.0 References: <20180831170514.24665-1-miguel.ojeda.sandonis@gmail.com> In-Reply-To: From: Nick Desaulniers Date: Fri, 31 Aug 2018 14:27:13 -0700 Message-ID: Subject: Re: [PATCH 1/7] Compiler Attributes: remove unused attributes To: Miguel Ojeda Cc: joe@perches.com, Linus Torvalds , LKML , efriedma@codeaurora.org, sparse@chrisli.org, Kees Cook , Ingo Molnar , Geert Uytterhoeven , Arnd Bergmann , Greg KH , 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 1:23 PM Miguel Ojeda wrote: > > On Fri, Aug 31, 2018 at 8:43 PM, Nick Desaulniers > wrote: > > On Fri, Aug 31, 2018 at 10:28 AM Joe Perches wrote: > >> > >> On Fri, 2018-08-31 at 19:05 +0200, Miguel Ojeda wrote: > >> > __optimize and __deprecate_for_modules are unused in > >> > the whole kernel tree. Simply drop them. > >> > >> Nice series, thanks Miguel. > >> > >> It'd be good to have a cover letter for the series. > >> > >> And I believe there should be the equivalent of: > >> > >> #if GCC_VERSION < 40600 > >> # error Sorry, your compiler is too old - please upgrade it. > >> #endif > >> > >> for compiler-intel.h and compiler-clang.h so that > >> each supported compiler minimum version is checked. > >> > >> Is it clang > 13 and icc > 3 ? > > > > Eh, I'm not sure I want to commit yet to a specific minimal version of > > Clang. Right now, we're fixing things so depending on arch's and > > configs, the answer might be Top of Tree clang builds. For Pixel, we > > shipped with Clang-4, but pretty quickly we needed Clang-5. > > https://lkml.org/lkml/2017/11/22/943 > > > > I had sent patches previously for detecting clang version from the C > > preprocessor, maybe I should dust those off, then commit to clang 5. > > In my opinion, even if you require clang 7, that is fine, as long as > we get a working build mainlined. Clang 7 is aggressive. I need to think more about how to call out when a specific set of configs for a given arch requires a compiler upgrade, without ending up with combinatoral explosion. I don't want to cross that bridge with this patch set. > > By the way, I am testing the series with clang 8 (2018-08-14) (after > reverting e501ce957a78), and it seems to work. Hopefully that makes > you happy! ;-) That makes me very happy. It indeed does produce a run-able executable, for some subset of configs, but can't be relied upon until we complete our implementation (WIP). CC me on any bugs you find for your configs. I'm also trying to keep a handle on things in https://github.com/ClangBuiltLinux/linux/issues. > > > > > 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? > I will > include the move for v3. > > Cheers, > Miguel -- Thanks, ~Nick Desaulniers