|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] lib: make memchr_inv() compliant with Misra rule 11.8
On 11/3/26 13:24, Jan Beulich wrote: Neither the sole present caller nor the two ones pending (in the AMX/ACE series on x86) require the casting away of constness. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- a/xen/include/xen/string.h +++ b/xen/include/xen/string.h @@ -33,7 +33,7 @@ void *memcpy(void *dest, const void *src void *memmove(void *dest, const void *src, size_t n); int memcmp(const void *cs, const void *ct, size_t count); void *memchr(const void *s, int c, size_t n); -void *memchr_inv(const void *s, int c, size_t n); +const void *memchr_inv(const void *s, int c, size_t n);#include <asm/string.h> --- a/xen/lib/memchr_inv.c Reviewed-by: Dmytro Prokopchuk <dmytro_prokopchuk1@xxxxxxxx> BR, Dmytro.
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |