nuttx-mirror/drivers
Bowen Wang 71fe4acef4 MacOs: fix the sim compile warning in MacOS
CC:  clk/clk_fixed_rate.c clk/clk_divider.c:177:14: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value]
      return abs(rate - now) < abs(rate - best);
             ^
clk/clk_divider.c:177:14: note: remove the call to 'abs' since unsigned values cannot be negative
      return abs(rate - now) < abs(rate - best);
             ^~~
clk/clk_divider.c:177:32: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value]
      return abs(rate - now) < abs(rate - best);
                               ^
clk/clk_divider.c:177:32: note: remove the call to 'abs' since unsigned values cannot be negative
      return abs(rate - now) < abs(rate - best);
                               ^~~
CC:  mm_heap/mm_initialize.c 2 warnings generated.
clk/clk.c:1324:11: warning: variable 'irqflags' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
      if (clk->parents == NULL)
          ^~~~~~~~~~~~~~~~~~~~
clk/clk.c:1341:19: note: uninitialized use occurs here
  clk_list_unlock(irqflags);
                  ^~~~~~~~
clk/clk.c:1324:7: note: remove the 'if' if its condition is always false
      if (clk->parents == NULL)
      ^~~~~~~~~~~~~~~~~~~~~~~~~
clk/clk.c:1255:22: note: initialize the variable 'irqflags' to silence this warning
  irqstate_t irqflags;
                     ^
                      = 0
CC:  clk/clk_mux.c clk/clk_multiplier.c:110:14: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value]
      return abs(rate - new) < abs(rate - best);
             ^
clk/clk_multiplier.c:110:14: note: remove the call to 'abs' since unsigned values cannot be negative
      return abs(rate - new) < abs(rate - best);
             ^~~
clk/clk_multiplier.c:110:32: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value]
      return abs(rate - new) < abs(rate - best);
                               ^
clk/clk_multiplier.c:110:32: note: remove the call to 'abs' since unsigned values cannot be negative
      return abs(rate - new) < abs(rate - best);
                               ^~~
clk/clk_mux.c:47:14: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value]
      return abs(now - rate) < abs(best - rate);
             ^
clk/clk_mux.c:47:14: note: remove the call to 'abs' since unsigned values cannot be negative
      return abs(now - rate) < abs(best - rate);
             ^~~
clk/clk_mux.c:47:32: warning: taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value]
      return abs(now - rate) < abs(best - rate);
                               ^
clk/clk_mux.c:47:32: note: remove the call to 'abs' since unsigned values cannot be negative
      return abs(now - rate) < abs(best - rate);
                               ^~~
AS:  sim/sim_fork_x86.S 2 warnings generated.
1 warning2 warnings generated.
 generated.
iperf.c:325:14: warning: format specifies type 'uintmax_t' (aka 'unsigned long long') but the argument has type 'unsigned long' [-Wformat]
             now_len -last_len,
             ^~~~~~~~~~~~~~~~~
iperf.c:340:14: warning: format specifies type 'uintmax_t' (aka 'unsigned long long') but the argument has type 'uintmax_t' (aka 'unsigned long') [-Wformat]
             now_len,
             ^~~~~~~
CC:  misc/rpmsgblk_server.c 2 warnings generated.
:28: warning: format specifies type 'uintmax_t' (aka 'unsigned long long') but the argument has type 'uintmax_t' (aka 'unsigned long') [-Wformat]
                           (uintmax_t)skip);
                           ^~~~~~~~~~~~~~~
nsh_dbgcmds.c:473:20: warning: format specifies type 'uintmax_t' (aka 'unsigned long long') but the argument has type 'uintmax_t' (aka 'unsigned long') [-Wformat]
                   (uintmax_t)position);
                   ^~~~~~~~~~~~~~~~~~~
CC:  nsh_main.c 2 warnings generated.

              return INTMAX_MIN;
              ~~~~~~ ^~~~~~~~~~
CC:  nsh_system.c  note: expanded from macro 'INTMAX_MIN'
                            ^~~~~~~~~
/Users/vela/work/nuttx/include/stdint.h:65:41: note: expanded from macro 'INT64_MIN'
                             ~~~~~~~~~~~^~~
inttypes/lib_strtoimax.c:103:37: warning: implicit conversion from 'long long' to 'intmax_t' (aka 'long') changes value from -9223372036854775808 to 0 [-Wconstant-conversion]
          return (accum == limit) ? INTMAX_MIN : -(intmax_t)accum;
          ~~~~~~                    ^~~~~~~~~~
