socfpga: Mark socfpga_fpga_add() as static inline in the non-FPGA case
authorTom Rini <trini@konsulko.com>
Thu, 14 May 2020 12:30:05 +0000 (08:30 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 1 Jul 2020 14:11:03 +0000 (10:11 -0400)
commit6ca300aec0652661f2dd28c9976f9ecb6a338b77
tree467570d23c379ccdae39c153f8aca2461859ed93
parent897860ebc1a86506055f6225efff7888fe27d6ee
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>
arch/arm/mach-socfpga/include/mach/misc.h