linguini1 opened a new issue, #16699:
URL: https://github.com/apache/nuttx/issues/16699

   ### Description / Steps to reproduce the issue
   
   The L86 driver configuration option `L86_XXX_FIX_INT` depends on termios 
support. There is no default value set for the fix interval unless termios 
support is enabled, which is optional for this driver. This prevents 
compilation.
   
   ```console
   sensors/l86xxx_uorb.c:77:5: warning: "CONFIG_L86_XXX_FIX_INT" is not 
defined, evaluates to 0 [-Wundef]
      77 | #if CONFIG_L86_XXX_FIX_INT < 100 || CONFIG_L86_XXX_FIX_INT > 10000
         |     ^~~~~~~~~~~~~~~~~~~~~~
   sensors/l86xxx_uorb.c:78:4: error: #error "Invalid fix interval rate. Values 
must be between 100 and 10000"
      78 |   #error "Invalid fix interval rate. Values must be between 100 and 
10000"
         |    ^~~~~
   CC:  sched/sched_setparam.c In file included from sensors/l86xxx_uorb.c:33:
   sensors/l86xxx_uorb.c: In function 'l86xxx_register':
   sensors/l86xxx_uorb.c:821:11: error: 'CONFIG_L86_XXX_FIX_INT' undeclared 
(first use in this function); did you mean 'CONFIG_L86_XXX_BAUD'?
     821 |           CONFIG_L86_XXX_FIX_INT);
         |           ^~~~~~~~~~~~~~~~~~~~~~
   sensors/l86xxx_uorb.c:821:11: note: each undeclared identifier is reported 
only once for each function it appears in
   sensors/l86xxx_uorb.c: At top level:
   sensors/l86xxx_uorb.c:116:12: warning: 'set_baud_rate' used but never defined
     116 | static int set_baud_rate(l86xxx_dev_s *dev, int br);
         |            ^~~~~~~~~~~~~
   CC:  sched/sched_getparam.c make[1]: *** [Makefile:109: l86xxx_uorb.o] Error 
1
   ```
   
   ### On which OS does this issue occur?
   
   [OS: Linux]
   
   ### What is the version of your OS?
   
   Linux
   
   ### NuttX Version
   
   master
   
   ### Issue Architecture
   
   [Arch: all]
   
   ### Issue Area
   
   [Area: Drivers], [Area: Kconfig]
   
   ### Host information
   
   _No response_
   
   ### Verification
   
   - [x] I have verified before submitting the report.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to