Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp6272933imd; Wed, 31 Oct 2018 09:15:30 -0700 (PDT) X-Google-Smtp-Source: AJdET5fUQHelsFsNplv+roAjYD/jcIO9qefYQFT8LsKnGFlsWXLbdp6cIplquq9g9L3q0ooy89qF X-Received: by 2002:a62:4dc4:: with SMTP id a187-v6mr4082667pfb.92.1541002530244; Wed, 31 Oct 2018 09:15:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541002530; cv=none; d=google.com; s=arc-20160816; b=cbkSUua4ZtjHfYCHVXmvGk2GlptmEuRIUaO8IHSjWuAVwbn+UW8v3p4JELc7vENmj2 pOtN8OjXzScrjrVlIXTIv2tIUQHF/dgioF1w3zsnCxtnOndXtmoMgvXQRbuiKFpb7SB0 +21n7kMjavpnMFjiJnvkz0iGJoA2A6ZIpqdWv3oaJfn207NZncHHVp0/eHxoS8lxiYk5 Np7mR16My9GrrXubTsFN+jBISxyr4mS5S94pLyRT2Di8nipl86bTa8z69Oeew/DAPztu V3tez4TNTIEDiX0Cfzh508s7rZli0uNjepcrXWl5l6J0lf0jLYskJSOZrG7siC7E8hHZ fRPQ== 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:dkim-filter; bh=UmiL7c3gvjsh+ptKZvtUrHKvMJqxCMFxSF/Va5BpSJ8=; b=iKG1Yt9tXo/sYXBuMNTuXX1L0lXpRoYqtDCGTpqzvWCSHznNsDUK2dlvR63FHIlIV0 600kts8cMgMhB1W7ENkyUkCS1xaluW9LiI2fwVAMI0jTNHDpurpf9/ZDVni8ov6dub+G +mcy35VjmshXKJtu2nHyglMFVqaltq0Q60ZKMltZtKffjjG+fc+QptdEZGzYTYOzH9b8 0nYZVHxunl3fYJjUWNZpkMOTGDoMuVO6vOAKt+iLOpyuYjbka3YmARkgFY6/Ny7fYmev dfGMYraqrgYcrdxlc8XpnyaVm/DgeiugJi3Y5YdaWp0KqeJc05V0J8IXxfOtglorwoya RtQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=uCyA7S6A; 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 e7-v6si28085892pgn.82.2018.10.31.09.15.13; Wed, 31 Oct 2018 09:15:30 -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=@nifty.com header.s=dec2015msa header.b=uCyA7S6A; 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 S1729753AbeKABMs (ORCPT + 99 others); Wed, 31 Oct 2018 21:12:48 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:65062 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728128AbeKABMs (ORCPT ); Wed, 31 Oct 2018 21:12:48 -0400 Received: from mail-ua1-f44.google.com (mail-ua1-f44.google.com [209.85.222.44]) (authenticated) by conssluserg-01.nifty.com with ESMTP id w9VGDutl015882; Thu, 1 Nov 2018 01:13:57 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com w9VGDutl015882 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1541002437; bh=UmiL7c3gvjsh+ptKZvtUrHKvMJqxCMFxSF/Va5BpSJ8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=uCyA7S6AxTyetnUb+U29iAmRmJ59QyaRUgw+ven6YcIvExC+FMURclohruCp3LpMe huxoN3BGPmFFiq90tAd5JPLzi5H2gUmkoUcI6o6l1teTvPeusQfm10ctxwZ+RBr2ko WKsuRlyRnWBV7TGa3Sm4DTQTGr4V83FRO99QaE8AjpMQyI4hQfGhZWDeEnEKou7625 /+BMhwxlzb6tWqDB0ib24r4jdtFdGG/cp9mQ45tLQtUfFc3QaRSaaD3Vm99ot9md2k V1wYe/QaZpCn74o/bctrHhMOmFhTJp5dr+dRaAu6cz1vtqPJ8O4xPX5KP2i+0PoKGf ASB8d8vVUP3zA== X-Nifty-SrcIP: [209.85.222.44] Received: by mail-ua1-f44.google.com with SMTP id g10so6115448uak.5; Wed, 31 Oct 2018 09:13:57 -0700 (PDT) X-Gm-Message-State: AGRZ1gLaGYk4lvmCbvBApmPcSnQ9s+YxYw2ElBAtdGDV0MPzDHuRM1P4 ouxe+R31sBxQOz4Rll1yv+Q5NCo3FiOQdPGwap8= X-Received: by 2002:ab0:5444:: with SMTP id o4mr1683275uaa.55.1541002435855; Wed, 31 Oct 2018 09:13:55 -0700 (PDT) MIME-Version: 1.0 References: <20181031111444.3472-1-malat@debian.org> In-Reply-To: From: Masahiro Yamada Date: Thu, 1 Nov 2018 01:13:19 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] remove old GCC version implementation To: Miguel Ojeda Cc: Mathieu Malaterre , Michal Marek , Linux Kbuild mailing list , Linux Kernel 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 On Wed, Oct 31, 2018 at 8:28 PM Miguel Ojeda wrote: > > On Wed, Oct 31, 2018 at 12:18 PM Mathieu Malaterre wrote: > > > > GCC 4.6 is the minimum supported now. > > > > Signed-off-by: Mathieu Malaterre > > --- > > scripts/mod/file2alias.c | 6 +----- > > 1 file changed, 1 insertion(+), 5 deletions(-) > > > > diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c > > index 28a61665bb9c..4b59564d4706 100644 > > --- a/scripts/mod/file2alias.c > > +++ b/scripts/mod/file2alias.c > > @@ -83,11 +83,7 @@ extern struct devtable *__start___devtable[], *__stop___devtable[]; > > #endif /* __MACH__ */ > > > > #if !defined(__used) > > -# if __GNUC__ == 3 && __GNUC_MINOR__ < 3 > > -# define __used __attribute__((__unused__)) > > -# else > > -# define __used __attribute__((__used__)) > > -# endif > > +#define __used __attribute__((__used__)) > > #endif > > > > Acked-by: Miguel Ojeda > > 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. 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. > Cheers, > Miguel -- Best Regards Masahiro Yamada