diff --git a/arch/sim/src/up_devconsole.c b/arch/sim/src/up_devconsole.c index 58fa21e3b2e9f2bf87610b48d1cba1fbfaee085f..89eb33c33e92571b9e44460c23c827ba349d929a 100644 --- a/arch/sim/src/up_devconsole.c +++ b/arch/sim/src/up_devconsole.c @@ -84,10 +84,12 @@ static ssize_t devconsole_write(struct file *filp, const char *buffer, size_t le return up_hostwrite(buffer, len); } +#ifndef CONFIG_DISABLE_POLL static int devconsole_poll(FAR struct file *filep, FAR struct pollfd *fds) { return OK; } +#endif /**************************************************************************** * Public Functions diff --git a/drivers/bch/bchdev_driver.c b/drivers/bch/bchdev_driver.c index 98c7f2991d9d22101e2bcabd2cbea5720e9b8373..8e36bcb82e2d4bc48a5bb538a7472a49e03c1759 100644 --- a/drivers/bch/bchdev_driver.c +++ b/drivers/bch/bchdev_driver.c @@ -85,8 +85,10 @@ struct file_operations bch_fops = bch_read, /* read */ bch_write, /* write */ 0, /* seek */ - bch_ioctl, /* ioctl */ - 0 /* poll */ + bch_ioctl /* ioctl */ +#ifndef CONFIG_DISABLE_POLL + , 0 /* poll */ +#endif }; /**************************************************************************** diff --git a/drivers/can.c b/drivers/can.c index 72e3fdd6465c8018adf644393a76327d6fc2ce3c..3d21634ee1c9b82173214194c45656cc55088d28 100644 --- a/drivers/can.c +++ b/drivers/can.c @@ -88,8 +88,10 @@ struct file_operations g_canops = can_read, /* read */ can_write, /* write */ 0, /* seek */ - can_ioctl, /* ioctl */ - 0 /* poll */ + can_ioctl /* ioctl */ +#ifndef CONFIG_DISABLE_POLL + , 0 /* poll */ +#endif }; /**************************************************************************** diff --git a/drivers/lowconsole.c b/drivers/lowconsole.c index 8b776da195a89ac9da34f29cde382d86d6a8831f..d1f02ca9de7856a1f513c819851ac031e48e0b14 100755 --- a/drivers/lowconsole.c +++ b/drivers/lowconsole.c @@ -75,8 +75,10 @@ struct file_operations g_serialops = lowconsole_read, /* read */ lowconsole_write, /* write */ 0, /* seek */ - lowconsole_ioctl, /* ioctl */ - 0 /* poll */ + lowconsole_ioctl /* ioctl */ +#ifndef CONFIG_DISABLE_POLL + , 0 /* poll */ +#endif }; /****************************************************************************