linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] selftsets: gitignore and clean target file additions
@ 2024-09-24 12:49 Javier Carrasco
  2024-09-24 12:49 ` [PATCH 1/4] selftests: add unshare_test and msg_oob to gitignore Javier Carrasco
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Javier Carrasco @ 2024-09-24 12:49 UTC (permalink / raw)
  To: Shuah Khan, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Allison Henderson, Eric Biederman, Kees Cook
  Cc: linux-kselftest, linux-kernel, netdev, linux-rdma, rds-devel,
	linux-mm, Javier Carrasco

Trivial patches to update the gitignore files unders selftests, and a
little addition to EXTRA_CLEAN under net/rds to account for the
automatically generated include.sh.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
Javier Carrasco (4):
      selftests: add unshare_test and msg_oob to gitignore
      selftests: rds: add include.sh to EXTRA_CLEAN
      selftests: rds: add gitignore file for include.sh
      selftests: exec: update gitignore for load_address

 tools/testing/selftests/core/.gitignore    | 1 +
 tools/testing/selftests/exec/.gitignore    | 2 +-
 tools/testing/selftests/net/.gitignore     | 1 +
 tools/testing/selftests/net/rds/.gitignore | 1 +
 tools/testing/selftests/net/rds/Makefile   | 2 +-
 5 files changed, 5 insertions(+), 2 deletions(-)
---
base-commit: 4d0326b60bb753627437fff0f76bf1525bcda422
change-id: 20240924-selftests-gitignore-e41133e6c5bd

Best regards,
-- 
Javier Carrasco <javier.carrasco.cruz@gmail.com>



^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 1/4] selftests: add unshare_test and msg_oob to gitignore
  2024-09-24 12:49 [PATCH 0/4] selftsets: gitignore and clean target file additions Javier Carrasco
@ 2024-09-24 12:49 ` Javier Carrasco
  2024-09-24 12:49 ` [PATCH 2/4] selftests: rds: add include.sh to EXTRA_CLEAN Javier Carrasco
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 11+ messages in thread
From: Javier Carrasco @ 2024-09-24 12:49 UTC (permalink / raw)
  To: Shuah Khan, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Allison Henderson, Eric Biederman, Kees Cook
  Cc: linux-kselftest, linux-kernel, netdev, linux-rdma, rds-devel,
	linux-mm, Javier Carrasco

These executables are missing from their corresponding gitignore files.
Add them to the lists.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
 tools/testing/selftests/core/.gitignore | 1 +
 tools/testing/selftests/net/.gitignore  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/tools/testing/selftests/core/.gitignore b/tools/testing/selftests/core/.gitignore
index 6e6712ce5817..7999361992aa 100644
--- a/tools/testing/selftests/core/.gitignore
+++ b/tools/testing/selftests/core/.gitignore
@@ -1 +1,2 @@
 close_range_test
+unshare_test
diff --git a/tools/testing/selftests/net/.gitignore b/tools/testing/selftests/net/.gitignore
index 1c04c780db66..9dcdff533414 100644
--- a/tools/testing/selftests/net/.gitignore
+++ b/tools/testing/selftests/net/.gitignore
@@ -17,6 +17,7 @@ ipv6_flowlabel
 ipv6_flowlabel_mgr
 log.txt
 msg_zerocopy
+msg_oob
 ncdevmem
 nettest
 psock_fanout

-- 
2.43.0



^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 2/4] selftests: rds: add include.sh to EXTRA_CLEAN
  2024-09-24 12:49 [PATCH 0/4] selftsets: gitignore and clean target file additions Javier Carrasco
  2024-09-24 12:49 ` [PATCH 1/4] selftests: add unshare_test and msg_oob to gitignore Javier Carrasco
@ 2024-09-24 12:49 ` Javier Carrasco
  2024-09-24 15:25   ` Allison Henderson
  2024-09-24 12:49 ` [PATCH 3/4] selftests: rds: add gitignore file for include.sh Javier Carrasco
  2024-09-24 12:49 ` [PATCH 4/4] selftests: exec: update gitignore for load_address Javier Carrasco
  3 siblings, 1 reply; 11+ messages in thread
