Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp791671imm; Fri, 31 Aug 2018 13:25:57 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdajr6vmAO0OzlLoM3k/0T7dEd+MdljjNXJE1FcGTVZBF1Gt2+KDHr5cb9pWtWGr5mGq20XI X-Received: by 2002:a17:902:b901:: with SMTP id bf1-v6mr16815930plb.226.1535747157420; Fri, 31 Aug 2018 13:25:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535747157; cv=none; d=google.com; s=arc-20160816; b=K7SkaJRlaLu45j19YsacKOFt5PZ7Yq0EW1hji6nBIQiwEgktLbryNtoWoWYRrI0S19 QauXkpLajmpFwGPV/l0iXFqMmxW/jK493GM/mmIWlRVQy8fduaoY8VrP1V5PuNUHRYZd WUYM+aTWP/KCctRL0QCnJsQiHKya7y1ZOo6dnD2lJ5KgSK8WqzmcT3xydjOOWmY1b4Nm mrzdHUWQWIxW1Nw+PJZ3RKhO1S4xHw3M0G7wv0pZnTgrysRZbMoxQOkBNw+M3r08FYMi /Z9wBJYXHa/qMib3DCAw5gApcGE9hygaoKYhT0aCV7Ct0Ba6fJuKg2xi+jaLFF+t/Wbe pW1w== 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 :arc-authentication-results; bh=I4py86YBpf1bydNyjTGneqK3X6aQRKMnrnbOyepFLKg=; b=qD29RfgAT6hUeFL6yF85T6Kmu/aw9hSoMKZgngCX+0TxK77jrY5JCPK9zDy/8fU/O8 HUt5nJq4/VdA+KIuJMR4xqy6AO2BnmKedGUXIhvFyw5WVJ24Qsc2QbLODwg/JMMSJkXO XAT+4quT0t6nrQZ5rep6Mc3dKhZL062MLaCl+ZqOFJK45OJbwJQJLj8FkwxCUD3gHr54 DcmUumHtZTo1Pu4SCbCTkvfGF4kBppYHdGb/VGMnnbhN5GXk0V3PfjJCu6pS+tQwPypv jGK+nlwKe6YP54BVqxDjcbUZXsGClpXp8OBxTqYcqCjkPQEZJ31b0HfBYZ31u6ENu5o6 39zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EL8P91vG; 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 j189-v6si9775743pgd.562.2018.08.31.13.25.43; Fri, 31 Aug 2018 13:25:57 -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=EL8P91vG; 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 S1727746AbeIAAct (ORCPT + 99 others); Fri, 31 Aug 2018 20:32:49 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:41804 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727258AbeIAAcs (ORCPT ); Fri, 31 Aug 2018 20:32:48 -0400 Received: by mail-qk1-f193.google.com with SMTP id h138-v6so2229161qke.8 for ; Fri, 31 Aug 2018 13:23:42 -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=I4py86YBpf1bydNyjTGneqK3X6aQRKMnrnbOyepFLKg=; b=EL8P91vGttg6OF9s/XHHfyaU5B/9qQyHuZvmKm4H2nm/3S0NJDnRGL6AzXpo3KK8NZ bS6X76g6pHrYB2IXjxzn1KPojfmjDkL6OptK3RgPKa4bbmrzexo+QZnxTDB53tLGkIGO wqsZLpe+Itn8bkNRGMS79eKsNkjPTbqVJJGAyvF45deNI4xIAR2DVGsSLDJ2nVae/W3W Y8l11cbfz44cuzl4sxKGdkwjhlJgJOgVUuC3NtV+zySYNCzJH4iUt4ng4kBf/s8Mz0FP F5QpQrYV7M8X59u7VjlN++2hIGi6bLITFzXGJhAK+xccqKUkTJdlL7pP6OZvuARSJARi Mgcg== 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=I4py86YBpf1bydNyjTGneqK3X6aQRKMnrnbOyepFLKg=; b=M5Rw8MBH6gaXIkgMeudQmm0HwkvWLxlQf8WvSkBSxdY5jnsdYLSYXq7b6mRiFfIaB4 uhcsvM5cKOKHfwMeg3+7YFBXGPTYzIc6k8qqgDKecrXBFoJ5/EMCkj3RXqscDxOuLCvE iq3irDet/dBfO65l7Bh97ZcPyZWwx+IB1RZAhMqeKy8s0Ex7+go2/zyyIyCPYQGAE5o1 kXilQZQ1B5ce/aNq/5rI34cjfDWnca4JAXYfsg0TaLo06O8GKqoqYIe2HJMuMozZXZEt F2Y2LWiwL1S9M1eZN0GwRQQJMGbdR8X2oBqMW4lkn5V7vKuFMrowCRx164lHq79rPy39 GIOQ== X-Gm-Message-State: APzg51Bm9mtEuFokoAtJF9AZbixzIZWwubhAYPNuCJUC5SHzccm+WqbK 2VIsg8McqlOgTvV8yLsedw1MnhO8UOcrno61gFA= X-Received: by 2002:ae9:ed4b:: with SMTP id c72-v6mr16149093qkg.54.1535747021942; Fri, 31 Aug 2018 13:23:41 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:aed:2291:0:0:0:0:0 with HTTP; Fri, 31 Aug 2018 13:23:21 -0700 (PDT) In-Reply-To: References: <20180831170514.24665-1-miguel.ojeda.sandonis@gmail.com> From: Miguel Ojeda Date: Fri, 31 Aug 2018 22:23:21 +0200 Message-ID: Subject: Re: [PATCH 1/7] Compiler Attributes: remove unused attributes To: Nick Desaulniers Cc: Joe Perches , Linus Torvalds , LKML , Eli Friedman , Christopher Li , Kees Cook , Ingo Molnar , Geert Uytterhoeven , Arnd Bergmann , Greg KH , Masahiro Yamada , Dominique Martinet 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 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. 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! ;-) > > 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. I guess that is breaking ARM clang builds at the moment (didn't check)? I will include the move for v3. Cheers, Miguel