coreboot/util/cbmem
Yu-Ping Wu 54016e273e util/cbmem/sysfs_drv: Fix incompatible pointer type for 'size'
Fix the following error for armv7a-cros-linux-gnueabihf-clang.

sysfs_drv.c:247:49: error: incompatible pointer types passing 'uint64_t *' (aka
      'unsigned long long *') to parameter of type 'size_t *'
      (aka 'unsigned int *') [-Werror,-Wincompatible-pointer-types]
  247 |                 if (!cbmem_sysfs_probe_cbmem_entry(id, &addr, &size))
      |                                                               ^~~~~
sysfs_drv.c:99:84: note: passing argument to parameter 'size_out' here
   99 |   ...id, uint64_t *addr_out, size_t *size_out)
      |                                      ^
1 error generated.

BUG=b:434971585
TEST=none
BRANCH=none

Change-Id: I5e2be25d57c5e69501564b6e8b6d880ec046bc3b
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/88605
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-07-30 07:55:11 +00:00
..
.gitignore .gitignore: Ignore .test/.dependencies globally 2020-10-31 18:21:36 +00:00
cbmem.c util/cbmem: Add support for CBMEM in sysfs 2025-07-28 14:31:00 +00:00
cbmem_drv.c util/cbmem: Add support for CBMEM in sysfs 2025-07-28 14:31:00 +00:00
cbmem_util.h util/cbmem: Add support for CBMEM in sysfs 2025-07-28 14:31:00 +00:00
description.md util/cbmem: Improve utility description 2019-03-01 10:00:46 +00:00
devmem_drv.c util/cbmem: Extract devmem and common code to separate files 2025-07-22 16:28:04 +00:00
Makefile util/cbmem: Add support for CBMEM in sysfs 2025-07-28 14:31:00 +00:00
sysfs_drv.c util/cbmem/sysfs_drv: Fix incompatible pointer type for 'size' 2025-07-30 07:55:11 +00:00