From ff37de7de01411c4ee8c949e9086e311b66be3f4 Mon Sep 17 00:00:00 2001 From: mhirst Date: Mon, 19 Oct 2015 12:36:13 -0400 Subject: [PATCH] spi: Add static keyword to spi_slave_select() Adding the 'static' keyword to the inline routine spi_save_select() fixes the build error when CONFIG_COMPILER_OPT="-O0 -g" Change-Id: I5234d3d6690ccda3dbd419e13f06c2651d125167 Work-by: Mike Hirst Signed-off-by: Peter Mitsis --- include/spi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spi.h b/include/spi.h index 4664bbd481..bd58fb86b8 100644 --- a/include/spi.h +++ b/include/spi.h @@ -127,7 +127,7 @@ static inline int spi_configure(struct device *dev, * * @return DEV_OK if successful, another DEV_* code otherwise. */ -inline int spi_slave_select(struct device *dev, uint32_t slave) +static inline int spi_slave_select(struct device *dev, uint32_t slave) { struct spi_driver_api *api = (struct spi_driver_api *)dev->driver_api;