[tip:perf/core] tools build: Fix objtool build with clang

2016-12-06 Thread tip-bot for Peter Foley
Commit-ID: baa1973ebcf6a7bd15522a5b6a35a8fefd6cb232 Gitweb: http://git.kernel.org/tip/baa1973ebcf6a7bd15522a5b6a35a8fefd6cb232 Author: Peter Foley <pefol...@pefoley.com> AuthorDate: Sun, 27 Nov 2016 21:43:46 -0500 Committer: Arnaldo Carvalho de Melo <a...@redhat.com> Commit

[tip:perf/core] tools build: Fix objtool build with clang

2016-12-06 Thread tip-bot for Peter Foley
Commit-ID: baa1973ebcf6a7bd15522a5b6a35a8fefd6cb232 Gitweb: http://git.kernel.org/tip/baa1973ebcf6a7bd15522a5b6a35a8fefd6cb232 Author: Peter Foley AuthorDate: Sun, 27 Nov 2016 21:43:46 -0500 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 5 Dec 2016 15:51:42 -0300 tools build

Re: [PATCH v4] Fixes for compiling with clang

2016-12-01 Thread Peter Foley
On Tue, Nov 29, 2016 at 6:22 AM, Michal Marek <mma...@suse.com> wrote: > Dne 28.11.2016 v 07:44 Peter Foley napsal(a): > This adds new -Wno-* options also for the gcc case, is there a reason > for this? Also, the -Wno-missing-field-initializers option is not > available in so

Re: [PATCH v4] Fixes for compiling with clang

2016-12-01 Thread Peter Foley
On Tue, Nov 29, 2016 at 6:22 AM, Michal Marek wrote: > Dne 28.11.2016 v 07:44 Peter Foley napsal(a): > This adds new -Wno-* options also for the gcc case, is there a reason > for this? Also, the -Wno-missing-field-initializers option is not > available in some old gccs, so we would n

Re: [PATCHv3] tools build: Make fixdep parsing wait for last target

2016-12-01 Thread Peter Foley
t; is_first_dep = 1; > - } else { > + has_target = 1; > + } else if (has_target) { > /* Save this token/filename */ > memcpy(s, m, p-m); > s[p - m] = 0; > -- > 2.7.4 > Acked-by: Peter Foley <pefol...@pefoley.com>

Re: [PATCHv3] tools build: Make fixdep parsing wait for last target

2016-12-01 Thread Peter Foley
- } else { > + has_target = 1; > + } else if (has_target) { > /* Save this token/filename */ > memcpy(s, m, p-m); > s[p - m] = 0; > -- > 2.7.4 > Acked-by: Peter Foley

Re: [PATCH v2] Fix objtool with clang

2016-11-28 Thread Peter Foley
On Mon, Nov 28, 2016 at 7:00 AM, Arnaldo Carvalho de Melo wrote: > After I applied this I started getting this: > > CC /tmp/build/perf/tests/sw-clock.o > /tmp/build/perf/.plugin_jbd2.o.cmd:3: *** empty variable name. Stop. > Makefile:192: recipe for target

Re: [PATCH v2] Fix objtool with clang

2016-11-28 Thread Peter Foley
On Mon, Nov 28, 2016 at 7:00 AM, Arnaldo Carvalho de Melo wrote: > After I applied this I started getting this: > > CC /tmp/build/perf/tests/sw-clock.o > /tmp/build/perf/.plugin_jbd2.o.cmd:3: *** empty variable name. Stop. > Makefile:192: recipe for target

[tip:x86/urgent] x86/build: Annotate die() with noreturn to fix build warning on clang

2016-11-27 Thread tip-bot for Peter Foley
Commit-ID: adee8705d2517f0e163ffc45e8d7f9e97a58f1f6 Gitweb: http://git.kernel.org/tip/adee8705d2517f0e163ffc45e8d7f9e97a58f1f6 Author: Peter Foley <pefol...@pefoley.com> AuthorDate: Sat, 26 Nov 2016 17:22:29 -0500 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Mon, 28

[tip:x86/urgent] x86/build: Annotate die() with noreturn to fix build warning on clang

2016-11-27 Thread tip-bot for Peter Foley
Commit-ID: adee8705d2517f0e163ffc45e8d7f9e97a58f1f6 Gitweb: http://git.kernel.org/tip/adee8705d2517f0e163ffc45e8d7f9e97a58f1f6 Author: Peter Foley AuthorDate: Sat, 26 Nov 2016 17:22:29 -0500 Committer: Ingo Molnar CommitDate: Mon, 28 Nov 2016 07:47:22 +0100 x86/build: Annotate die

[PATCH v4] Fixes for compiling with clang

2016-11-27 Thread Peter Foley
asm constructs. Changes from v1: * Move the $(cc-name) conditional below the definition of $(CC) Changes from v2: * Actually commit the changes in v2. Changes from v3: * HOSTCC is not guaranteed to be the same as CC, adjust accordingly. Signed-off-by: Peter Foley <pefol...@pefoley.

[PATCH v4] Fixes for compiling with clang

2016-11-27 Thread Peter Foley
asm constructs. Changes from v1: * Move the $(cc-name) conditional below the definition of $(CC) Changes from v2: * Actually commit the changes in v2. Changes from v3: * HOSTCC is not guaranteed to be the same as CC, adjust accordingly. Signed-off-by: Peter Foley --- Makefile | 12

[PATCH v2] Avoid nested function definition

2016-11-27 Thread Peter Foley
' sort(p, n, sizeof(uint16_t), cmp, NULL); ^ 2 errors generated. v2: rename function to __bch_cache_cmp Signed-off-by: Peter Foley <pefol...@pefoley.com> --- drivers/md/bcache/sysfs.c | 10 ++ 1 file changed, 6 insertions(+), 4 del

[PATCH v2] Avoid nested function definition

2016-11-27 Thread Peter Foley
' sort(p, n, sizeof(uint16_t), cmp, NULL); ^ 2 errors generated. v2: rename function to __bch_cache_cmp Signed-off-by: Peter Foley --- drivers/md/bcache/sysfs.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/md

[PATCH v2] Fix objtool with clang

2016-11-27 Thread Peter Foley
Clang doesn't support multiple arguments being passed to -Wp, so split them. Fixes this error: HOSTCC tools/objtool/fixdep.o cat: tools/objtool/.fixdep.o.d: No such file or directory v2: rebased onto perf/core branch. Signed-off-by: Peter Foley <pefol...@pefoley.com> --- tools

[PATCH v2] Fix objtool with clang

2016-11-27 Thread Peter Foley
Clang doesn't support multiple arguments being passed to -Wp, so split them. Fixes this error: HOSTCC tools/objtool/fixdep.o cat: tools/objtool/.fixdep.o.d: No such file or directory v2: rebased onto perf/core branch. Signed-off-by: Peter Foley --- tools/build/Build.include | 6 +++--- 1

[PATCH] drivers/extcon: Fix incompatible pointer type warning

2016-11-27 Thread Peter Foley
nt *cable); ^ 1 error generated. Signed-off-by: Peter Foley <pefol...@pefoley.com> --- include/linux/extcon/extcon-adc-jack.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/extcon/extcon-adc-jack.h b/include/linux/extcon/extcon-a

