tree-wide: drop DLOPEN_FOO() macros

Since 4c0d8d9673, most dlopen notes are
set at the beginning of the executables. Let's manage all dlopen notes
there, rather than setting them where dlopen is called.

Note that the only exceptions are the LIBBPF_NOTE for networkd and
nsresource. Since dlopen_bpf() is wrapped in an `#if` guard, the notes
are instead set within the corresponding functionality.

As a result, the DLOPEN_FOO() wrapper macros are no longer needed and
can be dropped completely.
This commit is contained in:
Yu Watanabe
2026-07-18 04:56:32 +09:00
parent e056e2a707
commit 661ab8b6fd
94 changed files with 223 additions and 233 deletions
+2 -2
View File
@@ -161,7 +161,7 @@ int find_suitable_partition(
POINTER_MAY_BE_NULL(partition_type);
assert(ret);
r = DLOPEN_FDISK(LOG_DEBUG, recommended);
r = dlopen_fdisk(LOG_DEBUG);
if (r < 0)
return r;
@@ -230,7 +230,7 @@ int patch_partition(
if (change == 0) /* Nothing to do */
return 0;
r = DLOPEN_FDISK(LOG_DEBUG, recommended);
r = dlopen_fdisk(LOG_DEBUG);
if (r < 0)
return r;
+1 -1
View File
@@ -266,7 +266,7 @@ static int resource_load_from_blockdev(Resource *rr) {
assert(rr);
r = DLOPEN_FDISK(LOG_DEBUG, recommended);
r = dlopen_fdisk(LOG_DEBUG);
if (r < 0)
return r;
+1
View File
@@ -3568,6 +3568,7 @@ static int run(int argc, char *argv[]) {
LIBBLKID_NOTE(recommended);
LIBCRYPTO_NOTE(suggested);
LIBCRYPTSETUP_NOTE(suggested);
LIBFDISK_NOTE(recommended);
LIBMOUNT_NOTE(recommended);
LIBSELINUX_NOTE(recommended);
LIBTSS2_ESYS_NOTE(suggested);