mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
bdinfo: Drop unnecessary inline on functions
This serves no purpose since the compiler will inline the functions automatically. Drop use of inline in this file. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
14
cmd/bdinfo.c
14
cmd/bdinfo.c
@@ -75,12 +75,12 @@ static void print_mhz(const char *name, unsigned long hz)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static inline void print_bi_boot_params(const bd_t *bd)
|
static void print_bi_boot_params(const bd_t *bd)
|
||||||
{
|
{
|
||||||
print_num("boot_params", (ulong)bd->bi_boot_params);
|
print_num("boot_params", (ulong)bd->bi_boot_params);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void print_bi_mem(const bd_t *bd)
|
static void print_bi_mem(const bd_t *bd)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_SH)
|
#if defined(CONFIG_SH)
|
||||||
print_num("mem start ", (ulong)bd->bi_memstart);
|
print_num("mem start ", (ulong)bd->bi_memstart);
|
||||||
@@ -94,7 +94,7 @@ static inline void print_bi_mem(const bd_t *bd)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void print_bi_dram(const bd_t *bd)
|
static void print_bi_dram(const bd_t *bd)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_NR_DRAM_BANKS
|
#ifdef CONFIG_NR_DRAM_BANKS
|
||||||
int i;
|
int i;
|
||||||
@@ -109,14 +109,14 @@ static inline void print_bi_dram(const bd_t *bd)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void print_bi_flash(const bd_t *bd)
|
static void print_bi_flash(const bd_t *bd)
|
||||||
{
|
{
|
||||||
print_num("flashstart", (ulong)bd->bi_flashstart);
|
print_num("flashstart", (ulong)bd->bi_flashstart);
|
||||||
print_num("flashsize", (ulong)bd->bi_flashsize);
|
print_num("flashsize", (ulong)bd->bi_flashsize);
|
||||||
print_num("flashoffset", (ulong)bd->bi_flashoffset);
|
print_num("flashoffset", (ulong)bd->bi_flashoffset);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void print_eth_ip_addr(void)
|
static void print_eth_ip_addr(void)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_CMD_NET)
|
#if defined(CONFIG_CMD_NET)
|
||||||
print_eth(0);
|
print_eth(0);
|
||||||
@@ -139,7 +139,7 @@ static inline void print_eth_ip_addr(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void print_baudrate(void)
|
static void print_baudrate(void)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_PPC)
|
#if defined(CONFIG_PPC)
|
||||||
printf("baudrate = %6u bps\n", gd->baudrate);
|
printf("baudrate = %6u bps\n", gd->baudrate);
|
||||||
@@ -148,7 +148,7 @@ static inline void print_baudrate(void)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void print_std_bdinfo(const bd_t *bd)
|
static void print_std_bdinfo(const bd_t *bd)
|
||||||
{
|
{
|
||||||
print_bi_boot_params(bd);
|
print_bi_boot_params(bd);
|
||||||
print_bi_mem(bd);
|
print_bi_mem(bd);
|
||||||
|
Reference in New Issue
Block a user