[PATCH] drivers/extcon: Fix incompatible pointer type warning

2016-11-27 Thread Peter Foley
nt *cable); ^ 1 error generated. Signed-off-by: Peter Foley --- include/linux/extcon/extcon-adc-jack.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/extcon/extcon-adc-jack.h b/include/linux/extcon/extcon-adc-jack.h index a0e03b13b449..2aa

[PATCH] Fix multiple definition error under lto

2016-11-26 Thread Peter Foley
drivers/thermal/built-in.o: In function `type_show.lto_priv.33': (.text+0x3d80): multiple definition of `type_show.lto_priv.33' drivers/base/built-in.o:(.text+0x2a40): first defined here Signed-off-by: Peter Foley <pefol...@pefoley.com> --- drivers/thermal/thermal_core.c | 4 ++-- 1 file c

[PATCH] Fix multiple definition error under lto

2016-11-26 Thread Peter Foley
drivers/thermal/built-in.o: In function `type_show.lto_priv.33': (.text+0x3d80): multiple definition of `type_show.lto_priv.33' drivers/base/built-in.o:(.text+0x2a40): first defined here Signed-off-by: Peter Foley --- drivers/thermal/thermal_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH] Avoid nested function definition

2016-11-26 Thread Peter Foley
' sort(p, n, sizeof(uint16_t), cmp, NULL); ^ 2 errors generated. Signed-off-by: Peter Foley <pefol...@pefoley.com> --- drivers/md/bcache/sysfs.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/md/bcache/sys

[PATCH] Avoid nested function definition

2016-11-26 Thread Peter Foley
' sort(p, n, sizeof(uint16_t), cmp, NULL); ^ 2 errors generated. Signed-off-by: Peter Foley --- drivers/md/bcache/sysfs.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c

[PATCH] Annotate die() with noreturn

2016-11-26 Thread Peter Foley
' to silence this warning const char *symname); ^ = NULL Signed-off-by: Peter Foley <pefol...@pefoley.com> --- arch/x86/tools/relocs.h | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH] Annotate die() with noreturn

2016-11-26 Thread Peter Foley
' to silence this warning const char *symname); ^ = NULL Signed-off-by: Peter Foley --- arch/x86/tools/relocs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86

[PATCH] Fix objtool with clang