From: Javier Carrasco @ 2024-09-24 12:49 UTC (permalink / raw)
  To: Shuah Khan, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Allison Henderson, Eric Biederman, Kees Cook
  Cc: linux-kselftest, linux-kernel, netdev, linux-rdma, rds-devel,
	linux-mm, Javier Carrasco

The include.sh file is generated when building the net/rds selftests,
but there is no rule to delete it with the clean target. Add the file to
EXTRA_CLEAN in order to remove it when required.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
 tools/testing/selftests/net/rds/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/net/rds/Makefile b/tools/testing/selftests/net/rds/Makefile
index da9714bc7aad..0b697669ea51 100644
--- a/tools/testing/selftests/net/rds/Makefile
+++ b/tools/testing/selftests/net/rds/Makefile
@@ -7,6 +7,6 @@ TEST_PROGS := run.sh \
 	include.sh \
 	test.py
 
-EXTRA_CLEAN := /tmp/rds_logs
+EXTRA_CLEAN := /tmp/rds_logs include.sh
 
 include ../../lib.mk

-- 
2.43.0



^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 3/4] selftests: rds: add gitignore file for include.sh
  2024-09-24 12:49 [PATCH 0/4] selftsets: gitignore and clean target file additions Javier Carrasco
  2024-09-24 12:49 ` [PATCH 1/4] selftests: add unshare_test and msg_oob to gitignore Javier Carrasco
  2024-09-24 12:49 ` [PATCH 2/4] selftests: rds: add include.sh to EXTRA_CLEAN Javier Carrasco
@ 2024-09-24 12:49 ` Javier Carrasco
  2024-09-24 15:26   ` Allison Henderson
  2024-09-24 12:49 ` [PATCH 4/4] selftests: exec: update gitignore for load_address Javier Carrasco
  3 siblings, 1 reply; 11+ messages in thread
From: Javier Carrasco @ 2024-09-24 12:49 UTC (permalink / raw)
  To: Shuah Khan, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Allison Henderson, Eric Biederman, Kees Cook
  Cc: linux-kselftest, linux-kernel, netdev, linux-rdma, rds-devel,
	linux-mm, Javier Carrasco

The generated include.sh should be ignored by git. Create a new
gitignore and add the file to the list.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
 tools/testing/selftests/net/rds/.gitignore | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/testing/selftests/net/rds/.gitignore b/tools/testing/selftests/net/rds/.gitignore
new file mode 100644
index 000000000000..1c6f04e2aa11
--- /dev/null
+++ b/tools/testing/selftests/net/rds/.gitignore
@@ -0,0 +1 @@
+include.sh

-- 
2.43.0



^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 4/4] selftests: exec: update gitignore for load_address
  2024-09-24 12:49 [PATCH 0/4] selftsets: gitignore and clean target file additions Javier Carrasco
                   ` (2 preceding siblings ...)
  2024-09-24 12:49 ` [PATCH 3/4] selftests: rds: add gitignore file for include.sh Javier Carrasco
@ 2024-09-24 12:49 ` Javier Carrasco
  2024-09-25 12:00   ` kernel test robot
  2024-09-25 15:46   ` Shuah Khan
  3 siblings, 2 replies; 11+ messages in thread
From: Javier Carrasco @ 2024-09-24 12:49 UTC (permalink / raw)
  To: Shuah Khan, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Allison Henderson, Eric Biederman, Kees Cook
  Cc: linux-kselftest, linux-kernel, netdev, linux-rdma, rds-devel,
	linux-mm, Javier Carrasco

The name of the "load_address" objects has been modified, but the
corresponding entry in the gitignore file must be updated.

