Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1748190imm; Sun, 9 Sep 2018 08:22:53 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda3O9Nf0ErkIaH5akq5hz2Fv/tB2D216dGyDV16JHrUsivNE3qChJ3mkyi2G7MWEvdbndeg X-Received: by 2002:a17:902:748b:: with SMTP id h11-v6mr17607813pll.192.1536506573525; Sun, 09 Sep 2018 08:22:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536506573; cv=none; d=google.com; s=arc-20160816; b=kE2MxG9gNzFuDF0DDSBaH/u1szJcD0wNKi7sX8RobSbLdoHMiwvsiuvvXDeXzNFTkw goBODwMmBJM/UTkPUgbwGPTxNMw12vJ5e1Lux18faxBWZB7832MfS4KJp4qfDqTYtnGw 9xuYWtwDzXZ+K1u7MM28Tn07HftMrUdJ7IN6G/+Ir8u//NXs3uJteNaZCK0cifPkMFoi R+X4CYy9/uJnB1AtqAK7JqbHJe/vcklLX7S75hN2zd322/SjTaq1shNuEfCEzO/uJcit JgbigtDHeicu9qHO5k79xvfvttxanoNn4qZZwS/fe9rCPdobBaVLdKTVy2g0hzsFugwv 0Gjw== 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=+ImkJJcmZ+hi5BqYJfS7rFbonGiaWl+xRoz/DkdYVCc=; b=tUTpa1NnYjGB+jPuZUlwThVgh48WlppJ0P34KkHac3apSFCNh3pQkCutIqwiTRh9Fl uqWpeqt/EmAWNWSRA7wg9lCDHKPbVy9zug/XYUwnarPUk3eFSWvnztFzzt5Ny2gDkvCC PC+xPU5WfR6w+VenxJU0ggF7Up2Tb3iSl+hFprvfA8BL6OhxjCtWez6vmrDnyl0OZci9 jxr4z23FfbRu6u84kZMbisdM0nPpN2l+QnmOcUjS0jZwtqS37inRljiEAZ70uxsEM42I VmgLOVqwnOIGrTeeH/QPFEmlumxHrtloVX8LA/9yrkJ7jovUiWX/T/GqaMZddQGcvArw Rq2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tqlb7vZQ; 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 go1si13930294plb.266.2018.09.09.08.22.37; Sun, 09 Sep 2018 08:22:53 -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=tqlb7vZQ; 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 S1727690AbeIIUL0 (ORCPT + 99 others); Sun, 9 Sep 2018 16:11:26 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:41579 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727599AbeIIULZ (ORCPT ); Sun, 9 Sep 2018 16:11:25 -0400 Received: by mail-qt0-f195.google.com with SMTP id t39-v6so21437459qtc.8; Sun, 09 Sep 2018 08:21: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=+ImkJJcmZ+hi5BqYJfS7rFbonGiaWl+xRoz/DkdYVCc=; b=tqlb7vZQYBYkK6r5MQoUhjowbS8uWN02otOfzi8bMpH2KXirJzr+Un2o2WpbtnmiE4 SIzHswWCxlJJgFewvfdMk3ztavCXhYgUJyKgcFpWsD/UPw3SorjP8OHbjerY3xYQP7cq SVhWd/+EI7cPCDueQeljpAhu5X7pxT9DrIXEikCGRcN/nCanFsf4u2nb8UsYmrUaR9xI wxOENNrB5C+7cUpBGbtiuLabiA5/SfGQNSCxBLoby6hUSP/UWfiZN/wIKMzE8YGSwn9H ST7eqPahiktzdV+Xd9GNdeEjf6BGlzRG/vI9zgJMbQ83J0IZJ9FKb1kNz6/9Iu4+CMKd K4rw== 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=+ImkJJcmZ+hi5BqYJfS7rFbonGiaWl+xRoz/DkdYVCc=; b=Thj2UQyceIYy51m1QGCVkC1LJUNUpz5PeQcoRSzP1q/7ighxQ+cJmNmxrhik1zysDO f/xT567HvUdGRevgRGxcSRE2q3SITxObSzXzRNHBLAD2jyPgVYyvCu3O4t4KqvRAnGNJ XSIrJ84KpCnGJ9O1UrYCGsTCRqx5ro26vDTklpD6Bhp/MC5+r50vo6FuYI3SnsTW26BK aKrormgI82GRpEWZgj+XmiVHKffGD90zhSr0LBEC6lYEyObt/74CLa0YJbP8feaqtDJy u3PxRjkrK3xudueISkfn9VvTIzNzJu0vqH8FjZb3vbmg6CU47HGY6+BWiEq/elJdT6Dt eXGg== X-Gm-Message-State: APzg51C4o1/DlqAr1OJEvyFpi3PiblO7+vrAoJvVrvJtPQ6d3Oe/C4XH 2P/Yvd/QCxpM8BUXsi5BsC8MR4vqzqSNfYBklpk= X-Received: by 2002:a0c:abca:: with SMTP id k10-v6mr11630107qvb.140.1536506484820; Sun, 09 Sep 2018 08:21:24 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac8:7494:0:0:0:0:0 with HTTP; Sun, 9 Sep 2018 08:21:04 -0700 (PDT) In-Reply-To: <20180909080200.xn7z4gctf2vrqzst@ltop.local> References: <20180908212459.19736-1-miguel.ojeda.sandonis@gmail.com> <20180909080200.xn7z4gctf2vrqzst@ltop.local> From: Miguel Ojeda Date: Sun, 9 Sep 2018 17:21:04 +0200 Message-ID: Subject: Re: [PATCH v4 00/13] Compiler Attributes To: Luc Van Oostenryck Cc: Linus Torvalds , linux-kernel , Jonathan Corbet , Rasmus Villemoes , Eli Friedman , Christopher Li , Kees Cook , Ingo Molnar , Geert Uytterhoeven , Arnd Bergmann , Greg Kroah-Hartman , Masahiro Yamada , Joe Perches , Dominique Martinet , Nick Desaulniers , linux-sparse@vger.kernel.org, Linux Doc Mailing List 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 Luc, On Sun, Sep 9, 2018 at 10:02 AM, Luc Van Oostenryck wrote: > On Sat, Sep 08, 2018 at 11:24:46PM +0200, Miguel Ojeda wrote: >> The Compiler Attributes series is an effort to disentangle >> the include/linux/compiler*.h headers and bring them up to date. >> >> The main idea behind the series is to use feature checking macros >> (i.e. __has_attribute) instead of compiler version checks (e.g. GCC_VERSION), >> which are compiler-agnostic (so they can be shared, reducing the size >> of compiler-specific headers) and version-agnostic. >> >> Other related improvements have been performed in the headers as well, >> which on top of the use of __has_attribute it has amounted to a significant >> simplification of these headers (e.g. GCC_VERSION is now only guarding 4 >> non-attribute macros). >> >> This series should also help the efforts to support compiling the kernel >> with clang and icc. A fair amount of documentation and comments have also >> been added, clarified or removed; and the headers are now more readable, >> which should help kernel developers in general. >> >> The series was triggered due to the move to gcc >= 4.6. In turn, this series >> has also triggered Sparse to gain the ability to recognize __has_attribute >> on its own. >> >> You can also fetch it from: >> >> https://github.com/ojeda/linux/tree/compiler-attributes-v4 >> >> Enjoy! > > It's a nice and welcomed cleanup! > Everything look good to me, so feel free to add my > Reviewed-by: Luc Van Oostenryck Thanks a lot for the review! :-) Cheers, Miguel