ADSP-SC598 upstream driver changes v2 #64
Annotations
7 errors and 9 warnings
|
|
|
drivers/tty/serial/adi_uart.c#L0
gcc_fanalayzer: Failed to get compile command from compile_commands.json
|
|
drivers/reset/reset-sc5xx.c#L0
gcc_fanalayzer: Failed to get compile command from compile_commands.json
|
|
drivers/i2c/busses/i2c-adi-sc5xx.c#L0
gcc_fanalayzer: Failed to get compile command from compile_commands.json
|
|
drivers/tty/serial/adi_uart.c#L0
assert_compiled: Was not compiled during kernel compilation, ensure defconfig enables it
|
|
drivers/reset/reset-sc5xx.c#L0
assert_compiled: Was not compiled during kernel compilation, ensure defconfig enables it
|
|
drivers/i2c/busses/i2c-adi-sc5xx.c#L0
assert_compiled: Was not compiled during kernel compilation, ensure defconfig enables it
|
|
drivers/tty/serial/serial_core.c#L3021
smatch: argument 3 to %lX specifier is cast from pointer
|
|
drivers/pinctrl/pinctrl-sc5xx.c#L784
gcc_fanalayzer: dereference of NULL '0' [CWE-476] [-Wanalyzer-null-dereference]
784 | all_pins[i].name = adsp_pinctrl->group_names[i];
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'adsp_pinctrl_init_groups': events 1-6
|
| 725 | static int adsp_pinctrl_init_groups(struct adsp_pinctrl *adsp_pinctrl,
| | ^~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | (1) entry to 'adsp_pinctrl_init_groups'
|......
| 737 | if (num_ports < 0)
| | ~
| | |
| | (2) following 'false' branch...
|......
| 740 | if (num_ports == 0) {
| | ~
| | |
| | (3) ...to here
| | (4) following 'false' branch...
|......
| 745 | adsp_pinctrl->num_ports = num_ports;
| | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | (5) ...to here
| 746 |
| 747 | adsp_pinctrl->pin_counts = devm_kcalloc(dev, sizeof(*adsp_pinctrl->pin_counts),
| | ~
| | |
| | (6) inlined call to 'devm_kcalloc' from 'adsp_pinctrl_init_groups'
|
+--> 'devm_kcalloc': event 7
|
|./include/linux/device/devres.h:65:16:
| 65 | return devm_kmalloc_array(dev, n, size, flags | __GFP_ZERO);
| | ^
| | |
| | (7) inlined call to 'devm_kmalloc_array' from 'devm_kcalloc'
|
+--> 'devm_kmalloc_array': events 8-9
|
| 58 | if (unlikely(check_mul_overflow(n, size, &bytes)))
| | ^
| | |
| | (8) following 'false' branch...
|......
| 61 | return devm_kmalloc(dev, bytes, flags);
| | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | (9) ...to here
|
<-------------+
|
'adsp_pinctrl_init_groups': events 10-12
|
|drivers/pinctrl/pinctrl-sc5xx.c:749:12:
| 749 | if (!adsp_pinctrl->pin_counts)
| | ^
| | |
| | (10) following 'false' branch...
|......
| 752 | ret = of_property_read_u32_array(dev->of_node, "adi,port-sizes",
| | ~~~~~~~~~~~~
| | |
| | (11) ...to here
| 753 | adsp_pinctrl->pin_counts, num_ports);
| 754 | if (ret)
| | ~
| | |
| | (12) following 'false' branch (when 'ret >= 0')...
|
'adsp_pinctrl_init_groups': event 13
|
|cc1:
| (13): ...to here
|
'adsp_pinctrl_init_groups': event 14
|
| 764 | all_pins = devm_kcalloc(dev, sizeof(*all_pins), adsp_pinctrl->total_pins,
| | ^
| | |
| | (14) inlined call to 'devm_kcalloc' from 'adsp_pinctrl_init_groups'
|
+--> 'devm_kcalloc': event 15
|
|./include/linux/device/devres.h:65:16:
| 65 | return devm_kmalloc_array(dev, n, size, flags | __GFP_ZERO);
| | ^
| | |
| | (15) inlined call to 'devm_kmalloc_array' from 'devm_kcalloc'
|
+--> 'devm_kmalloc_array': event 16
|
| 58 | if (unlikely(check_mul_overflow(n, size, &bytes)))
| | ^
| | |
| | (16) following 'true' branch...
|
<-------------+
|
'adsp_pinctrl_init_groups': events 17-18
|
|drivers/pinctrl/pinctrl-sc5xx.c:767:30:
| 767 | adsp_pinctrl->pins = devm_kcalloc(dev, sizeof(adsp_pinctrl->pins),
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | (17) ...to here
| | (18) inlined call to 'devm_kcalloc' from 'adsp_pinctrl_init_groups'
| 768 | adsp_pinctrl->total_pins, GFP_KERNEL);
| | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
+--> 'devm_kcalloc': event 19
|
|./include/linux/device/devres.h:65:16:
| 65 | return devm_kmalloc_array(dev, n, size, flags | __GFP_ZERO);
| | ^
| | |
| | (19) inlined call to 'devm_kmalloc_array' from 'devm_kcalloc'
|
+--> 'devm_kmalloc_array': events 20-21
|
| 58 | if (unlikely(check_mul_overflow(n, size, &bytes)))
| | ^
| | |
| | (20) following 'false' branch...
|......
| 61 | return devm_kmalloc(dev, bytes, flags);
| | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | (21) ...to here
|
<-------------+
|
'adsp_pinctrl_init_groups': events 22-24
|
|drivers/pinctrl/pinctrl-sc5xx.c:769:12:
| 769 | if (!adsp_pinctrl->pins)
| | ^
| | |
| | (22) following 'false' branch...
|......
| 772 | adsp_pinctrl->group_names = devm_kcalloc(dev, sizeof(*adsp_pinctrl->group_names),
| | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | (23) ...to here
| | (24) inlined call to 'devm_kcalloc' from 'adsp_pinctrl_init_groups'
| 773 | adsp_pinctrl->total_pins, GFP_KERNEL);
| | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
+--> 'devm_kcalloc': event 25
|
|./include/linux/device/devres.h:65:16:
| 65 | return devm_kmalloc_array(dev, n, size, flags | __GFP_ZERO);
| | ^
| | |
| | (25) inlined call to 'devm_kmalloc_array' from 'devm_kcalloc'
|
+-->
|
|
drivers/tty/serial/serial_core.c#L663
sparse: context imbalance in 'uart_chars_in_buffer' - different lock contexts for basic block
|
|
drivers/tty/serial/serial_core.c#L650
sparse: context imbalance in 'uart_write_room' - different lock contexts for basic block
|
|
drivers/tty/serial/serial_core.c#L637
sparse: context imbalance in 'uart_write' - different lock contexts for basic block
|
|
drivers/tty/serial/serial_core.c#L604
sparse: context imbalance in 'uart_put_char' - different lock contexts for basic block
|
|
drivers/tty/serial/serial_core.c#L298
sparse: context imbalance in 'uart_free_xmit_buf' - different lock contexts for basic block
|
|
drivers/tty/serial/serial_core.c#L273
sparse: context imbalance in 'uart_alloc_xmit_buf' - different lock contexts for basic block
|
|
drivers/tty/serial/serial_core.c#L173
sparse: context imbalance in 'uart_start' - different lock contexts for basic block
|
The logs for this run have expired and are no longer available.
Loading