[PATCH v1] tools include: Add missing stdarg.h include

Ian Rogers posted 1 patch 1 week ago
tools/include/tools/dis-asm-compat.h | 1 +
1 file changed, 1 insertion(+)
[PATCH v1] tools include: Add missing stdarg.h include
Posted by Ian Rogers 1 week ago
Header file makes use of varargs but doesn't directly include stdarg.h.

Reported-by: sashiko-bot@kernel.org
Closes: https://lore.kernel.org/linux-perf-users/20260916062233.192271F000FF@smtp.kernel.org/
Signed-off-by: Ian Rogers <irogers@google.com>
---
 tools/include/tools/dis-asm-compat.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/include/tools/dis-asm-compat.h b/tools/include/tools/dis-asm-compat.h
index 70f331e23ed3..1e0586d8451b 100644
--- a/tools/include/tools/dis-asm-compat.h
+++ b/tools/include/tools/dis-asm-compat.h
@@ -2,6 +2,7 @@
 #ifndef _TOOLS_DIS_ASM_COMPAT_H
 #define _TOOLS_DIS_ASM_COMPAT_H
 
+#include <stdarg.h>
 #include <stdio.h>
 #include <dis-asm.h>
 
-- 
2.55.0.1082.g2b9226bbc0-goog
Re: [PATCH v1] tools include: Add missing stdarg.h include
Posted by Namhyung Kim 5 days, 19 hours ago
On Wed, Sep 16, 2026 at 09:04:54PM -0700, Ian Rogers wrote:
> Header file makes use of varargs but doesn't directly include stdarg.h.
> 
> Reported-by: sashiko-bot@kernel.org
> Closes: https://lore.kernel.org/linux-perf-users/20260916062233.192271F000FF@smtp.kernel.org/
> Signed-off-by: Ian Rogers <irogers@google.com>

Acked-by: Namhyung Kim <namhyung@kernel.org>

Thanks,
Namhyung

> ---
>  tools/include/tools/dis-asm-compat.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tools/include/tools/dis-asm-compat.h b/tools/include/tools/dis-asm-compat.h
> index 70f331e23ed3..1e0586d8451b 100644
> --- a/tools/include/tools/dis-asm-compat.h
> +++ b/tools/include/tools/dis-asm-compat.h
> @@ -2,6 +2,7 @@
>  #ifndef _TOOLS_DIS_ASM_COMPAT_H
>  #define _TOOLS_DIS_ASM_COMPAT_H
>  
> +#include <stdarg.h>
>  #include <stdio.h>
>  #include <dis-asm.h>
>  
> -- 
> 2.55.0.1082.g2b9226bbc0-goog
>