From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Yury Norov <yury.norov@gmail.com>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
linux-kernel@vger.kernel.org
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>,
Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH v2 2/2] usercopy: Don't use "proxy" headers
Date: Tue, 7 May 2024 23:01:32 +0300 [thread overview]
Message-ID: <20240507200236.527688-3-andriy.shevchenko@linux.intel.com> (raw)
In-Reply-To: <20240507200236.527688-1-andriy.shevchenko@linux.intel.com>
Update header inclusions to follow IWYU (Include What You Use)
principle.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
lib/usercopy.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/lib/usercopy.c b/lib/usercopy.c
index 4b62e6299cc8..499a7a7d54db 100644
--- a/lib/usercopy.c
+++ b/lib/usercopy.c
@@ -1,10 +1,14 @@
// SPDX-License-Identifier: GPL-2.0
-#include <linux/bitops.h>
+#include <linux/compiler.h>
+#include <linux/errno.h>
+#include <linux/export.h>
#include <linux/fault-inject-usercopy.h>
#include <linux/instrumented.h>
+#include <linux/kernel.h>
+#include <linux/nospec.h>
+#include <linux/string.h>
#include <linux/uaccess.h>
#include <linux/wordpart.h>
-#include <linux/nospec.h>
/* out-of-line parts */
--
2.43.0.rc1.1336.g36b5255a03ac
next prev parent reply other threads:[~2024-05-07 20:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-07 20:01 [PATCH v2 0/2] bitops: Reshuffle bitops.h and wordpart,h Andy Shevchenko
2024-05-07 20:01 ` [PATCH v2 1/2] bitops: Move aligned_byte_mask() to wordpart.h Andy Shevchenko
2024-05-07 20:01 ` Andy Shevchenko [this message]
2024-05-07 21:38 ` [PATCH v2 0/2] bitops: Reshuffle bitops.h and wordpart,h Yury Norov
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=20240507200236.527688-3-andriy.shevchenko@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@rasmusvillemoes.dk \
--cc=yury.norov@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox