From 906a9dbbcba85e8b02414c960c75103cc4755102 Mon Sep 17 00:00:00 2001 From: Jean-Jacques Hiblot Date: Fri, 15 Sep 2017 12:57:25 +0200 Subject: fit: use 'const' for the input of fdt_offset() and locate_dtb_in_fit() Those 2 functions don't modify their input, we can mark it const. This prevents compilation warnings when they are provided const input. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- common/boot_fit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/boot_fit.c') diff --git a/common/boot_fit.c b/common/boot_fit.c index 0a723150b5..ce4293184a 100644 --- a/common/boot_fit.c +++ b/common/boot_fit.c @@ -13,7 +13,7 @@ #include #include -int fdt_offset(void *fit) +static int fdt_offset(const void *fit) { int images, node, fdt_len, fdt_node, fdt_offset; const char *fdt_name; @@ -55,7 +55,7 @@ int fdt_offset(void *fit) return fdt_offset; } -void *locate_dtb_in_fit(void *fit) +void *locate_dtb_in_fit(const void *fit) { struct image_header *header; int size; -- cgit v1.2.3