[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=whvLzKeEvw3W0NTJp97jgr0qK=0WGDMgCgvdrbroWq61A@mail.gmail.com>
Date: Tue, 6 May 2025 11:22:49 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: "H. Peter Anvin" <hpa@...or.com>
Cc: Uros Bizjak <ubizjak@...il.com>, x86@...nel.org, linux-kernel@...r.kernel.org,
Thomas Gleixner <tglx@...utronix.de>, Ingo Molnar <mingo@...nel.org>, Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>
Subject: Re: [PATCH -tip 1/3] x86/asm/32: Modernize memset() functions
On Tue, 6 May 2025 at 10:55, H. Peter Anvin <hpa@...or.com> wrote:
>
> Can anyone think of a reason why we don't do:
>
> #define auto __auto_type
>
> ... and just start using the modern keyword right away?
Yeah, make it so. The original 'auto' was useless as you say, and
afaik we've never used it in the kernel.
And the one advantage of it being that historically useless keyword is
that we can't have variables called 'auto' anywhere either.
So it should be a safe thing to do.
Linus
Powered by blists - more mailing lists