diff options
| author | Chanho Park <[email protected]> | 2023-08-31 16:52:47 +0900 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2023-09-21 13:20:11 +0200 |
| commit | 55e281049c49ac779b1c533abde5c3c2ffa0cc8e (patch) | |
| tree | a099d2cff2e01975dd028901c2ab4a1c2cd6d3f8 /include/linux/linux_string.h | |
| parent | 12d2da980ec4c775c115f1e141167525364e854b (diff) | |
fpga: define dummy fpga_load function for debug build
This fixes below build error when CC_OPTIMIZE_FOR_DEBUG is enabled and
CONFIG_FPGA or CONFIG_SPL_FPGA are not enabled.
When CC_OPTIMIZE_FOR_DEBUG is enabled, unused code will not be optimized
out. Hence, fpga_load function must have a dummy implementation to avoid
the build error.
../common/spl/spl_fit.c:591: undefined reference to `fpga_load'
collect2: error: ld returned 1 exit status
Signed-off-by: Chanho Park <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michal Simek <[email protected]>
Diffstat (limited to 'include/linux/linux_string.h')
0 files changed, 0 insertions, 0 deletions
