tools/testing/selftests/vfio/.gitignore: warning: ignored by one of the .gitignore files
Subsystems (4)
kernel test robot
build bottree: https://github.com/awilliam/linux-vfio.git next head: 9f3acb3d9a1872e2fa36af068ca2e93a8a864089 commit: 292e9ee22b0adad49c9a6f63708988e32c007da6 [5/37] selftests: Create tools/testing/selftests/vfio config: i386-buildonly-randconfig-001-20250828 (https://download.01.org/0day-ci/archive/20250828/[email protected]/config) compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250828/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
>> tools/testing/selftests/vfio/.gitignore: warning: ignored by one of the .gitignore files >> tools/testing/selftests/vfio/Makefile: warning: ignored by one of the .gitignore files
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
David Matlack
maintainerQuoted 7 lines · kernel test robot
tree: https://github.com/awilliam/linux-vfio.git next head: 9f3acb3d9a1872e2fa36af068ca2e93a8a864089 commit: 292e9ee22b0adad49c9a6f63708988e32c007da6 [5/37] selftests: Create tools/testing/selftests/vfio config: i386-buildonly-randconfig-001-20250828 (https://download.01.org/0day-ci/archive/20250828/[email protected]/config) compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250828/[email protected]/reproduce)
Quoted 9 lines
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/All warnings (new ones prefixed by >>):
Quoted 2 lines
Quoted 2 lines
tools/testing/selftests/vfio/.gitignore: warning: ignored by one of the .gitignore filestools/testing/selftests/vfio/Makefile: warning: ignored by one of the .gitignore files
The warning is that tools/testing/selftests/vfio/.gitignore and tools/testing/selftests/vfio/Makefile are both ignored by an existing .gitignore file. That .gitignore file is tools/testing/selftests/vfio/.gitignore:
$ cat tools/testing/selftests/vfio/.gitignore # SPDX-License-Identifier: GPL-2.0-only * !/**/ !*.c !*.h !*.S !*.sh
This .gitignore is designed to ignore everything but directories, .c, .h. .S, and .sh files. One-off files can be added with git add --force and then git will track any changes to those files automatically going forward (even though they technically match the .gitignore file).
I stole this approach from the KVM selftests but it looks like they hit the same warning and decided to add their one-off files to their .gitignore file to squash the warnings [1].
I will send a similar patch to fix squash this warning for VFIO selftests.
e.g.
tools/testing/selftests/vfio/.gitignore +3 -0
@@ -5,3 +5,6 @@ !*.h !*.S !*.sh +!*.mk +!.gitignore +!Makefile