[GIT PULL] kbuild changes for v4.2-rc1

2015-07-02 Thread Michal Marek
Hi Linus, just a few kbuild core commits this time: - kallsyms fix for CONFIG_XIP_KERNEL - bashisms in scripts/link-vmlinux.sh fixed - Workaround to make DEBUG_INFO_REDUCED more useful yet still space efficient - clang is not wrongly detected when cross-compiling Michal The following changes

[GIT PULL] kbuild misc fixes for v4.2-rc1

2015-07-02 Thread Michal Marek
Hi Linus, this is the non-critical part of kbuild: - usual make deb-pkg/rpm improvements - .gitignore additions - grammar cleansing in scripts/coccinelle - new coccinelle semantic patch Michal The following changes since commit b787f68c36d49bb1d9236f403813641efa74a031: Linux 4.1-rc1

Re: linux-next: manual merge of the kbuild tree with Linus' tree

2015-07-02 Thread Michal Marek
Dne 2.7.2015 v 11:18 Geert Uytterhoeven napsal(a): On Thu, Jul 2, 2015 at 9:17 AM, Michal Marek mma...@suse.cz wrote: Dne 2.7.2015 v 08:47 Geert Uytterhoeven napsal(a): On Thu, Jul 2, 2015 at 2:30 AM, Stephen Rothwell s...@canb.auug.org.au wrote: diff --cc scripts/kconfig/Makefile index

Re: ARC build -O3 (was Re: subtle side effect of commit a1c48bb160f836)

2015-07-02 Thread Michal Marek
Dne 2.7.2015 v 07:27 Vineet Gupta napsal(a): On Wednesday 01 July 2015 08:49 PM, Michal Marek wrote: On Wed, Jun 24, 2015 at 05:50:16PM +0530, Vineet Gupta wrote: On Thursday 18 June 2015 04:02 PM, Vineet Gupta wrote: On Thursday 18 June 2015 03:44 PM, Michal Marek wrote: Uh, this is not what

Re: [PATCH 0/2] kconfig: allow use of relations other than (in)equality

2015-07-02 Thread Michal Marek
Dne 2.7.2015 v 15:04 Martin Walch napsal(a): Hi, 1: allow use of relations other than (in)equality I know it is a bit late for objections. Still, I want to point out that this looks to me like a major extension to the language. Kconfig is a configuration language, and as far as I can

[GIT PULL] kconfig changes for v4.2-rc1

2015-07-02 Thread Michal Marek
Hi Linus, please pull this for v4.2-rc1: - kconfig conditions can use usual less/greater than comparisons - kconfig warns about stray characters in Kconfig files - Bogus expression simplification removed - some minor fixes The following changes since commit

Re: subtle side effect of commit a1c48bb160f836

2015-07-01 Thread Michal Marek
On Wed, Jun 24, 2015 at 05:50:16PM +0530, Vineet Gupta wrote: > On Thursday 18 June 2015 04:02 PM, Vineet Gupta wrote: > > On Thursday 18 June 2015 03:44 PM, Michal Marek wrote: > >> Uh, this is not what I meant. KCFLAGS is a *user* setting. It's meant to > >> be set in

Re: subtle side effect of commit a1c48bb160f836

2015-07-01 Thread Michal Marek
On Wed, Jun 24, 2015 at 05:50:16PM +0530, Vineet Gupta wrote: On Thursday 18 June 2015 04:02 PM, Vineet Gupta wrote: On Thursday 18 June 2015 03:44 PM, Michal Marek wrote: Uh, this is not what I meant. KCFLAGS is a *user* setting. It's meant to be set in the environment or command line

Re: [RFC 1/4] scripts: add stackusage script

2015-06-23 Thread Michal Marek
On 2015-06-21 03:10, Rasmus Villemoes wrote: > The current checkstack.pl script has a few problems, stemming from the > overly simplistic attempt at parsing objdump output with regular > expresions: For example, on x86_64 it doesn't take the push > instruction into account, making it consistently

Re: [RFC 1/4] scripts: add stackusage script

2015-06-23 Thread Michal Marek
On 2015-06-21 03:10, Rasmus Villemoes wrote: The current checkstack.pl script has a few problems, stemming from the overly simplistic attempt at parsing objdump output with regular expresions: For example, on x86_64 it doesn't take the push instruction into account, making it consistently

Re: subtle side effect of commit a1c48bb160f836

2015-06-18 Thread Michal Marek
Dne 18.6.2015 v 10:45 Vineet Gupta napsal(a): > On Thursday 18 June 2015 01:43 PM, Michal Marek wrote: >>>> Alternatively, as we already have CONFIG_CC_OPTIMIZE_FOR_SIZE, >>>> a(nother) Kconfig option may make sense. >> We can also introduce some ARCH_CFL

Re: subtle side effect of commit a1c48bb160f836

2015-06-18 Thread Michal Marek
On Thu, Jun 18, 2015 at 09:10:30AM +0200, Geert Uytterhoeven wrote: > Hi Vineet, > > On Thu, Jun 18, 2015 at 8:47 AM, Vineet Gupta > wrote: > > commit a1c48bb160f8368 "Makefile: Fix unrecognized cross-compiler command > > line > > options" moved ARCH specific cc option handling before common

Re: subtle side effect of commit a1c48bb160f836

