Skip to contentSkip to conversation

readdir: Remove unused header include

PATCH Applied Thorsten Blum 3 participants 3 messages Jun 2, 2024 – Jun 3, 2024 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 readdir: Remove unused header include

Since commit c512c6918719 ("uaccess: implement a proper unsafe_copy_to_user() and switch filldir over to it") the header file is no longer needed.

---
 fs/readdir.c | 2 --
 1 file changed, 2 deletions(-)
fs/readdir.c +0 -2
index 5045e32f1cb6..d6c82421902a 100644
@@ -22,8 +22,6 @@
 #include <linux/compat.h>
 #include <linux/uaccess.h>
 
-#include <asm/unaligned.h>
-
 /*
  * Some filesystems were never converted to '->iterate_shared()'
  * and their directory iterators want the inode lock held for
Signature · 1 line
2.45.1
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Thorsten Blum

Since commit c512c6918719 ("uaccess: implement a proper unsafe_copy_to_user() and switch filldir over to it") the header file is no longer needed.

Nice. Feel free to add:

Honza

Quoted 20 lines
---
 fs/readdir.c | 2 --
 1 file changed, 2 deletions(-)
fs/readdir.c +0 -2
index 5045e32f1cb6..d6c82421902a 100644
@@ -22,8 +22,6 @@
 #include <linux/compat.h>
 #include <linux/uaccess.h>
 
-#include <asm/unaligned.h>
-
 /*
  * Some filesystems were never converted to '->iterate_shared()'
  * and their directory iterators want the inode lock held for
Signature · 1 line
2.45.1
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
maintainer Applied
#2 lore raw
In reply to Thorsten Blum
Quoted 5 lines · Thorsten Blum

Since commit c512c6918719 ("uaccess: implement a proper unsafe_copy_to_user() and switch filldir over to it") the header file is no longer needed.

Applied to the vfs.misc branch of the vfs/vfs.git tree. Patches in the vfs.misc branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.misc

[1/1] readdir: Remove unused header include

      https://git.kernel.org/vfs/vfs/c/c06a4cc368ac