Re: [GIT PULL] make mrproper fix for v3.19-rc4

2015-01-09 Thread Michal Marek
On 2015-01-08 23:42, Linus Torvalds wrote: > Just do > > make allmodconfig > .. build the tree .. > make distclean > git ls-files -o > > to see any files that are left-over despite the distclean ("git > ls-files -o" basically shows all untracked files - 'o' stands for > 'others' -

[PATCH] x86: Fix make clean

2015-01-09 Thread Michal Marek
The $(targets) variable should not depend on the configuration, so that make clean always cleans every possible generated file. Where this is impractical, list the potential products of a build in $(clean-files). Reported-by: Linus Torvalds Signed-off-by: Michal Marek --- arch/x86/boot

[PATCH 0/3] tomoyo Makefile cleanup

2015-01-09 Thread Michal Marek
The tomoyo build leaves files in security/tomoyo which are not removed by make clean. Fix this and clean up the Makefile rules a bit. Michal Marek (3): tomoyo: Use bin2c to generate builtin-policy.h tomoyo: Use if_changed when generating builtin-policy.h tomoyo: Do not generate empty policy

[PATCH 2/3] tomoyo: Use if_changed when generating builtin-policy.h

2015-01-09 Thread Michal Marek
Signed-off-by: Michal Marek --- security/tomoyo/Makefile | 27 ++- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/security/tomoyo/Makefile b/security/tomoyo/Makefile index a6c02a5..ccca034 100644 --- a/security/tomoyo/Makefile +++ b/security/tomoyo

[PATCH 3/3] tomoyo: Do not generate empty policy files

2015-01-09 Thread Michal Marek
exception_policy.conf.default. Signed-off-by: Michal Marek --- security/tomoyo/.gitignore | 2 +- security/tomoyo/Makefile | 30 ++ .../tomoyo/policy/exception_policy.conf.default| 2 ++ 3 files changed, 5 insertions(+), 29 deletions

[PATCH 1/3] tomoyo: Use bin2c to generate builtin-policy.h

2015-01-09 Thread Michal Marek
Signed-off-by: Michal Marek --- security/tomoyo/Kconfig | 1 + security/tomoyo/Makefile | 20 ++-- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/security/tomoyo/Kconfig b/security/tomoyo/Kconfig index 8eb779b9d..f22d115 100644 --- a/security/tomoyo/Kconfig

Re: [PATCH 0/6] kbuild: refactor Makefiles related with cc-version

2015-01-09 Thread Michal Marek
On 2014-12-25 06:31, Masahiro Yamada wrote: > Masahiro Yamada (6): > kbuild: fix cc-ifversion macro > kbuild: do not add $(call ...) to invoke cc-version or cc-fullversion > kbuild,gcov: remove unnecessary workaround > kbuild,gcov: simplify kernel/gcov/Makefile > kbuild: allow cc-ifversio

Re: [PATCH] kconfig: use va_end to match corresponding va_start

2015-01-27 Thread Michal Marek
On 2015-01-12 14:18, Colin King wrote: > From: Colin Ian King > > Although on some systems va_end is a no-op, it is good practice > to use va_end, especially since the manual states: > > "Each invocation of va_start() must be matched by a corresponding > invocation of va_end() in the same functi

Re: [PATCH] kbuild: do not add $(bounds-file) and $(offsets-file) to targets

2015-04-02 Thread Michal Marek
On 2015-03-26 12:59, Masahiro Yamada wrote: > $(always) is added to targets by scripts/Makefile.build. > Moreover, filechk does not need .*.cmd files. > > Adding these two files to targets is redundant. > > Signed-off-by: Masahiro Yamada Applied to kbuild.git#kbuild, thanks. Michal -- To unsu

Re: [PATCH 0/4] kbuild: refactor Makefile inclusion

2015-04-02 Thread Michal Marek
On 2015-03-27 12:43, Masahiro Yamada wrote: > Masahiro Yamada (4): > kbuild: use relative path to include Makefile > kbuild: use relative path more to include Makefile > kbuild: include $(src)/Makefile rather than $(obj)/Makefile > kbuild: ia64: use $(src)/Makefile.gate rather than particul

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 m

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] 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 wa