/Users/vela/work/nuttx/include/stdint.h:136:29: note: expanded from macro 'INTMAX_MIN'
                            ^~~~~~~~~
/Users/vela/work/nuttx/include/stdint.h:65:41: note: expanded from macro 'INT64_MIN'
                             ~~~~~~~~~~~^~~
inttypes/lib_strtoimax.c:106:17: warning: result of comparison of constant 9223372036854775807 with expression of type 'uintmax_t' (aka 'unsigned long') is always false [-Wtautological-constant-out-of-range-compare]
      if (accum > INTMAX_MAX)
          ~~~~~ ^ ~~~~~~~~~~
inttypes/lib_strtoimax.c:109:18: warning: implicit conversion from 'long long' to 'intmax_t' (aka 'long') changes value from 9223372036854775807 to -1 [-Wconstant-conversion]
          return INTMAX_MAX;
          ~~~~~~ ^~~~~~~~~~
/Users/vela/work/nuttx/include/stdint.h:137:29: note: expanded from macro 'INTMAX_MAX'
                            ^~~~~~~~~
/Users/vela/work/nuttx/include/stdint.h:66:29: note: expanded from macro 'INT64_MAX'
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/vela/work/nuttx/include/arch/inttypes.h:35:23: note: expanded from macro 'INT64_C'
                      ^~~~~~~
<scratch space>:12:1: note: expanded from here
9223372036854775807ll
^~~~~~~~~~~~~~~~~~~~~
syslog/vsyslog.c:212:32: warning: format specifies type 'uintmax_t' (aka 'unsigned long long') but the argument has type 'uintmax_t' (aka 'unsigned long') [-Wformat]
                             , (uintmax_t)ts.tv_sec
                               ^~~~~~~~~~~~~~~~~~~~
CC:  iob/iob_free.c 4 warnings generated.
1 warning generated.
CC:  mqueue/mq_msgqalloc.c inttypes/lib_strtoumax.c:91:23: warning: implicit conversion from 'unsigned long long' to 'uintmax_t' (aka 'unsigned long') changes value from 18446744073709551615 to 4294967295 [-Wconstant-conversion]
              accum = UINTMAX_MAX;
                    ~ ^~~~~~~~~~~
/Users/vela/work/nuttx/include/stdint.h:140:29: note: expanded from macro 'UINTMAX_MAX'
                            ^~~~~~~~~~
/Users/vela/work/nuttx/include/stdint.h:67:29: note: expanded from macro 'UINT64_MAX'
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/vela/work/nuttx/include/arch/inttypes.h:36:23: note: expanded from macro 'UINT64_C'
                      ^~~~~~~~
