Re: AW: [PATCH] amd64: Fix csum_partial_copy_generic()

From: Al Viro
Date: Sun Oct 22 2023 - 07:12:08 EST


On Sun, Oct 22, 2023 at 11:03:39AM +0000, David Laight wrote:

> > + return -1;
>
> If you are going to return -1 the return type should be signed.

It's a perfectly valid C to have return -1 in a function that
returns unsigned long long (or any other unsigned type, really)...