[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANiq72mj_iHvxqAEqhGoLT61Tc04-zN6f7Gv1jyNeb6d0R2LGw@mail.gmail.com>
Date: Wed, 31 Oct 2018 12:28:19 +0100
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: malat@...ian.org
Cc: Masahiro Yamada <yamada.masahiro@...ionext.com>,
Michal Marek <michal.lkml@...kovi.net>,
linux-kbuild@...r.kernel.org,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] remove old GCC version implementation
On Wed, Oct 31, 2018 at 12:18 PM Mathieu Malaterre <malat@...ian.org> wrote:
>
> GCC 4.6 is the minimum supported now.
>
> Signed-off-by: Mathieu Malaterre <malat@...ian.org>
> ---
> 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 <miguel.ojeda.sandonis@...il.com>
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
Powered by blists - more mailing lists