Update the load_address entry in the gitignore file to account for
the new names.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
---
 tools/testing/selftests/exec/.gitignore | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/exec/.gitignore b/tools/testing/selftests/exec/.gitignore
index 90c238ba6a4b..4d9fb7b20ea7 100644
--- a/tools/testing/selftests/exec/.gitignore
+++ b/tools/testing/selftests/exec/.gitignore
@@ -9,7 +9,7 @@ execveat.ephemeral
 execveat.denatured
 non-regular
 null-argv
-/load_address_*
+/load_address.*
 /recursion-depth
 xxxxxxxx*
 pipe

-- 
2.43.0



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/4] selftests: rds: add include.sh to EXTRA_CLEAN
  2024-09-24 12:49 ` [PATCH 2/4] selftests: rds: add include.sh to EXTRA_CLEAN Javier Carrasco
@ 2024-09-24 15:25   ` Allison Henderson
  0 siblings, 0 replies; 11+ messages in thread
From: Allison Henderson @ 2024-09-24 15:25 UTC (permalink / raw)
  To: ebiederm, kees, javier.carrasco.cruz, shuah, davem, kuba, pabeni,
	edumazet
  Cc: rds-devel, linux-mm, linux-kselftest, linux-kernel, linux-rdma, netdev

On Tue, 2024-09-24 at 14:49 +0200, Javier Carrasco wrote:
> The include.sh file is generated when building the net/rds selftests,
> but there is no rule to delete it with the clean target. Add the file
> to
> EXTRA_CLEAN in order to remove it when required.
> 
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>

Ok, looks good. Thanks for catching this
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>

> ---
>  tools/testing/selftests/net/rds/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/net/rds/Makefile
> b/tools/testing/selftests/net/rds/Makefile
> index da9714bc7aad..0b697669ea51 100644
> --- a/tools/testing/selftests/net/rds/Makefile
> +++ b/tools/testing/selftests/net/rds/Makefile
> @@ -7,6 +7,6 @@ TEST_PROGS := run.sh \
>         include.sh \
>         test.py
>  
> -EXTRA_CLEAN := /tmp/rds_logs
> +EXTRA_CLEAN := /tmp/rds_logs include.sh
>  
>  include ../../lib.mk
> 


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 3/4] selftests: rds: add gitignore file for include.sh
  2024-09-24 12:49 ` [PATCH 3/4] selftests: rds: add gitignore file for include.sh Javier Carrasco
@ 2024-09-24 15:26   ` Allison Henderson
  0 siblings, 0 replies; 11+ messages in thread
From: Allison Henderson @ 2024-09-24 15:26 UTC (permalink / raw)
  To: ebiederm, kees, javier.carrasco.cruz, shuah, davem, kuba, pabeni,
	edumazet
  Cc: rds-devel, linux-mm, linux-kselftest, linux-kernel, linux-rdma, netdev

On Tue, 2024-09-24 at 14:49 +0200, Javier Carrasco wrote:
> The generated include.sh should be ignored by git. Create a new
> gitignore and add the file to the list.
> 
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>

Thanks!
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>

