Re: [PATCH] readdir: Remove unused header include

From: Jan Kara
Date: Mon Jun 03 2024 - 07:07:09 EST


On Sun 02-06-24 12:15:35, Thorsten Blum wrote:
> Since commit c512c6918719 ("uaccess: implement a proper
> unsafe_copy_to_user() and switch filldir over to it") the header file is
> no longer needed.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxxx>

Nice. Feel free to add:

Reviewed-by: Jan Kara <jack@xxxxxxx>

Honza

> ---
> fs/readdir.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/fs/readdir.c b/fs/readdir.c
> index 5045e32f1cb6..d6c82421902a 100644
> --- a/fs/readdir.c
> +++ b/fs/readdir.c
> @@ -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
> --
> 2.45.1
>
--
Jan Kara <jack@xxxxxxxx>
SUSE Labs, CR