Cleanup: apply `include-what-you-use` guideline for `size_t`
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Tue, 3 Dec 2019 20:33:22 +0000 (15:33 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 13 Feb 2020 17:10:04 +0000 (12:10 -0500)
I saw that some files use the `size_t` type but there are not including
a header for it. The `size_t` type is defined by the following headers:
  <stddef.h>
  <stdio.h>
  <stdlib.h>
  <string.h>
  <time.h>
  <wchar.h>

So, to follow the best practice of including what is used in a file, I
added `#include <stddef.h>` in files using `size_t` but did not include
any of the previously listed header.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ica1d82691335294decf13ffcdf4257e35d6a44c2

59 files changed:
doc/examples/demo/ust_tests_demo2.h
doc/examples/hello-static-lib/ust_tests_hello.h
include/lttng/ust-context-provider.h
include/lttng/ust-ctl.h
include/lttng/ust-events.h
include/ust_snprintf.h
liblttng-ust-dl/ust_dl.h
liblttng-ust/getenv.c
liblttng-ust/jhash.h
liblttng-ust/lttng-context-cgroup-ns.c
liblttng-ust/lttng-context-cpu-id.c
liblttng-ust/lttng-context-ip.c
liblttng-ust/lttng-context-ipc-ns.c
liblttng-ust/lttng-context-mnt-ns.c
liblttng-ust/lttng-context-net-ns.c
liblttng-ust/lttng-context-perf-counters.c
liblttng-ust/lttng-context-pid-ns.c
liblttng-ust/lttng-context-procname.c
liblttng-ust/lttng-context-provider.c
liblttng-ust/lttng-context-pthread-id.c
liblttng-ust/lttng-context-user-ns.c
liblttng-ust/lttng-context-uts-ns.c
liblttng-ust/lttng-context-vegid.c
liblttng-ust/lttng-context-veuid.c
liblttng-ust/lttng-context-vgid.c
liblttng-ust/lttng-context-vpid.c
liblttng-ust/lttng-context-vsgid.c
liblttng-ust/lttng-context-vsuid.c
liblttng-ust/lttng-context-vtid.c
liblttng-ust/lttng-context-vuid.c
liblttng-ust/lttng-context.c
liblttng-ust/lttng-filter-interpreter.c
liblttng-ust/lttng-filter-specialize.c
liblttng-ust/lttng-filter-validator.c
liblttng-ust/lttng-filter.c
liblttng-ust/lttng-hash-helper.h
liblttng-ust/lttng-ring-buffer-client.h
liblttng-ust/lttng-ring-buffer-metadata-client.h
liblttng-ust/lttng-ust-comm.c
liblttng-ust/lttng-ust-statedump-provider.h
liblttng-ust/string-utils.h
liblttng-ust/ust-core.c
liblttng-ust/ust_lib.h
libringbuffer/backend.h
libringbuffer/backend_internal.h
libringbuffer/frontend.h
libringbuffer/frontend_api.h
libringbuffer/ring_buffer_backend.c
libringbuffer/shm.h
libringbuffer/shm_types.h
snprintf/fvwrite.h
snprintf/patient_write.c
snprintf/snprintf.c
snprintf/various.h
snprintf/wcio.h
tests/hello.cxx/ust_tests_hello.h
tests/hello/ust_tests_hello.h
tests/test-app-ctx/hello.c
tests/test-app-ctx/ust_tests_hello.h

index eec0349e35c26365cee5a67663a9a719519e65e8..4470dc060629ae3328b08b54bed47d5f710e324c 100644 (file)
@@ -27,6 +27,7 @@
  */
 
 #include <lttng/tracepoint.h>
+#include <stddef.h>
 
 TRACEPOINT_EVENT(ust_tests_demo2, loop,
        TP_ARGS(int, anint, int, netint, long *, values,
index e783feca7f1b24763ecb24582a279897c623629d..2b557563f9c8e97bec055a61f85249425d99d6f3 100644 (file)
@@ -27,6 +27,7 @@
  */
 
 #include <lttng/tracepoint.h>
+#include <stddef.h>
 
 TRACEPOINT_EVENT(ust_tests_hello, tptest,
        TP_ARGS(int, anint, int, netint, long *, values,
index 5b266fa8c777565ab172277d10b4fe4e382e4737..4573617bbf2c9c6df1dae68bdaa9ade4e24c0c02 100644 (file)
@@ -23,6 +23,7 @@
  * SOFTWARE.
  */
 
+#include <stddef.h>
 #include <lttng/ust-events.h>
 #include <urcu/hlist.h>
 
index 932940babf393304964e039a0cc5256aa50d96c5..56128490173059bdfbae4308bf3e10212f417de5 100644 (file)
@@ -19,6 +19,7 @@
 #ifndef _LTTNG_UST_CTL_H
 #define _LTTNG_UST_CTL_H
 
+#include <stddef.h>
 #include <lttng/ust-abi.h>
 #include <sys/types.h>
 #include <limits.h>
index 893096827802f92ddb1550ca06ff32ce0322a4f5..a9f80fb01e3b45faad3d5cf2da1fdf416a731f57 100644 (file)
@@ -29,6 +29,7 @@
 
 #include <urcu/list.h>
 #include <urcu/hlist.h>
+#include <stddef.h>
 #include <stdint.h>
 #include <lttng/ust-config.h>
 #include <lttng/ust-abi.h>
index 5ce14851a5c7e881468deadb3c5c2f7137e7f9de..a416a27ca446a9d647a40b91f7efc56f377d5bd8 100644 (file)
@@ -19,6 +19,7 @@
 #define UST_SNPRINTF
 
 #include <stdarg.h>
+#include <stddef.h>
 
 extern int ust_safe_vsnprintf(char *str, size_t n, const char *fmt, va_list ap);
 extern int ust_safe_snprintf(char *str, size_t n, const char *fmt, ...);
index c8a069569faf9959bb858dc0da5e34c541894ac8..0ea21266ecaff3d885487aa6d67380f93ff58db8 100644 (file)
@@ -31,6 +31,7 @@ extern "C" {
  * SOFTWARE.
  */
 
+#include <stddef.h>
 #include <stdint.h>
 #include <unistd.h>
 #include <config.h>
index 25740a50c3b7f5e699141d886695a9594a11730e..a05653d75b2e21ea19443b2ad160d5b1bebfe440 100644 (file)
@@ -19,6 +19,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <stdbool.h>
+#include <stddef.h>
 #include <sys/types.h>
 #include <usterr-signal-safe.h>
 #include <helper.h>
index da1e7dd02c7b994bbdda9e5f8f7ce6eae27d4f5b..416836adbf294c997414a292e60596dbf1045ec9 100644 (file)
@@ -16,6 +16,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#include <stddef.h>
 #include <urcu/compiler.h>
 #include <lttng/ust-endian.h>
 
index d4053150c5432bcec4ca3a4f4bd9e7142e2185bb..3526798faf99fef593485efcf900d606b8cfca93 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
index a3252f1575369d99ca01049be48e171917ead6c3..c94ef7145fbbeb8e7a6a4c59501e98c2d16f6da0 100644 (file)
@@ -28,6 +28,7 @@
 
 #define _GNU_SOURCE
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <lttng/ust-events.h>
index fb9229543194d91b6df66a36e447fa4bb59fb314..47f5af03f3246eeadc8dfadc767f5c10f35ac095 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <lttng/ust-events.h>
index c973dc86dd06ec246f627a8bc7bbf17a80ef2cf2..64b3cd8e770c51cbd2587e4ab44463a0c2a7bd5c 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
index d54c42aa093ae1e2c2a310bc7af09abe69eb3fb3..fb3e7beb50058fe329b52fdd37424ab87e587bcb 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
index 9d6ded12965d5213b6995cbff5705258e6a534d9..3da46d636f107334c0f0e44955d2ff8d5eb4ba9c 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
index a6ff55b678d472d29fb157f7b0527918432121e2..90f9db1944baba037974b50a1846c0dfcb4a7746 100644 (file)
@@ -27,6 +27,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdbool.h>
+#include <stddef.h>
 #include <sys/mman.h>
 #include <sys/syscall.h>
 #include <lttng/ust-events.h>
index 1581fb3dc3ed641f36906b4bd43ed657ae9a8c3b..71b42bd6acb45f660b6beb33cddaf6d0351cc760 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
index c6d02cf60d3b0692dd449e5f12f08a32b08307bf..73f38878f872557283a13b171977ca245c2969a5 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <lttng/ust-events.h>
 #include <lttng/ust-tracer.h>
 #include <lttng/ringbuffer-config.h>
index b51ef23f38b40e5ea74d3c22995da9d2fd11d2f2..edb1e9b2e076a4297653b010b87978e5eb67c07d 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <lttng/ust-context-provider.h>
index 5f9faf8508923858343fc9c588df7b32ab87644f..d33282599f04770a4cab943e28217c7c3fd5235a 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <pthread.h>
 #include <lttng/ust-events.h>
 #include <lttng/ust-tracer.h>
index 04b940f6e6afe61b9b124b22e2c815572049014c..d3e5192e8daf8a7392164f647f3245946cfc4569 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
index fb2d89f94bfa3ceee709fce0179e0dfb7c64a22e..43faad0dc32b6bbaae76789c4bc84f600aeba46a 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
index 70855688be7254d9fa498adbfc66a36894915588..12d095f710a45c8b1a5cbeaceef3f712c6f13333 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
index b627a974db045fa77a4fc5a9e53729058e8604f6..2576aaf0940bf068bb398accce7cf8c00b6da52f 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
index 7ffaf6838bcb1aef74c6c53e6fd373ec048f2469..db0c82d8f5e08effae9c3415f97500f494c09baa 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
index 11978e6e33d8e0f93ac4fb0bd34e12495790d7e4..aa2586ef6009c9deda9d30ca12aa8987ad132c31 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <lttng/ust-events.h>
index 437b01e49afb04396a5d1ec106b67ecb3beff330..7613bdd64f779760f692aac89c6f3712fe13f244 100644 (file)
@@ -23,6 +23,7 @@
 
 #define _GNU_SOURCE
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
index 56f3d0738cad1280f8f0df267ee3bdc3769cb454..9c8fd585b8846776b567a70940c73599ba24eb95 100644 (file)
@@ -23,6 +23,7 @@
 
 #define _GNU_SOURCE
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
index 36e5695daf89143e1b28f01f600759d5adda5ab0..0a29021d4b104b3f4cb94deea5d72069dddc7145 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <lttng/ust-events.h>
index 5416751963a744c04b6f5490d37a3b1a152f3ffb..ad4a07c53d01deb343c83909ad1b77f4d4a5fc3f 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
index e408defc9893fc038d0901126cc844143c19fca3..bb6a9c9dc9b6cf1df9240f35f5e615901239f7d1 100644 (file)
@@ -27,6 +27,7 @@
 #include <urcu-pointer.h>
 #include <usterr-signal-safe.h>
 #include <helper.h>
+#include <stddef.h>
 #include <string.h>
 #include <assert.h>
 
index 59bc72cdf442027e8e78ba535c91a9e13bd7502f..f246ce2a0b3383d1f000b3e17f253a77308ef6b1 100644 (file)
@@ -25,8 +25,9 @@
  */
 
 #define _LGPL_SOURCE
-#include <urcu-pointer.h>
+#include <stddef.h>
 #include <stdint.h>
+#include <urcu-pointer.h>
 #include <byteswap.h>
 #include "lttng-filter.h"
 #include "string-utils.h"
index e269db6a32f9775af8b5e70636c3de1feddc56bc..21e35923859e37f7a3a7a4e68aaa14cc7b4470c0 100644 (file)
@@ -25,6 +25,8 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
+
 #include "lttng-filter.h"
 #include <lttng/align.h>
 
index acac7ce7fad52228d1488bddf8a5c4d378fd4189..49e2e43dc3d4d72817dbb96953209d198322fa8a 100644 (file)
@@ -25,6 +25,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <urcu-bp.h>
 #include <time.h>
 #include "lttng-filter.h"
index d52658ae14dd7f4e135a5e6e0df306069bd94f4b..fb8eefdd9111ecb7ab0e875a722d5b7fbc9c4118 100644 (file)
@@ -25,6 +25,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <urcu/rculist.h>
 #include "lttng-filter.h"
 
index bddc7c46729228d39e75d22cc578b67cd6ea1f64..0df5f288b584882663c15530704af34c2d96c40c 100644 (file)
@@ -24,6 +24,7 @@
  */
 
 #include <assert.h>
+#include <stddef.h>
 #include <stdint.h>
 #include <urcu/compiler.h>
 
index 7078938dbeb16b78326bef9a587d828072f15163..62d1ff82552fb8b04abc1d2ab8162bfe4c4bb9fb 100644 (file)
@@ -20,6 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include <stddef.h>
 #include <stdint.h>
 #include <lttng/ust-events.h>
 #include "lttng/bitfield.h"
index 45340a7b67f052dbe52467bfe8b53eae2cb44ae9..05d3f1bb60ac2aac301dac61085f22eb32908359 100644 (file)
@@ -20,6 +20,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include <stddef.h>
 #include <stdint.h>
 #include <lttng/ust-events.h>
 #include "lttng/bitfield.h"
index 9d0c010d502079a164e453cb67778f3a547cc2d1..838bf08bfea43d609fb749814ab2ae68e758b468 100644 (file)
@@ -21,6 +21,7 @@
 
 #define _LGPL_SOURCE
 #define _GNU_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/mman.h>
index b0c43cf76f05bfd9ed077485ee5402d6b3c5f3e2..474e2d22e34005a23c60cf6b4817d502847ccbba 100644 (file)
@@ -31,6 +31,7 @@ extern "C" {
  * SOFTWARE.
  */
 
+#include <stddef.h>
 #include <stdint.h>
 #include <unistd.h>
 #include <lttng/ust-events.h>
index 94e9a5c18c22245f28edcc23ab161a4dc1d90b7e..414b6e6ae4d6efdf9f3e55ec89dac744ab464c4b 100644 (file)
@@ -24,6 +24,7 @@
  */
 
 #include <stdbool.h>
+#include <stddef.h>
 
 bool strutils_is_star_glob_pattern(const char *pattern);
 bool strutils_is_star_at_the_end_only_glob_pattern(const char *pattern);
index 76f729a6720af105a7f120780ed2da16430b8e11..255ad96371d8b63c6bfcb1275140ac9050b1bb40 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <stdlib.h>
 #include <lttng/ust-events.h>
 #include <usterr-signal-safe.h>
index df372dc7f1b3c855e61d8f2e38cd2cc0f1b1aee2..425bd383f4171a94683e225f5a33146d3011ebca 100644 (file)
@@ -32,6 +32,7 @@ extern "C" {
  * SOFTWARE.
  */
 
+#include <stddef.h>
 #include <stdint.h>
 #include <unistd.h>
 
index 46022ad3c5767d7f46db917ee41d2f6e72a98c7b..52e632d86d247b0b9bf0ed79a472c06c4d6db006 100644 (file)
@@ -26,6 +26,7 @@
  * the reader in flight recorder mode.
  */
 
+#include <stddef.h>
 #include <unistd.h>
 
 /* Internal helpers */
index e597cf4dd42be43d344b29dc31c89b8b90fea83c..f492cc3eaff18cb36197f8cf0b0ed0161964cc60 100644 (file)
@@ -23,6 +23,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include <stddef.h>
 #include <unistd.h>
 #include <urcu/compiler.h>
 
index 2a9fd09af2dd9cf7e17395ddf106ce9e66065436..016fc530685cd572602fef5cb67d00dbd01fc743 100644 (file)
@@ -28,6 +28,7 @@
  *
  * See ring_buffer_frontend.c for more information on wait-free algorithms.
  */
+#include <stddef.h>
 
 #include <urcu/compiler.h>
 #include <urcu/uatomic.h>
index bc1fd1220ba97c21da824ac326d81d4edf789a8a..8a32006139afed25204c1594408ecaae54b3f46d 100644 (file)
  * See frontend.h for channel allocation and read-side API.
  */
 
-#include "frontend.h"
+#include <stddef.h>
+
 #include <urcu-bp.h>
 #include <urcu/compiler.h>
 
+#include "frontend.h"
+
 /**
  * lib_ring_buffer_get_cpu - Precedes ring buffer reserve/commit.
  *
index 2dea1db51f537ca344206ec3daca965cd0745301..b69dc5e6b32dc95c70803e29aec87ad79ab38bfa 100644 (file)
@@ -20,6 +20,7 @@
 
 #define _GNU_SOURCE
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <unistd.h>
 #include <urcu/arch.h>
 #include <limits.h>
index 1f293e3847e44d70fb06f97cb361abf7a2832144..b5d1343ac4d783369ea50c10708062910f89c2b0 100644 (file)
@@ -21,6 +21,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include <stddef.h>
 #include <stdint.h>
 #include <usterr-signal-safe.h>
 #include <urcu/compiler.h>
index 11076d296ae3da2b046e57560d0b545e7ab8b761..94ccfa565a6c2bc7577d6b9533e0916d4983fd57 100644 (file)
@@ -22,6 +22,7 @@
  */
 
 #include <stdint.h>
+#include <stddef.h>
 #include <limits.h>
 #include "shm_internal.h"
 
index 6553621213c109bbc1cd2009a23d068478e6ca8c..7ba16dc5aeb6e336582d406f223c4d574a166a01 100644 (file)
@@ -35,6 +35,8 @@
 /*
  * I/O descriptors for __sfvwrite().
  */
+#include <stddef.h>
+
 struct __lttng_ust_siov {
        void    *iov_base;
        size_t  iov_len;
index b6620cb2acc56f861f098df0cf4e1f2260e3d4a1..9bd2913f58ecbed3a9e56f4e6b5481d974f1d9d6 100644 (file)
@@ -17,6 +17,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#include <stddef.h>
+
 /* write() */
 #include <unistd.h>
 
index a6263979fb0f3392ef0371693a85369169e25353..68b45776346159b8ce9f9e7e9a8f0f9fba3728ee 100644 (file)
@@ -32,6 +32,7 @@
  */
 
 #include <limits.h>
+#include <stddef.h>
 #include <stdio.h>
 #include <string.h>
 #include <stdarg.h>
index 30bedd048be2e9558762e8b13dce9b13c57dfb54..638428fd47001606056e9a5cefd8c472e747ce92 100644 (file)
@@ -34,6 +34,7 @@
 #define UST_SNPRINTF_VARIOUS_H
 
 #include <stdarg.h>
+#include <stddef.h>
 
 struct __lttng_ust_sbuf {
         unsigned char *_base;
index 0c955e5c8eefac7e311f895bed05636d6e664373..453a41b1674423de032e72faa727f80b89f7a8ed 100644 (file)
@@ -32,6 +32,8 @@
 #ifndef _WCIO_H_
 #define _WCIO_H_
 
+#include <stddef.h>
+
 /* minimal requirement of SUSv2 */
 #define WCIO_UNGETWC_BUFSIZE 1
 
index ddb8358723a8cdf79598a1bc838e5b7bf41a43bf..22914eef793b33862d5272ba2bd8e768ef787653 100644 (file)
@@ -27,6 +27,7 @@
  */
 
 #include <lttng/tracepoint.h>
+#include <stddef.h>
 
 TRACEPOINT_ENUM(ust_tests_hello, my_enum,
        TP_ENUM_VALUES(
index 372828f83474b4228551ca960b0e8f10b9afd859..a140ca83039a6448a83a5334bbd62ccf36960d5e 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <lttng/tracepoint.h>
 #include <stdbool.h>
+#include <stddef.h>
 
 TRACEPOINT_EVENT(ust_tests_hello, tptest,
        TP_ARGS(int, anint, int, netint, long *, values,
index 197df21e1ada8bbc1d9e1cdadfc992ae522abd0c..85064846ab60ca449ac17045df97c12e0ee2566b 100644 (file)
@@ -32,6 +32,7 @@
  */
 struct mmsghdr;
 #include <arpa/inet.h>
+#include <stddef.h>
 #include <stdlib.h>
 #include <stdbool.h>
 
index e518b0d4903499aa93281d01f8c5e9689c09441d..f16a75d58177b442c6ad705dac352f6f50556f53 100644 (file)
@@ -27,6 +27,7 @@
  */
 
 #include <lttng/tracepoint.h>
+#include <stddef.h>
 #include <stdbool.h>
 
 TRACEPOINT_EVENT(ust_tests_hello, tptest,
This page took 0.043009 seconds and 4 git commands to generate.