1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/net/gnrc
bors[bot] 385569c7bf
Merge #17810 #18348 #19120
17810: drivers/slipdev: implement sleep states r=benpicco a=benpicco



18348: sys/net/gnrc/pktbuf_static: make use of alignas() r=maribu a=maribu

### Contribution description

Since we are now using C11, we can make use of `alignas()` provided by `<stdalign.h>` to make the alignment code easier to read.

### Testing procedure

I didn't expect this to change binaries, but is safes 4 bytes. `elf_diff` shows that the compiler (at least GCC 11.3.0) was not able to detect that `gnrc_pktbuf_static_buf` was just an alias for `_pktbuf_buf`. That makes sense since it would be hard without LTO to rule out external writes to `gnrc_pktbuf_static_buf`, unless one would have added a `const` (to the pointer, not to the data the pointer points to).

The [output of `elf_diff`](https://mari-bu.de/pr_18348_gnrc_pktbuf_static_elf_diff.html) looks otherwise quite unscary.

Also:

```
$ make BOARD=nucleo-f767zi -C tests/unittests/ tests-pktbuf flash test
make: Entering directory '/home/maribu/Repos/software/RIOT/tests/unittests'
Building application "tests_unittests" for "nucleo-f767zi" with MCU "stm32".
[...]
Welcome to pyterm!
Type '/exit' to exit.
READY
s
START
.............................................
OK (45 tests)

make: Leaving directory '/home/maribu/Repos/software/RIOT/tests/unittests'
```

### Issues/PRs references

None

19120: CI: seperate check-labels and check-commits workflows r=maribu a=kaspar030



Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
2023-01-10 15:44:57 +00:00
..
application_layer gnrc_dhcpv6_client_simple_pd: set AAC_DHCP if IA_NA is enabled 2022-03-02 14:53:09 +01:00
link_layer core/lib: Add macros/utils.h header 2023-01-07 09:47:44 +01:00
netapi gnrc_netreg: Use locks around netreg 2022-10-14 03:35:15 +02:00
netif core/lib: Add macros/utils.h header 2023-01-07 09:47:44 +01:00
netreg sys/net/grnc/netreg: avoid freeing wild pointers 2022-11-22 17:57:44 +01:00
network_layer Merge #18134 #18738 #18939 #19118 2023-01-10 11:25:32 +00:00
pkt gnrc: cleanup and corrections in gnrc_pkt 2017-04-22 20:56:54 +02:00
pktbuf sys/net/gnrc_pktbuf: make static buffer internal 2022-07-21 16:25:14 +02:00
pktbuf_malloc sys/net/gnrc_pktbuf: make static buffer internal 2022-07-21 16:25:14 +02:00
pktbuf_static sys/net/gnrc_pktbuf: make static buffer internal 2022-07-21 16:25:14 +02:00
pktdump gnrc_nettype: reorder gnrc_nettype_t to fit the grouping again 2022-10-12 11:23:16 +02:00
priority_pktqueue sys/*: add missing include of assert.h 2020-10-22 11:13:09 +02:00
routing gnrc/ipv6_auto_subnets: add CONFIG_GNRC_IPV6_AUTO_SUBNETS_STATIC option 2022-10-25 19:46:42 +02:00
sock gnrc_sock_udp: style fix in sock_udp_recv_buf_aux() 2022-11-15 20:35:20 +01:00
transport_layer gnrc_tcp: replace RIOT_FILE_RELATIVE with __FILE__ 2022-11-19 01:48:42 +01:00
tx_sync sys/net/gnrc/tx_sync: new module 2021-02-03 15:16:42 +01:00
doc.txt sys/net/gnrc: Add GNRC configuration Doxygen group 2019-12-06 12:18:03 +01:00
Kconfig treewide: change prefix for generated Kconfig symbols. 2020-08-31 09:37:09 +02:00
Makefile gnrc_ipv6_auto_subnets: auto-configuration for nested subnets 2021-09-02 15:35:14 +02:00
Makefile.dep sys/net/gnrc_lwmac: add missing xtimer dependency 2022-10-29 21:04:28 +02:00