diff options
| author | Tom Rini <[email protected]> | 2020-05-14 08:30:05 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2020-07-01 10:11:03 -0400 |
| commit | 6ca300aec0652661f2dd28c9976f9ecb6a338b77 (patch) | |
| tree | 467570d23c379ccdae39c153f8aca2461859ed93 | |
| parent | 897860ebc1a86506055f6225efff7888fe27d6ee (diff) | |
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 <[email protected]>
Cc: Simon Goldschmidt <[email protected]>
Cc: Ley Foon Tan <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Acked-by: Marek Vasut <[email protected]>
| -rw-r--r-- | arch/arm/mach-socfpga/include/mach/misc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-socfpga/include/mach/misc.h b/arch/arm/mach-socfpga/include/mach/misc.h index f6de1ccb4a0..a85c5aeef95 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 |
