Re: Clarifying confusion of our variable placement rules caused by cleanup.h

"H. Peter Anvin" <[email protected]>
Newsgroups dev.linux.lists.ksummit,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On 2025-11-18 10:38, Linus Torvalds wrote:
> 
> Now, we currently don't use __auto_type very much outside of macros
> (and there we often use "typeof(x)" instead for historical compiler
> reasons), but I suspect we probably should.  There's a patch floating
> around that makes it more convenient with a
> 
>    #define auto __auto_type
> 
> because the historical C 'auto' keyword has been so completely and
> utterly useless.
> 

Indeed, and this matches C++ and C23.

The only thing about it was that it got to be fuzzy the best way to upstream it.

Do you want me to send you the patchset during the merge window?

	-hpa
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.