2015-06-18 Thread Michal Marek
Dne 18.6.2015 v 10:45 Vineet Gupta napsal(a): On Thursday 18 June 2015 01:43 PM, Michal Marek wrote: Alternatively, as we already have CONFIG_CC_OPTIMIZE_FOR_SIZE, a(nother) Kconfig option may make sense. We can also introduce some ARCH_CFLAGS that is appended near the end of the list

Re: subtle side effect of commit a1c48bb160f836

2015-06-18 Thread Michal Marek
On Thu, Jun 18, 2015 at 09:10:30AM +0200, Geert Uytterhoeven wrote: Hi Vineet, On Thu, Jun 18, 2015 at 8:47 AM, Vineet Gupta vineet.gup...@synopsys.com wrote: commit a1c48bb160f8368 Makefile: Fix unrecognized cross-compiler command line options moved ARCH specific cc option handling

Re: [PATCH] scripts/package/Makefile: rpmbuild is needed for rpm targets

2015-06-15 Thread Michal Marek
On 2015-06-08 22:19, Jim Davis wrote: > Before rpm release 4.1, in 2002, either the rpm command or the > rpmbuild command could be used in the rpm-pkg or binrpm-pkg targets, > and the Makefile chose the rpm command if the rpmbuild command wasn't > found. > > After release 4.1, however, the rpm

Re: [RFC] kconfig: a new command line tool to set configs

2015-06-15 Thread Michal Marek
On 2015-05-12 12:31, Dan Carpenter wrote: > This is an ugly hack job I made last night and it barely works. It > does two things: > > 1) Sometimes I want to search for a config so I have to load > menuconfig, then search for the config entry, then exit. With > this script I simply run:

Re: [PATCH] Kbuild: Add ID files to .gitignore

2015-06-15 Thread Michal Marek
On 2015-04-16 23:02, Andi Kleen wrote: > From: Andi Kleen > > I use GNU id-utils to find code (essentially a database backed grep), > which generates an ID file to maintain its data. > > Add ID to the .gitignore file. > > Signed-off-by: Andi Kleen Applied to kbuild.git#misc now, sorry for

Re: [PATCH 0/2] kconfig: allow use of relations other than (in)equality

2015-06-15 Thread Michal Marek
On 2015-06-15 13:59, Jan Beulich wrote: > 1: allow use of relations other than (in)equality > 2: re-generate *.c_shipped files after previous change > > Signed-off-by: Jan Beulich Applied to kbuild.git#kconfig now, thanks. Michal -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH] gitignore: Add MIPS vmlinux.32 to the list

2015-06-15 Thread Michal Marek
On Sat, Jun 13, 2015 at 11:37:33AM -0700, Florian Fainelli wrote: > 2015-04-24 10:27 GMT-07:00 Florian Fainelli : > > MIPS64 kernels builds will produce a vmlinux.32 kernel image for > > compatibility, ignore them. > > Ralf, Michal, which one of you should take this patch? I just applied it to

Re: [PATCH] gitignore: Add MIPS vmlinux.32 to the list

2015-06-15 Thread Michal Marek
On Sat, Jun 13, 2015 at 11:37:33AM -0700, Florian Fainelli wrote: 2015-04-24 10:27 GMT-07:00 Florian Fainelli f.faine...@gmail.com: MIPS64 kernels builds will produce a vmlinux.32 kernel image for compatibility, ignore them. Ralf, Michal, which one of you should take this patch? I just

Re: [PATCH] Kbuild: Add ID files to .gitignore

2015-06-15 Thread Michal Marek
On 2015-04-16 23:02, Andi Kleen wrote: From: Andi Kleen a...@linux.intel.com I use GNU id-utils to find code (essentially a database backed grep), which generates an ID file to maintain its data. Add ID to the .gitignore file. Signed-off-by: Andi Kleen a...@linux.intel.com Applied to

Re: [RFC] kconfig: a new command line tool to set configs

2015-06-15 Thread Michal Marek
On 2015-05-12 12:31, Dan Carpenter wrote: This is an ugly hack job I made last night and it barely works. It does two things: 1) Sometimes I want to search for a config so I have to load menuconfig, then search for the config entry, then exit. With this script I simply run:

Re: [PATCH 0/2] kconfig: allow use of relations other than (in)equality

2015-06-15 Thread Michal Marek
On 2015-06-15 13:59, Jan Beulich wrote: 1: allow use of relations other than (in)equality 2: re-generate *.c_shipped files after previous change Signed-off-by: Jan Beulich jbeul...@suse.com Applied to kbuild.git#kconfig now, thanks. Michal -- To unsubscribe from this list: send the line

Re: [PATCH] scripts/package/Makefile: rpmbuild is needed for rpm targets

2015-06-15 Thread Michal Marek
On 2015-06-08 22:19, Jim Davis wrote: Before rpm release 4.1, in 2002, either the rpm command or the rpmbuild command could be used in the rpm-pkg or binrpm-pkg targets, and the Makefile chose the rpm command if the rpmbuild command wasn't found. After release 4.1, however, the rpm command

Re: [PATCH] kbuild: include core debug info when DEBUG_INFO_REDUCED

