public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH v2 1/2] hugeshmctl01: Mark struct tcase and several functions as static
@ 2023-08-25 11:35 Yang Xu
  2023-08-25 11:35 ` [LTP] [PATCH v2 2/2] hugeshmctl03: " Yang Xu
  0 siblings, 1 reply; 5+ messages in thread
From: Yang Xu @ 2023-08-25 11:35 UTC (permalink / raw)
  To: ltp

To follow LTP conventions.

Reviewed-by: Xiao Yang <yangx.jy@fujitsu.com>
Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
 testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl01.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl01.c b/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl01.c
index 11cd69050..8cacde7cd 100644
--- a/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl01.c
+++ b/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl01.c
@@ -53,7 +53,7 @@ static void func_set(void);
 static void func_rmid(void);
 static void *set_shmat(void);
 
-struct tcase {
+static struct tcase {
 	int cmd;
 	void (*func_test) (void);
 	void (*func_setup) (void);
@@ -90,7 +90,7 @@ static void test_hugeshmctl(unsigned int i)
 /*
  * set_shmat() - Attach the shared memory and return the pointer.
  */
-void *set_shmat(void)
+static void *set_shmat(void)
 {
 	void *rval;
 
@@ -279,7 +279,7 @@ static void func_rmid(void)
 	shm_id_1 = -1;
 }
 
-void setup(void)
+static void setup(void)
 {
 	long hpage_size;
 
@@ -293,7 +293,7 @@ void setup(void)
 	shmkey = getipckey();
 }
 
-void cleanup(void)
+static void cleanup(void)
 {
 	rm_shm(shm_id_1);
 }
-- 
2.39.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

* [LTP] [PATCH v2 2/2] hugeshmctl03: Mark struct tcase and several functions as static
  2023-08-25 11:35 [LTP] [PATCH v2 1/2] hugeshmctl01: Mark struct tcase and several functions as static Yang Xu
@ 2023-08-25 11:35 ` Yang Xu
  2023-08-29  5:38   ` Avinesh Kumar
  0 siblings, 1 reply; 5+ messages in thread
From: Yang Xu @ 2023-08-25 11:35 UTC (permalink / raw)
  To: ltp

To follow LTP conventions.

Reviewed-by: Xiao Yang <yangx.jy@fujitsu.com>
Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
 testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c b/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c
index 21ec6bf78..61e9704bb 100644
--- a/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c
+++ b/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c
@@ -44,7 +44,7 @@ static struct shmid_ds buf;
 static uid_t ltp_uid;
 static char *ltp_user = "nobody";
 
-struct tcase {
+static struct tcase {
 	int *shmid;
 	int cmd;
 	struct shmid_ds *sbuf;
@@ -97,7 +97,7 @@ static void do_child(void)
 	}
 }
 
-void setup(void)
+static void setup(void)
 {
 	long hpage_size;
 
@@ -118,7 +118,7 @@ void setup(void)
 	ltp_uid = getuserid(ltp_user);
 }
 
-void cleanup(void)
+static void cleanup(void)
 {
 	rm_shm(shm_id_1);
 }
-- 
2.39.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

* Re: [LTP] [PATCH v2 2/2] hugeshmctl03: Mark struct tcase and several functions as static
  2023-08-25 11:35 ` [LTP] [PATCH v2 2/2] hugeshmctl03: " Yang Xu
@ 2023-08-29  5:38   ` Avinesh Kumar
  2023-08-29 14:03     ` Yang Xu (Fujitsu)
  0 siblings, 1 reply; 5+ messages in thread
From: Avinesh Kumar @ 2023-08-29  5:38 UTC (permalink / raw)
  To: Yang Xu; +Cc: ltp

Hi Yang,

Changes looks fine, but I see that there are still make-check warnings for
both these tests. You may want to fix them also or maybe another commit.

Reviewed-by: Avinesh Kumar <akumar@suse.de>
for both the patches.

On Friday, August 25, 2023 5:05:36 PM IST Yang Xu wrote:
> To follow LTP conventions.
> 
> Reviewed-by: Xiao Yang <yangx.jy@fujitsu.com>
> Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
> ---
>  testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c
> b/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c index
> 21ec6bf78..61e9704bb 100644
> --- a/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c
> +++ b/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c
> @@ -44,7 +44,7 @@ static struct shmid_ds buf;
>  static uid_t ltp_uid;
>  static char *ltp_user = "nobody";
> 
> -struct tcase {
> +static struct tcase {
>  	int *shmid;
>  	int cmd;
>  	struct shmid_ds *sbuf;
> @@ -97,7 +97,7 @@ static void do_child(void)
>  	}
>  }
> 
> -void setup(void)
> +static void setup(void)
>  {
>  	long hpage_size;
> 
> @@ -118,7 +118,7 @@ void setup(void)
>  	ltp_uid = getuserid(ltp_user);
>  }
> 
> -void cleanup(void)
> +static void cleanup(void)
>  {
>  	rm_shm(shm_id_1);
>  }


--
Regards,
Avinesh



-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

