Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp323040imu; Sat, 17 Nov 2018 00:03:19 -0800 (PST) X-Google-Smtp-Source: AJdET5eCKwBV7XxTzSC5Nkcnc0/Jja/qAVhMT6WWJwDx7e0GrDXyaiG7JdanBpthv16XqGidHvkg X-Received: by 2002:a17:902:2bc5:: with SMTP id l63-v6mr14206910plb.241.1542441799287; Sat, 17 Nov 2018 00:03:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542441799; cv=none; d=google.com; s=arc-20160816; b=DsFEFwwoMpFzuF8kqnMnSY7aN6EUSOwGukPB2NR5rmSBmft1xahMFyyWsAudPp/GL3 zXX7zd/UKM0ExbsYSLTD7m9gqmgzFVV/e8dJzqX5HEpoLf8biOT9Gt4YVwpYjkxSQXx8 jdLeZM6A/J3z07O1Tk8jrik/QTjHOJn/+T+nhyb0bGtjd36ayO1Zijzf05DXCVXlhWZY WC+SzQgfJBuSek3oL3qUaIwMmmmk21ie1ELhb6JUIaGvUURTbjHzgzFVrbrg+zUJMKTH NBhTad3e6mcPEp3hSPxoLqBAFomxv58BplD0nEy8LTTcOvYRM0/9CCTZZs9mc9+UiNf+ udtg== 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; bh=NPmVE6Z//7mdbjzZgiWeE1qLH0fiwOI7p2Z/iAYJijE=; b=lAlQ80ksYi1dGOVTO7/xPI3m8No3XIgHEdowF1pEGZxwtzfPZG+vHNFHjkQtlzXFI9 Tt4A5ZxMJAmuSZu/Xo2ME2rLPBZZx/iTzJeWGKEldqIPV7ERlQcy8Wh/0ym1lNcI2bJI Zn4V3/wm89B780jgGezgcrt0AiD+ZIITp2mQIPuDSreSxuuJN3iOuZQZW2UCUpIs0mHE CgK7/GEdzmsHskQM2YAki6WjaDvlnLAr/04JcAjOI7rzIsj4A5HUw5rRnhkbW2uuVOG6 9Y3D5hxbq67bTrZzFmDzX5esKbAA8d9IzagFBKY8wxk8FEk5nsYNd7m32/cEnycEiwV1 VJTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Syen7fyi; 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 g62-v6si333489pfe.186.2018.11.17.00.02.27; Sat, 17 Nov 2018 00:03:19 -0800 (PST) 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=Syen7fyi; 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 S1725930AbeKQSQd (ORCPT + 99 others); Sat, 17 Nov 2018 13:16:33 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:35626 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725849AbeKQSQd (ORCPT ); Sat, 17 Nov 2018 13:16:33 -0500 Received: by mail-lj1-f194.google.com with SMTP id x85-v6so22304565ljb.2; Sat, 17 Nov 2018 00:00:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NPmVE6Z//7mdbjzZgiWeE1qLH0fiwOI7p2Z/iAYJijE=; b=Syen7fyiequm7d8bQcmQPVz3JWVGqMMEXGPflRrAFD9ZmkkIkFhvE254qWtGkMxUx4 2VKUEvsKza2J7VjAI8SdkSYAuhSUMXIA1UgfFAN9gyNn87qOVFL196vERQR1fVhmyMxT 7V2LQATzn2aO9gMoY7NCfn1781wY4sQrip1XKlwgaYnMCQw88GhE5newQtWMewl6aeG8 K+CPtHqptc1Yg8O4vUhFina/4CUZCCs7sqzWq2ZzoTw4IWY8djL21szLfxtzYxdl3VJo dLhccgR/BzrcasCK5Chvk/CqK6QmeN2uSitgZw7WPg9TQpfs8wACHNfN0WswN4F0PyoK J1gA== 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=NPmVE6Z//7mdbjzZgiWeE1qLH0fiwOI7p2Z/iAYJijE=; b=tTHgjrsNxhmivOFAPSFmWlR8FXP9EfZO9jd8oypTDIakuSSZheM9J4FB1V8tnB1BdB lDkXbBDBJIaKtudFjWMn+Dbq46zVr2BXWNmCTFZCGeo9no95ZMwzZCDY1OED0w+MfFpn ofpXKh2vI6z0dbeU9XIFzBnVDyUpTTHfubCeDQVcyPOvyICL+/IU4XbcQ+9bCgsq/3Hs ZSnFbTaWjy8hFFJ18RW4sxlfUeGyG58pw8N6nH6w9yqrscqkkkGE9t9+k23+GYealPnI vzhPn+SI6Ne1MGpzkPl88VxlIuHS7NRwoC8T5KBOqkOWjJlgXvsGZ0187a+7wR+DNArl 33eA== X-Gm-Message-State: AGRZ1gJp4x82pMCz+rWE94Fw1cAb4/2r+CDVzmyahkzIQJ64gIwOlJUq KJbJfZvgRcCWu0z2LhY3dROy3uyo4DBFCm/2zBc= X-Received: by 2002:a2e:83d7:: with SMTP id s23-v6mr3436353ljh.139.1542441640429; Sat, 17 Nov 2018 00:00:40 -0800 (PST) MIME-Version: 1.0 References: <20181031111444.3472-1-malat@debian.org> In-Reply-To: From: Miguel Ojeda Date: Sat, 17 Nov 2018 09:00:29 +0100 Message-ID: Subject: Re: [PATCH] remove old GCC version implementation To: Masahiro Yamada Cc: malat@debian.org, Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel 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, Oct 31, 2018 at 5:14 PM Masahiro Yamada wrote: > > On Wed, Oct 31, 2018 at 8:28 PM Miguel Ojeda > wrote: > > > > By the way, is it possible that scripts/ and similar stuff uses > > directly include/linux/compiler_attributes.h (whenever it hits > > mainline, see https://github.com/ojeda/linux/blob/compiler-attributes/include/linux/compiler_attributes.h > > )? It is a header that does not depend on anything, so it could easily > > be shared; and would avoid having to maintain two sets of attributes. > > Let me know, I can take a look at it if you think it is a good idea. Landed a couple of weeks ago. > No. > I want to share a header file between kernel and host-tools > only when we need to do so. > > In this case, it is wrong to use the linker magic for the host tool > if you look at the so ugly #if defined(__MACH__) part. Do you mean this line? #define SECTION(name) __attribute__((section("__TEXT, " #name))) I would say having exceptions is fine, i.e. the idea was to reduce "duplicated" definitions. In this case, the #define has a different name and style, so I would say it is clear. Anyway, if the policy is not sharing headers at all, that is fine! Cheers, Miguel