* [LTP] [PATCH v1] rt_tgsigqueueinfo01.c: replace definition ANDROID with __ANDROID__ @ 2019-04-11 14:26 Zhengwang Ruan 2019-04-11 17:46 ` Petr Vorel 0 siblings, 1 reply; 5+ messages in thread From: Zhengwang Ruan @ 2019-04-11 14:26 UTC (permalink / raw) To: ltp Replace the incorrect definition of ANDROID with __ANDROID__. Signed-off-by: Zhengwang Ruan <ruanzw@xiaopeng.com> --- testcases/kernel/syscalls/rt_tgsigqueueinfo/rt_tgsigqueueinfo01.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/kernel/syscalls/rt_tgsigqueueinfo/rt_tgsigqueueinfo01.c b/testcases/kernel/syscalls/rt_tgsigqueueinfo/rt_tgsigqueueinfo01.c index c8252ed..bee6a62 100644 --- a/testcases/kernel/syscalls/rt_tgsigqueueinfo/rt_tgsigqueueinfo01.c +++ b/testcases/kernel/syscalls/rt_tgsigqueueinfo/rt_tgsigqueueinfo01.c @@ -25,7 +25,7 @@ #include "tst_test.h" #include "lapi/syscalls.h" -#ifndef ANDROID +#ifndef __ANDROID__ #define SI_SIGVAL si_sigval #else #define SI_SIGVAL _sigval -- 2.7.4 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [LTP] [PATCH v1] rt_tgsigqueueinfo01.c: replace definition ANDROID with __ANDROID__ 2019-04-11 14:26 [LTP] [PATCH v1] rt_tgsigqueueinfo01.c: replace definition ANDROID with __ANDROID__ Zhengwang Ruan @ 2019-04-11 17:46 ` Petr Vorel 2019-04-12 15:36 ` =?unknown-8bit?b?6Ziu5q2j5pe6?= 0 siblings, 1 reply; 5+ messages in thread From: Petr Vorel @ 2019-04-11 17:46 UTC (permalink / raw) To: ltp Hi, > Replace the incorrect definition of ANDROID with __ANDROID__. > +++ b/testcases/kernel/syscalls/rt_tgsigqueueinfo/rt_tgsigqueueinfo01.c > @@ -25,7 +25,7 @@ > #include "tst_test.h" > #include "lapi/syscalls.h" > -#ifndef ANDROID > +#ifndef __ANDROID__ Simple grep in AOSP tree would be for this change (and I'd personally prefer it as well) I'd kindly ask android devs which one is correct :). BTW ANDROID was added by Steve. $ cgrep '#if.* __ANDROID__' |wc -l 405 $ cgrep '#if.* ANDROID[^_]' |wc -l 22 Kind regards, Petr ^ permalink raw reply [flat|nested] 5+ messages in thread
* [LTP] [PATCH v1] rt_tgsigqueueinfo01.c: replace definition ANDROID with __ANDROID__ 2019-04-11 17:46 ` Petr Vorel @ 2019-04-12 15:36 ` =?unknown-8bit?b?6Ziu5q2j5pe6?= 2019-04-12 19:49 ` Sandeep Patil 0 siblings, 1 reply; 5+ messages in thread From: =?unknown-8bit?b?6Ziu5q2j5pe6?= @ 2019-04-12 15:36 UTC (permalink / raw) To: ltp Hi Petr, Sandeep, Steve, -------- Original Message -------- From: Petr Vorel Sent: Thu, 11 Apr 2019 19:46:38 +0200 To: Zhengwang Ruan, Steve Muckle, Sandeep Patil Cc: Ltp Subject: Re: [LTP] [PATCH v1] rt_tgsigqueueinfo01.c: replace definition ANDROID with __ANDROID__ > Hi, > >> Replace the incorrect definition of ANDROID with __ANDROID__. >> +++ b/testcases/kernel/syscalls/rt_tgsigqueueinfo/rt_tgsigqueueinfo01.c >> @@ -25,7 +25,7 @@ >> #include "tst_test.h" >> #include "lapi/syscalls.h" >> -#ifndef ANDROID >> +#ifndef __ANDROID__ > Simple grep in AOSP tree would be for this change (and I'd personally prefer it as well) > I'd kindly ask android devs which one is correct :). BTW ANDROID was added by Steve. According to also [1], this patch is acceptable, right? > > $ cgrep '#if.* __ANDROID__' |wc -l > 405 > > $ cgrep '#if.* ANDROID[^_]' |wc -l > 22 > > Kind regards, > Petr Regards, Zhengwang [1] https://groups.google.com/forum/#!topic/android-ndk/cf9_f1SLXls -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linux.it/pipermail/ltp/attachments/20190412/9d22423b/attachment.html> ^ permalink raw reply [flat|nested] 5+ messages in thread
* [LTP] [PATCH v1] rt_tgsigqueueinfo01.c: replace definition ANDROID with __ANDROID__ 2019-04-12 15:36 ` =?unknown-8bit?b?6Ziu5q2j5pe6?= @ 2019-04-12 19:49 ` Sandeep Patil 2019-04-14 10:11 ` Petr Vorel 0 siblings, 1 reply; 5+ messages in thread From: Sandeep Patil @ 2019-04-12 19:49 UTC (permalink / raw) To: ltp On Fri, Apr 12, 2019 at 11:36:46PM +0800, 阮正旺 wrote: > Hi Petr, Sandeep, Steve, > > > -------- Original Message -------- > From: Petr Vorel > Sent: Thu, 11 Apr 2019 19:46:38 +0200 > To: Zhengwang Ruan, Steve Muckle, Sandeep Patil > Cc: Ltp > Subject: Re: [LTP] [PATCH v1] rt_tgsigqueueinfo01.c: replace definition > ANDROID with __ANDROID__ > > Hi, > > > > > Replace the incorrect definition of ANDROID with __ANDROID__. > > > +++ b/testcases/kernel/syscalls/rt_tgsigqueueinfo/rt_tgsigqueueinfo01.c > > > @@ -25,7 +25,7 @@ > > > #include "tst_test.h" > > > #include "lapi/syscalls.h" > > > -#ifndef ANDROID > > > +#ifndef __ANDROID__ > > Simple grep in AOSP tree would be for this change (and I'd personally prefer it as well) > > I'd kindly ask android devs which one is correct :). BTW ANDROID was added by Steve. > > According to also [1], this patch is acceptable, right? Yes, indeed. Acked-by: Sandeep Patil <sspatil@android.com> ^ permalink raw reply [flat|nested] 5+ messages in thread
* [LTP] [PATCH v1] rt_tgsigqueueinfo01.c: replace definition ANDROID with __ANDROID__ 2019-04-12 19:49 ` Sandeep Patil @ 2019-04-14 10:11 ` Petr Vorel 0 siblings, 0 replies; 5+ messages in thread From: Petr Vorel @ 2019-04-14 10:11 UTC (permalink / raw) To: ltp Hi Sandeep, Zhengwang, > On Fri, Apr 12, 2019 at 11:36:46PM +0800, 阮正旺 wrote: > > Hi Petr, Sandeep, Steve, > > -------- Original Message -------- > > From: Petr Vorel > > Sent: Thu, 11 Apr 2019 19:46:38 +0200 > > To: Zhengwang Ruan, Steve Muckle, Sandeep Patil > > Cc: Ltp > > Subject: Re: [LTP] [PATCH v1] rt_tgsigqueueinfo01.c: replace definition > > ANDROID with __ANDROID__ > > > Hi, > > > > Replace the incorrect definition of ANDROID with __ANDROID__. > > > > +++ b/testcases/kernel/syscalls/rt_tgsigqueueinfo/rt_tgsigqueueinfo01.c > > > > @@ -25,7 +25,7 @@ > > > > #include "tst_test.h" > > > > #include "lapi/syscalls.h" > > > > -#ifndef ANDROID > > > > +#ifndef __ANDROID__ > > > Simple grep in AOSP tree would be for this change (and I'd personally prefer it as well) > > > I'd kindly ask android devs which one is correct :). BTW ANDROID was added by Steve. > > According to also [1], this patch is acceptable, right? > Yes, indeed. > Acked-by: Sandeep Patil <sspatil@android.com> Thanks for your review. Merged (with slightly changed commit message) + I made this change in include/tst_safe_posix_ipc.h in a separate commit. Kind regards, Petr ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-04-14 10:11 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-04-11 14:26 [LTP] [PATCH v1] rt_tgsigqueueinfo01.c: replace definition ANDROID with __ANDROID__ Zhengwang Ruan 2019-04-11 17:46 ` Petr Vorel 2019-04-12 15:36 ` =?unknown-8bit?b?6Ziu5q2j5pe6?= 2019-04-12 19:49 ` Sandeep Patil 2019-04-14 10:11 ` Petr Vorel
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox