diff --git a/arch/sim/src/up_devconsole.c b/arch/sim/src/up_devconsole.c index 58fa21e3b2..89eb33c33e 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 98c7f2991d..8e36bcb82e 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 72e3fdd646..3d21634ee1 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 8b776da195..d1f02ca9de 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 }; /****************************************************************************