[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

[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

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

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 > Acked-by:

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] 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 have is ~1

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 the

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: [RFC PATCH 1/2] Kbuild: kallsyms: ignore veneers emitted by the ARM linker

2015-03-30 Thread Michal Marek
On 2015-03-30 13:49, Ard Biesheuvel wrote: > When linking large kernels on ARM, the linker will insert veneers > (i.e., PLT like stubs) when function symbols are out of reach for > the ordinary relative branch/branch-and-link instructions. > > However, due to the fact that the kallsyms region sits

Re: [RFC PATCH 2/2] Kbuild: avoid partial linking of drivers/built-in.o

2015-03-30 Thread Michal Marek
On 2015-03-30 13:49, Ard Biesheuvel wrote: > The recursive partial linking of vmlinux can result in a > drivers/built-in.o that is so huge that it interferes with > the ability of the linker to emit veneers in the final link > stage if the symbols are out of reach. This is caused by the > fact that

Re: [RFC PATCH 2/2] Kbuild: avoid partial linking of drivers/built-in.o

2015-03-30 Thread Michal Marek
On 2015-03-30 15:31, Ard Biesheuvel wrote: > On 30 March 2015 at 15:26, Russell King - ARM Linux > wrote: >> On Mon, Mar 30, 2015 at 02:38:35PM +0200, Michal Marek wrote: >>> Is this a limitation of a particular ARM ABI or a limitation of a state >>> of the ar

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 > --- > scripts/package/bui

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. >> >> I

Re: [PATCH 0/2] Kbuild: kallsyms: update suffix ignore logic

2015-04-07 Thread Michal Marek
Dne 7.4.2015 v 11:02 Ard Biesheuvel napsal(a): > On 30 March 2015 at 15:20, Ard Biesheuvel wrote: >> Two patches that update the kallsyms ignore logic. >> >> Patch #1 adds logic to introduce symbols whose names end in (or equal) >> "_veneer". This prevent kallsyms generation errors on large ARM ke

[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: Lin

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] Makefile: Fix detection of clang when cross-compiling

2015-04-11 Thread Michal Marek
On Thu, Apr 09, 2015 at 04:34:54PM +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 m

Re: [PATCH] kbuild: add documentation of KBUILD_BUILD_VERSION

2015-04-11 Thread Michal Marek
Dne 11.4.2015 v 15:20 Nicholas Mc Guire napsal(a): > On Sat, 11 Apr 2015, Jonathan Corbet wrote: > >> On Sun, 5 Apr 2015 08:44:28 +0200 >> Nicholas Mc Guire wrote: >> >>> KBUILD_BUILD_VERSION is currently not documented but it is >>> needed when rebuilding a kernel that should result in the iden

Re: [PATCH] kbuild: add documentation of KBUILD_BUILD_VERSION

2015-04-13 Thread Michal Marek
On 2015-04-12 06:08, Nicholas Mc Guire wrote: > On Sat, 11 Apr 2015, Michal Marek wrote: > >> Dne 11.4.2015 v 15:20 Nicholas Mc Guire napsal(a): >>> On Sat, 11 Apr 2015, Jonathan Corbet wrote: >>> >>>> On Sun, 5 Apr 2015 08

Re: [PATCH] kconfig: allow long lines in config file

2012-07-13 Thread Michal Marek
On 11.7.2012 01:47, c...@linux.vnet.ibm.com wrote: > From: Cody Schafer > > For some config options (CONFIG_EXTRA_FIRMWARE, for example), the length > of a config file line can exceed the 1024 byte buffer. > > Switch from fgets to getline to fix. getline() is not a portable function and kconfig

Re: [PATCH 4/6] [TRIVIAL] kconfig: remove lkc_defs.h from .gitignore and dontdiff

2012-07-13 Thread Michal Marek
On Sun, Jul 01, 2012 at 03:44:54PM +0200, Paul Bolle wrote: > Commit 5a6f8d2bd9e3392569ed6f29ea4d7210652f929b ("kconfig: nuke > LKC_DIRECT_LINK cruft") removed all traces of lkc_defs.h from the tree. > Remove its entries in dontdiff and kconfig's .gitignore file too. Applied to kbuild.git#kconfig.

Re: [PATCH] kconfig: allow long lines in config file

2012-07-13 Thread Michal Marek
Dne 13.7.2012 20:30, cody napsal(a): > Do we have any strict standards for what is and is not portable? We don't. I only checked the existing userspace code and except for perf, there is no other usage of getline(). > (I'm aware 'getline' was only added to posix ~4 years ago in 2008). Ah, good

