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 <ma...@denx.de> Cc: Simon Goldschmidt <simon.k.r.goldschm...@gmail.com> Cc: Ley Foon Tan <ley.foon....@intel.com> Signed-off-by: Tom Rini <tr...@konsulko.com> --- arch/arm/mach-socfpga/include/mach/misc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-socfpga/include/mach/misc.h b/arch/arm/mach-socfpga/include/mach/misc.h index f6de1ccb4a01..a85c5aeef955 100644 --- a/arch/arm/mach-socfpga/include/mach/misc.h +++ b/arch/arm/mach-socfpga/include/mach/misc.h @@ -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 -- 2.17.1