[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <16e95056-919a-47dc-3ed7-50c29d39b6ae@redhat.com>
Date: Tue, 31 Jan 2023 15:43:13 +0100
From: Thomas Huth <thuth@...hat.com>
To: Joey Gouly <joey.gouly@....com>,
Andrew Jones <andrew.jones@...ux.dev>, kvmarm@...ts.linux.dev,
kvm@...r.kernel.org
Cc: Alexandru Elisei <alexandru.elisei@....com>,
Christoffer Dall <christoffer.dall@....com>,
Fuad Tabba <tabba@...gle.com>,
Jean-Philippe Brucker <jean-philippe@...aro.org>,
Marc Zyngier <maz@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Oliver Upton <oliver.upton@...ux.dev>,
Paolo Bonzini <pbonzini@...hat.com>,
Quentin Perret <qperret@...gle.com>,
Steven Price <steven.price@....com>,
Suzuki K Poulose <suzuki.poulose@....com>,
Will Deacon <will@...nel.org>,
Zenghui Yu <yuzenghui@...wei.com>, linux-coco@...ts.linux.dev,
kvmarm@...ts.cs.columbia.edu, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [RFC kvm-unit-tests 01/27] lib/string: include stddef.h for
size_t
On 27/01/2023 12.40, Joey Gouly wrote:
> Don't implicitly rely on this header being included.
>
> Signed-off-by: Joey Gouly <joey.gouly@....com>
> ---
> lib/string.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/lib/string.h b/lib/string.h
> index b07763ea..758dca8a 100644
> --- a/lib/string.h
> +++ b/lib/string.h
> @@ -7,6 +7,8 @@
> #ifndef _STRING_H_
> #define _STRING_H_
>
> +#include <stddef.h> /* For size_t */
> +
> extern size_t strlen(const char *buf);
> extern size_t strnlen(const char *buf, size_t maxlen);
> extern char *strcat(char *dest, const char *src);
Reviewed-by: Thomas Huth <thuth@...hat.com>
Powered by blists - more mailing lists