Re: [PATCH v2] kconfig: allow long lines in config file

2012-07-13 Thread Michal Marek
On Fri, Jul 13, 2012 at 11:27:12AM -0700, c...@linux.vnet.ibm.com wrote: > From: Cody Schafer > > For some config options (CONFIG_EXTRA_FIRMWARE, for example), the length > of a config file line can exceed the 1024 byte buffer. > > Switch from fgets to compat_getline to fix. compat_getline is an

Re: [PATCH] scripts/coccinelle/iterators/use_after_iter.cocci: list iterator variable semantic patch

2012-07-13 Thread Michal Marek
Dne 9.7.2012 22:40, Julia Lawall napsal(a): > From: Julia Lawall > > If list_for_each_entry, etc complete a traversal of the list, the iterator > variable ends up pointing to an address at an offset from the list head, > and not a meaningful structure. Thus this value should not be used after >

Re: [PATCH] kconfig: Print errors to stderr in the Makefile

2012-07-13 Thread Michal Marek
Dne 7.7.2012 23:42, Michal Marek napsal(a): > Signed-off-by: Michal Marek > --- > scripts/kconfig/Makefile | 28 ++-- > 1 files changed, 14 insertions(+), 14 deletions(-) Pushed to kbuild.git#kconfig. Michal -- To unsubscribe from this list: send the line

Re: [opensuse-kernel] Re: [RFC] Simplifying kernel configuration for distro issues

