]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: Drop NOLINTNEXTLINE comments
authorDaanDeMeyer <daan.j.demeyer@gmail.com>
Thu, 1 Jan 2026 20:01:39 +0000 (21:01 +0100)
committerDaanDeMeyer <daan.j.demeyer@gmail.com>
Fri, 2 Jan 2026 08:22:23 +0000 (09:22 +0100)
Not needed anymore after recent refactoring.

src/basic/cleanup-util.h
src/basic/string-table.h
src/boot/efi-string-table.h
src/libsystemd/sd-netlink/netlink-message-rtnl.c

index 4d6466e03ff41315414c7cb251c025e047198b18..9fd48dbf297337649776efd15ba14705e233a896 100644 (file)
@@ -28,7 +28,6 @@ typedef void* (*mfree_func_t)(void *p);
         })
 
 #define _DEFINE_TRIVIAL_REF_FUNC(type, name, scope)                                     \
-        /* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */      \
         scope type *name##_ref(type *p) {                                               \
                 if (!p)                                                                 \
                         return NULL;                                                    \
@@ -43,7 +42,6 @@ typedef void* (*mfree_func_t)(void *p);
         }
 
 #define _DEFINE_TRIVIAL_UNREF_FUNC(type, name, free_func, scope)                        \
-        /* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */      \
         scope type *name##_unref(type *p) {                                             \
                 if (!p)                                                                 \
                         return NULL;                                                    \
index 1a2a6005022227f22f3b3abfc1183982cf32e328..6e7038074bab178df7a41df11286335df8ec7a61 100644 (file)
@@ -15,7 +15,6 @@ ssize_t string_table_lookup_from_string_fallback(const char * const *table, size
 
 /* For basic lookup tables with strictly enumerated entries */
 #define _DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name, type, scope)                                        \
-        /* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */                      \
         scope const char* name##_to_string(type i) {                                                    \
                 return string_table_lookup_to_string(name##_table, ELEMENTSOF(name##_table), i);        \
         }
@@ -31,7 +30,6 @@ ssize_t string_table_lookup_from_string_fallback(const char * const *table, size
         }
 
 #define _DEFINE_STRING_TABLE_LOOKUP_TO_STRING_FALLBACK(name, type, max, scope)                          \
-        /* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */                      \
         scope int name##_to_string_alloc(type i, char **ret) {                                          \
                 return string_table_lookup_to_string_fallback(name##_table, ELEMENTSOF(name##_table), i, max, ret); \
         }
index ba2a0d365e1603fff3c4eb426fe651884d60ae7d..9e142aa6ccc1313ca3422ec669906e1c1f92edb3 100644 (file)
@@ -5,7 +5,6 @@
 #include "macro-fundamental.h"
 
 #define _DEFINE_STRING_TABLE_LOOKUP_TO_STRING(name,type,scope)                          \
-        /* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */      \
         scope const char* name##_to_string(type i) {                                    \
                 assert(i >= 0 && i < (type) ELEMENTSOF(name##_table));                  \
                 return name##_table[i];                                                 \
index 4883614297b0a30db63654fed71e8d137c8a15aa..40f4560e8deefda62a4f8ed8038e0ac2b25d6738 100644 (file)
@@ -55,7 +55,6 @@ static bool rtnl_message_type_is_nsid(uint16_t type) {
 }
 
 #define DEFINE_RTNL_MESSAGE_SETTER(class, header_type, element, name, value_type)  \
-        /* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */ \
         int sd_rtnl_message_##class##_set_##name(sd_netlink_message *m, value_type value) { \
                 assert_return(m, -EINVAL);                              \
                 assert_return(m->hdr, -EINVAL);                         \
@@ -67,7 +66,6 @@ static bool rtnl_message_type_is_nsid(uint16_t type) {
         }
 
 #define DEFINE_RTNL_MESSAGE_PREFIXLEN_SETTER(class, header_type, family_element, element, name, value_type) \
-        /* NOLINTNEXTLINE (readability-inconsistent-declaration-parameter-name) */                          \
         int sd_rtnl_message_##class##_set_##name(sd_netlink_message *m, value_type value) { \
                 assert_return(m, -EINVAL);                              \
                 assert_return(m->hdr, -EINVAL);                         \