From: Tom Rini Date: Thu, 14 May 2020 12:30:05 +0000 (-0400) Subject: socfpga: Mark socfpga_fpga_add() as static inline in the non-FPGA case X-Git-Tag: v2020.10~139^2~1^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ca300aec0652661f2dd28c9976f9ecb6a338b77;p=platform%2Fkernel%2Fu-boot.git 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 Cc: Simon Goldschmidt Cc: Ley Foon Tan Signed-off-by: Tom Rini Acked-by: Marek Vasut --- diff --git a/arch/arm/mach-socfpga/include/mach/misc.h b/arch/arm/mach-socfpga/include/mach/misc.h index f6de1cc..a85c5ae 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