From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 From: Hui Zhu Date: Sat, 26 Nov 2011 16:07:18 +0800 Message-ID: Subject: [PATCH] fix build error of function iio_event_getfd To: Jonathan Cameron , Greg Kroah-Hartman , Michael Hennerich , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=windows-1252 List-ID: Got a build error: CC [M] drivers/staging/iio/industrialio-core.o /home/teawater/kernel2/linux/drivers/staging/iio/industrialio-core.c: In function =91iio_event_getfd=92: /home/teawater/kernel2/linux/drivers/staging/iio/industrialio-core.c:262:32= : error: =91ev_int=92 undeclared (first use in this function) /home/teawater/kernel2/linux/drivers/staging/iio/industrialio-core.c:262:32= : note: each undeclared identifier is reported only once for each function it appears in Not sure it is fixed or not. Post a patch for it. Signed-off-by: Hui Zhu --- drivers/staging/iio/industrialio-core.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/staging/iio/industrialio-core.c +++ b/drivers/staging/iio/industrialio-core.c @@ -243,6 +243,7 @@ static const struct file_operations iio_ static int iio_event_getfd(struct iio_dev *indio_dev) { int fd; + struct iio_event_interface *ev_int =3D indio_dev->event_interface; if (indio_dev->event_interface =3D=3D NULL) return -ENODEV;