2012-07-19 Thread Michal Marek
On 17.7.2012 10:03, Geert Uytterhoeven wrote: > On Mon, Jul 16, 2012 at 10:56 PM, Linus Torvalds > wrote: >> On Mon, Jul 16, 2012 at 12:26 PM, wrote: >>> Some of the proposed ways to implement the minimum distro kernel would not >>> allow you to override the distro defaults because they would be

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] 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 http://vger.kernel.o

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] 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 kb

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 lin

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 the

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] 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 com

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 -Os

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 u

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] 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 >> (a

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 l

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 http://vger.kernel.org/majordomo-

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 i

Re: [PATCH 2/3] Kbuild: Handle longer symbols in kallsyms.c v2

2013-11-06 Thread Michal Marek
On Wed, Oct 23, 2013 at 03:07:53PM +0200, Andi Kleen wrote: > > Also warn for too long symbols > > v2: Add missing newline. Use 255 max (Joe Perches) > Signed-off-by: Andi Kleen Applied to kbuild.git#kbuild. Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in t

Re: [PATCH 3/3] kbuild, bloat-o-meter: fix static detection

2013-11-06 Thread Michal Marek
On Tue, Oct 22, 2013 at 08:46:23AM -0700, Andi Kleen wrote: > From: Andi Kleen > > Disable static detection: the static currently drops a lot of useful > information > including clones generated by gcc. Drop this. The statics will appear now > without static. prefix. > > But remove the LTO .NUM

Re: Kbuild: Ignore GREP_OPTIONS env variable

2013-11-06 Thread Michal Marek
Dne 30.10.2013 17:06, Borislav Petkov napsal(a): > So I had defined GREP_OPTIONS=--color=always on one of my boxes and had > forgotten about it and the kernel build started failing because we use > grep quite a while in the tree and it started issuing shell color markup > which generated garbage fi

Re: [PATCH] scripts/kernel-doc: make unknown function prototype a Warning instead of an Error

2013-11-06 Thread Michal Marek
On Thu, Oct 17, 2013 at 04:32:01PM -0700, Randy Dunlap wrote: > From: Randy Dunlap > > When scripts/kernel-doc cannot understand a function prototype, > it had been generating a fatal error and stopping immediately. > Make this a Warning instead of an Error and keep going. > > Note that this can

Re: [PATCH 1/3] kbuild: Increase kallsyms max symbol length v2

2013-11-06 Thread Michal Marek
On Wed, Oct 23, 2013 at 03:06:53PM +0200, Andi Kleen wrote: > From: Joe Mario > > [AK: This seems like a ticking time bomb even without LTO, > so should be merged now. It causes very weird problems. > Thanks to Joe for tracking them down.] > > With the added postfixes that LTO adds for local > s

Re: [PATCH] kbuild: replace unbounded sprintf call in modpost

2013-11-06 Thread Michal Marek
On Fri, Oct 25, 2013 at 06:14:43AM -0700, Kees Cook wrote: > The modpost tool could overflow its stack buffer if someone was running > with an insane shell environment. Regardless, it's technically a bug, > so this fixes it to truncate the string instead of seg-faulting. > > Found by Coverity. >

Re: linux-next: manual merge of the akpm-current tree with the kbuild tree

2013-11-07 Thread Michal Marek
On 7.11.2013 07:37, Stephen Rothwell wrote: > Hi Andrew, > > Today's linux-next merge of the akpm-current tree got a conflict in > scripts/bloat-o-meter between commit 21cf6e584ce3 ("kbuild, > bloat-o-meter: fix static detection") from the kbuild tree and commit > 372dd3b27736 ("scripts/bloat-o-me

Re: [PATCH v2] kbuild: enable use of password-protected signing keys

2014-03-14 Thread Michal Marek
On 2014-02-14 00:00, Emily Maier wrote: > Currently, the module signing script assumes that the private key is > not password-protected. This patch makes it somewhat more secure by > checking of a password file ("signing_key.pass") exists and passing it > to OpenSSL if so. I doubt that this mak

Re: [PATCH RFC] kernel build: enable use of password-protected signing keys

2014-02-13 Thread Michal Marek
On 2014-02-12 23:41, Emily Maier wrote: > On 02/10/2014 08:51 AM, Michal Marek wrote: >> On 9.2.2014 23:38, Emily Maier wrote: >>> Currently, the module signing script assumes that the private key is >>> not password-protected. This patch makes it slightly more secur

[GIT] kbuild changes for v3.15-rc1

2014-04-07 Thread Michal Marek
Hi Linus, please pull these kbuild bits for v3.15-rc1: - Cleanups in the main Makefiles and Documentation/DocBook/Makefile - make O=... directory is automatically created if needed - mrproper/distclean removes the old include/linux/version.h to make life easier when bisecting across the commit t

[GIT] kbuild/lto changes for 3.15-rc1

2014-04-07 Thread Michal Marek
Hi Linus, besides the kbuild branch, here is the LTO build support by Andi. It is a separate branch, because it depends on other patches by Andi which were merged through other trees. The link-time-optimization build is an experimental feature, so there one kconfig option to enable it and another

Re: [PATCH 7/7] Makefile: Build with -Werror=date-time if the compiler supports it

2014-01-14 Thread Michal Marek
Dne 3.1.2014 22:00, Josh Triplett napsal(a): > On Fri, Jan 03, 2014 at 09:55:16PM +0100, Michal Marek wrote: >> On 3.1.2014 21:29, Josh Triplett wrote: >>> Please feel free to take the entire series through your tree; I received >>> some maintainer acks, but no indic

Re: [PATCH] scripts: kallsyms: Use %zu to print 'size_t'

2013-11-08 Thread Michal Marek
On 8.11.2013 03:45, Fabio Estevam wrote: > From: Fabio Estevam > > Commit f3462aa95 (Kbuild: Handle longer symbols in kallsyms.c) introduced the > following warning on ARM: > > scripts/kallsyms.c:121:4: warning: format '%lu' expects argument of type > 'long unsigned int', but argument 4 has typ

Re: [PATCH] scripts/tags.sh: remove obsolete __devinit[const|data]

2013-11-08 Thread Michal Marek
On 28.10.2013 06:49, Michael Opdenacker wrote: > This removes the use of __devinitconst and __devinitdata in scripts/tags.sh, > which were removed in 3.8. > > Signed-off-by: Michael Opdenacker Applied to kbuild.git#misc. Michal -- To unsubscribe from this list: send the line "unsubscribe linux

Re: [PATCHv2] coccinelle: Add a script to find unnecessary ifs with no body

2013-11-08 Thread Michal Marek
On 2.11.2013 17:49, Julia Lawall wrote: >> +@r depends on report || context@ >> +expression E; >> +position p; >> +@@ >> +if@p (E) {} > > There should be a * in front of the if, to support context mode. Josh, will you send a v3 with the above fix? Thanks, Michal -- To unsubscribe from this list

Re: [kallsyms] general protection fault: 0000 [#1] PREEMPT DEBUG_PAGEALLOC

2013-11-11 Thread Michal Marek
On 10.11.2013 16:23, Andi Kleen wrote: > On Sun, Nov 10, 2013 at 05:40:05PM +0800, Fengguang Wu wrote: >> Hi Joe, >> >> FYI. Here is another bisect result. > > I bet it's that strncpy() in kallsyms.c and someone passing in a too > short buffer on a 32bit kernel. > > We should really kill strncpy(

[PATCH 2/2] kallsyms: Revert back to 128 max symbol length

2013-11-11 Thread Michal Marek
d-by: Fengguang Wu Cc: Andi Kleen Cc: Joe Mario Signed-off-by: Michal Marek --- include/linux/kallsyms.h | 2 +- scripts/kallsyms.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/kallsyms.h b/include/linux/kallsyms.h index 5648870..6883e19 100644 -

[PATCH 1/2] PCI: Do not use PCI ID macros in quirk names

2013-11-11 Thread Michal Marek
overflows the namebuf[KSYM_NAME_LEN] array. Use the line number instead to create (nearly) unique symbol names. Reported-by: Joe Mario Cc: Bjorn Helgaas Cc: linux-...@vger.kernel.org Cc: Andi Kleen Cc: Joe Mario Signed-off-by: Michal Marek --- include/linux/pci.h | 30

Re: [kallsyms] general protection fault: 0000 [#1] PREEMPT DEBUG_PAGEALLOC

2013-11-11 Thread Michal Marek
On 11.11.2013 14:27, Joe Mario wrote: > On 11/11/2013 07:07 AM, Michal Marek wrote: >> I'm testing a patch for include/linux/pci.h to use line numbers >> instead of the PCI ID macros to declare the __pci_fixup_* symbols. >> If that works, we can revert the limit back t

Re: [PATCH 2/2] kallsyms: Revert back to 128 max symbol length

2013-11-11 Thread Michal Marek
On Mon, Nov 11, 2013 at 06:17:15AM -0800, Andi Kleen wrote: > On Mon, Nov 11, 2013 at 02:40:36PM +0100, Michal Marek wrote: > > This reverts commits > > f3462aa (Kbuild: Handle longer symbols in kallsyms.c) and > > eea0e9c (kbuild: Increase kallsyms max symbol length) >

Re: [PATCH -v1.1] Kbuild: Ignore GREP_OPTIONS env variable

2013-11-11 Thread Michal Marek
On Mon, Nov 11, 2013 at 03:27:43PM +0100, Borislav Petkov wrote: > From: Borislav Petkov > Subject: [PATCH] Kbuild: Ignore GREP_OPTIONS env variable > > When building the kernel in a shell which defines GREP_OPTIONS so that > grep behavior is modified, we can break the generation of the syscalls

Re: [PATCH 1/2] PCI: Do not use PCI ID macros in quirk names

2013-11-12 Thread Michal Marek
On 11.11.2013 14:40, Michal Marek wrote: > Pasting the verbatim PCI_(VENDOR|DEVICE)_* macros in the __pci_fixup_* > symbol names results in insanely long names such as > > __pci_fixup_resumePCI_VENDOR_ID_SERVERWORKSPCI_DEVICE_ID_SERVERWORKS_HT1000SBquirk_disable_broadcom_boot_interru

Re: [PATCH] ARC: extable: Enable sorting at build time

2013-11-19 Thread Michal Marek
gt; On 11/15/2013 12:15 PM, Vineet Gupta wrote: >> Avoids wasting cycles at boot specially on slower simulators >> >> Signed-off-by: Vineet Gupta >> Cc: David Daney >> Cc: Michal Marek >> Cc: Francois Bedard >> Cc: linux-kernel@vger.kernel.org >> ---

[PATCH] MAINTAINERS: New kconfig maintainer

2013-10-30 Thread Michal Marek
Yann has been the de facto maintainer of kconfig for some time. Update the KCONFIG entry with his emails address and git tree. Cc: "Yann E. MORIN" Signed-off-by: Michal Marek --- MAINTAINERS |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/M

Re: [PATCH] MAINTAINERS: New kconfig maintainer

2013-10-31 Thread Michal Marek
Dne 30.10.2013 19:22, Yann E. MORIN napsal(a): > Michal, All, > > On 2013-10-30 12:07 +0100, Michal Marek spake thusly: >> Yann has been the de facto maintainer of kconfig for some time. Update >> the KCONFIG entry with his emails address and git tree. >> >> Cc:

Re: [PATCH] Fix detectition of kernel git repository in setlocalversion script

2013-12-02 Thread Michal Marek
On 2.12.2013 14:21, Franck Bui-Huu wrote: > diff --git a/scripts/setlocalversion b/scripts/setlocalversion > index 0b5ccf3..c16e65d 100755 > --- a/scripts/setlocalversion > +++ b/scripts/setlocalversion > @@ -43,7 +43,8 @@ scm_version() > fi > > # Check for git and a git repo. > -

Re: [PATCH] Fix detectition of kernel git repository in setlocalversion script

2013-12-02 Thread Michal Marek
On 2.12.2013 16:14, Franck Bui-Huu wrote: > On 12/02/2013 03:57 PM, Michal Marek wrote: >> On 2.12.2013 14:21, Franck Bui-Huu wrote: >>> diff --git a/scripts/setlocalversion b/scripts/setlocalversion >>> index 0b5ccf3..c16e65d 100755 >>> --- a/scrip

Re: [PATCH] kbuild: allow to override Python command name

2014-07-18 Thread Michal Marek
Dne 18.7.2014 06:40, Masahiro Yamada napsal(a): > The specification of Python 3 is largely different from that of > Python 2. > > For example, arch/ia64/scripts/unwcheck.py seems to be written > in Python 2, not compatible with Python 3. > > It is not a good idea to invoke python scripts with the

Re: [PATCH] scripts/tags.sh: ignore code of user space tools

2014-04-24 Thread Michal Marek
On 2014-04-21 10:03, Konstantin Khlebnikov wrote: > User space code in tools/ often reuses names of kernel constructions, > this confuses navigation in the normal kernel code. Let's fix this mess. > > Signed-off-by: Konstantin Khlebnikov Applied to kbuild.git#misc, thanks. Michal -- To unsubsc

Re: Kernel binrpm produces brokes grub2 config

2014-07-29 Thread Michal Marek
On 2014-07-29 12:18, Richard Weinberger wrote: > Hi! > > I'm not sure who to blame, but the below commit breaks the kernel binrpm > target for me. > It produces a faulty grub2 config. > After installing such a kernel grub2 looks for vmlinuz-XY-rpm and > initrd-XY-rpm. > These files are not exist

Re: [PATCH] kbuild, LLVMLinux: only use warnings when using clang

2014-07-30 Thread Michal Marek
On 2014-07-01 12:12, Borislav Petkov wrote: > On Mon, Jun 30, 2014 at 05:42:26PM -0700, beh...@converseincode.com wrote: >> From: Behan Webster >> >> Only consider clang warnings in Kbuild when using the clang compiler. >> >> Signed-off-by: Behan Webster >> --- >> scripts/Makefile.extrawarn | 3

Re: [PATCH 2/2] Kbuild: Add a option to enable dwarf4

2014-07-30 Thread Michal Marek
On 2014-07-30 01:11, Andi Kleen wrote: > From: Andi Kleen > > I found that a lot of unresolvable variables when using gdb on the kernel > become resolvable when dwarf4 is enabled. So add a Kconfig flag to enable it. > > It definitely increases the debug information size, but on the other > hand

Re: [PATCH 1/2] kbuild: Support split debug info v4

2014-07-30 Thread Michal Marek
On 2014-07-30 01:11, Andi Kleen wrote: > From: Andi Kleen > > This is an alternative approach to lower the overhead of debug info > (as we discussed a few days ago) > > gcc 4.7+ and newer binutils have a new "split debug info" debug info > model where the debug info is only written once into cen

Re: [PATCH v2] kbuild, LLVMLinux: Supress warnings unless W=1-3

2014-07-31 Thread Michal Marek
Dne 31.7.2014 06:16, beh...@converseincode.com napsal(a): > From: Behan Webster > > clang has more warnings enabled by default. Turn them off unless W is set. > This patch fixes a logic bug where warnings in clang were disabled when W was > set. > > Signed-off-by: Behan Webster > Signed-off-by

Re: [PATCH v2] kbuild, LLVMLinux: Supress warnings unless W=1-3

2014-07-31 Thread Michal Marek
Dne 31.7.2014 18:12, Behan Webster napsal(a): > On 07/31/14 01:18, Michal Marek wrote: >> Dne 31.7.2014 06:16, beh...@converseincode.com napsal(a): >>> @@ -55,6 +45,18 @@ warning-3 += -Wswitch-default >>> warning-3 += $(call cc-option, -Wpacked-bitfield-compat) &

Re: [PATCH] scripts/gcc-version.sh: handle CC="gcc -m32"

2014-01-16 Thread Michal Marek
On 15.1.2014 05:18, Rusty Russell wrote: > Michal Marek writes: >> On 3.1.2014 18:10, Michal Marek wrote: >>> On 2013-12-10 08:13, Rusty Russell wrote: >>>> Without it we get ugly warnings (though build still succeeds). >>>> >>>> $ make -j8 CC

Re: [PATCH] MODSIGN: Fix including certificate twice when the signing_key.x509

2014-01-16 Thread Michal Marek
On 15.1.2014 05:39, Rusty Russell wrote: > "Lee, Chun-Yi" writes: >> From: Chun-Yi Lee >> v2: >> Using '$(shell /bin/pwd)' instead of '$(shell pwd)' for more reliable >> between different shells > > Hmm, that's not a great test for equality. How about: > > ifneq ($(realpath .), $(realpath

Re: [PATCH] x86 generated files in gitignore

2014-09-23 Thread Michal Marek
On Wed, Sep 03, 2014 at 10:42:04AM +0200, Matteo Croce wrote: > @@ -10,3 +10,4 @@ recordmcount > docproc > sortextable > asn1_compiler > +bin2c bin2c has been moved to scripts/basic, what you see is probably a leftover from building an older kernel. Michal -- To unsubscribe from this list: sen

Re: [PATCH 01/15] kbuild: add support of custom paths for "auto.conf*" files

2014-09-23 Thread Michal Marek
On 2014-09-22 23:53, Alexis Berlemont wrote: > In the scripts/Makefile.build, use KCONFIG_AUTOCONFIG to include a > custom path for the "auto.conf" file. > > The "*conf" programs were modified so as to work with the environment > variable KCONFIG_AUTOCONFIG. > --- > scripts/Makefile.build |

Re: [PATCH 01/15] kbuild: add support of custom paths for "auto.conf*" files

2014-09-23 Thread Michal Marek
On 2014-09-22 23:53, Alexis Berlemont wrote: > +#define PATH_MAXLENGTH 4096 > +const char *conf_get_autoconfigdep_name(void) > +{ > + static char res_value[PATH_MAXLENGTH]; Please use the PATH_MAX macro instead. Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: [PATCH] x86 generated files in gitignore

2014-09-23 Thread Michal Marek
(please do not top-post) On 2014-09-23 14:57, Matteo Croce wrote: > Didn't know, thanks. > > What about arch/x86/purgatory? That part of the patch seems fine, but it should be sent to the x86 maintainers. Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the b

Re: linux-next: build warning after merge of the net tree

2014-09-23 Thread Michal Marek
On 2014-09-18 02:35, Randy Dunlap wrote: > On 09/17/14 17:32, Stephen Rothwell wrote: >> Hi all, >> >> After merging the net tree, today's linux-next build (powerpc >> ppc64_defconfig) produced these warnings: >> >> warning: (PPC_CELL_NATIVE && BLUESTONE && CANYONLANDS && GLACIER && EIGER && >> 44

[PATCH 2/5] parisc: Set CONFIG_NET=y in defconfigs

2014-09-23 Thread Michal Marek
r...@vger.kernel.org Signed-off-by: Michal Marek --- arch/parisc/configs/c8000_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/parisc/configs/c8000_defconfig b/arch/parisc/configs/c8000_defconfig index 8249ac9..269c23d 100644 --- a/arch/parisc/configs/c8000_defconfig +++ b

[PATCH 1/5] mips: Set CONFIG_NET=y in defconfigs

2014-09-23 Thread Michal Marek
inux-mips.org Signed-off-by: Michal Marek --- arch/mips/configs/gpr_defconfig | 1 + arch/mips/configs/ip27_defconfig| 1 + arch/mips/configs/jazz_defconfig| 1 + arch/mips/configs/loongson3_defconfig | 1 + arch/mips/configs/malta_defconfig | 1

[PATCH 4/5] sh: Set CONFIG_NET=y in defconfigs

2014-09-23 Thread Michal Marek
er.kernel.org Signed-off-by: Michal Marek --- arch/sh/configs/sdk7780_defconfig | 1 + arch/sh/configs/sh2007_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/sh/configs/sdk7780_defconfig b/arch/sh/configs/sdk7780_defconfig index 6a96b9a..bbd4c22 100644 --- a/arch/sh/confi

<    1   2   3   4   5   6   7   8   9   10   >