From: Yichong Chen <chenyichong@uniontech.com>
To: mst@redhat.com, jasowang@redhat.com, xuanzhuo@linux.alibaba.com,
eperezma@redhat.com, akpm@linux-foundation.org
Cc: sj@kernel.org, rppt@kernel.org, ljs@kernel.org,
pabeni@redhat.com, chenyichong@uniontech.com,
virtualization@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH v3 2/2] tools/include: Include stdint.h for SIZE_MAX in overflow.h
Date: Thu, 2 Jul 2026 11:03:58 +0800 [thread overview]
Message-ID: <20260702030358.308155-3-chenyichong@uniontech.com> (raw)
In-Reply-To: <20260702030358.308155-1-chenyichong@uniontech.com>
tools/include/linux/overflow.h uses SIZE_MAX in its size helper
functions.
Include stdint.h so tools users that include overflow.h without another
SIZE_MAX provider can build.
Signed-off-by: Yichong Chen <chenyichong@uniontech.com>
---
tools/include/linux/overflow.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/include/linux/overflow.h b/tools/include/linux/overflow.h
index 3427d7880326..9d30ae0dbd1d 100644
--- a/tools/include/linux/overflow.h
+++ b/tools/include/linux/overflow.h
@@ -2,6 +2,8 @@
#ifndef __LINUX_OVERFLOW_H
#define __LINUX_OVERFLOW_H
+#include <stdint.h>
+
#include <linux/compiler.h>
/*
--
2.51.0
prev parent reply other threads:[~2026-07-02 3:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-02 3:03 [PATCH v3 0/2] tools: Fix tools/virtio test build Yichong Chen
2026-07-02 3:03 ` [PATCH v3 1/2] tools/virtio: Add missing compat definitions for vhost_net_test Yichong Chen
2026-07-02 3:03 ` Yichong Chen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260702030358.308155-3-chenyichong@uniontech.com \
--to=chenyichong@uniontech.com \
--cc=akpm@linux-foundation.org \
--cc=eperezma@redhat.com \
--cc=jasowang@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ljs@kernel.org \
--cc=mst@redhat.com \
--cc=pabeni@redhat.com \
--cc=rppt@kernel.org \
--cc=sj@kernel.org \
--cc=virtualization@lists.linux.dev \
--cc=xuanzhuo@linux.alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.