> ---
>  tools/testing/selftests/net/rds/.gitignore | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tools/testing/selftests/net/rds/.gitignore
> b/tools/testing/selftests/net/rds/.gitignore
> new file mode 100644
> index 000000000000..1c6f04e2aa11
> --- /dev/null
> +++ b/tools/testing/selftests/net/rds/.gitignore
> @@ -0,0 +1 @@
> +include.sh
> 


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 4/4] selftests: exec: update gitignore for load_address
  2024-09-24 12:49 ` [PATCH 4/4] selftests: exec: update gitignore for load_address Javier Carrasco
@ 2024-09-25 12:00   ` kernel test robot
  2024-09-25 15:46   ` Shuah Khan
  1 sibling, 0 replies; 11+ messages in thread
From: kernel test robot @ 2024-09-25 12:00 UTC (permalink / raw)
  To: Javier Carrasco, Shuah Khan, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Allison Henderson, Eric Biederman,
	Kees Cook
  Cc: llvm, oe-kbuild-all, netdev, linux-kselftest, linux-kernel,
	linux-rdma, rds-devel, linux-mm, Javier Carrasco

Hi Javier,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 4d0326b60bb753627437fff0f76bf1525bcda422]

url:    https://github.com/intel-lab-lkp/linux/commits/Javier-Carrasco/selftests-add-unshare_test-and-msg_oob-to-gitignore/20240924-205133
base:   4d0326b60bb753627437fff0f76bf1525bcda422
patch link:    https://lore.kernel.org/r/20240924-selftests-gitignore-v1-4-9755ac883388%40gmail.com
patch subject: [PATCH 4/4] selftests: exec: update gitignore for load_address
config: x86_64-allnoconfig (https://download.01.org/0day-ci/archive/20240925/202409251828.dMx8LnrF-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240925/202409251828.dMx8LnrF-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/202409251828.dMx8LnrF-lkp@intel.com/

All warnings (new ones prefixed by >>):

   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
>> tools/testing/selftests/exec/load_address.c: 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] 11+ messages in thread

* Re: [PATCH 4/4] selftests: exec: update gitignore for load_address
  2024-09-24 12:49 ` [PATCH 4/4] selftests: exec: update gitignore for load_address Javier Carrasco
  2024-09-25 12:00   ` kernel test robot
@ 2024-09-25 15:46   ` Shuah Khan
  2024-09-25 16:25     ` Javier Carrasco
  1 sibling, 1 reply; 11+ messages in thread
From: Shuah Khan @ 2024-09-25 15:46 UTC (permalink / raw)
  To: Javier Carrasco, Shuah Khan, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Allison Henderson, Eric Biederman,
	Kees Cook
  Cc: linux-kselftest, linux-kernel, netdev, linux-rdma, rds-devel,
	linux-mm, Shuah Khan

On 9/24/24 06:49, Javier Carrasco wrote:
> The name of the "load_address" objects has been modified, but the
> corresponding entry in the gitignore file must be updated.
> 
> Update the load_address entry in the gitignore file to account for
> the new names.
> 
> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
> ---
>   tools/testing/selftests/exec/.gitignore | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/exec/.gitignore b/tools/testing/selftests/exec/.gitignore
> index 90c238ba6a4b..4d9fb7b20ea7 100644
> --- a/tools/testing/selftests/exec/.gitignore
> +++ b/tools/testing/selftests/exec/.gitignore
> @@ -9,7 +9,7 @@ execveat.ephemeral
>   execveat.denatured
>   non-regular
>   null-argv
> -/load_address_*
> +/load_address.*

Hmm. This will include the load_address.c which shouldn't
be included in the .gitignore?

>   /recursion-depth
>   xxxxxxxx*
>   pipe
> 

thanks,
-- Shuah


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 4/4] selftests: exec: update gitignore for load_address
  2024-09-25 15:46   ` Shuah Khan
@ 2024-09-25 16:25     ` Javier Carrasco
  2024-09-25 17:44       ` Shuah Khan
  0 siblings, 1 reply; 11+ messages in thread
From: Javier Carrasco @ 2024-09-25 16:25 UTC (permalink / raw)
  To: Shuah Khan, Shuah Khan, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Allison Henderson, Eric Biederman,
	Kees Cook
  Cc: linux-kselftest, linux-kernel, netdev, linux-rdma, rds-devel, linux-mm

