socfpga: Mark socfpga_fpga_add() as static inline in the non-FPGA case
Unless we mark the function as 'static inline' it may end up being non-inlined by the compiled and result in duplicate functions. Cc: Marek Vasut <marex@denx.de> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Cc: Ley Foon Tan <ley.foon.tan@intel.com> Signed-off-by: Tom Rini <trini@konsulko.com> Acked-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
897860ebc1
commit
6ca300aec0
@ -20,7 +20,7 @@ extern struct bsel bsel_str[];
|
||||
#ifdef CONFIG_FPGA
|
||||
void socfpga_fpga_add(void *fpga_desc);
|
||||
#else
|
||||
inline void socfpga_fpga_add(void *fpga_desc) {}
|
||||
static inline void socfpga_fpga_add(void *fpga_desc) {}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_TARGET_SOCFPGA_GEN5
|
||||
|
Loading…
Reference in New Issue
Block a user