2015-06-11 Thread Michal Marek
On Thu, Jun 11, 2015 at 02:32:48PM +0200, Rasmus Villemoes wrote: > On Sat, Mar 21 2015, Rasmus Villemoes wrote: > > > With CONFIG_DEBUG_INFO_REDUCED, we do get quite a lot of debug info > > (around 22.7 MB for a defconfig+DEBUG_INFO_REDUCED). However, the > > "basenames must match" rule used by

Re: [PATCH] kbuild: include core debug info when DEBUG_INFO_REDUCED

2015-06-11 Thread Michal Marek
On Thu, Jun 11, 2015 at 02:32:48PM +0200, Rasmus Villemoes wrote: On Sat, Mar 21 2015, Rasmus Villemoes li...@rasmusvillemoes.dk wrote: With CONFIG_DEBUG_INFO_REDUCED, we do get quite a lot of debug info (around 22.7 MB for a defconfig+DEBUG_INFO_REDUCED). However, the basenames must

Re: [PATCH TRIVIAL] scripts/kconfig/Makefile: Cosmetic fixes

2015-06-04 Thread Michal Marek
On 2015-06-04 16:56, Diego Viola wrote: > Nevermind, I see my changes now. I forgot to push yesterday. Michal -- 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

Re: [PATCH 2/3] kconfig: Wrap long "make help" text lines

2015-06-04 Thread Michal Marek
On Tue, May 26, 2015 at 01:39:54PM +0200, Geert Uytterhoeven wrote: > Some "make help" text lines extend beyond 80 characters. Wrap them at 79 > characters. > > Signed-off-by: Geert Uytterhoeven Applied to kbuild.git#kconfig. Michal -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH TRIVIAL] scripts/kconfig/Makefile: Cosmetic fixes

2015-06-04 Thread Michal Marek
On 2015-06-04 16:56, Diego Viola wrote: Nevermind, I see my changes now. I forgot to push yesterday. Michal -- 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

Re: [PATCH 2/3] kconfig: Wrap long make help text lines

2015-06-04 Thread Michal Marek
On Tue, May 26, 2015 at 01:39:54PM +0200, Geert Uytterhoeven wrote: Some make help text lines extend beyond 80 characters. Wrap them at 79 characters. Signed-off-by: Geert Uytterhoeven geert+rene...@glider.be Applied to kbuild.git#kconfig. Michal -- To unsubscribe from this list: send the

Re: [PATCH] modules: CONFIG_MODULE_COMPRESS: add hint that userspace support may easily be missing.

2015-06-03 Thread Michal Marek
On 2015-06-01 08:26, Rusty Russell wrote: > Andreas Mohr writes: >> Hi, >> >> I just had a not so nice experience >> when finally upgrading to a new 4.1-rc5 >> with CONFIG_MODULE_COMPRESS newly enabled - >> userspace binary parts (kmod 18 or 20 in my case) >> did not have compression enabled >>

Re: [PATCH TRIVIAL] scripts/kconfig/Makefile: Cosmetic fixes

2015-06-03 Thread Michal Marek
On 2015-05-31 19:35, Diego Viola wrote: > Signed-off-by: Diego Viola > --- > scripts/kconfig/Makefile | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) Applied to kbuild.git#kconfig. Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

Re: [PATCH TRIVIAL] scripts/kconfig/Makefile: Cosmetic fixes

2015-06-03 Thread Michal Marek
On 2015-05-31 19:35, Diego Viola wrote: Signed-off-by: Diego Viola diego.vi...@gmail.com --- scripts/kconfig/Makefile | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) Applied to kbuild.git#kconfig. Michal -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH] modules: CONFIG_MODULE_COMPRESS: add hint that userspace support may easily be missing.

2015-06-03 Thread Michal Marek
On 2015-06-01 08:26, Rusty Russell wrote: Andreas Mohr a...@lisas.de writes: Hi, I just had a not so nice experience when finally upgrading to a new 4.1-rc5 with CONFIG_MODULE_COMPRESS newly enabled - userspace binary parts (kmod 18 or 20 in my case) did not have compression enabled (at

Re: [PATCH] scripts/kconfig/Makefile: Fix spelling of Qt

2015-05-28 Thread Michal Marek
Dne 28.5.2015 v 03:43 Diego Viola napsal(a): > Ping? I applied the patch to kbuild.git#kconfig, sorry for the delay. Michal -- 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

Re: [PATCH] scripts/kconfig/Makefile: Fix spelling of Qt

2015-05-28 Thread Michal Marek
Dne 28.5.2015 v 03:43 Diego Viola napsal(a): Ping? I applied the patch to kbuild.git#kconfig, sorry for the delay. Michal -- 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

Re: [PATCH 1/3] X.509: Fix certificate gathering again

2015-05-27 Thread Michal Marek
Dne 27.5.2015 v 00:15 David Howells napsal(a): > Hi Michal, > > Could you have a look at the patch at the end of my branch: > > > http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=modsign-pkcs7 > > It changes things from picking up arbitrary *.x509 files dropped in

Re: [PATCH 1/3] X.509: Fix certificate gathering again

2015-05-27 Thread Michal Marek
Dne 27.5.2015 v 00:15 David Howells napsal(a): Hi Michal, Could you have a look at the patch at the end of my branch: http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=modsign-pkcs7 It changes things from picking up arbitrary *.x509 files dropped in the

Re: [PATCH v6 0/2] kconfig: add xenconfig

2015-05-21 Thread Michal Marek
Dne 21.5.2015 v 02:53 Luis R. Rodriguez napsal(a): > From: "Luis R. Rodriguez" > > Michal Marek, Xen folks (David Vrabel, Konrad, Ian), which tree should > these go through? Not kbuild, if I may ask :). Otherwise people will find me in get_maintainer.pl output and ke

Re: [PATCHv2] coccinelle: api: add vma_pages.cocci

2015-05-21 Thread Michal Marek
Dne 18.5.2015 v 04:25 Julia Lawall napsal(a): > On Sun, 17 May 2015, Dmitry Kalinkin wrote: >> This semantic patch replaces explicit computations of vma page count >> with explicit function call. >> >> Signed-off-by: Dmitry Kalinkin > Acked-by: Julia Lawall Thanks, applied to kbuild.git#misc.

Re: [PATCH v6 0/2] kconfig: add xenconfig

2015-05-21 Thread Michal Marek
Dne 21.5.2015 v 02:53 Luis R. Rodriguez napsal(a): From: Luis R. Rodriguez mcg...@suse.com Michal Marek, Xen folks (David Vrabel, Konrad, Ian), which tree should these go through? Not kbuild, if I may ask :). Otherwise people will find me in get_maintainer.pl output and keep CCing me

Re: [PATCHv2] coccinelle: api: add vma_pages.cocci

2015-05-21 Thread Michal Marek
Dne 18.5.2015 v 04:25 Julia Lawall napsal(a): On Sun, 17 May 2015, Dmitry Kalinkin wrote: This semantic patch replaces explicit computations of vma page count with explicit function call. Signed-off-by: Dmitry Kalinkin dmitry.kalin...@gmail.com Acked-by: Julia Lawall julia.law...@lip6.fr

Re: [PATCH v8 01/16] scripts: link-vmlinux: Don't pass page offset to kallsyms if XIP Kernel

2015-05-20 Thread Michal Marek
Dne 21.5.2015 v 07:04 Andreas Färber napsal(a): > Am 18.05.2015 um 13:47 schrieb Maxime Coquelin: > But this is definitely an improvement for ARMv7-M debugging, > > Tested-by: Andreas Färber > >> [Hi Michal, ...] could you consider >> taking it for v4.2? I applied it to kbuild.git#kbuild now.

Re: Should we automatically generate a module signing key at all?

2015-05-20 Thread Michal Marek
Dne 20.5.2015 v 00:23 David Howells napsal(a): > For my own purposes when running kernels on my test machines, I build kernels > with all the necessary drivers built in and boot them directly out of the > build tree by PXE. Then I copy any modules I'm testing by scp and use them. > I don't

Re: Should we automatically generate a module signing key at all?

2015-05-20 Thread Michal Marek
Dne 20.5.2015 v 05:47 Jiri Kosina napsal(a): > On Tue, 19 May 2015, David Howells wrote: > >> That wouldn't very convenient for building our kernels in our build farm >> - we have a lot of machines and all of them would have to be equiped >> with the key. Besides, we *want* to discard the

Re: mod_devicetable: Make dmi_strmatch.substr const char *

2015-05-20 Thread Michal Marek
he dmi tables special? We use character arrays in other tables as well, to make them self-contained for modpost. > But it seems the file2alias code was rewritten in 2013 by Andreas Schwab > , and SOB Michal Marek , without > going through me. Annoying, since they had to hack it because peop

Re: mod_devicetable: Make dmi_strmatch.substr const char *