* Re: [LTP] [PATCH v2 2/2] hugeshmctl03: Mark struct tcase and several functions as static
  2023-08-29  5:38   ` Avinesh Kumar
@ 2023-08-29 14:03     ` Yang Xu (Fujitsu)
  2023-09-05  9:06       ` Richard Palethorpe
  0 siblings, 1 reply; 5+ messages in thread
From: Yang Xu (Fujitsu) @ 2023-08-29 14:03 UTC (permalink / raw)
  To: Avinesh Kumar; +Cc: ltp@lists.linux.it

Hi  Avinesh

> Hi Yang,
> 
> Changes looks fine, but I see that there are still make-check warnings for
> both these tests. You may want to fix them also or maybe another commit.
> 
> Reviewed-by: Avinesh Kumar <akumar@suse.de>
> for both the patches.

Thanks for your review, I have sloved make-check warngings and pushed.

ps:Sorry, I miss your review-by tag by accident.

Best Regards
Yang Xu
> 
> On Friday, August 25, 2023 5:05:36 PM IST Yang Xu wrote:
>> To follow LTP conventions.
>>
>> Reviewed-by: Xiao Yang <yangx.jy@fujitsu.com>
>> Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
>> ---
>>   testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c | 6 +++---
>>   1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c
>> b/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c index
>> 21ec6bf78..61e9704bb 100644
>> --- a/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c
>> +++ b/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c
>> @@ -44,7 +44,7 @@ static struct shmid_ds buf;
>>   static uid_t ltp_uid;
>>   static char *ltp_user = "nobody";
>>
>> -struct tcase {
>> +static struct tcase {
>>   	int *shmid;
>>   	int cmd;
>>   	struct shmid_ds *sbuf;
>> @@ -97,7 +97,7 @@ static void do_child(void)
>>   	}
>>   }
>>
>> -void setup(void)
>> +static void setup(void)
>>   {
>>   	long hpage_size;
>>
>> @@ -118,7 +118,7 @@ void setup(void)
>>   	ltp_uid = getuserid(ltp_user);
>>   }
>>
>> -void cleanup(void)
>> +static void cleanup(void)
>>   {
>>   	rm_shm(shm_id_1);
>>   }
> 
> 
> --
> Regards,
> Avinesh
> 
> 

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

* Re: [LTP] [PATCH v2 2/2] hugeshmctl03: Mark struct tcase and several functions as static
  2023-08-29 14:03     ` Yang Xu (Fujitsu)
@ 2023-09-05  9:06       ` Richard Palethorpe
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Palethorpe @ 2023-09-05  9:06 UTC (permalink / raw)
  To: Yang Xu (Fujitsu); +Cc: ltp

Hello,

"Yang Xu (Fujitsu)" <xuyang2018.jy@fujitsu.com> writes:

> Hi  Avinesh
>
>> Hi Yang,
>> 
>> Changes looks fine, but I see that there are still make-check warnings for
>> both these tests. You may want to fix them also or maybe another commit.
>> 
>> Reviewed-by: Avinesh Kumar <akumar@suse.de>
>> for both the patches.
>
> Thanks for your review, I have sloved make-check warngings and pushed.
>
> ps:Sorry, I miss your review-by tag by accident.

In the future please mark it as accepted in patchwork.

>
> Best Regards
> Yang Xu
>> 
>> On Friday, August 25, 2023 5:05:36 PM IST Yang Xu wrote:
>>> To follow LTP conventions.
>>>
>>> Reviewed-by: Xiao Yang <yangx.jy@fujitsu.com>
>>> Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
>>> ---
>>>   testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c | 6 +++---
>>>   1 file changed, 3 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c
>>> b/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c index
>>> 21ec6bf78..61e9704bb 100644
>>> --- a/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c
>>> +++ b/testcases/kernel/mem/hugetlb/hugeshmctl/hugeshmctl03.c
>>> @@ -44,7 +44,7 @@ static struct shmid_ds buf;
>>>   static uid_t ltp_uid;
>>>   static char *ltp_user = "nobody";
>>>
>>> -struct tcase {
>>> +static struct tcase {
>>>   	int *shmid;
>>>   	int cmd;
>>>   	struct shmid_ds *sbuf;
>>> @@ -97,7 +97,7 @@ static void do_child(void)
>>>   	}
>>>   }
>>>
>>> -void setup(void)
>>> +static void setup(void)
>>>   {
>>>   	long hpage_size;
>>>
>>> @@ -118,7 +118,7 @@ void setup(void)
>>>   	ltp_uid = getuserid(ltp_user);
>>>   }
>>>
>>> -void cleanup(void)
>>> +static void cleanup(void)
>>>   {
>>>   	rm_shm(shm_id_1);
>>>   }
>> 
>> 
>> --
>> Regards,
>> Avinesh
>> 
>> 


-- 
Thank you,
Richard.

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

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

end of thread, other threads:[~2023-09-05  9:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-25 11:35 [LTP] [PATCH v2 1/2] hugeshmctl01: Mark struct tcase and several functions as static Yang Xu
2023-08-25 11:35 ` [LTP] [PATCH v2 2/2] hugeshmctl03: " Yang Xu
2023-08-29  5:38   ` Avinesh Kumar
2023-08-29 14:03     ` Yang Xu (Fujitsu)
2023-09-05  9:06       ` Richard Palethorpe

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