* [awilliam-vfio:next 5/37] tools/testing/selftests/vfio/.gitignore: warning: ignored by one of the .gitignore files
@ 2025-08-28 1:18 kernel test robot
2025-08-28 16:43 ` David Matlack
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2025-08-28 1:18 UTC (permalink / raw)
To: David Matlack; +Cc: oe-kbuild-all, kvm, Alex Williamson
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/202508280918.rFRyiLEU-lkp@intel.com/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/202508280918.rFRyiLEU-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508280918.rFRyiLEU-lkp@intel.com/
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
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [awilliam-vfio:next 5/37] tools/testing/selftests/vfio/.gitignore: warning: ignored by one of the .gitignore files
2025-08-28 1:18 [awilliam-vfio:next 5/37] tools/testing/selftests/vfio/.gitignore: warning: ignored by one of the .gitignore files kernel test robot
@ 2025-08-28 16:43 ` David Matlack
0 siblings, 0 replies; 2+ messages in thread
From: David Matlack @ 2025-08-28 16:43 UTC (permalink / raw)
To: kernel test robot; +Cc: oe-kbuild-all, kvm, Alex Williamson
On 2025-08-28 09:18 AM, kernel test robot wrote:
> 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/202508280918.rFRyiLEU-lkp@intel.com/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/202508280918.rFRyiLEU-lkp@intel.com/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 <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202508280918.rFRyiLEU-lkp@intel.com/
>
> 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
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.
diff --git a/tools/testing/selftests/vfio/.gitignore b/tools/testing/selftests/vfio/.gitignore
index 6d9381d60172..7fadc19d3bca 100644
--- a/tools/testing/selftests/vfio/.gitignore
+++ b/tools/testing/selftests/vfio/.gitignore
@@ -5,3 +5,6 @@
!*.h
!*.S
!*.sh
+!*.mk
+!.gitignore
+!Makefile
[1] https://lore.kernel.org/kvm/20240828215800.737042-1-seanjc@google.com/
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-08-28 16:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-28 1:18 [awilliam-vfio:next 5/37] tools/testing/selftests/vfio/.gitignore: warning: ignored by one of the .gitignore files kernel test robot
2025-08-28 16:43 ` David Matlack
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).