]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/job: drop pure qualifier for static inline functions
authorMike Yuan <me@yhndnzj.com>
Wed, 22 Oct 2025 18:53:15 +0000 (20:53 +0200)
committerMike Yuan <me@yhndnzj.com>
Tue, 4 Nov 2025 11:17:29 +0000 (12:17 +0100)
The impl is directly visible to the compiler so it can apply
all sorts of optimizations wherever it sees fit. And with
the previous commit they are actually "const".

src/core/job.h

index 028281eb5fc18f29f7e8413de6c53e2d8db14094..4c2f78815b0be5faf92e194b5d96a387cf000dce 100644 (file)
@@ -164,15 +164,15 @@ void job_dependency_free(JobDependency *l);
 
 JobType job_type_lookup_merge(JobType a, JobType b) _const_;
 
-_pure_ static inline bool job_type_is_mergeable(JobType a, JobType b) {
+static inline bool job_type_is_mergeable(JobType a, JobType b) {
         return job_type_lookup_merge(a, b) >= 0;
 }
 
-_pure_ static inline bool job_type_is_conflicting(JobType a, JobType b) {
+static inline bool job_type_is_conflicting(JobType a, JobType b) {
         return a != JOB_NOP && b != JOB_NOP && !job_type_is_mergeable(a, b);
 }
 
-_pure_ static inline bool job_type_is_superset(JobType a, JobType b) {
+static inline bool job_type_is_superset(JobType a, JobType b) {
         /* Checks whether operation a is a "superset" of b in its actions */
         if (b == JOB_NOP)
                 return true;