All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kari Argillander <kari.argillander@gmail.com>
To: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>,
	ntfs3@lists.linux.dev
Cc: Kari Argillander <kari.argillander@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: [PATCH v2 7/8] fs/ntfs3: Change right headers to lznt.c
Date: Thu,  2 Sep 2021 19:15:27 +0300	[thread overview]
Message-ID: <20210902161528.6262-8-kari.argillander@gmail.com> (raw)
In-Reply-To: <20210902161528.6262-1-kari.argillander@gmail.com>

There is lot of headers which we do not need in this file. Delete them
and add what we really need. Here is list which identify why we need
this header.

<linux/kernel.h> // min()
<linux/slab.h> // kzalloc()
<linux/stddef.h> // offsetof()
<linux/string.h> // memcpy(), memset()
<linux/types.h> // u8, size_t, etc.

"debug.h" // PtrOffset()

Signed-off-by: Kari Argillander <kari.argillander@gmail.com>
---
 fs/ntfs3/lznt.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/fs/ntfs3/lznt.c b/fs/ntfs3/lznt.c
index f1f691a67cc4..12ba42518efe 100644
--- a/fs/ntfs3/lznt.c
+++ b/fs/ntfs3/lznt.c
@@ -5,13 +5,13 @@
  *
  */
 
-#include <linux/blkdev.h>
-#include <linux/buffer_head.h>
-#include <linux/fs.h>
-#include <linux/nls.h>
+#include <linux/kernel.h>
+#include <linux/slab.h>
+#include <linux/stddef.h>
+#include <linux/string.h>
+#include <linux/types.h>
 
 #include "debug.h"
-#include "ntfs.h"
 #include "ntfs_fs.h"
 
 // clang-format off
-- 
2.25.1


  parent reply	other threads:[~2021-09-02 16:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-02 16:15 [PATCH v2 0/8] fs/ntfs3: Refactor header includes Kari Argillander
2021-09-02 16:15 ` [PATCH v2 1/8] fs/ntfs3. Add forward declarations for structs to debug.h Kari Argillander
2021-09-02 16:15 ` [PATCH v2 2/8] fs/ntfs3: Add missing header files to ntfs.h Kari Argillander
2021-09-02 16:15 ` [PATCH v2 3/8] fs/ntfs3: Add missing headers and forward declarations to ntfs_fs.h Kari Argillander
2021-09-02 16:15 ` [PATCH v2 4/8] fs/ntfs3: Add missing header and guards to lib/ headers Kari Argillander
2021-09-02 16:15 ` [PATCH v2 5/8] fs/ntfs3: Change right headers to bitfunc.c Kari Argillander
2021-09-02 16:15 ` [PATCH v2 6/8] fs/ntfs3: Change right headers to upcase.c Kari Argillander
2021-09-02 16:15 ` Kari Argillander [this message]
2021-09-02 16:15 ` [PATCH v2 8/8] fs/ntfs3: Remove unneeded header files from c files Kari Argillander
2021-09-13 16:52 ` [PATCH v2 0/8] fs/ntfs3: Refactor header includes Konstantin Komarov

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=20210902161528.6262-8-kari.argillander@gmail.com \
    --to=kari.argillander@gmail.com \
    --cc=almaz.alexandrovich@paragon-software.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ntfs3@lists.linux.dev \
    /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.