
11 Jan
2022
11 Jan
'22
7:19 p.m.
On Mon, 10 Jan 2022 at 17:50, Heinrich Schuchardt heinrich.schuchardt@canonical.com wrote:
U-Boot define loff_t as long long. But the header /usr/include/linux/types.h may not define it. This has lead to a build error on Alpine Linux.
So let's use long long instead of loff_t for the size parameter of function os_get_filesize().
Reported-by: Milan P. Stanić mps@arvanta.net Signed-off-by: Heinrich Schuchardt heinrich.schuchardt@canonical.com
arch/sandbox/cpu/os.c | 10 ++++++++-- include/os.h | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org