Re: [PATCH] serial: sh-sci: Add missing header guard

From: Greg Kroah-Hartman

Date: Tue Sep 23 2025 - 05:51:40 EST


On Tue, Sep 23, 2025 at 10:28:46AM +0100, Prabhakar wrote:
> From: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>
>
> Add header guard to sh-sci.h to prevent multiple inclusions of the
> header file.
>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>
> ---
> drivers/tty/serial/sh-sci.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/drivers/tty/serial/sh-sci.h b/drivers/tty/serial/sh-sci.h
> index 951681aba586..22f877e2a17e 100644
> --- a/drivers/tty/serial/sh-sci.h

Why is this a .h file at all? It's so small, why not just put it all in
the .c file and then there's no need for it anymore.

thanks,

greg k-h