Francisco
6475609440
Merge pull request #17323 from maribu/tests/malloc
...
tests/malloc: fix counting bugs
2021-12-03 12:01:49 +01:00
Francisco
5ba215f9c5
Merge pull request #16843 from haukepetersen/add_nimble_scannerext
...
nimble_scanner: rework to enable scanning BLE5 PHYs and extended advertisements
2021-12-03 12:00:10 +01:00
Martine Lenders
7631dd19fc
tests/unittests: fix test vectors
...
In the tests fixed in this commit, the header tells that there is a PAN
ID in the header, but no PAN ID was provided in the test vector. This
amends the test vector with the PAN ID (as done in other tests in this
test suite) and adds a check if the PAN was correct.
2021-12-03 11:32:29 +01:00
Martine Lenders
1eda5b80b9
ieee802154: fix reserved source address handling
...
This fixes the handling when the source address is neither short nor
long. For the reserved address mode no PAN behavior is defined, so
rather check, if the source address is in reserved mode before trying to
read the destination PAN.
2021-12-03 11:31:06 +01:00
Marian Buschsieweke
d571f150ec
sys/usb/usbus/dfu: use container_of()
2021-12-03 10:12:39 +01:00
Marian Buschsieweke
c67d86108e
pkg/libhydrogen: add -Wno-cast-align
2021-12-03 10:12:39 +01:00
Marian Buschsieweke
db41e3a58b
pkg/tensorflow-lite: add -Wno-cast-align
2021-12-03 10:12:38 +01:00
Marian Buschsieweke
b005e8fce6
pkg/flatbuffers: add -Wno-cast-align
2021-12-03 10:12:38 +01:00
Marian Buschsieweke
a6eaddb818
pkg/ucglib: silence -Wcast-align
2021-12-03 10:12:38 +01:00
Marian Buschsieweke
c50c5ea436
pkg/spifs: silence -Wcast-align
2021-12-03 10:12:38 +01:00
Marian Buschsieweke
724d4f6429
pkg/lvgl: add -Wno-cast-align
2021-12-03 10:12:38 +01:00
Marian Buschsieweke
3a07baf8e6
tests/pkg_utensor: fix alignment bug
2021-12-03 10:12:38 +01:00
Marian Buschsieweke
1193785a11
pkg/cn-cbor: add -Wno-cast-align
2021-12-03 10:12:37 +01:00
Marian Buschsieweke
d91c2e95fc
pkg/libb2: add -Wno-cast-align
2021-12-03 10:12:37 +01:00
Marian Buschsieweke
c20c0b98ad
pkg/qdsa: add -Wno-cast-align
2021-12-03 10:12:37 +01:00
Marian Buschsieweke
588126115c
tests/pkg_emlearn: fix compilation with -Wcast-align
2021-12-03 10:12:37 +01:00
Marian Buschsieweke
1e088dcdd7
pkg/elk: add -Wno-cast-align
2021-12-03 10:12:37 +01:00
Marian Buschsieweke
d16f5366da
pkg/cryptoauthlib: add -Wno-cast-align
...
Also split compiler flags into individual lines and sort them
alphabetically.
2021-12-03 10:12:37 +01:00
Marian Buschsieweke
afdaa2fed9
tests/pkg_openwsn_sock_udp: silence -Wcast-align
2021-12-03 10:12:36 +01:00
Marian Buschsieweke
c4346f7db1
pkg/openwsn: add -Wno-cast-align
...
Also sort flags alphabetically
2021-12-03 10:12:36 +01:00
Marian Buschsieweke
be42be9d15
sys/shell: use container_of in sc_gnrc_netif
2021-12-03 10:12:36 +01:00
Marian Buschsieweke
e4c627d252
tests/pkg_cmsis-nn: add -Wno-cast-align
...
This should be reverted and properly fixed.
2021-12-03 10:12:36 +01:00
Marian Buschsieweke
92d333a6b7
pkg/cmsis-nn: add -Wno-cast-align
2021-12-03 10:12:36 +01:00
Marian Buschsieweke
d41d2b4b22
pkg/wakaama: add -Wcast-align
2021-12-03 10:12:36 +01:00
Marian Buschsieweke
2cb06525d6
pkg/paho-mqtt: add -Wno-cast-align
2021-12-03 10:12:35 +01:00
Marian Buschsieweke
87c90322aa
pkg/uwb-dw1000: add -Wno-cast-align
...
Also sort disabled CFLAG warnings alphabetically.
2021-12-03 10:12:35 +01:00
Marian Buschsieweke
4e9121ef20
pkg/mynewt-core: add -Wno-cast-align
2021-12-03 10:12:35 +01:00
Marian Buschsieweke
c97a2119f3
drivers/mcp2515: use container_of()
...
This silences false positives of -Wcast-align
2021-12-03 10:12:35 +01:00
Marian Buschsieweke
509ced8abb
cpu/stm32/periph_can: use container_of()
...
This silences false positives of -Wcast-align
2021-12-03 10:12:35 +01:00
Marian Buschsieweke
d59d9c27d7
cpu/esp32/periph_can: use container_of()
...
This silences false positives of -Wcast-align
2021-12-03 10:12:35 +01:00
Marian Buschsieweke
7a6a7015cd
pkg/ndn-riot: add -Wno-cast-align
2021-12-03 10:12:34 +01:00
Marian Buschsieweke
1bbcb5ef6e
pkg/lua: add -Wno-cast-align
2021-12-03 10:12:34 +01:00
Marian Buschsieweke
196ba5e3ff
pkg/tlsf: add -Wno-cast-align
2021-12-03 10:12:34 +01:00
Marian Buschsieweke
4726e419c8
pkg/jerryscript: add -Wno-cast-align
2021-12-03 10:12:34 +01:00
Marian Buschsieweke
b433183e0e
cpu/kinetis: silence -Wcast-align
2021-12-03 10:12:34 +01:00
Marian Buschsieweke
b9c07f9622
core/sched: silence -Wcast-align
2021-12-03 10:12:34 +01:00
Marian Buschsieweke
b7269c39e8
sys/net/gnrc_pktbuf_static: fix compilation with -Wcast-align
...
Comparing the pointers as `uintptr_t` won't hurt but makes the compiler
happy.
2021-12-03 10:12:34 +01:00
Marian Buschsieweke
83f86d471b
pkg/fatfs/fatfs_vfs: silence -Wcast-align
...
The -Wcast-align warnings are false positives. Hence, document
the reason why unaligned accesses cannot occur and silence the
warning.
2021-12-03 10:12:33 +01:00
Marian Buschsieweke
79103d3156
pkg/nimble: add -Wno-cast-align
...
Also brutally silence -Wcast-align warnings in OS_MBUF_PKTHDR()
and OS_MBUF_PKTHDR_TO_MBUF(), as those are used by nimble users.
It might make sense to check if the silenced / disabled warnings do
indeed point out unaligned memory accesses.
2021-12-03 10:12:33 +01:00
Marian Buschsieweke
4ac6820860
pkg/wolfssl: add -Wno-cast-align
2021-12-03 10:12:33 +01:00
Marian Buschsieweke
939e206d58
pkg/cmsis-dsp: Disable -Wcast-align
...
We cannot debug vendor code.
2021-12-03 10:12:33 +01:00
Marian Buschsieweke
b1114b0674
sys/net/gnrc/netif: use container_of()
...
Using `container_of()` to translate from `netif_t *` to the containing
`gnrc_netif_t *` adds a bit of plausibility: It will fail when `gnrc_netif_t`
stops to contain `netif_t` as member. Additionally, this silences false
positives of -Wcast-align
2021-12-03 10:12:33 +01:00
Marian Buschsieweke
581aa6b70b
sys/net/netif: allow const in netif_iter()
...
For consistency with `gnrc_netif_iter()`, add the `const` qualifier to the
parameter of `netif_iter()`. This allows calling it on `const` pointers without
having to cast `netif_t *`, which (apart of dropping the `const` qualifier)
disables a lot of type safety checks offered by the compiler.
2021-12-03 10:12:33 +01:00
Marian Buschsieweke
be09ba67a6
pkg/ccn-lite: suppress -Wcast-align
2021-12-03 10:12:32 +01:00
Marian Buschsieweke
7cd9d615fa
cpu/stm32/periph: Use uintptr_t for periph addr
...
The peripheral register addresses are fixed, properly aligned addresses. Storing
them as uintptr_t makes live easier when casting them to helper structs, as no
intermediate cast to uintptr_t is needed to silence -Wcast-align.
2021-12-03 10:12:32 +01:00
Marian Buschsieweke
c9eb0ae3de
pkg/gecko_sdk: Disable -Wcast-align
2021-12-03 10:12:32 +01:00
Marian Buschsieweke
d31b1f4854
cpu/esp32: disable -Wcast-align for vendor code
2021-12-03 10:12:32 +01:00
Marian Buschsieweke
a6ceeec29f
tests/malloc: fix counting bug
...
There is a corner cases in which the counting of allocated memory
previously was wrong: When the allocation of the chunk succeeded but the
allocation of the next struct node fails. This was relatively unlikely
to happen, as the chunk size was much bigger than the memory required by
the struct node. But it happens on the ESP32 boards resulting in failing
nightlies. This fixes the issue.
2021-12-03 10:09:46 +01:00
Francisco
1ec9bfdec4
Merge pull request #17287 from leandrolanzieri/pr/sys/vfs/model_kconfig
...
sys/vfs: model Kconfig
2021-12-03 09:11:57 +01:00
Leandro Lanzieri
228c90f6e1
boards/nrf9160dk: fix LED macros
...
LED macros were inverted, so LEDn_ON would turn the LED off and LEDn_OFF
would turn it on.
2021-12-03 08:51:30 +01:00