Unsuprisingly this symbol isn't defined on big endian systems. Signed-off-by: Jonathan Cameron <jic23@xxxxxxxxx> Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> --- Sorry about this one. Stupid mistake and I didn't have a cross compiler for anything big endian set up. Now I do. This time build tested on arm, x86-64 and 32bit powerpc. drivers/staging/iio/industrialio-buffer.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/staging/iio/industrialio-buffer.c b/drivers/staging/iio/industrialio-buffer.c index 4ce101a..60929ff 100644 --- a/drivers/staging/iio/industrialio-buffer.c +++ b/drivers/staging/iio/industrialio-buffer.c @@ -104,10 +104,11 @@ static ssize_t iio_show_fixed_type(struct device *dev, u8 type = this_attr->c->scan_type.endianness; if (type == IIO_CPU) { - if (__LITTLE_ENDIAN) - type = IIO_LE; - else - type = IIO_BE; +#ifdef __LITTLE_ENDIAN + type = IIO_LE; +#else + type = IIO_BE; +#endif } return sprintf(buf, "%s:%c%d/%d>>%u\n", iio_endian_prefix[type], -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html