2015-05-20 Thread Michal Marek
for modpost. But it seems the file2alias code was rewritten in 2013 by Andreas Schwab sch...@linux-m68k.org, and SOB Michal Marek mma...@suse.cz, without going through me. Annoying, since they had to hack it because people screwed up mod_devicetable.h with arch-dependent layouts :( Oh, sorry

Re: Should we automatically generate a module signing key at all?

2015-05-20 Thread Michal Marek
Dne 20.5.2015 v 05:47 Jiri Kosina napsal(a): On Tue, 19 May 2015, David Howells wrote: That wouldn't very convenient for building our kernels in our build farm - we have a lot of machines and all of them would have to be equiped with the key. Besides, we *want* to discard the private key

Re: Should we automatically generate a module signing key at all?

2015-05-20 Thread Michal Marek
Dne 20.5.2015 v 00:23 David Howells napsal(a): For my own purposes when running kernels on my test machines, I build kernels with all the necessary drivers built in and boot them directly out of the build tree by PXE. Then I copy any modules I'm testing by scp and use them. I don't generally

Re: [PATCH v8 01/16] scripts: link-vmlinux: Don't pass page offset to kallsyms if XIP Kernel

2015-05-20 Thread Michal Marek
Dne 21.5.2015 v 07:04 Andreas Färber napsal(a): Am 18.05.2015 um 13:47 schrieb Maxime Coquelin: But this is definitely an improvement for ARMv7-M debugging, Tested-by: Andreas Färber afaer...@suse.de [Hi Michal, ...] could you consider taking it for v4.2? I applied it to

[PATCH 3/3] MODSIGN: Split user-supplied and autogenerated signing key

2015-05-19 Thread Michal Marek
Allow the users to place signing_key.{x509,priv} and x509.genkey in the source tree. If any of these files is missing, generate the file in the build tree with an .auto suffix. This avoids problems with overwriting user-supplied files. Signed-off-by: Michal Marek --- .gitignore

[PATCH 2/3] MODSIGN: Use filechk to generate .x509.list

2015-05-19 Thread Michal Marek
From: Linus Torvalds Use the filechk Kbuild function instead of manually comparing the content of the generated file. Signed-off-by: Linus Torvalds --- kernel/Makefile | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/kernel/Makefile b/kernel/Makefile index

[PATCH 1/3] X.509: Fix certificate gathering again

2015-05-19 Thread Michal Marek
separately, to ensure that signing_key.x509 appears before anything from $(srctree). Signed-off-by: Michal Marek --- kernel/Makefile | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/kernel/Makefile b/kernel/Makefile index 60c302c..dc78819 100644 --- a/kernel

[PATCH 1/3] X.509: Fix certificate gathering again

2015-05-19 Thread Michal Marek
separately, to ensure that signing_key.x509 appears before anything from $(srctree). Signed-off-by: Michal Marek mma...@suse.cz --- kernel/Makefile | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/kernel/Makefile b/kernel/Makefile index 60c302c..dc78819 100644

[PATCH 3/3] MODSIGN: Split user-supplied and autogenerated signing key

2015-05-19 Thread Michal Marek
Allow the users to place signing_key.{x509,priv} and x509.genkey in the source tree. If any of these files is missing, generate the file in the build tree with an .auto suffix. This avoids problems with overwriting user-supplied files. Signed-off-by: Michal Marek mma...@suse.cz --- .gitignore

[PATCH 2/3] MODSIGN: Use filechk to generate .x509.list

2015-05-19 Thread Michal Marek
From: Linus Torvalds torva...@linux-foundation.org Use the filechk Kbuild function instead of manually comparing the content of the generated file. Signed-off-by: Linus Torvalds torva...@linux-foundation.org --- kernel/Makefile | 14 +- 1 file changed, 5 insertions(+), 9

Re: [PATCH v3 1/3] x86, stackvalidate: Compile-time stack frame pointer validation

2015-05-13 Thread Michal Marek
t; scripts/Makefile | 1 + > scripts/Makefile.build| 22 ++- For the kbuild parts: Acked-by: Michal Marek > +int main(int argc, char *argv[]) > +{ > + struct args args; > + struct elf *elf; > + struct section *sec; &

Re: [PATCH v3 1/3] x86, stackvalidate: Compile-time stack frame pointer validation

2015-05-13 Thread Michal Marek
++- For the kbuild parts: Acked-by: Michal Marek mma...@suse.cz +int main(int argc, char *argv[]) +{ + struct args args; + struct elf *elf; + struct section *sec; + int ret, warnings = 0; + + argp_parse(argp, argc, argv, 0, 0, args); + + elf = elf_open(args.args[0

Re: [PATCH] MODSIGN: Change default key details [ver #2]

2015-05-12 Thread Michal Marek
On 2015-05-08 15:05, David Howells wrote: > Michal Marek wrote: > >> +@echo >>$@ "[ req_distinguished_name ]" >> +@echo >>$@ "O = Magrathea" >> +@echo >>$@ "CN = Glacier signing key" >> +@echo >>

Re: [PATCH] MODSIGN: Change default key details [ver #2]

2015-05-12 Thread Michal Marek
On 2015-05-08 15:05, David Howells wrote: Michal Marek mma...@suse.cz wrote: +@echo $@ [ req_distinguished_name ] +@echo $@ O = Magrathea +@echo $@ CN = Glacier signing key +@echo $@ emailAddress = slartibartfast@magrathea.h2g2 This bit has changed upstream. Right

Re: [PATCH] MODSIGN: Change default key details [ver #2]

2015-05-07 Thread Michal Marek
On Thu, May 07, 2015 at 02:15:46PM +0200, Michal Marek wrote: > That's the problem with allowing a file to be either user-supplied or > generated. We can use separate files for the user-supplied/generated > cases like below and solve this for good. Not signed off yet, because it > is

Re: [PATCH] MODSIGN: Change default key details [ver #2]

2015-05-07 Thread Michal Marek
On 2015-05-07 13:00, David Howells wrote: > Michal Marek wrote: > >> are you fine with these two patches? >> >> https://lkml.org/lkml/2015/2/20/546 >> https://lkml.org/lkml/2015/5/4/614 > > Yeah, I think so. Your reasoning on the first one is sound

Re: [PATCH v2] scripts: fix link-vmlinux.sh bash-ism

2015-05-07 Thread Michal Marek
On 2015-05-07 02:36, sylvain.bertr...@gmail.com wrote: > While building linux with dash shell: > LINKvmlinux > trap: SIGHUP: bad trap > /src/linux-4.0/Makefile:933: recipe for target 'vmlinux' failed > make[1]: *** [vmlinux] Error 1 > > See the following document for behavior of posix shell

Re: [PATCH v2] scripts: fix link-vmlinux.sh bash-ism

2015-05-07 Thread Michal Marek
On 2015-05-07 02:36, sylvain.bertr...@gmail.com wrote: While building linux with dash shell: LINKvmlinux trap: SIGHUP: bad trap /src/linux-4.0/Makefile:933: recipe for target 'vmlinux' failed make[1]: *** [vmlinux] Error 1 See the following document for behavior of posix shell trap

Re: [PATCH] MODSIGN: Change default key details [ver #2]

2015-05-07 Thread Michal Marek
On Thu, May 07, 2015 at 02:15:46PM +0200, Michal Marek wrote: That's the problem with allowing a file to be either user-supplied or generated. We can use separate files for the user-supplied/generated cases like below and solve this for good. Not signed off yet, because it is only lightly

Re: [PATCH] MODSIGN: Change default key details [ver #2]

2015-05-07 Thread Michal Marek
On 2015-05-07 13:00, David Howells wrote: Michal Marek mma...@suse.cz wrote: are you fine with these two patches? https://lkml.org/lkml/2015/2/20/546 https://lkml.org/lkml/2015/5/4/614 Yeah, I think so. Your reasoning on the first one is sound - but is it possible for $(objtree

Re: [PATCH] scripts: fix link-vmlinux.sh bash-ism

2015-05-06 Thread Michal Marek
On 2015-05-06 15:54, sylvain.bertr...@gmail.com wrote: > On Mon, Apr 27, 2015 at 03:25:25PM +, sylvain.bertr...@gmail.com wrote: >> On Tue, Mar 17, 2015 at 09:59:13PM +0100, Michal Marek wrote: >>> Sorry if I wasn't clear. The changelog should contain the actual

Re: [PATCH] builddeb: fix stripped module signatures if CONFIG_DEBUG_INFO and CONFIG_MODULE_SIG_ALL are set

2015-05-06 Thread Michal Marek
On 2015-05-04 17:37, Andrey Skvortsov wrote: > On 22 Apr, maximilian attems wrote: >> On Tue, Apr 21, 2015 at 03:58:48PM +0200, Michal Marek wrote: >>> (added Max to Cc) >>> >>> On 2015-03-16 09:20, Andrey Skvortsov wrote: >>>> If CONFIG_MODULE_SI

Re: [PATCH] MODSIGN: Change default key details [ver #2]

2015-05-06 Thread Michal Marek
On 2015-05-05 17:41, Linus Torvalds wrote: > On Tue, May 5, 2015 at 8:22 AM, Michal Marek wrote: >> On 2015-05-04 20:45, Linus Torvalds wrote: >>> >>> That still leaves the problem that the X509_CERTIFICATES variable >>> itself seems to be badly defined [..]

Re: [PATCH] MODSIGN: Change default key details [ver #2]

2015-05-06 Thread Michal Marek
On 2015-05-05 17:41, Linus Torvalds wrote: On Tue, May 5, 2015 at 8:22 AM, Michal Marek mma...@suse.cz wrote: On 2015-05-04 20:45, Linus Torvalds wrote: That still leaves the problem that the X509_CERTIFICATES variable itself seems to be badly defined [..] This will be fixed once https

Re: [PATCH] scripts: fix link-vmlinux.sh bash-ism

2015-05-06 Thread Michal Marek
On 2015-05-06 15:54, sylvain.bertr...@gmail.com wrote: On Mon, Apr 27, 2015 at 03:25:25PM +, sylvain.bertr...@gmail.com wrote: On Tue, Mar 17, 2015 at 09:59:13PM +0100, Michal Marek wrote: Sorry if I wasn't clear. The changelog should contain the actual error message or description

Re: [PATCH] builddeb: fix stripped module signatures if CONFIG_DEBUG_INFO and CONFIG_MODULE_SIG_ALL are set

2015-05-06 Thread Michal Marek
On 2015-05-04 17:37, Andrey Skvortsov wrote: On 22 Apr, maximilian attems wrote: On Tue, Apr 21, 2015 at 03:58:48PM +0200, Michal Marek wrote: (added Max to Cc) On 2015-03-16 09:20, Andrey Skvortsov wrote: If CONFIG_MODULE_SIG_ALL is set, then user expects that all modules are automatically

Re: [PATCH] MODSIGN: Change default key details [ver #2]

2015-05-05 Thread Michal Marek
On 2015-05-04 20:45, Linus Torvalds wrote: > On Sun, May 3, 2015 at 6:45 PM, Linus Torvalds > wrote: >> >> I'd much rather see "x509.genkey" be generated with a move-if-changed >> pattern, so that it only changes if (a) it didn't exist before or (b) >> it actually has new content. > > Hmm.

Re: [PATCH] MODSIGN: Change default key details [ver #2]

2015-05-05 Thread Michal Marek
On 2015-05-04 20:45, Linus Torvalds wrote: On Sun, May 3, 2015 at 6:45 PM, Linus Torvalds torva...@linux-foundation.org wrote: I'd much rather see x509.genkey be generated with a move-if-changed pattern, so that it only changes if (a) it didn't exist before or (b) it actually has new

Re: [PATCH v2] builddeb: parallelize debug module installation

2015-04-28 Thread Michal Marek
On 2015-04-28 10:57, Riku Voipio wrote: > On 27 April 2015 at 19:43, Chris J Arges wrote: >> When building the dbg package, we use a large 'for module in $(find' loop >> that >> can be easily parallelized by using 'find | xargs'. This patch modifies this >> loop to use the later paradigm. >> >>

Re: [PATCH v2] builddeb: parallelize debug module installation

2015-04-28 Thread Michal Marek
On 2015-04-28 10:57, Riku Voipio wrote: On 27 April 2015 at 19:43, Chris J Arges chris.j.ar...@canonical.com wrote: When building the dbg package, we use a large 'for module in $(find' loop that can be easily parallelized by using 'find | xargs'. This patch modifies this loop to use the

Re: [PATCH 2/2] builddeb: parallelize debug module installation

2015-04-27 Thread Michal Marek
On 2015-04-24 20:25, Chris J Arges wrote: > When building the dbg package, we use a large 'for module in $(find' loop that > can be easily parallelized by using 'find | xargs'. This patch modifies this > loop to use the later paradigm. > > Signed-off-by: Chris J Arges > --- >

Re: [PATCH 2/2] builddeb: parallelize debug module installation

2015-04-27 Thread Michal Marek
On 2015-04-24 20:25, Chris J Arges wrote: When building the dbg package, we use a large 'for module in $(find' loop that can be easily parallelized by using 'find | xargs'. This patch modifies this loop to use the later paradigm. Signed-off-by: Chris J Arges chris.j.ar...@canonical.com ---

Re: [PATCH v2] Makefile: Fix detection of clang when cross-compiling

2015-04-22 Thread Michal Marek
On Fri, Apr 17, 2015 at 11:35:04PM +0200, Paul Cercueil wrote: > When the host's C compiler is clang, and when attempting to > cross-compile Linux e.g. to MIPS with mipsel-linux-gcc, the Makefile > would incorrectly detect the use of clang, which resulted in > clang-specific flags being passed to

Re: [PATCH] kbuild/mkspec: Simplify vmlinux.bz2 creation

2015-04-22 Thread Michal Marek
On Sun, Apr 19, 2015 at 12:05:14AM +0200, Borislav Petkov wrote: > From: Borislav Petkov > > No need for the intermediary vmlinux.orig - bzip2 can keep the original > files used for compression with --keep. > > Signed-off-by: Borislav Petkov > Cc: Michal M

Re: [PATCH v2] Makefile: Fix detection of clang when cross-compiling

2015-04-22 Thread Michal Marek
On Fri, Apr 17, 2015 at 11:35:04PM +0200, Paul Cercueil wrote: When the host's C compiler is clang, and when attempting to cross-compile Linux e.g. to MIPS with mipsel-linux-gcc, the Makefile would incorrectly detect the use of clang, which resulted in clang-specific flags being passed to

Re: [PATCH] kbuild/mkspec: Simplify vmlinux.bz2 creation

2015-04-22 Thread Michal Marek
On Sun, Apr 19, 2015 at 12:05:14AM +0200, Borislav Petkov wrote: From: Borislav Petkov b...@suse.de No need for the intermediary vmlinux.orig - bzip2 can keep the original files used for compression with --keep. Signed-off-by: Borislav Petkov b...@suse.de Cc: Michal Marek mma...@suse.cz

Re: [PATCH] builddeb: fix stripped module signatures if CONFIG_DEBUG_INFO and CONFIG_MODULE_SIG_ALL are set

2015-04-21 Thread Michal Marek
(added Max to Cc) On 2015-03-16 09:20, Andrey Skvortsov wrote: > If CONFIG_MODULE_SIG_ALL is set, then user expects that all modules are > automatically signed in the result package, as it's for rpm-pkg, binrpm-pkg, > tar, tar-*. For deb-pkg this is correct only if CONFIG_DEBUG_INFO > is NOT set.

Re: [PATCH] builddeb: fix stripped module signatures if CONFIG_DEBUG_INFO and CONFIG_MODULE_SIG_ALL are set

2015-04-21 Thread Michal Marek
(added Max to Cc) On 2015-03-16 09:20, Andrey Skvortsov wrote: If CONFIG_MODULE_SIG_ALL is set, then user expects that all modules are automatically signed in the result package, as it's for rpm-pkg, binrpm-pkg, tar, tar-*. For deb-pkg this is correct only if CONFIG_DEBUG_INFO is NOT set. In

[GIT PULL] kbuild misc update for v4.1-rc1

2015-04-20 Thread Michal Marek
Hi Linus, this is the remaining part of kbuild stuff for v4.1-rc1: - One wew coccinelle script and a clarification of the proposed fix in bugon.coccinelle - CONFIG_KERNEL_LZ4 support for extract-ikconfig Michal The following changes since commit c517d838eb7d07bbe9507871fab3931deccff539:

[GIT PULL] kbuild misc update for v4.1-rc1

2015-04-20 Thread Michal Marek
Hi Linus, this is the remaining part of kbuild stuff for v4.1-rc1: - One wew coccinelle script and a clarification of the proposed fix in bugon.coccinelle - CONFIG_KERNEL_LZ4 support for extract-ikconfig Michal The following changes since commit c517d838eb7d07bbe9507871fab3931deccff539:

Re: [PATCH] Support gcc 6 for building

2015-04-16 Thread Michal Marek
Dne 16.4.2015 v 17:56 Andi Kleen napsal(a): > On Thu, Apr 16, 2015 at 09:57:48AM +0200, Michal Marek wrote: >> Good idea. With the new scheme, we could also merge back compiler-gcc5.h >> and compiler-gcc4.h. The only difference is the KASAN_ABI_VERSION define. > > Would be fi

Re: [PATCH] Support gcc 6 for building

2015-04-16 Thread Michal Marek
On 2015-04-15 21:45, Andi Kleen wrote: > From: Andi Kleen > > gcc recently switched to a new version number scheme, where every version > gets a new major version number. The current version is 5.x, the next 6.x, > etc. > > The gcc git repository trunk branch just switched to report 6.x for

Re: [PATCH] Support gcc 6 for building

2015-04-16 Thread Michal Marek
On 2015-04-15 21:45, Andi Kleen wrote: From: Andi Kleen a...@linux.intel.com gcc recently switched to a new version number scheme, where every version gets a new major version number. The current version is 5.x, the next 6.x, etc. The gcc git repository trunk branch just switched to

Re: [PATCH] Support gcc 6 for building

2015-04-16 Thread Michal Marek
Dne 16.4.2015 v 17:56 Andi Kleen napsal(a): On Thu, Apr 16, 2015 at 09:57:48AM +0200, Michal Marek wrote: Good idea. With the new scheme, we could also merge back compiler-gcc5.h and compiler-gcc4.h. The only difference is the KASAN_ABI_VERSION define. Would be fine too. Are you doing

Re: [PATCH] tags: much faster, parallel "make tags"

2015-04-15 Thread Michal Marek
On 2015-04-15 15:24, Michal Marek wrote: > On 2015-04-14 19:20, Alexey Dobriyan wrote: >> ctags is single-threaded program. Split list of files to be tagged into >> equal parts, 1 part for each CPU and then merge the results. >> >> Speedup on one 2-way box I h

Re: [PATCH] tags: much faster, parallel "make tags"

2015-04-15 Thread Michal Marek
On 2015-04-14 19:20, Alexey Dobriyan wrote: > ctags is single-threaded program. Split list of files to be tagged into > equal parts, 1 part for each CPU and then merge the results. > > Speedup on one 2-way box I have is ~143 s => ~99 s (-31%). > On another 4-way box: ~120 s => ~65 s (-46%!). > >

Re: [PATCH V2 linux-next] scripts/coccinelle/misc/bugon.cocci: update bug_on conversion warning

2015-04-15 Thread Michal Marek
On 2015-04-09 22:58, Fabian Frederick wrote: > if()/BUG conversion to BUG_ON must be avoided when there's side effect > in condition. The reason being BUG_ON won't execute the condition when > CONFIG_BUG > is not defined. > > Inspired-by: J. Bruce Fields > Suggested-by: Julia Lawall >

Re: [PATCH] scripts/extract-ikconfig: Support LZ4-compressed images.

2015-04-15 Thread Michal Marek
On Tue, Apr 14, 2015 at 12:38:33AM -0400, Alex Pilon wrote: > Support for kernel image LZ4 compression was added around 3.11, but not > the corresponding kernel .config extraction. > > This makes possible extracting the kernel config for LZ4-compressed > kernels you're not running, or the current

[GIT PULL] kconfig changes for v4.1-rc1

2015-04-15 Thread Michal Marek
redundant $(objtree) merge_config.sh: improve indentation merge_config.sh: rename MAKE to RUNMAKE kbuild: add generic mergeconfig target, %.config Michal Marek (5): kconfig: Get rid of the P() macro in headers kconfig: Remove dead code kconfig: Remove unnecessary

[GIT PULL] kbuild changes for v4.1-rc1

2015-04-15 Thread Michal Marek
)/Makefile rather than $(obj)/Makefile kbuild: ia64: use $(src)/Makefile.gate rather than particular path Michal Marek (1): kbuild: Don't reset timestamps in include/generated if not needed Kbuild| 21 ++--- Makefile

Re: [PATCH] tags: much faster, parallel "make tags"

2015-04-15 Thread Michal Marek
On 2015-04-14 19:20, Alexey Dobriyan wrote: > ctags is single-threaded program. Split list of files to be tagged into > equal parts, 1 part for each CPU and then merge the results. > > Speedup on one 2-way box I have is ~143 s => ~99 s (-31%). > On another 4-way box: ~120 s => ~65 s (-46%!). I

Re: [PATCH] tags: much faster, parallel "make tags"

2015-04-15 Thread Michal Marek
On 2015-04-14 22:24, Guenter Roeck wrote: > On Tue, Apr 14, 2015 at 01:05:09PM -0700, Randy Dunlap wrote: >> On 04/14/15 10:20, Alexey Dobriyan wrote: >>> ctags is single-threaded program. Split list of files to be tagged into >>> equal parts, 1 part for each CPU and then merge the results. >>>

Re: [PATCH] scripts/extract-ikconfig: Support LZ4-compressed images.

2015-04-15 Thread Michal Marek
On Tue, Apr 14, 2015 at 12:38:33AM -0400, Alex Pilon wrote: Support for kernel image LZ4 compression was added around 3.11, but not the corresponding kernel .config extraction. This makes possible extracting the kernel config for LZ4-compressed kernels you're not running, or the current

[GIT PULL] kconfig changes for v4.1-rc1

2015-04-15 Thread Michal Marek
$(objtree) merge_config.sh: improve indentation merge_config.sh: rename MAKE to RUNMAKE kbuild: add generic mergeconfig target, %.config Michal Marek (5): kconfig: Get rid of the P() macro in headers kconfig: Remove dead code kconfig: Remove unnecessary prototypes

<    3   4   5   6   7   8   9   10   11   12   >