linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix build error of function iio_event_getfd
@ 2011-11-26  8:07 Hui Zhu
  2011-11-26  8:52 ` Cong Wang
  2011-11-26  9:19 ` Jonathan Cameron
  0 siblings, 2 replies; 5+ messages in thread
From: Hui Zhu @ 2011-11-26  8:07 UTC (permalink / raw)
  To: Jonathan Cameron, Greg Kroah-Hartman, Michael Hennerich,
	linux-iio, devel, linux-kernel

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 <teawater@gmail.com>
---
 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;

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-11-27  7:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-26  8:07 [PATCH] fix build error of function iio_event_getfd Hui Zhu
2011-11-26  8:52 ` Cong Wang
2011-11-26  9:19 ` Jonathan Cameron
2011-11-27  0:54   ` Greg KH
2011-11-27  7:01   ` Hui Zhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).