Re: [PATCH v2 1/1] selftests: net: af_unix: convert param to const char* in __recvpair() to fix warning
From: Kuniyuki Iwashima
Date: Tue Aug 13 2024 - 15:23:11 EST
From: Mirsad Todorovac <mtodorovac69@xxxxxxxxx>
Date: Tue, 13 Aug 2024 18:20:06 +0200
> GCC 13.2.0 reported warning about (void *) being used as a param where (char *)
> is expected:
[...]
> As Simon suggested, all calls to __recvpair() have char * as expected_buf param, so
> it is safe to change param type from (const void *) to (const char *), which silences
> the warning.
>
> Fixes: d098d77232c37 ("selftest: af_unix: Add msg_oob.c.")
> Reported-by: Mirsad Todorovac <mtodorovac69@xxxxxxxxx>
Usually Reported-by is not needed if it's same with SOB.
and the same feedback to v1.
Abhinav posted a fix earlier.
https://lore.kernel.org/netdev/20240812191122.1092806-1-jain.abhinav177@xxxxxxxxx/
Thanks