* [PATCH 0/3] selftests: ptrace, kcmp, efivars build failure fixes @ 2015-03-10 22:00 Shuah Khan 2015-03-10 22:00 ` [PATCH 3/3] selftests: kcmp build fails when invoked from kselftest target Shuah Khan [not found] ` <cover.1426022048.git.shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> 0 siblings, 2 replies; 10+ messages in thread From: Shuah Khan @ 2015-03-10 22:00 UTC (permalink / raw) To: gorcunov-GEFAQzZX7r8dnm+yROfE0A, akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b, tranmanphong-Re5JQEeQqe8AvxtiuMwx3w, mpe-Gsx/Oe8HsFggBc27wqDAHg Cc: Shuah Khan, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-api-u79uwXL29TY76Z2rM5mHXA ptrace, efivars, and kcmp Makefiles don't have explicit build rule. As a result, build fails when make is run from top level Makefile target kselftest. Without the explicit rule, make works only when it is run in the current directory or from selftests directory. Fxing the problems by adding an explicit build rule to fix the problem. Shuah Khan (3): selftests: ptrace build fails when invoked from kselftest target selftests: efivars build fails when invoked from kselftest target selftests: kcmp build fails when invoked from kselftest target tools/testing/selftests/efivarfs/Makefile | 2 ++ tools/testing/selftests/kcmp/Makefile | 5 +++-- tools/testing/selftests/ptrace/Makefile | 5 +++-- 3 files changed, 8 insertions(+), 4 deletions(-) -- 2.1.0 ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 3/3] selftests: kcmp build fails when invoked from kselftest target 2015-03-10 22:00 [PATCH 0/3] selftests: ptrace, kcmp, efivars build failure fixes Shuah Khan @ 2015-03-10 22:00 ` Shuah Khan [not found] ` <80f321919d8d1f804c4933acac9b044d4c6626eb.1426022048.git.shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> [not found] ` <cover.1426022048.git.shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> 1 sibling, 1 reply; 10+ messages in thread From: Shuah Khan @ 2015-03-10 22:00 UTC (permalink / raw) To: gorcunov, akpm, tranmanphong, mpe; +Cc: Shuah Khan, linux-kernel, linux-api kcmp Makefile doesn't have an explicit build rule. As a result, kcmp build fails, when it is run from top level Makefile target kselftest. Without the explicit rule, make works only when it is run in the current directory or from selftests directory. Add an explicit build rule to fix the problem. In addition, build fails as it can't find kcmp.h. Fix it by passing CFLAGS. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com> --- tools/testing/selftests/kcmp/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/kcmp/Makefile b/tools/testing/selftests/kcmp/Makefile index ff0eefd..83383eb 100644 --- a/tools/testing/selftests/kcmp/Makefile +++ b/tools/testing/selftests/kcmp/Makefile @@ -1,7 +1,8 @@ CC := $(CROSS_COMPILE)$(CC) -CFLAGS += -I../../../../usr/include/ +CFLAGS += -I../../../../include/uapi -I../../../../usr/include/ -all: kcmp_test +all: + $(CC) $(CFLAGS) kcmp_test.c -o kcmp_test run_tests: all @./kcmp_test || echo "kcmp_test: [FAIL]" -- 2.1.0 ^ permalink raw reply related [flat|nested] 10+ messages in thread
[parent not found: <80f321919d8d1f804c4933acac9b044d4c6626eb.1426022048.git.shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>]
* Re: [PATCH 3/3] selftests: kcmp build fails when invoked from kselftest target [not found] ` <80f321919d8d1f804c4933acac9b044d4c6626eb.1426022048.git.shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> @ 2015-03-10 22:09 ` Cyrill Gorcunov 2015-03-10 22:41 ` Shuah Khan 0 siblings, 1 reply; 10+ messages in thread From: Cyrill Gorcunov @ 2015-03-10 22:09 UTC (permalink / raw) To: Shuah Khan Cc: akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b, tranmanphong-Re5JQEeQqe8AvxtiuMwx3w, mpe-Gsx/Oe8HsFggBc27wqDAHg, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-api-u79uwXL29TY76Z2rM5mHXA On Tue, Mar 10, 2015 at 04:00:59PM -0600, Shuah Khan wrote: > kcmp Makefile doesn't have an explicit build rule. As a result, > kcmp build fails, when it is run from top level Makefile target > kselftest. Without the explicit rule, make works only when it is > run in the current directory or from selftests directory. Add an > explicit build rule to fix the problem. In addition, build fails > as it can't find kcmp.h. Fix it by passing CFLAGS. > > Signed-off-by: Shuah Khan <shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> > --- > tools/testing/selftests/kcmp/Makefile | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/tools/testing/selftests/kcmp/Makefile b/tools/testing/selftests/kcmp/Makefile > index ff0eefd..83383eb 100644 > --- a/tools/testing/selftests/kcmp/Makefile > +++ b/tools/testing/selftests/kcmp/Makefile > @@ -1,7 +1,8 @@ > CC := $(CROSS_COMPILE)$(CC) > -CFLAGS += -I../../../../usr/include/ > +CFLAGS += -I../../../../include/uapi -I../../../../usr/include/ > > -all: kcmp_test > +all: > + $(CC) $(CFLAGS) kcmp_test.c -o kcmp_test > > run_tests: all > @./kcmp_test || echo "kcmp_test: [FAIL]" Ho Shuah! Thanks for looking into it. I've a small question -- why kcmp_test prerequsite is dropped? As to me it should remain here, except explicit build rule added. ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 3/3] selftests: kcmp build fails when invoked from kselftest target 2015-03-10 22:09 ` Cyrill Gorcunov @ 2015-03-10 22:41 ` Shuah Khan 2015-03-10 22:45 ` Cyrill Gorcunov 0 siblings, 1 reply; 10+ messages in thread From: Shuah Khan @ 2015-03-10 22:41 UTC (permalink / raw) To: Cyrill Gorcunov Cc: akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b, tranmanphong-Re5JQEeQqe8AvxtiuMwx3w, mpe-Gsx/Oe8HsFggBc27wqDAHg, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-api-u79uwXL29TY76Z2rM5mHXA On 03/10/2015 04:09 PM, Cyrill Gorcunov wrote: > On Tue, Mar 10, 2015 at 04:00:59PM -0600, Shuah Khan wrote: >> kcmp Makefile doesn't have an explicit build rule. As a result, >> kcmp build fails, when it is run from top level Makefile target >> kselftest. Without the explicit rule, make works only when it is >> run in the current directory or from selftests directory. Add an >> explicit build rule to fix the problem. In addition, build fails >> as it can't find kcmp.h. Fix it by passing CFLAGS. >> >> Signed-off-by: Shuah Khan <shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> >> --- >> tools/testing/selftests/kcmp/Makefile | 5 +++-- >> 1 file changed, 3 insertions(+), 2 deletions(-) >> >> diff --git a/tools/testing/selftests/kcmp/Makefile b/tools/testing/selftests/kcmp/Makefile >> index ff0eefd..83383eb 100644 >> --- a/tools/testing/selftests/kcmp/Makefile >> +++ b/tools/testing/selftests/kcmp/Makefile >> @@ -1,7 +1,8 @@ >> CC := $(CROSS_COMPILE)$(CC) >> -CFLAGS += -I../../../../usr/include/ >> +CFLAGS += -I../../../../include/uapi -I../../../../usr/include/ >> >> -all: kcmp_test >> +all: >> + $(CC) $(CFLAGS) kcmp_test.c -o kcmp_test >> >> run_tests: all >> @./kcmp_test || echo "kcmp_test: [FAIL]" > > Ho Shuah! Thanks for looking into it. I've a small question -- > why kcmp_test prerequsite is dropped? As to me it should remain > here, except explicit build rule added. > Are you looking for something like this: all: kcmp_test kcmp_test: $(CC) $(CFLAGS) kcmp_test.c -o kcmp_test I just simplified it and removed the prerequsite. If you prefer, I can make the change to keep the prereq. thanks, -- Shuah -- Shuah Khan Sr. Linux Kernel Developer Open Source Innovation Group Samsung Research America (Silicon Valley) shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org | (970) 217-8978 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 3/3] selftests: kcmp build fails when invoked from kselftest target 2015-03-10 22:41 ` Shuah Khan @ 2015-03-10 22:45 ` Cyrill Gorcunov 0 siblings, 0 replies; 10+ messages in thread From: Cyrill Gorcunov @ 2015-03-10 22:45 UTC (permalink / raw) To: Shuah Khan; +Cc: akpm, tranmanphong, mpe, linux-kernel, linux-api On Tue, Mar 10, 2015 at 04:41:39PM -0600, Shuah Khan wrote: > > Are you looking for something like this: > > all: kcmp_test > > kcmp_test: > $(CC) $(CFLAGS) kcmp_test.c -o kcmp_test > > I just simplified it and removed the prerequsite. > If you prefer, I can make the change to keep the > prereq. Yes please, and you may use internal make var $@ as well kcmp_test: $(CC) $(CFLAGS) kcmp_test.c -o $@ ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <cover.1426022048.git.shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>]
* [PATCH 1/3] selftests: ptrace build fails when invoked from kselftest target [not found] ` <cover.1426022048.git.shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> @ 2015-03-10 22:00 ` Shuah Khan 2015-03-10 22:00 ` [PATCH 2/3] selftests: efivars " Shuah Khan 2015-03-10 23:35 ` [PATCH 0/3] selftests: ptrace, kcmp, efivars build failure fixes Michael Ellerman 2 siblings, 0 replies; 10+ messages in thread From: Shuah Khan @ 2015-03-10 22:00 UTC (permalink / raw) To: gorcunov-GEFAQzZX7r8dnm+yROfE0A, akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b, tranmanphong-Re5JQEeQqe8AvxtiuMwx3w, mpe-Gsx/Oe8HsFggBc27wqDAHg Cc: Shuah Khan, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-api-u79uwXL29TY76Z2rM5mHXA ptrace Makefile doesn't have an explicit build rule. As a result, ptrace build fails, when it is run from top level Makefile target kselftest. Without the explicit rule, make works only when it is run in the current directory or from selftests directory. Add an explicit build rule to fix the problem. Signed-off-by: Shuah Khan <shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> --- tools/testing/selftests/ptrace/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/ptrace/Makefile b/tools/testing/selftests/ptrace/Makefile index 47ae2d3..9067567 100644 --- a/tools/testing/selftests/ptrace/Makefile +++ b/tools/testing/selftests/ptrace/Makefile @@ -1,7 +1,8 @@ +CC := $(CROSS_COMPILE)$(CC) CFLAGS += -iquote../../../../include/uapi -Wall -peeksiginfo: peeksiginfo.c -all: peeksiginfo +all: + $(CC) $(CFLAGS) peeksiginfo.c -o peeksiginfo clean: rm -f peeksiginfo -- 2.1.0 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/3] selftests: efivars build fails when invoked from kselftest target [not found] ` <cover.1426022048.git.shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> 2015-03-10 22:00 ` [PATCH 1/3] selftests: ptrace " Shuah Khan @ 2015-03-10 22:00 ` Shuah Khan 2015-03-10 23:35 ` [PATCH 0/3] selftests: ptrace, kcmp, efivars build failure fixes Michael Ellerman 2 siblings, 0 replies; 10+ messages in thread From: Shuah Khan @ 2015-03-10 22:00 UTC (permalink / raw) To: gorcunov-GEFAQzZX7r8dnm+yROfE0A, akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b, tranmanphong-Re5JQEeQqe8AvxtiuMwx3w, mpe-Gsx/Oe8HsFggBc27wqDAHg Cc: Shuah Khan, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-api-u79uwXL29TY76Z2rM5mHXA efivars Makefile doesn't have an explicit build rule. As a result, efivars build fails, when it is run from top level Makefile target kselftest. Without the explicit rule, make works only when it is run in the current directory or from selftests directory. Add an explicit build rule to fix the problem. Signed-off-by: Shuah Khan <shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> --- tools/testing/selftests/efivarfs/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/efivarfs/Makefile b/tools/testing/selftests/efivarfs/Makefile index 29e8c6b..bb48d73 100644 --- a/tools/testing/selftests/efivarfs/Makefile +++ b/tools/testing/selftests/efivarfs/Makefile @@ -4,6 +4,8 @@ CFLAGS = -Wall test_objs = open-unlink create-read all: $(test_objs) +%: %.c + $(CC) $(CFLAGS) -o $@ $^ run_tests: all @/bin/bash ./efivarfs.sh || echo "efivarfs selftests: [FAIL]" -- 2.1.0 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 0/3] selftests: ptrace, kcmp, efivars build failure fixes [not found] ` <cover.1426022048.git.shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> 2015-03-10 22:00 ` [PATCH 1/3] selftests: ptrace " Shuah Khan 2015-03-10 22:00 ` [PATCH 2/3] selftests: efivars " Shuah Khan @ 2015-03-10 23:35 ` Michael Ellerman [not found] ` <1426030513.20917.2.camel-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org> 2 siblings, 1 reply; 10+ messages in thread From: Michael Ellerman @ 2015-03-10 23:35 UTC (permalink / raw) To: Shuah Khan Cc: gorcunov-GEFAQzZX7r8dnm+yROfE0A, akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b, tranmanphong-Re5JQEeQqe8AvxtiuMwx3w, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-api-u79uwXL29TY76Z2rM5mHXA On Tue, 2015-03-10 at 16:00 -0600, Shuah Khan wrote: > ptrace, efivars, and kcmp Makefiles don't have explicit build rule. > As a result, build fails when make is run from top level Makefile > target kselftest. Without the explicit rule, make works only when > it is run in the current directory or from selftests directory. > Fxing the problems by adding an explicit build rule to fix the > problem. > > Shuah Khan (3): > selftests: ptrace build fails when invoked from kselftest target > selftests: efivars build fails when invoked from kselftest target > selftests: kcmp build fails when invoked from kselftest target > > tools/testing/selftests/efivarfs/Makefile | 2 ++ > tools/testing/selftests/kcmp/Makefile | 5 +++-- > tools/testing/selftests/ptrace/Makefile | 5 +++-- > 3 files changed, 8 insertions(+), 4 deletions(-) What? No. This is the bug my patch to filter the make flags fixes. cheers ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <1426030513.20917.2.camel-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org>]
* Re: [PATCH 0/3] selftests: ptrace, kcmp, efivars build failure fixes [not found] ` <1426030513.20917.2.camel-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org> @ 2015-03-10 23:37 ` Shuah Khan [not found] ` <54FF803E.9030407-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Shuah Khan @ 2015-03-10 23:37 UTC (permalink / raw) To: Michael Ellerman Cc: gorcunov-GEFAQzZX7r8dnm+yROfE0A, akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b, tranmanphong-Re5JQEeQqe8AvxtiuMwx3w, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-api-u79uwXL29TY76Z2rM5mHXA On 03/10/2015 05:35 PM, Michael Ellerman wrote: > On Tue, 2015-03-10 at 16:00 -0600, Shuah Khan wrote: >> ptrace, efivars, and kcmp Makefiles don't have explicit build rule. >> As a result, build fails when make is run from top level Makefile >> target kselftest. Without the explicit rule, make works only when >> it is run in the current directory or from selftests directory. >> Fxing the problems by adding an explicit build rule to fix the >> problem. >> >> Shuah Khan (3): >> selftests: ptrace build fails when invoked from kselftest target >> selftests: efivars build fails when invoked from kselftest target >> selftests: kcmp build fails when invoked from kselftest target >> >> tools/testing/selftests/efivarfs/Makefile | 2 ++ >> tools/testing/selftests/kcmp/Makefile | 5 +++-- >> tools/testing/selftests/ptrace/Makefile | 5 +++-- >> 3 files changed, 8 insertions(+), 4 deletions(-) > > What? No. This is the bug my patch to filter the make flags fixes. > > cheers > > Michael, Did you see my email from yesterday on how your patch introduced more problems. Can you please make sure the patches you send work and don't introduce problems. I am having this issue with a lot of your patches. thanks, -- Shuah -- Shuah Khan Sr. Linux Kernel Developer Open Source Innovation Group Samsung Research America (Silicon Valley) shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org | (970) 217-8978 ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <54FF803E.9030407-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>]
* Re: [PATCH 0/3] selftests: ptrace, kcmp, efivars build failure fixes [not found] ` <54FF803E.9030407-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> @ 2015-03-10 23:40 ` Shuah Khan 0 siblings, 0 replies; 10+ messages in thread From: Shuah Khan @ 2015-03-10 23:40 UTC (permalink / raw) To: Michael Ellerman Cc: gorcunov-GEFAQzZX7r8dnm+yROfE0A, akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b, tranmanphong-Re5JQEeQqe8AvxtiuMwx3w, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-api-u79uwXL29TY76Z2rM5mHXA On 03/10/2015 05:37 PM, Shuah Khan wrote: > On 03/10/2015 05:35 PM, Michael Ellerman wrote: >> On Tue, 2015-03-10 at 16:00 -0600, Shuah Khan wrote: >>> ptrace, efivars, and kcmp Makefiles don't have explicit build rule. >>> As a result, build fails when make is run from top level Makefile >>> target kselftest. Without the explicit rule, make works only when >>> it is run in the current directory or from selftests directory. >>> Fxing the problems by adding an explicit build rule to fix the >>> problem. >>> >>> Shuah Khan (3): >>> selftests: ptrace build fails when invoked from kselftest target >>> selftests: efivars build fails when invoked from kselftest target >>> selftests: kcmp build fails when invoked from kselftest target >>> >>> tools/testing/selftests/efivarfs/Makefile | 2 ++ >>> tools/testing/selftests/kcmp/Makefile | 5 +++-- >>> tools/testing/selftests/ptrace/Makefile | 5 +++-- >>> 3 files changed, 8 insertions(+), 4 deletions(-) >> >> What? No. This is the bug my patch to filter the make flags fixes. >> >> cheers >> >> > > Michael, > > Did you see my email from yesterday on how your patch introduced > more problems. Can you please make sure the patches you send work > and don't introduce problems. I am having this issue with a lot > of your patches. > btw your patch doesn't fix the header file include problem. I don't see any reason why individual Makefile shouldn't address this problem. thanks, -- Shuah -- Shuah Khan Sr. Linux Kernel Developer Open Source Innovation Group Samsung Research America (Silicon Valley) shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org | (970) 217-8978 ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-03-10 23:40 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-03-10 22:00 [PATCH 0/3] selftests: ptrace, kcmp, efivars build failure fixes Shuah Khan 2015-03-10 22:00 ` [PATCH 3/3] selftests: kcmp build fails when invoked from kselftest target Shuah Khan [not found] ` <80f321919d8d1f804c4933acac9b044d4c6626eb.1426022048.git.shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> 2015-03-10 22:09 ` Cyrill Gorcunov 2015-03-10 22:41 ` Shuah Khan 2015-03-10 22:45 ` Cyrill Gorcunov [not found] ` <cover.1426022048.git.shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> 2015-03-10 22:00 ` [PATCH 1/3] selftests: ptrace " Shuah Khan 2015-03-10 22:00 ` [PATCH 2/3] selftests: efivars " Shuah Khan 2015-03-10 23:35 ` [PATCH 0/3] selftests: ptrace, kcmp, efivars build failure fixes Michael Ellerman [not found] ` <1426030513.20917.2.camel-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org> 2015-03-10 23:37 ` Shuah Khan [not found] ` <54FF803E.9030407-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> 2015-03-10 23:40 ` Shuah Khan
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).