Re: [PATCH 05/33] powerpc/powermac: remove unneeded tty includes

From: Ilpo Järvinen
Date: Wed Jun 11 2025 - 07:26:29 EST


On Wed, 11 Jun 2025, Jiri Slaby (SUSE) wrote:

> All these includes must have been cut & pasted. The code does not use
> any tty or vt functionality at all.
>
> Signed-off-by: Jiri Slaby (SUSE) <jirislaby@xxxxxxxxxx>
> Cc: Madhavan Srinivasan <maddy@xxxxxxxxxxxxx>
> Cc: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
> Cc: Nicholas Piggin <npiggin@xxxxxxxxx>
> Cc: Christophe Leroy <christophe.leroy@xxxxxxxxxx>
> Cc: linuxppc-dev@xxxxxxxxxxxxxxxx
> ---
> arch/powerpc/platforms/powermac/setup.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c
> index e119ced05d10..eb092f293113 100644
> --- a/arch/powerpc/platforms/powermac/setup.c
> +++ b/arch/powerpc/platforms/powermac/setup.c
> @@ -28,13 +28,11 @@
> #include <linux/ptrace.h>
> #include <linux/export.h>
> #include <linux/user.h>
> -#include <linux/tty.h>
> #include <linux/string.h>
> #include <linux/delay.h>
> #include <linux/ioport.h>
> #include <linux/major.h>
> #include <linux/initrd.h>
> -#include <linux/vt_kern.h>
> #include <linux/console.h>
> #include <linux/pci.h>
> #include <linux/adb.h>

Seems true. I had to actually scan through the file as it does have some
console related setup.

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>

--
i.