Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp733631imm; Fri, 31 Aug 2018 11:44:58 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZto1vDaR/yweFnWvEuG/Cpnn7bWJVPvwz8tqJL6gF54iX66WzsSAaIJmkf6iTDf7wRVUvP X-Received: by 2002:a17:902:1566:: with SMTP id b35-v6mr16681123plh.135.1535741098748; Fri, 31 Aug 2018 11:44:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535741098; cv=none; d=google.com; s=arc-20160816; b=s8jvtrHvyHjhlc8rF1grMh0uptKzDgoyqwim7Ds9mt1S76QoRkgYKqLSsKCLRcGyEV Nmr5lREdMNg77MwgSmZZmIi3qvByPFpVlUayfbjXtqRoHs3pA66h0RSVAEMeg5EjUcCA roUWnDN0Wejc1JOTwzeEEG3bZKtdC95iIHjPAAuBfjouPUlUDjrjyC6gjeYxjBKnqwW+ qboa1VFBaNtW5yPJ+1IOhOy31ZMeynsY/WNjJrISbnyjNCYhfrVInuj6exgVzSMKtGly tJIDuHc/bgBtrGDnww/38xpEfiXkyw0T4tmnmO3anSy1/J2+fLWrDczT6kWsX7xZlZIg /zEQ== 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=OMzGZ2Op4NcYEQUnOF+QtQxIHQ2pSMyF4605uy6pHZU=; b=p144Q3bJNVQORFlmYfvWl+0LJ2/H1kmC+1kd2xYmsMz5x2YC/JENfq2QYFiluLfUWL W2qaZEBK6j7flExU9KgWmgo9YKOw8w5Fs6xD7zsFYjkqKdZy/59r2xf2p5VrIqFUcy0v mJGY94zAgV3nenztp1JOQZ4l6Xh7Fu8qFEmZ4EJHpFNkEaQsx78/nKTvxHD5f3P53vz6 OwsCGxWnmelX2Q9dBShZofwaMxQphr4OXSHAoJ6cSFzvbT0ofmudyhVUAqr1HzhA//OC uC4pVGY570rSCMyaUhsxaV9PzaL/xTtY/YyT3zz+XNJ0lGvCT3ocEzGKk8zJYpOFMzk2 BfyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UdmuLwj0; 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 s126-v6si11013414pfc.222.2018.08.31.11.44.43; Fri, 31 Aug 2018 11:44:58 -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=UdmuLwj0; 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 S1727252AbeHaWw0 (ORCPT + 99 others); Fri, 31 Aug 2018 18:52:26 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:34877 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726915AbeHaWw0 (ORCPT ); Fri, 31 Aug 2018 18:52:26 -0400 Received: by mail-pl1-f196.google.com with SMTP id d9-v6so5860890plr.2 for ; Fri, 31 Aug 2018 11:43:40 -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=OMzGZ2Op4NcYEQUnOF+QtQxIHQ2pSMyF4605uy6pHZU=; b=UdmuLwj0ZS6Y/v2NJ9yKDX07xWbuJCbvVeHqFymgW9ALu0tHcE0wULApVIf6VVn3UV 1zp1CcG5YCU/m12H2uQBm2SccsOdnzZrbLExkm6aXM8wI81RoXAz3ClPapWv6dWbgzjq pmH1GHrFf9Qvz+gso2eOqxujSL3bb/QLcb4kIDySMx8FEVngNj2Uu/V7r6IqzsKJpsj3 mLtDpzAe12Q8ChJmSWnhIITvXsHH+whAmrsqvRkxahveWm+nfD/NSkSZ819HVxXm/Top HK9nl+P7wbgtDaW8DuM3gCk/9j1P3Ip/WnHNWkVYT9UCx+4brVkEON7lAHT6p8QObZeC O3Nw== 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=OMzGZ2Op4NcYEQUnOF+QtQxIHQ2pSMyF4605uy6pHZU=; b=Tl/l8sxp+E4/l/BiVypPvs+vYS2zPVCbMq4Z16ihZyC6QI4HqsFV+r4KjA1Bdi13PQ XgO1vONTffVCH1j6JPNYqno+Zy26zQRA/B6JQSaOGufxseYFpFD6a2vn5qVQk80twM2b +r2cInzJr/AxyDjSf6CMze41xbRGrVkvLioU5PmzVvBX5NwEZBno6x2MdSOK8PCNapdJ 1kdYdRt2e188XgStybQ8IrBMBM+EgPnJcruZXAK/46Jygy1rNm12l7MNwVpT/mKjSPYh GfJl8lUQ6aTmszBoXE/G+k1F2z9hQhxj931MxB00dFZ5ug2tC9g/PY9gQtCCX+O0XABP sQdQ== X-Gm-Message-State: APzg51CRijlzRml7Y4Bm+BwvV6ByRLBlXO35D4IANeC4/kEa0Yx0v4Ke TAKHMfVn/YYh96lpcqSyxcTQ3zS71WGX/8HRmZd7iw== X-Received: by 2002:a17:902:b7c3:: with SMTP id v3-v6mr16815969plz.238.1535741020280; Fri, 31 Aug 2018 11:43:40 -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 11:43:28 -0700 Message-ID: Subject: Re: [PATCH 1/7] Compiler Attributes: remove unused attributes To: joe@perches.com Cc: Miguel Ojeda , 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 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. 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. -- Thanks, ~Nick Desaulniers