JianyuWang0623 opened a new pull request, #13540:
URL: https://github.com/apache/nuttx/pull/13540

   ## Summary
   New member added to `struct sensor_ops_s`, and type changed, but not update 
all existed code, for details, please see "Related change" below.
   - Error 1:
   ```
     1153  Building NuttX...
     1154Error: sensors/bme680_uorb.c:428:3: error: initialization of 'int 
(*)(struct sensor_lowerhalf_s *, struct file *, long unsigned int)' from 
incompatible pointer type 'int (*)(struct sensor_lowerhalf_s *, struct file *, 
int,  long unsigned int)' [-Werror=incompatible-pointer-types]
     1155  428 |   bme680_control    /* control */
     1156      |   ^~~~~~~~~~~~~~
   ```
   - Error 2:
   ```
         Error: sensors/ms56xx_uorb.c:145:20: error: initialization of 'int 
(*)(struct sensor_lowerhalf_s *, struct file *, uint32_t *)' {aka 'int 
(*)(struct sensor_lowerhalf_s *, struct file *, unsigned int *)'} from 
incompatible pointer type 'int (*)(struct sensor_lowerhalf_s *, struct file *, 
long unsigned int *)' [-Werror=incompatible-pointer-types]
           145 |   .set_interval  = ms56xx_set_interval,
               |                    ^~~~~~~~~~~~~~~~~~~
         sensors/ms56xx_uorb.c:145:20: note: (near initialization for 
'g_sensor_ops.set_interval')
         cc1: all warnings being treated as errors
   ```
   - Related change:
     -   .flush    : 403469336f27568e64a04bbab8c9a1bb68e61f75
     -  .get_info : 703bb7e7b3a1207951bf4f10dfab34c263c18fd9
     - unsigned log => uint32_t : b17c074a18834f2f69e465b354948f04a4b80d78
   ## Impact
   drivers/sensors
   
   ## Testing
   Not tested, not have the relevant boards/peripherals, will be verified by CI 
compilation.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to