2016-11-26 Thread Peter Foley
Clang doesn't support multiple arguments being passed to -Wp, so split them. Fixes this error: HOSTCC tools/objtool/fixdep.o cat: tools/objtool/.fixdep.o.d: No such file or directory Signed-off-by: Peter Foley <pefol...@pefoley.com> --- tools/build/Build.include | 6 +++--- 1 file chan

[PATCH] Fix objtool with clang

2016-11-26 Thread Peter Foley
Clang doesn't support multiple arguments being passed to -Wp, so split them. Fixes this error: HOSTCC tools/objtool/fixdep.o cat: tools/objtool/.fixdep.o.d: No such file or directory Signed-off-by: Peter Foley --- tools/build/Build.include | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH v3] Fixes for compiling with clang

2016-11-26 Thread Peter Foley
: * Actually commit the changes in v2. Signed-off-by: Peter Foley <pefol...@pefoley.com> --- Makefile | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 0ede48ba5aaf..94402cef6622 100644 --- a/Makefile +++ b/Makefile @@ -299,16

[PATCH v3] Fixes for compiling with clang

2016-11-26 Thread Peter Foley
: * Actually commit the changes in v2. Signed-off-by: Peter Foley --- Makefile | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 0ede48ba5aaf..94402cef6622 100644 --- a/Makefile +++ b/Makefile @@ -299,16 +299,6 @@ CONFIG_SHELL

[PATCH v2] Fixes for compiling with clang

2016-11-26 Thread Peter Foley
-by: Peter Foley <pefol...@pefoley.com> --- Makefile | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 0ede48ba5aaf..b69ad7e4a6d2 100644 --- a/Makefile +++ b/Makefile @@ -299,16 +299,6 @@ CONFIG_SHELL := $(shell if [ -x &

[PATCH v2] Fixes for compiling with clang

2016-11-26 Thread Peter Foley
-by: Peter Foley --- Makefile | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 0ede48ba5aaf..b69ad7e4a6d2 100644 --- a/Makefile +++ b/Makefile @@ -299,16 +299,6 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then ec

[PATCH] Fixes for compiling with clang

2016-11-25 Thread Peter Foley
Move definition of HOSTCC to allow use of cc-name. Suppress warnings about unsupported optimization options. Disable clang's integrated assembler which is incompatible with kernel asm constructs. Signed-off-by: Peter Foley <pefol...@pefoley.com> --- Makefile | 23 +--

[PATCH] Fixes for compiling with clang

2016-11-25 Thread Peter Foley
Move definition of HOSTCC to allow use of cc-name. Suppress warnings about unsupported optimization options. Disable clang's integrated assembler which is incompatible with kernel asm constructs. Signed-off-by: Peter Foley --- Makefile | 23 +-- 1 file changed, 13 insertions

Re: [PATCH] Documentation: Restrict TSC test code to x86

2014-10-27 Thread Peter Foley
On Mon, Oct 27, 2014 at 8:03 PM, Alexander Graf wrote: > The prctl test code in Documentation/ tries to show how to > use a call that only makes sense on x86. Restrict it there > so that other platforms don't try to call asm("rdtsc"). > > Signed-off-by: Alexander Gra

Re: [PATCH] Documentation: Restrict TSC test code to x86

2014-10-27 Thread Peter Foley
-by: Peter Foley pefol...@pefoley.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] vdso: don't require 64-bit math in standalone test

2014-10-24 Thread Peter Foley
mit adb19fb66ee (Documentation: add makefiles for more targets) is > now building this by default, so it's failing the kernel build entirely. > > Switching the declaration from uint64_t to time_t does the right thing > and handles the x32 case automatically. > > Signed-off-by: Jef

Re: [GIT PULL] doc for 3.18 merge window

2014-10-24 Thread Peter Foley
On Tue, Oct 21, 2014 at 10:45 AM, Jonathan Corbet wrote: > OK, I've applied the fix with the extra space suggested by Paul. You > should see it in the next linux-next. Thanks! Sorry for not respinning my patch sooner. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: [GIT PULL] doc for 3.18 merge window

2014-10-24 Thread Peter Foley
On Tue, Oct 21, 2014 at 10:45 AM, Jonathan Corbet cor...@lwn.net wrote: OK, I've applied the fix with the extra space suggested by Paul. You should see it in the next linux-next. Thanks! Sorry for not respinning my patch sooner. -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH] vdso: don't require 64-bit math in standalone test

2014-10-24 Thread Peter Foley
-by: Peter Foley pefol...@pefoley.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH] Documentation: ptp: Fix build failure on MIPS cross builds

2014-10-22 Thread Peter Foley
On Wed, Oct 22, 2014 at 4:03 AM, Richard Cochran wrote: > In the mean time, I would like to restore the testptp.mk that *does* > cross compile, so that people may use the test program if they > want. In fact I use this all the time, and so I am a bit annoyed that > something working was deleted

Re: [PATCH] Documentation: ptp: Fix build failure on MIPS cross builds

