]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: introduce and use _nonnull_all_ decoration
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 7 Sep 2024 00:15:04 +0000 (01:15 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Sat, 7 Sep 2024 15:13:51 +0000 (10:13 -0500)
commit6141edc7edbcf10bf03509770f6a50356cb0ea40
tree0757131727efa01703435ba7b19159bdc4d0bd4c
parente1620f40780adc2baf7a5388c16a28ff27c89f35
libkmod: introduce and use _nonnull_all_ decoration

Introduce a new attribute macro and use it, placing it on the left hand
side of the function return value. This aligns with the attributes style
used in C23.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/114
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-internal.h
libkmod/libkmod-module.c
shared/macro.h