RE: [PATCH] seq_buf: avoid type mismatch for seq_buf_init

From: Rojewski, Cezary
Date: Mon Oct 26 2020 - 12:37:47 EST


On 2020-10-26 5:10 PM, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> Building with W=2 prints a number of warnings for one function that
> has a pointer type mismatch:
>
> linux/seq_buf.h: In function 'seq_buf_init':
> linux/seq_buf.h:35:12: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign]
>
> Change the type in the function prototype according to the type in
> the structure.
>
> Fixes: 9a7777935c34 ("tracing: Convert seq_buf fields to be like seq_file fields")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
> ---

Reviewed-by: Cezary Rojewski <cezary.rojewski@xxxxxxxxx>

Thanks,
Czarek