2014-10-22 Thread Peter Foley
On Wed, Oct 22, 2014 at 4:03 AM, Richard Cochran richardcoch...@gmail.com wrote: In the mean time, I would like to restore the testptp.mk that *does* cross compile, so that people may use the test program if they want. In fact I use this all the time, and so I am a bit annoyed that something

Re: [PATCH] Only build Documentation/ when not cross-compiling

2014-10-21 Thread Peter Foley
On Fri, Oct 17, 2014 at 9:53 AM, Peter Foley wrote: > Turns out this doesn't work if CROSS_COMPILE is set in the environment. > I'll send another version shortly. It seems there is more interested in cross-compiling Documentation than I anticipated, so please ignore this as I'll be

Re: [PATCH] Documentation: ptp: Fix build failure on MIPS cross builds

2014-10-21 Thread Peter Foley
On Tue, Oct 21, 2014 at 2:27 PM, Richard Cochran wrote: > On Tue, Oct 21, 2014 at 09:58:51AM -0700, David Daney wrote: >> What I don't understand is why we are using hostprogs in this >> Makefile. Isn't this a program that would run on the target, not >> the build host? > > Yes. > > Peter, could

Re: [PATCH] Documentation: ptp: Fix build failure on MIPS cross builds

2014-10-21 Thread Peter Foley
On Tue, Oct 21, 2014 at 2:27 PM, Richard Cochran richardcoch...@gmail.com wrote: On Tue, Oct 21, 2014 at 09:58:51AM -0700, David Daney wrote: What I don't understand is why we are using hostprogs in this Makefile. Isn't this a program that would run on the target, not the build host? Yes.

Re: [PATCH] Only build Documentation/ when not cross-compiling

2014-10-21 Thread Peter Foley
On Fri, Oct 17, 2014 at 9:53 AM, Peter Foley pefol...@pefoley.com wrote: Turns out this doesn't work if CROSS_COMPILE is set in the environment. I'll send another version shortly. It seems there is more interested in cross-compiling Documentation than I anticipated, so please ignore

Re: [PATCH] Only build Documentation/ when not cross-compiling

2014-10-17 Thread Peter Foley
On Wed, Oct 8, 2014 at 7:31 PM, Peter Foley wrote: > Don't build Documentation targets when cross-compiling. > They are only for build testing, and use the host headers and compiler > which can cause cross-compiles to fail. > Turns out this doesn't work if CROSS_COMPILE is set in the

Re: [PATCH] Only build Documentation/ when not cross-compiling

2014-10-17 Thread Peter Foley
On Wed, Oct 8, 2014 at 7:31 PM, Peter Foley pefol...@pefoley.com wrote: Don't build Documentation targets when cross-compiling. They are only for build testing, and use the host headers and compiler which can cause cross-compiles to fail. Turns out this doesn't work if CROSS_COMPILE is set

Re: [PATCH] arch/x86/purgatory/Makefile: supress kexec-purgatory.c is up to date message

2014-10-14 Thread Peter Foley
On Tue, Oct 14, 2014 at 12:46 AM, WANG Chao wrote: > Supress this unnecessary message during kernel re-build > (CONFIG_KEXEC_FILE=y): > > make[1]: `arch/x86/purgatory/kexec-purgatory.c' is up to date. > > Signed-off-by: WANG Chao Acked-by: Peter Foley -- To unsubscribe fr

Re: [PATCH] arch/x86/purgatory/Makefile: supress kexec-purgatory.c is up to date message

2014-10-14 Thread Peter Foley
On Tue, Oct 14, 2014 at 12:46 AM, WANG Chao chaow...@redhat.com wrote: Supress this unnecessary message during kernel re-build (CONFIG_KEXEC_FILE=y): make[1]: `arch/x86/purgatory/kexec-purgatory.c' is up to date. Signed-off-by: WANG Chao chaow...@redhat.com Acked-by: Peter Foley pefol

[PATCH] scripts: don't source auto.conf for LOCALVERSION

2014-10-09 Thread Peter Foley
ossibility of something like this happening is remote, use sed to avoid potential harm from untrusted .config files. Reported-by: Fox Wilson Signed-off-by: Peter Foley --- scripts/setlocalversion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setlocalversion

[PATCH] scripts: don't source auto.conf for LOCALVERSION

2014-10-09 Thread Peter Foley
of something like this happening is remote, use sed to avoid potential harm from untrusted .config files. Reported-by: Fox Wilson foxwilson...@gmail.com Signed-off-by: Peter Foley pefol...@pefoley.com --- scripts/setlocalversion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] Only build Documentation/ when not cross-compiling

2014-10-08 Thread Peter Foley
Don't build Documentation targets when cross-compiling. They are only for build testing, and use the host headers and compiler which can cause cross-compiles to fail. Signed-off-by: Peter Foley --- lib/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib

Re: vdso_standalone_test_x86.c build failure on Linus' tree

2014-10-08 Thread Peter Foley
On Wed, Oct 8, 2014 at 5:21 PM, H. Peter Anvin wrote: > That we can't solve, but it is not okay to break the kernel build. Should I just make CONFIG_BUILD_DOCSRC depend on CROSS_COMPILE=""? I'm not sure how much value would be added by implementing targetprogs in kbuild, simply to increase build

Re: [PATCH] Documentation: fix vdso_standalone_test_x86 on 32-bit

2014-10-08 Thread Peter Foley
On Wed, Oct 8, 2014 at 3:54 PM, H. Peter Anvin wrote: > This still has the cross-build problems, no? > Yes, but that issue is more general to CONFIG_BUILD_DOCSRC. This is just a build failure on x86-32. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

[PATCH] Documentation: fix vdso_standalone_test_x86 on 32-bit

2014-10-08 Thread Peter Foley
vdso_standalone_test_x86 needs -lgcc_s to build succesfully on 32bit. Signed-off-by: Peter Foley --- Documentation/vDSO/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/vDSO/Makefile b/Documentation/vDSO/Makefile index 2b99e57..5e5ad9f 100644 --- a/Documentation

Re: vdso_standalone_test_x86.c build failure on Linus' tree

2014-10-08 Thread Peter Foley
On Wed, Oct 8, 2014 at 3:16 PM, Andy Lutomirski wrote: > It should build and work on 32-bit. > > Except that the makefile is totally bogus. vdso_standalone_test isn't > a hostprog at all. It's a target prog. But kbuild doesn't understand > that, so I have no idea what, if anything, that

Re: vdso_standalone_test_x86.c build failure on Linus' tree

2014-10-08 Thread Peter Foley
On Wed, Oct 8, 2014 at 3:16 PM, Andy Lutomirski l...@amacapital.net wrote: It should build and work on 32-bit. Except that the makefile is totally bogus. vdso_standalone_test isn't a hostprog at all. It's a target prog. But kbuild doesn't understand that, so I have no idea what, if

[PATCH] Documentation: fix vdso_standalone_test_x86 on 32-bit

2014-10-08 Thread Peter Foley
vdso_standalone_test_x86 needs -lgcc_s to build succesfully on 32bit. Signed-off-by: Peter Foley pefol...@pefoley.com --- Documentation/vDSO/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/vDSO/Makefile b/Documentation/vDSO/Makefile index 2b99e57..5e5ad9f 100644

Re: [PATCH] Documentation: fix vdso_standalone_test_x86 on 32-bit

2014-10-08 Thread Peter Foley
On Wed, Oct 8, 2014 at 3:54 PM, H. Peter Anvin h...@zytor.com wrote: This still has the cross-build problems, no? Yes, but that issue is more general to CONFIG_BUILD_DOCSRC. This is just a build failure on x86-32. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the

Re: vdso_standalone_test_x86.c build failure on Linus' tree

2014-10-08 Thread Peter Foley
On Wed, Oct 8, 2014 at 5:21 PM, H. Peter Anvin h...@zytor.com wrote: That we can't solve, but it is not okay to break the kernel build. Should I just make CONFIG_BUILD_DOCSRC depend on CROSS_COMPILE=? I'm not sure how much value would be added by implementing targetprogs in kbuild, simply to

[PATCH] Only build Documentation/ when not cross-compiling

2014-10-08 Thread Peter Foley
Don't build Documentation targets when cross-compiling. They are only for build testing, and use the host headers and compiler which can cause cross-compiles to fail. Signed-off-by: Peter Foley pefol...@pefoley.com --- lib/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] Documentation: update include path for mpssd

2014-10-02 Thread Peter Foley
sysfs.c includes mpssd.h which includes virtio_ids.h. sysfs.c doesn't have the proper include flags set to use the latest headers, so this causes a build error if the system headers are too old. Signed-off-by: Peter Foley Cc: rdun...@infradead.org Cc: linux-...@vger.kernel.org Cc: sudeep.d

[PATCH] Documentation: update include path for mpssd

2014-10-02 Thread Peter Foley
sysfs.c includes mpssd.h which includes virtio_ids.h. sysfs.c doesn't have the proper include flags set to use the latest headers, so this causes a build error if the system headers are too old. Signed-off-by: Peter Foley Cc: rdun...@infradead.org Cc: linux-...@vger.kernel.org Cc: sudeep.d

[PATCH] Documentation: update include path for mpssd

2014-10-02 Thread Peter Foley
sysfs.c includes mpssd.h which includes virtio_ids.h. sysfs.c doesn't have the proper include flags set to use the latest headers, so this causes a build error if the system headers are too old. Signed-off-by: Peter Foley pefol...@pefoley.com Cc: rdun...@infradead.org Cc: linux

[PATCH] Documentation: update include path for mpssd

