From: Willy Tarreau Date: Thu, 28 May 2020 15:00:53 +0000 (+0200) Subject: CLEANUP: threads: remove a few needless includes of hathreads.h X-Git-Tag: v2.2-dev9~123 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5775d0964a0ac12b9305320d3a90d33c5dd4d7d6;p=thirdparty%2Fhaproxy.git CLEANUP: threads: remove a few needless includes of hathreads.h A few files were including it while not needing it (anymore). Some only required access to the atomic ops and got haproxy/atomic.h in exchange. Others didn't need it at all. A significant number of files still include it only for THREAD_LOCAL definition. --- diff --git a/include/common/xref.h b/include/common/xref.h index 610a023c06..bdf292d883 100644 --- a/include/common/xref.h +++ b/include/common/xref.h @@ -1,7 +1,7 @@ #ifndef __XREF_H__ #define __XREF_H__ -#include +#include /* xref is used to create relation between two elements. * Once an element is released, it breaks the relation. If the diff --git a/include/proto/activity.h b/include/proto/activity.h index 26365ca8bd..9d5044a08b 100644 --- a/include/proto/activity.h +++ b/include/proto/activity.h @@ -22,8 +22,8 @@ #ifndef _PROTO_ACTIVITY_H #define _PROTO_ACTIVITY_H +#include #include -#include #include #include #include diff --git a/include/proto/freq_ctr.h b/include/proto/freq_ctr.h index 7413803ef0..80529bf23c 100644 --- a/include/proto/freq_ctr.h +++ b/include/proto/freq_ctr.h @@ -22,10 +22,10 @@ #ifndef _PROTO_FREQ_CTR_H #define _PROTO_FREQ_CTR_H +#include #include #include #include -#include #include diff --git a/include/types/fd.h b/include/types/fd.h index 7ec97bc741..505291f9a2 100644 --- a/include/types/fd.h +++ b/include/types/fd.h @@ -23,7 +23,6 @@ #define _TYPES_FD_H #include -#include #include #include diff --git a/include/types/queue.h b/include/types/queue.h index 9333468949..d2cb0fffbc 100644 --- a/include/types/queue.h +++ b/include/types/queue.h @@ -24,7 +24,6 @@ #include #include -#include #include diff --git a/src/filters.c b/src/filters.c index f8cb526692..e9f846b662 100644 --- a/src/filters.c +++ b/src/filters.c @@ -17,7 +17,6 @@ #include #include #include -#include #include #include diff --git a/src/flt_trace.c b/src/flt_trace.c index a336296360..fdc74a7eb5 100644 --- a/src/flt_trace.c +++ b/src/flt_trace.c @@ -13,7 +13,6 @@ #include #include -#include #include #include #include diff --git a/src/signal.c b/src/signal.c index 288ef007db..d989ef66bb 100644 --- a/src/signal.c +++ b/src/signal.c @@ -13,8 +13,6 @@ #include #include -#include - #include #include #include