Re: [PATCH v2] gitignore: Don't ignore 'tags' directory
From: Masahiro Yamada
Date: Mon Nov 25 2024 - 23:20:04 EST
On Mon, Nov 25, 2024 at 5:37 PM Li Zhijian <lizhijian@xxxxxxxxxxx> wrote:
>
> LKP reported warnings [1] regarding files being ignored:
What I meant in the previous reply is LKP is unrelated
because "make W=1" is enough to reproduce these warnings.
Applied to linux-kbuild with the following simplified commit log.
W=1 builds reported warnings regarding files being ignored:
[ snip ]
Although these files are tracked by Git and the warnings are false
Thanks.
> tools/testing/selftests/arm64/tags/.gitignore: warning: ignored by one of the .gitignore files
> tools/testing/selftests/arm64/tags/Makefile: warning: ignored by one of the .gitignore files
> tools/testing/selftests/arm64/tags/tags_test.c: warning: ignored by one of the .gitignore files
>
> These warnings can be reproduced by compiling the kernel with the W=1 option.
> Although these files are tracked by Git and the warnings are false
> positives, adjusting the .gitignore entries will prevent these warnings and
> ensure a smoother script execution.
>
> [1] https://lore.kernel.org/linux-kselftest/202411251308.Vjm5MzVC-lkp@xxxxxxxxx/
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Signed-off-by: Li Zhijian <lizhijian@xxxxxxxxxxx>
> ---
> .gitignore | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/.gitignore b/.gitignore
> index 56972adb5031..6c57bb0259c6 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -128,6 +128,7 @@ series
>
> # ctags files
> tags
> +!tags/
> TAGS
>
> # cscope files
> --
> 2.44.0
>
--
Best Regards
Masahiro Yamada