2014-10-02 Thread Peter Foley
sysfs.c includes mpssd.h which includes virtio_ids.h. sysfs.c doesn't have the proper include flags set to use the latest headers, so this causes a build error if the system headers are too old. Signed-off-by: Peter Foley pefol...@pefoley.com Cc: rdun...@infradead.org Cc: linux

[PATCH] Make Documenation depend on headers_install

2014-09-24 Thread Peter Foley
Cc: rdun...@infradead.org Cc: linux-...@vger.kernel.org Cc: sudeep.d...@intel.com Cc: nikhil@intel.com Cc: ashutosh.di...@intel.com Cc: a...@linux-foundation.org Cc: gre...@linuxfoundation.org Signed-off-by: Peter Foley --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH] Make Documenation depend on headers_install

2014-09-24 Thread Peter Foley
Cc: rdun...@infradead.org Cc: linux-...@vger.kernel.org Cc: sudeep.d...@intel.com Cc: nikhil@intel.com Cc: ashutosh.di...@intel.com Cc: a...@linux-foundation.org Cc: gre...@linuxfoundation.org Signed-off-by: Peter Foley pefol...@pefoley.com --- Makefile | 2 ++ 1 file changed, 2 insertions

Re: [PATCH linux-next] Documentation: mic: mpssd: Disable mpssd builds for kernels < 3.13

2014-09-23 Thread Peter Foley
On Tue, Sep 23, 2014 at 8:51 PM, Andrew Morton wrote: > Can't we just fix the Makefiles? Cook up a rule which makes > headers_install (if needed) before building Documentation/? Currently, the ordering is enforced by

Re: [PATCH linux-next] Documentation: mic: mpssd: Disable mpssd builds for kernels < 3.13

2014-09-23 Thread Peter Foley
On Tue, Sep 23, 2014 at 7:38 PM, Andrew Morton wrote: > This build error is caused by compiling mpssd prior to `make > headers_install'. > > There's really no reason to check the kernel version. If someone > transplants mpssd out of its distributed kernel and into some older > kernel then a

Re: [PATCH linux-next] Documentation: mic: mpssd: Disable mpssd builds for kernels < 3.13

2014-09-23 Thread Peter Foley
On Tue, Sep 23, 2014 at 6:59 PM, ashutosh dixit wrote: > Correct, if things in Documentation will be compiled against the headers > in the kernel source tree then this patch is not required. However, > Andrew had reported the following compile error: > >> In file included from

[PATCH] tools: add more endian.h macros

2014-09-23 Thread Peter Foley
Add some more macros to tools/endian.h to allow mpssd to be compiled against glibc < 2.9. Signed-off-by: Peter Foley Cc: rdun...@infradead.org Cc: linux-...@vger.kernel.org Cc: sudeep.d...@intel.com Cc: nikhil@intel.com Cc: ashutosh.di...@intel.com Cc: a...@linux-foundation.org Cc:

[PATCH] Documentation: remove networking/.gitignore

2014-09-23 Thread Peter Foley
Remove empty networking/.gitignore Signed-off-by: Peter Foley Cc: rdun...@infradead.org Cc: linux-...@vger.kernel.org --- Documentation/networking/.gitignore | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 Documentation/networking/.gitignore diff --git a/Documentation

Re: [PATCH linux-next] Documentation: mic: mpssd: Disable mpssd builds for kernels < 3.13

2014-09-23 Thread Peter Foley
On Tue, Sep 23, 2014 at 5:55 PM, Ashutosh Dixit wrote: > mpssd depends on headers available in kernels >= 3.13. Therefore > disable the build for kernels < 3.13. For kernels < 3.13, to avoid the > appearance of a build break simply print an error message and exit. > Everything in Documentation

Re: [PATCH linux-next] Documentation: mic: mpssd: Disable mpssd builds for kernels 3.13

2014-09-23 Thread Peter Foley
On Tue, Sep 23, 2014 at 5:55 PM, Ashutosh Dixit ashutosh.di...@intel.com wrote: mpssd depends on headers available in kernels = 3.13. Therefore disable the build for kernels 3.13. For kernels 3.13, to avoid the appearance of a build break simply print an error message and exit. Everything in

[PATCH] Documentation: remove networking/.gitignore

2014-09-23 Thread Peter Foley
Remove empty networking/.gitignore Signed-off-by: Peter Foley pefol...@pefoley.com Cc: rdun...@infradead.org Cc: linux-...@vger.kernel.org --- Documentation/networking/.gitignore | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 Documentation/networking/.gitignore diff

[PATCH] tools: add more endian.h macros

2014-09-23 Thread Peter Foley
Add some more macros to tools/endian.h to allow mpssd to be compiled against glibc 2.9. Signed-off-by: Peter Foley pefol...@pefoley.com Cc: rdun...@infradead.org Cc: linux-...@vger.kernel.org Cc: sudeep.d...@intel.com Cc: nikhil@intel.com Cc: ashutosh.di...@intel.com Cc: a...@linux

Re: [PATCH linux-next] Documentation: mic: mpssd: Disable mpssd builds for kernels 3.13

2014-09-23 Thread Peter Foley
On Tue, Sep 23, 2014 at 6:59 PM, ashutosh dixit ashutosh.di...@intel.com wrote: Correct, if things in Documentation will be compiled against the headers in the kernel source tree then this patch is not required. However, Andrew had reported the following compile error: In file included from

Re: [PATCH linux-next] Documentation: mic: mpssd: Disable mpssd builds for kernels 3.13

2014-09-23 Thread Peter Foley
On Tue, Sep 23, 2014 at 7:38 PM, Andrew Morton a...@linux-foundation.org wrote: This build error is caused by compiling mpssd prior to `make headers_install'. There's really no reason to check the kernel version. If someone transplants mpssd out of its distributed kernel and into some older

