Thread (19 messages) 19 messages, 5 authors, 2018-03-16

Re: [PATCH v4 1/2] kernel.h: Introduce const_max() for VLA removal

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2018-03-15 23:46:57
Also in: lkml, netdev

On Thu, Mar 15, 2018 at 4:41 PM, Kees Cook [off-list ref] wrote:
I much prefer explicit typing, but both you and Rasmus mentioned
wanting the int/sizeof_t mixing.
Well, the explicit typing allows that mixing, in that you can just
have "const_max_t(5,sizeof(x))"

So I'm ok with that.

What I'm *not* so much ok with is "const_max(5,sizeof(x))" erroring
out, or silently causing insane behavior due to hidden subtle type
casts..

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