Re: [PATCH v2] qmi: call-forwarding: fallback to basic forwarding info if no extended

Denis Kenzior <[email protected]> Wed, 11 Dec 2024 09:56:30 -0600
Newsgroups dev.linux.lists.ofono
Message-ID <[email protected]>
Hi Ivo,

 >
> void * arithmetic, UB last time I checked, unless you are absolutely sure 

Yes, it is UB in a strict sense.  However, on Linux, the only two compilers we 
care about (or likely will care about for a very long time) are pretty clear in 
void pointer arithmetic semantics.

If the Linux kernel does it and can rely on this behavior, so can we.

> compilers will do the right thing we'd better keep it like that. p is used all 
> over the place as const uint8_t *, I am not sure there is elegant way of 
> converting it to void * without casts.

Regards,
-Denis