<scratch space>:8:1: note: expanded from here
18446744073709551615ull
^~~~~~~~~~~~~~~~~~~~~~~
CC:  icmp/icmp_ioctl.c 1 warning generated.
time/lib_strftime.c:584:52: warning: format specifies type 'uintmax_t' (aka 'unsigned long long') but the argument has type 'uintmax_t' (aka 'unsigned long') [-Wformat]
               len = snprintf(dest, chleft, "%ju", (uintmax_t)mktime(&tmp));
                                             ~~~   ^~~~~~~~~~~~~~~~~~~~~~~
                                             %ju

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-22 08:55:57 +08:00
..
1wire nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
aie nuttx ai driver update 2024-10-17 22:35:40 +08:00
analog Check if the lower half is initialized for af_channel and af_data 2024-09-30 15:46:58 +08:00
audio audio: update audio null driver 2024-10-07 13:33:34 +08:00
bch drivers/bch: ioctl() - BIOC_FLUSH: Add calling ioctl() of block driver 2024-09-27 00:12:43 +08:00
can nuttx/can: support to Send message priority sorting function. 2024-10-16 18:37:01 +08:00
clk MacOs: fix the sim compile warning in MacOS 2024-10-22 08:55:57 +08:00
contactless nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
coresight drivers/coresight:Add TRFCR_EL1 initialization 2024-10-09 08:37:48 +08:00
crypto nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
devicetree pci: fix compile failed, fdt_get_reg_base() need 3 args 2024-10-09 02:18:49 +08:00
dma Nuttx/dma: add dma framework for nuttx 2023-04-22 01:02:51 +08:00
dummy build: add initial cmake build system 2023-07-08 13:50:48 +08:00
eeprom nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
efuse nuttx: use lib_free for memory de-allocation after strdup or asprintf 2023-08-08 11:58:29 -03:00
i2c driver: Post sempahore only when it's value is smaller than one 2024-10-13 02:12:01 +08:00
i2s nuttx: use sizeof instead of define or number in snprintf 2024-08-25 19:22:15 +08:00
i3c drivers/i3c: avoid return error when i3c_master_register without i3c/i2c device 2024-09-24 23:36:50 +08:00
input cmake: add newly added sources to cmake 2024-10-14 17:19:45 +08:00
ioexpander nuttx/drivers: add ept_release_cb for destroy server resource 2024-10-10 08:44:29 +08:00
ipcc driver: Post sempahore only when it's value is smaller than one 2024-10-13 02:12:01 +08:00
lcd lcd/st7735: add option to invert display color 2024-10-02 20:52:55 +08:00
leds drivers/leds/ws2812: Fix WS2812 pixel size 2023-12-24 16:38:06 -08:00
loop enable O_CLOEXEC explicit 2023-09-22 13:51:00 +08:00
math math/mpi: add mpi driver in math 2023-10-17 13:43:43 +08:00
misc drivers/misc/devmem: add dev_mem.c into cmake build 2024-10-18 21:32:48 +08:00
mmcsd mmcsd: add multi partitions support 2024-10-16 16:58:37 +08:00
modem drivers/modem/alt1250: Fix issue where the program would get stuck 2024-09-24 20:00:21 +08:00
motor Fix allocated memory test 2024-06-28 09:30:42 +02:00
mtd mtd/nvs: Trigger recovery process in nvs_startup 2024-10-13 03:10:19 +08:00
net e1000: add polling mode support for tx/rx 2024-10-08 13:15:31 +02:00
note drivers/note:add the poll function for noteram 2024-10-13 14:05:50 +08:00
pci Fix make warn as error in pci drivers 2024-10-21 15:35:39 +08:00
pinctrl driver/pinctl: add pinctrl framework 2024-09-17 02:25:47 +08:00
pipes circbuf: Move from mm/circbuf to libs/libc/misc 2024-10-09 08:41:49 +08:00
power cmake: add newly added sources to cmake 2024-10-14 17:19:45 +08:00
rc circbuf: Move from mm/circbuf to libs/libc/misc 2024-10-09 08:41:49 +08:00
regmap drivers/regmap: add exit function interface. 2024-08-27 21:43:58 +08:00
reset nuttx/drivers: add ept_release_cb for destroy server resource 2024-10-10 08:44:29 +08:00
rf build: add initial cmake build system 2023-07-08 13:50:48 +08:00
rmt circbuf: Move from mm/circbuf to libs/libc/misc 2024-10-09 08:41:49 +08:00
rpmsg rpmsg_virtio: move notify_wait_cb to struct rpmsg_virtio_device 2024-10-22 08:55:57 +08:00
rptun drivers/rptun: minor fix about rptun 2024-10-12 12:12:00 +08:00
segger drivers/segger: inline note_sysview_get_timestamp 2024-10-14 17:03:57 +02:00
sensors bmi160: fix Parameter passing error when use spi 2024-10-18 19:58:22 +08:00
serial serial: use dev references count make sure the driver only opened once 2024-10-17 18:09:32 +08:00
spi spi_slave: keep consistent with the parameter of the spi_slave_receive function declaration 2024-09-13 12:27:31 +08:00
syslog MacOs: fix the sim compile warning in MacOS 2024-10-22 08:55:57 +08:00
thermal cmake:add driver thermal CMake scripts 2024-10-13 02:25:06 +08:00
timers drivers/timer: fix goldfish timer did not included in cmake 2024-10-12 09:31:15 +08:00
usbdev usb: Fix issue with the calculation descriptor length error 2024-10-15 21:00:29 +08:00
usbhost nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
usbmisc nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
usbmonitor nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
usrsock nuttx/drivers: add ept_release_cb for destroy server resource 2024-10-10 08:44:29 +08:00
vhost virtio devices: update virtqueue operate buffer add lock API 2024-10-06 08:37:53 +08:00
video circbuf: Move from mm/circbuf to libs/libc/misc 2024-10-09 08:41:49 +08:00
virtio syslog: convert \n to \r\n in syslog framework layer 2024-10-17 02:29:51 +08:00
wireless bluetooth: Fix the incompatibility made by https://github.com/apache/nuttx/pull/14224 2024-10-18 09:05:54 +08:00
.gitignore build: Remve the unnecessary .gitignore 2020-05-23 18:00:40 +01:00
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
drivers_initialize.c drivers/vhost: add vhost framework for NuttX 2024-10-03 17:37:40 +08:00
Kconfig AI engine driver 2024-10-16 13:57:23 +08:00
Makefile AI engine driver 2024-10-16 13:57:23 +08:00