mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 12:56:00 +01:00
cbfs: Move declarations above functions
At present this file has a function at the top, above declarations. This is normally avoided, so fix it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
72b2465c6b
commit
fc7b9e16a0
@ -9,6 +9,11 @@
|
|||||||
#include <asm/byteorder.h>
|
#include <asm/byteorder.h>
|
||||||
|
|
||||||
enum cbfs_result file_cbfs_result;
|
enum cbfs_result file_cbfs_result;
|
||||||
|
static const u32 good_magic = 0x4f524243;
|
||||||
|
static const u8 good_file_magic[] = "LARCHIVE";
|
||||||
|
static int initialized;
|
||||||
|
static struct cbfs_header cbfs_header;
|
||||||
|
static struct cbfs_cachenode *file_cache;
|
||||||
|
|
||||||
const char *file_cbfs_error(void)
|
const char *file_cbfs_error(void)
|
||||||
{
|
{
|
||||||
@ -28,15 +33,6 @@ const char *file_cbfs_error(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static const u32 good_magic = 0x4f524243;
|
|
||||||
static const u8 good_file_magic[] = "LARCHIVE";
|
|
||||||
|
|
||||||
|
|
||||||
static int initialized;
|
|
||||||
static struct cbfs_header cbfs_header;
|
|
||||||
static struct cbfs_cachenode *file_cache;
|
|
||||||
|
|
||||||
/* Do endian conversion on the CBFS header structure. */
|
/* Do endian conversion on the CBFS header structure. */
|
||||||
static void swap_header(struct cbfs_header *dest, struct cbfs_header *src)
|
static void swap_header(struct cbfs_header *dest, struct cbfs_header *src)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user