Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp5933102imd; Wed, 31 Oct 2018 04:29:15 -0700 (PDT) X-Google-Smtp-Source: AJdET5casr/7L/8YsMqZO7r3che4s5kTnQ91TlTdBiWfSV3rxfm/eBpkpZG0nOG1Emf9RZTmokyf X-Received: by 2002:a62:8915:: with SMTP id v21-v6mr3004518pfd.137.1540985355664; Wed, 31 Oct 2018 04:29:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540985355; cv=none; d=google.com; s=arc-20160816; b=yBQZOQKCQAEA/Huc2Bk9iy4PyMpo0IYT7UjwpyhSfybWhYMbGk/K5s806gddbIpqvt 2Gr+5tMgLBNH68++uU/92OtnLV/Lszgex6auiY3FirrcernvdAF9wIfrDsdrZvXZzUzx YSsvpPbn+JjmkY0sC7tKhuxa2YubFg8IgdOpBiiTClCN7Vs/pOg7VF1Ab2fXJBNOglU0 YACqAaBe5tgx7xmj+2CKeaHAl8HwMLpN4e+ao9W3iJ10iWnLCmntI8PzQcYgses6LiZu xW29S2liUy8Y/F0wABQ9ZPLfJCInXPOQ/ByMIh2RsrqCGRqze2Gk5qmIZB+D17rw/a0h OnfA== 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=o51IdstyW044OQNNFJDVwnL9cssd26e6vg+ax2xgBCw=; b=bdKQ+TTwiVhn+VDI2YGoowqIz1tzv2ipGbZpGMqfo5rqhxt2QzHkx2+su3gUmgS/LD vxRRQuCLQ7NzBsKAL/YNBZRm2T2xz3OPHIe8OVEnXAvmQHgMYrRPRvg+OehfwpTeG4ar 40b5xuD51S6kRTTYIirm352+LVpGNB01lWfe31yidgxm3B5GJ0n6FFqdq5BkAXChbJtI rFxbRbnHva2/2nSYqlh9tr5Rx6b1EXtaQkXGZ27xccpxRUWKtg3RCjw4x3jwB4WW1u9S vD1MucKUPaWIerLTZ5nbJxWSh1E0+PHT66NkFPJLbiQWmXf354sATT1jb8yWPNQQKRl+ L/xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Z+iM/21d"; 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 u5-v6si27136866pgm.268.2018.10.31.04.28.57; Wed, 31 Oct 2018 04:29:15 -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="Z+iM/21d"; 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 S1728600AbeJaU0M (ORCPT + 99 others); Wed, 31 Oct 2018 16:26:12 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:38290 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725765AbeJaU0M (ORCPT ); Wed, 31 Oct 2018 16:26:12 -0400 Received: by mail-lj1-f193.google.com with SMTP id q186-v6so1114840ljb.5; Wed, 31 Oct 2018 04:28:31 -0700 (PDT) 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=o51IdstyW044OQNNFJDVwnL9cssd26e6vg+ax2xgBCw=; b=Z+iM/21d/qh2wHREg8x/7i8Kwl7AT4WY+G75HJW5ccz9kIu8JD/G4wG7gr5PA6qpO7 kPx8CzcFlsqQBcstoJPI7dz5bgqZxM7889rYbI5n4+JFQRuJ2KHQS868pU0MiQz5tEIi +dnAAmlC5xFgDmnzO37IEstnF+sRsuuVO8FQtMWEH8q1cWozNqS+hwH1BsqiQ61G1kDI CPp0z2F7wzznK7C/Fg0xF+hnWfjVMv9wh3bPXm4G1248Lq0aKasjr2ET108ua2Oz6v+A w5qMrSWLe2TAHwJSIBXc5+OcrQcvr+7AnXxDob4n3VcO+A+5HhoVwEuaOAz7Mv/kxidn Cnpg== 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=o51IdstyW044OQNNFJDVwnL9cssd26e6vg+ax2xgBCw=; b=dSrOgZ/fRRrTRr/qnxeXY1YJlfQqELtCw7uBsw7sUne+dX2MD/R5ZtClzbx72ffJ84 0E+L316w8MLAP7d/XoKYG4iyTqKXOghr6xWtoHpF2Ke2LWh5HLNNNa4BBvuDbnql1bz3 zzTGhkHYXc3hyUY/7YIR1BcNNwq2GwQAAvHmGqylnC32CMH27OgeWrrhRQXt1agCqzWl x9DJeOkr6lDomQdka/utz6kX/VQXt3hsk6HBuI7XWIspaD9v4+QO7IGmCdVQ/Ats39E4 lpvVRG/xCEhR6+IPFH1YvYcpOUcOzZIgTmg8Bfqc9UrlGqtDIFZaEsQq2iFBshv/zLWJ sA3w== X-Gm-Message-State: AGRZ1gL5pYXX0AH2cTlQ5muCa8Nvrm7d4wVu6CFR6cNgGEzqSEMgdAKk IMqCFpWqrg/A/kIOgRLPJXZ8CequCNk5w7CtPp4= X-Received: by 2002:a2e:83d7:: with SMTP id s23-v6mr1934569ljh.139.1540985310579; Wed, 31 Oct 2018 04:28:30 -0700 (PDT) MIME-Version: 1.0 References: <20181031111444.3472-1-malat@debian.org> In-Reply-To: <20181031111444.3472-1-malat@debian.org> From: Miguel Ojeda Date: Wed, 31 Oct 2018 12:28:19 +0100 Message-ID: Subject: Re: [PATCH] remove old GCC version implementation To: malat@debian.org Cc: Masahiro Yamada , 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 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. Cheers, Miguel