diff options
author | 2013-03-01 15:57:00 +0000 | |
---|---|---|
committer | 2013-03-02 16:31:21 +0000 | |
commit | 5a4d729139b4e94f670288a3505657311f95c886 (patch) | |
tree | e7d24545aea6cfe82b97fcf2e9d113d75f3f9059 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | iio/imu: inv_mpu6050 depends on IIO_BUFFER (diff) | |
download | linux-dev-5a4d729139b4e94f670288a3505657311f95c886.tar.xz linux-dev-5a4d729139b4e94f670288a3505657311f95c886.zip |
iio: Fix build error seen if IIO_TRIGGER is defined but IIO_BUFFER is not
If CONFIG_IIO_TRIGGER is defined but CONFIG_IIO_BUFFER is not, the following
build error is seen.
drivers/iio/common/st_sensors/st_sensors_trigger.c:21:5: error:
redefinition of ‘st_sensors_allocate_trigger’
In file included from
drivers/iio/common/st_sensors/st_sensors_trigger.c:18:0:
include/linux/iio/common/st_sensors.h:239:19: note: previous
definition of ‘st_sensors_allocate_trigger’ was here
drivers/iio/common/st_sensors/st_sensors_trigger.c:65:6: error:
redefinition of ‘st_sensors_deallocate_trigger’
In file included from
drivers/iio/common/st_sensors/st_sensors_trigger.c:18:0:
include/linux/iio/common/st_sensors.h:244:20: note: previous
definition of ‘st_sensors_deallocate_trigger’ was here
This occurs because st_sensors_deallocate_trigger is built if CONFIG_IIO_TRIGGER
is defined, but the dummy function is compiled if CONFIG_IIO_BUFFER is defined.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions