Skip to contentSkip to conversation

staging: iio: fix compile error

PATCH In review Arnd Hannemann 3 participants 3 messages Nov 24, 2011 – Nov 25, 2011

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: iio: fix compile error

Commit b46413367961c2e8bd827e067a231be982aaeee2 introduced the following compile error:

CC drivers/staging/iio/industrialio-core.o
linux-2.6/drivers/staging/iio/industrialio-core.c: In function 'iio_event_getfd':
linux-2.6/drivers/staging/iio/industrialio-core.c:262:32: error: 'ev_int' undeclared (first use in this function) linux-2.6/drivers/staging/iio/industrialio-core.c:262:32: note: each undeclared identifier is reported only once for each function it appears in

This patch fixes that.

---
 drivers/staging/iio/industrialio-core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/iio/industrialio-core.c +1 -0
index 2656409..a5b4a1f 100644
@@ -243,6 +243,7 @@ static const struct file_operations iio_event_chrdev_fileops = {
 static int iio_event_getfd(struct iio_dev *indio_dev)
 {
 	int fd;
+	struct iio_event_interface *ev_int = indio_dev->event_interface;
 
 	if (indio_dev->event_interface == NULL)
 		return -ENODEV;
Signature · 1 line
1.7.5.4
#1 lore raw

Thanks though this is fix number 4 I think. One will hit Linux next today and Greg has one to push out to Linus.

Quoted 40 lines · Arnd Hannemann

Commit b46413367961c2e8bd827e067a231be982aaeee2 introduced the following compile error:

CC drivers/staging/iio/industrialio-core.o
linux-2.6/drivers/staging/iio/industrialio-core.c: In function 'iio_event_getfd':
linux-2.6/drivers/staging/iio/industrialio-core.c:262:32: error:
'ev_int' undeclared (first use in this function) linux-2.6/drivers/staging/iio/industrialio-core.c:262:32: note: each undeclared identifier is reported only once for each function it appears in

This patch fixes that.

---
drivers/staging/iio/industrialio-core.c | 1 +

1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/iio/industrialio-core.c +1 -0
index 2656409..a5b4a1f 100644
@@ -243,6 +243,7 @@ static const struct file_operations
 iio_event_chrdev_fileops = {
 static int iio_event_getfd(struct iio_dev *indio_dev)
 {
 	int fd;
+	struct iio_event_interface *ev_int = indio_dev->event_interface;
 
 	if (indio_dev->event_interface == NULL)
		return -ENODEV;
Signature · 6 lines
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Sent from my Android phone 
with K-9 Mail. Please excuse my brevity.
Acked-by on v1 1/1
#2 lore raw
In reply to Arnd Hannemann
Quoted 8 lines · Arnd Hannemann

Commit b46413367961c2e8bd827e067a231be982aaeee2 introduced the following compile error:

CC drivers/staging/iio/industrialio-core.o
linux-2.6/drivers/staging/iio/industrialio-core.c: In function 'iio_event_getfd':
linux-2.6/drivers/staging/iio/industrialio-core.c:262:32: error: 'ev_int' undeclared (first use in this function) linux-2.6/drivers/staging/iio/industrialio-core.c:262:32: note: each undeclared identifier is reported only once for each function it appears in

This patch fixes that.

Arrgh... My fault, sorry. Might be worth using the same local variable for setting the bit as well...

Quoted 20 lines
drivers/staging/iio/industrialio-core.c +1 -0
index 2656409..a5b4a1f 100644
@@ -243,6 +243,7 @@ static const struct file_operations iio_event_chrdev_fileops = {
 static int iio_event_getfd(struct iio_dev *indio_dev)
 {
 	int fd;
+	struct iio_event_interface *ev_int = indio_dev->event_interface;
 
 	if (indio_dev->event_interface == NULL)
 		return -ENODEV;
Signature · 7 lines
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/