Re: [PATCH] drm: add .hdrtest to .gitignore under drm directories
From: Yo-Jung (Leo) Lin
Date: Fri Mar 14 2025 - 01:40:43 EST
Hi Jani,
On Thu, Mar 13, 2025 at 6:48 PM Jani Nikula <jani.nikula@xxxxxxxxxxxxxxx> wrote:
>
> On Thu, 13 Mar 2025, "Yo-Jung (Leo) Lin" <leo.lin@xxxxxxxxxxxxx> wrote:
> > The header self-contained tests in drm may leave .hdrtest files in
> > include/drm/ and drivers/gpu/drm/. Omit them by adding .gitignore
>
> This has already been the case with usr/include for
> CONFIG_UAPI_HEADER_TEST=y but I guess nobody noticed before.
>
> Maybe fix that too?
I think for usr/include there's already a .gitignore for that. For
example see commit 5134e94ac4f5 (usr/include: refactor .gitignore).
>
> BR,
> Jani.
>
>
> >
> > Signed-off-by: Yo-Jung (Leo) Lin <leo.lin@xxxxxxxxxxxxx>
> > ---
> > drivers/gpu/drm/.gitignore | 1 +
> > include/drm/.gitignore | 1 +
> > 2 files changed, 2 insertions(+)
> > create mode 100644 drivers/gpu/drm/.gitignore
> > create mode 100644 include/drm/.gitignore
> >
> > diff --git a/drivers/gpu/drm/.gitignore b/drivers/gpu/drm/.gitignore
> > new file mode 100644
> > index 000000000000..d9a77f3b59b2
> > --- /dev/null
> > +++ b/drivers/gpu/drm/.gitignore
> > @@ -0,0 +1 @@
> > +*.hdrtest
> > diff --git a/include/drm/.gitignore b/include/drm/.gitignore
> > new file mode 100644
> > index 000000000000..d9a77f3b59b2
> > --- /dev/null
> > +++ b/include/drm/.gitignore
> > @@ -0,0 +1 @@
> > +*.hdrtest
>
> --
> Jani Nikula, Intel
Best,
Leo