On 25/09/2024 17:46, Shuah Khan wrote:
> On 9/24/24 06:49, Javier Carrasco wrote:
>> The name of the "load_address" objects has been modified, but the
>> corresponding entry in the gitignore file must be updated.
>>
>> Update the load_address entry in the gitignore file to account for
>> the new names.
>>
>> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
>> ---
>>   tools/testing/selftests/exec/.gitignore | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/tools/testing/selftests/exec/.gitignore b/tools/testing/
>> selftests/exec/.gitignore
>> index 90c238ba6a4b..4d9fb7b20ea7 100644
>> --- a/tools/testing/selftests/exec/.gitignore
>> +++ b/tools/testing/selftests/exec/.gitignore
>> @@ -9,7 +9,7 @@ execveat.ephemeral
>>   execveat.denatured
>>   non-regular
>>   null-argv
>> -/load_address_*
>> +/load_address.*
> 
> Hmm. This will include the load_address.c which shouldn't
> be included in the .gitignore?
> 
>>   /recursion-depth
>>   xxxxxxxx*
>>   pipe
>>
> 
> thanks,
> -- Shuah


Hi, the kernel test robot already notified me about that issue, and I
sent a v2 to fix it shortly after. Please take a look at the newer
version where I added the exception for load_address.c.

Thanks and best regards,
Javier Carrasco


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 4/4] selftests: exec: update gitignore for load_address
  2024-09-25 16:25     ` Javier Carrasco
@ 2024-09-25 17:44       ` Shuah Khan
  0 siblings, 0 replies; 11+ messages in thread
From: Shuah Khan @ 2024-09-25 17:44 UTC (permalink / raw)
  To: Javier Carrasco, Shuah Khan, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Allison Henderson, Eric Biederman,
	Kees Cook
  Cc: linux-kselftest, linux-kernel, netdev, linux-rdma, rds-devel,
	linux-mm, Shuah Khan

On 9/25/24 10:25, Javier Carrasco wrote:
> On 25/09/2024 17:46, Shuah Khan wrote:
>> On 9/24/24 06:49, Javier Carrasco wrote:
>>> The name of the "load_address" objects has been modified, but the
>>> corresponding entry in the gitignore file must be updated.
>>>
>>> Update the load_address entry in the gitignore file to account for
>>> the new names.
>>>
>>> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
>>> ---
>>>    tools/testing/selftests/exec/.gitignore | 2 +-
>>>    1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/tools/testing/selftests/exec/.gitignore b/tools/testing/
>>> selftests/exec/.gitignore
>>> index 90c238ba6a4b..4d9fb7b20ea7 100644
>>> --- a/tools/testing/selftests/exec/.gitignore
>>> +++ b/tools/testing/selftests/exec/.gitignore
>>> @@ -9,7 +9,7 @@ execveat.ephemeral
>>>    execveat.denatured
>>>    non-regular
>>>    null-argv
>>> -/load_address_*
>>> +/load_address.*
>>
>> Hmm. This will include the load_address.c which shouldn't
>> be included in the .gitignore?
>>
>>>    /recursion-depth
>>>    xxxxxxxx*
>>>    pipe
>>>
>>
>> thanks,
>> -- Shuah
> 
> 
> Hi, the kernel test robot already notified me about that issue, and I
> sent a v2 to fix it shortly after. Please take a look at the newer
> version where I added the exception for load_address.c.
> 

Thanks. I saw your v2 after sending this email. I have a comment
on v2 to split core and net patch

thanks,
-- Shuah



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-09-25 17:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-24 12:49 [PATCH 0/4] selftsets: gitignore and clean target file additions Javier Carrasco
2024-09-24 12:49 ` [PATCH 1/4] selftests: add unshare_test and msg_oob to gitignore Javier Carrasco
2024-09-24 12:49 ` [PATCH 2/4] selftests: rds: add include.sh to EXTRA_CLEAN Javier Carrasco
2024-09-24 15:25   ` Allison Henderson
2024-09-24 12:49 ` [PATCH 3/4] selftests: rds: add gitignore file for include.sh Javier Carrasco
2024-09-24 15:26   ` Allison Henderson
2024-09-24 12:49 ` [PATCH 4/4] selftests: exec: update gitignore for load_address Javier Carrasco
2024-09-25 12:00   ` kernel test robot
2024-09-25 15:46   ` Shuah Khan
2024-09-25 16:25     ` Javier Carrasco
2024-09-25 17:44       ` Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox