Thread (14 messages) 14 messages, 5 authors, 2024-12-13

Re: [PATCH v3 2/6] compiler.h: Introduce TYPEOF_UNQUAL() macro

From: Uros Bizjak <hidden>
Date: 2024-12-09 13:01:23
Also in: linux-arch, linux-bcachefs, linux-mm, lkml

On Mon, Dec 9, 2024 at 12:30 PM Peter Zijlstra [off-list ref] wrote:
On Sun, Dec 08, 2024 at 09:45:17PM +0100, Uros Bizjak wrote:
quoted
Define TYPEOF_UNQUAL() to use __typeof_unqual__() as typeof operator
when available, to return unqualified type of the expression.

Current version of sparse doesn't know anything about __typeof_unqual__()
operator. Avoid the usage of __typeof_unqual__() when sparse checking
is active to prevent sparse errors with unknowing keyword.
Ooooh, new toys.

I suppose __unqual_scalar_typeof() wants to be using this when
available?
Yes, the attached patch compiles and boots OK.

Uros.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help