Re: [PATCH linux-next] Documentation: mic: mpssd: Disable mpssd builds for kernels 3.13

2014-09-23 Thread Peter Foley
On Tue, Sep 23, 2014 at 8:51 PM, Andrew Morton a...@linux-foundation.org wrote: Can't we just fix the Makefiles? Cook up a rule which makes headers_install (if needed) before building Documentation/? Currently, the ordering is enforced by

[PATCH] Documentation: remove networking/.gitignore

2014-09-18 Thread Peter Foley
Remove empty networking/.gitignore Signed-off-by: Peter Foley --- Documentation/networking/.gitignore | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 Documentation/networking/.gitignore diff --git a/Documentation/networking/.gitignore b/Documentation/networking

[PATCH] Documentation: remove networking/.gitignore

2014-09-18 Thread Peter Foley
Remove empty networking/.gitignore Signed-off-by: Peter Foley pefol...@pefoley.com --- Documentation/networking/.gitignore | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 Documentation/networking/.gitignore diff --git a/Documentation/networking/.gitignore b

[PATCH] Documentation: disable vdso_test to avoid breakage with old glibc

2014-09-16 Thread Peter Foley
glibc versions older than 2.16 don't include sys/auxv.h which this executable uses. Since we don't have a good way to test for specific glibc versions in kbuild, just disable it for now. Signed-off-by: Peter Foley --- Documentation/vDSO/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: linux-next: build failure after merge of the rd-docs tree

2014-09-16 Thread Peter Foley
On Tue, Sep 16, 2014 at 7:38 PM, Randy Dunlap wrote: > I don't have a good answer to that, so yes, I suppose just > disable it. Please send a patch. Will do. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

Re: linux-next: build failure after merge of the rd-docs tree

2014-09-16 Thread Peter Foley
On Tue, Sep 16, 2014 at 7:00 PM, Stephen Rothwell wrote: > Hi Peter, > > My build machine runs Debian stable which only has libc6 version 2.13. Ok, depending on a specific glibc version seems kinda hacky. Maybe we should just disable auto-building vdso_test? Randy? -- To unsubscribe from this

Re: linux-next: build failure after merge of the rd-docs tree

2014-09-16 Thread Peter Foley
On Tue, Sep 16, 2014 at 3:11 AM, Stephen Rothwell wrote: > Hi Randy, > > After merging the rd-docs tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > Documentation/vDSO/vdso_test.c:15:22: fatal error: sys/auxv.h: No such file > or directory > What glibc version are

Re: linux-next: build failure after merge of the rd-docs tree

2014-09-16 Thread Peter Foley
On Tue, Sep 16, 2014 at 3:11 AM, Stephen Rothwell s...@canb.auug.org.au wrote: Hi Randy, After merging the rd-docs tree, today's linux-next build (powerpc allyesconfig) failed like this: Documentation/vDSO/vdso_test.c:15:22: fatal error: sys/auxv.h: No such file or directory What glibc

Re: linux-next: build failure after merge of the rd-docs tree

2014-09-16 Thread Peter Foley
On Tue, Sep 16, 2014 at 7:00 PM, Stephen Rothwell s...@canb.auug.org.au wrote: Hi Peter, My build machine runs Debian stable which only has libc6 version 2.13. Ok, depending on a specific glibc version seems kinda hacky. Maybe we should just disable auto-building vdso_test? Randy? -- To

Re: linux-next: build failure after merge of the rd-docs tree

2014-09-16 Thread Peter Foley
On Tue, Sep 16, 2014 at 7:38 PM, Randy Dunlap rdun...@infradead.org wrote: I don't have a good answer to that, so yes, I suppose just disable it. Please send a patch. Will do. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

[PATCH] Documentation: disable vdso_test to avoid breakage with old glibc

