Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1017970imm; Wed, 22 Aug 2018 17:23:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdahYxucGm4LMRR7dTyuwfnqj+fhM3xQPbTOo9GRmuv0bj9QyppB0Cj3d9eHrtkFWP5vFpch X-Received: by 2002:a63:444d:: with SMTP id t13-v6mr8061723pgk.102.1534983836864; Wed, 22 Aug 2018 17:23:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534983836; cv=none; d=google.com; s=arc-20160816; b=bohlbRDZYmYLhgHtwJAPnQugz1wYcH7Y8NHFnNt3RyuFKj4ng4fJq8rShAXBhkUPQh xkWDHtZRyYwyvyWqBZ27QjBJGHCn59ouCEFUIMVHSRElWlLxCLICAsDQ3sYRe8YeiQ88 8DFbX/J+8hCfaYNL4gnFSRBeMCMDa7lC4Q04D1IbhcVbpnFjfjK8SjlXopqM5p5MdUOi 4wd2l7yGZaEdlnwA2aLZU6Fnvs79BaQUYQLYKhfAuscZebC4KTSf1JiirAN9kxPzyzuC /SpygQT6e5yppg2Qbv3c4tAR7hT4z9rMqfN6q+mqE3qEvPAVvEq0pQszxWQnovFZWGXn uxew== 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=GyRTh7vOkoyuuxIK95ALIc2+A9pakCWVK9T0y4FkGWM=; b=LnHZTYlYeX6TWuwhURCKORvHg7Nz0Fef5B2bAHbqSKRhHaNNeJ7CGzN97BfvM433eO YI2Q+rGnG59/D6WFDCJalcoYi0XnBSz2sfHiUEH0xegDd3R5ggH++z1h+aECAN/xBpZf AGT6mT+rvU6FOXC53mDcYb7Hb1zS44ohuA+GraavP41wj/aRqJ0Xfhc+q8I5vh3aT+ea wt1Qrp8uJJGIvaU6C7xF3oTnLyNjwwRLxBX/Kownqp6vAJpW2VjAslJCSlPVJsNxZ6Fv gyapzoivthMWFIQ8hyU8K1MxH2XnH4WCixxhYv+07k9bY5Hyojlh7Qvr8Dcwie/XV6De LnWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=KLA2jev+; 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 v6-v6si2739157plo.264.2018.08.22.17.23.40; Wed, 22 Aug 2018 17:23:56 -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=@linux-foundation.org header.s=google header.b=KLA2jev+; 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 S1727741AbeHWDtA (ORCPT + 99 others); Wed, 22 Aug 2018 23:49:00 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:39207 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727002AbeHWDtA (ORCPT ); Wed, 22 Aug 2018 23:49:00 -0400 Received: by mail-it0-f65.google.com with SMTP id t69-v6so4679813itb.4 for ; Wed, 22 Aug 2018 17:22:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GyRTh7vOkoyuuxIK95ALIc2+A9pakCWVK9T0y4FkGWM=; b=KLA2jev+G4JtHGN/9GMFeoWla26AImsaoiUEnVPFJ1fQ4uBVznkBgX/eU1OCUtCHms K0RrwyPrRdf9+KFyhe3L5QxpxK/uHOk9IUJmJKRYmr3AQmtrrZ2gIJVpqny38KWj+dOc OFYUq2woiWrVCVeh+I7tTS+i/Ds8/4nRR2Bg8= 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=GyRTh7vOkoyuuxIK95ALIc2+A9pakCWVK9T0y4FkGWM=; b=SJW/lAAnfEDgjtbETnsSGP9b+dpnlbzj9U8UEZbgdWA1iVf3Pu3IKDk4+H+qFdBIZq uK5r6nnWp+fhCXdT2LESjsuQuotGSgIC/IlBaSkJhBIC5bmXPvY9M4FK7/XiWAvZABsR CVY+eMe5xJZFaInCJb/d1osKXQhfW+Z8ZdGd7wXCh3s8JzrI1UQ2LpA4Rv7jE12K2n86 w12h+XEeOr2pQ/Vlx7FtXwCq60WhqwfjdSC74jfKapmVL6FZOmGUUN9Nk1lfKtA4qQ2w AM9K8ANkRRrFBRQfoKA90jcRMF9ubm1e7AVe6f3TqTE38Fz2a8KiXucWQuwyocMc0Pq0 eXDA== X-Gm-Message-State: APzg51Dij2DXf5AJ1X+TyIG8RWNbVLuc1uMkqhmwwQJRO+pn3eSvU8OV EBW443eqmJGm38sLYBsroFSw9Ro2T2hfJAjZHAU= X-Received: by 2002:a24:61d2:: with SMTP id s201-v6mr5560594itc.22.1534983719464; Wed, 22 Aug 2018 17:21:59 -0700 (PDT) MIME-Version: 1.0 References: <20180822233724.110454-1-ndesaulniers@google.com> In-Reply-To: <20180822233724.110454-1-ndesaulniers@google.com> From: Linus Torvalds Date: Wed, 22 Aug 2018 17:21:48 -0700 Message-ID: Subject: Re: [PATCH] include/linux/compiler*.h: make compiler-*.h mutually exclusive To: Nick Desaulniers Cc: Kees Cook , Joe Perches , Jonathan Corbet , Masahiro Yamada , Arnd Bergmann , David Woodhouse , Linux Kernel Mailing List , Thomas Gleixner , Will Deacon , Geert Uytterhoeven , Ingo Molnar , Andrew Morton , Dominique Martinet , Daniel Borkmann , Peter Anvin 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 Wed, Aug 22, 2018 at 4:39 PM Nick Desaulniers wrote: > > Rather than always including compiler-gcc.h then undefining or > redefining macros in compiler-intel.h or compiler-clang.h, let's > separate out the compiler specific macro definitions into mutually > exclusive headers, do more proper compiler detection, and keep shared > definitions in compiler_types.h. Ack, especially with the other cleanups leading to > 9 files changed, 133 insertions(+), 253 deletions(-) and I just took it directly, since I had taken the original cafa0010cd51 directly too. I'm sure this can still be tweaked, but let's get the baseline in and working. Linus