diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2023-11-30 20:11:45 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-01-26 01:37:53 +0300 |
commit | 7166e8e9135ec859dc5b64aa66da7600eea18382 (patch) | |
tree | a1eca6923351d7e129906e4ffca090a5deee0f88 | |
parent | bc57f3ef8a9eb0180606696f586a6dcfaa175ed0 (diff) | |
download | linux-7166e8e9135ec859dc5b64aa66da7600eea18382.tar.xz |
libapi: Add missing linux/types.h header to get the __u64 type on io.h
[ Upstream commit af76b2dec0984a079d8497bfa37d29a9b55932e1 ]
There are functions using __u64, so we need to have the linux/types.h
header otherwise we'll break when its not included before api/io.h.
Fixes: e95770af4c4a280f ("tools api: Add a lightweight buffered reading api")
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/lkml/ZWjDPL+IzPPsuC3X@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | tools/lib/api/io.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/api/io.h b/tools/lib/api/io.h index 777c20f6b604..458acd294237 100644 --- a/tools/lib/api/io.h +++ b/tools/lib/api/io.h @@ -9,6 +9,7 @@ #include <stdlib.h> #include <unistd.h> +#include <linux/types.h> struct io { /* File descriptor being read/ */ |