2014-09-16 Thread Peter Foley
glibc versions older than 2.16 don't include sys/auxv.h which this executable uses. Since we don't have a good way to test for specific glibc versions in kbuild, just disable it for now. Signed-off-by: Peter Foley pefol...@pefoley.com --- Documentation/vDSO/Makefile | 4 ++-- 1 file changed, 2

Re: [PATCH 1/3] kbuild: Make targets names tree-wide unique on x86

2014-09-14 Thread Peter Foley
On Sun, Sep 14, 2014 at 6:18 AM, Kirill Tkhai wrote: > diff --git a/init/Makefile b/init/Makefile > index 7bc47ee..566a9ff 100644 > --- a/init/Makefile > +++ b/init/Makefile > @@ -2,23 +2,28 @@ > # Makefile for the linux kernel. > # > > -obj-y := main.o version.o

Re: [PATCH 1/3] kbuild: Make targets names tree-wide unique on x86

2014-09-14 Thread Peter Foley
On Sun, Sep 14, 2014 at 6:18 AM, Kirill Tkhai tk...@yandex.ru wrote: diff --git a/init/Makefile b/init/Makefile index 7bc47ee..566a9ff 100644 --- a/init/Makefile +++ b/init/Makefile @@ -2,23 +2,28 @@ # Makefile for the linux kernel. # -obj-y := main.o version.o

[PATCH] Documentation: support glibc versions without htole macros

2014-09-10 Thread Peter Foley
glibc 2.9 introduced the htole<16/32/64> macros, add them to tools/include to support older versions of glibc. Reported-by: Andrew Morton Signed-off-by: Peter Foley --- Documentation/arm/SH-Mobile/Makefile | 2 +- Documentation/arm/SH-Mobile/vrl4.c | 1 + Documentation/mic/mpssd/Ma

Re: [PATCH resend] Kbuild: x86: Eliminate duplicate command line options

2014-09-10 Thread Peter Foley
four are supported. So also eliminate the > $(cc-option) wrap. > > Signed-off-by: Rasmus Villemoes Acked-by: Peter Foley -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://v

Re: [PATCH resend] Kbuild: x86: Eliminate duplicate command line options

2014-09-10 Thread Peter Foley
. So also eliminate the $(cc-option) wrap. Signed-off-by: Rasmus Villemoes li...@rasmusvillemoes.dk Acked-by: Peter Foley pefol...@pefoley.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

[PATCH] Documentation: support glibc versions without htole macros

2014-09-10 Thread Peter Foley
glibc 2.9 introduced the htole16/32/64 macros, add them to tools/include to support older versions of glibc. Reported-by: Andrew Morton a...@linux-foundation.org Signed-off-by: Peter Foley pefol...@pefoley.com --- Documentation/arm/SH-Mobile/Makefile | 2 +- Documentation/arm/SH-Mobile/vrl4.c

Re: [PATCH] kbuild: simplify build, clean, modbuiltin shorthands

2014-09-09 Thread Peter Foley
ee). > > Now $(srctree) is "." when building in the source tree. > It would not be annoying to add "$(srctree)/" all the time. > > Signed-off-by: Masahiro Yamada Acked-by: Peter Foley -- To unsubscribe from this list: send the line "unsubscr

Re: [PATCH 1/3] kbuild: fake the "Entering directory ..." message more simply

2014-09-09 Thread Peter Foley
need to know > the exact message), moving --no-print-directory would be easier. > > Signed-off-by: Masahiro Yamada Acked-by: Peter Foley -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordo

Re: [PATCH 3/3] kbuild: handle C=... and M=... after entering into build directory

2014-09-09 Thread Peter Foley
On Tue, Sep 9, 2014 at 7:02 AM, Masahiro Yamada wrote: > This commit avoids processing C=... and M=... twice > when O=... is also given. > > Besides, we can also remove KBUILD_EXTMOD="$(KBUILD_EXTMOD)" > in the sub-make target. > > Signed-off-by: Masahiro

Re: [PATCH 2/3] kbuild: use $(Q) for sub-make target

2014-09-09 Thread Peter Foley
gt; "$(if $(KBUILD_VERBOSE:1=),@)" with "$(Q)". > > Signed-off-by: Masahiro Yamada Acked-by: Peter Foley -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://

Re: [PATCH 2/3] kbuild: remove unnecessary variable initializaions

2014-09-09 Thread Peter Foley
also set to empty at the beginning > of scripts/Makefile.build) > > Signed-off-by: Masahiro Yamada Acked-by: Peter Foley -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [PATCH 1/3] kbuild: remove unnecessary "obj- := dummy.o" trick

2014-09-09 Thread Peter Foley
On Tue, Sep 9, 2014 at 6:26 AM, Masahiro Yamada wrote: > In these Makefiles, at least one of "obj-y" and "obj-" is non-empty, > hence built-in.o is always created without such a trick. > > Signed-off-by: Masahiro Yamada Acked-by: Peter Foley -- To unsubscri

  1   2   >