[GIT PULL] kbuild fixes for v4.2-rc6

2015-08-04 Thread Michal Marek
(2015-07-22 17:47:12 +0200) Jason A. Donenfeld (1): Makefile: Force gzip and xz on module install Michal Marek (1): kbuild: Do not pick up ARCH_{CPP,A,C}FLAGS from the environment Makefile | 9 +++-- 1 file changed, 7

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

2015-08-27 Thread Michal Marek
On 2015-08-27 03:49, Behan Webster wrote: > > On 08/19/15 08:41, Michal Marek wrote: >> From 49bb3e66a9a7fc3685fb070bdfd31f2c3d78cc87 Mon Sep 17 00:00:00 2001 >> From: Michal Marek >> Date: Wed, 19 Aug 2015 17:36:41 +0200 >> Subject: [PATCH] kbuild: Fix clang de

Re: [PATCH] scripts: Extract kernel headers for out of tree modules build

2015-08-19 Thread Michal Marek
On 2015-08-19 08:50, Daniel Baluta wrote: > scripts/package/builddeb already creates a linux-keader .deb > package, but we need this feature also for non-Debian distros > (e.g. Android or LFS). Kbuild supports building out-of-tree modules by providing the /lib/modules/*/build and /lib/modules/*/so

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

2015-08-19 Thread Michal Marek
On 2015-05-11 22:25, Alexey Dobriyan wrote: > ctags is single-threaded program. Split list of files to be tagged into > almost equal parts, process them on every CPU and merge the results. Sorry, I missed the v4 of the patch. > + # Remove headers. > + for i in .make-tags.t*; do > +

Re: [PATCH] scripts/tags.sh: Include trace_*_rcuidle() in tags

2015-08-19 Thread Michal Marek
On 2015-07-28 02:17, Stephen Boyd wrote: > On 06/16/2015 06:00 PM, Stephen Boyd wrote: >> Every tracepoint creates two functions, the usual one 'trace_*()' >> and the rcuidle one 'trace_*_rcuidle()'. Add regex for the >> rcuidle variant so that we can jump to the tracepoints that use >> rcuidle. >>

Re: [PATCH v3] kconfig: Delete unnecessary checks before the function call "sym_calc_value"

2015-08-19 Thread Michal Marek
On 2015-07-07 21:54, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 7 Jul 2015 21:48:23 +0200 > > The sym_calc_value() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detected by using the C

Re: [PATCH v4 0/2] kconfig: warn of unhandled characters in Kconfig commands

2015-08-19 Thread Michal Marek
On 2015-07-20 10:54, Ulf Magnusson wrote: > On Sun, Jul 12, 2015 at 09:41:49AM +0200, Andreas Ruprecht wrote: >> This patchset changes the lexer file to emit a warning if any unhandled >> characters are found in the input. So far, Kconfig options like >> >> +config FOO >> bool >> [...] >>

Re: [PATCH, resend] build: fix broken kernel RPM source symlink

2015-08-19 Thread Michal Marek
On 2015-06-30 13:47, Espen Carlsen wrote: > Fix the 'rpm-pkg' makefile target to always generate the correct > /usr/src/kernel/ symlink; this fails on non-RPM-native systems > eg Ubuntu. > > On a non-RPM-native system, the symlink created by rpmbuild points to > the source tree, so the ln -sf comm

Re: [PATCH] coccinelle: api: extend spatch for dropping unnecessary owner

2015-08-19 Thread Michal Marek
On 2015-07-10 06:53, Krzysztof Kozlowski wrote: > i2c_add_driver (through i2c_register_driver) sets the owner field so we > can drop it also from i2c drivers, just like from platform drivers. > > Signed-off-by: Krzysztof Kozlowski Applied to kbuild.git#misc. Michal -- To unsubscribe from this

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

2015-08-19 Thread Michal Marek
e to define the default compiler per arch > > is necessary. But I know I need to be able to add arch specific flags > > for clang. > > I can confirm the patch breaks ppc64le clang builds. Can you try the (untested) patch below? >From 49bb3e66a9a7fc3685fb070bdfd31f2c3d78c

Re: [PATCH] kbuild: Fix .text.unlikely placement

2015-08-20 Thread Michal Marek
On 2015-07-20 03:01, Andi Kleen wrote: > From: Andi Kleen > > When building a kernel with .text.unlikely text the unlikely text for > each translation unit was put next to the main .text code in the > final vmlinux. > > The problem is that the linker doesn't allow more specific submatches > of a

Re: [PATCH v2 1/1] merge_config.sh: exit on missing input files

2015-08-20 Thread Michal Marek
On 2015-07-20 07:12, Sam Bobroff wrote: > Add a check for the existence of input files and exit (with failure) > if they are missing. > > Without this additional check, missing files produce error messages > but still result in an output file being generated and a successful > exit code. > > Sign

Re: [PATCH] genksyms: Duplicate function pointer type definitions segfault

2015-08-20 Thread Michal Marek
On 2015-07-21 01:52, Richard Yao wrote: > From: Richard Yao > > I noticed that genksyms will segfault when it sees duplicate function > pointer type declaration when I placed the same function pointer > definition in two separate headers in a local branch as an intermediate > step of some refacto

Re: [GIT PULL] ARC fixes for 4.2-rc3

2015-07-16 Thread Michal Marek
and I suspect we may have other > cases where we do this, but I do not think that the *intention* was > that people could use this as another KCFLAGS replacement... It was definitely not intended to be set by the user. Michal >From f821bf39576444276917bd6737c526d361c69221 Mon Sep 17 0

Re: [PATCH v2] kbuild: forbid kernel directory to contain spaces and colons

2016-05-10 Thread Michal Marek
On Sat, Apr 02, 2016 at 09:38:53PM +0200, Robert Jarzmik wrote: > When the kernel path contains a space or a colon somewhere in the path > name, the modules_install target doesn't work anymore, as the path names > are not enclosed in double quotes. It is also supposed that and O= build > will suffe

Re: [RESEND PATCH 0/5] gcov fixes and maybe-uninitialized warnings

2016-05-10 Thread Michal Marek
On Mon, Apr 25, 2016 at 05:35:26PM +0200, Arnd Bergmann wrote: > Hi Michal, > > This is a resend of a series I originally sent back in February, but > unfortunately I never heard back from you. Could you apply these > patches for v4.7? > > [PATCH 1/5] Kbuild: change CC_OPTIMIZE_FOR_SIZE definitio

Re: [PATCH v2] kconfig: add unexpected data itself to warning

2016-05-10 Thread Michal Marek
On Wed, Apr 27, 2016 at 09:20:17PM +0200, Paul Bolle wrote: > Hi Michal, > > On wo, 2016-03-16 at 21:27 +0100, Paul Bolle wrote: > > If the .config parser runs into unexpected data it emits warnings > > like: > > .config:6911:warning: unexpected data > > > > Add the unexpected data itself to

Re: [PATCH] builddeb: include objtool binary in headers package

2016-05-10 Thread Michal Marek
On Wed, May 04, 2016 at 03:35:39PM +0200, Bjørn Mork wrote: > "objtool" is required for building external m dules if "Compile-time > stack metadata validation" is enabled. Otherwise all builds based > on the headers package fail with: > > make[1]: Entering directory '/usr/src/linux-headers-4.6.0

Re: [PATCH v1] builddeb: fix missing headers in linux-headers package

2016-05-10 Thread Michal Marek
On Thu, May 05, 2016 at 10:42:12AM -0400, Christopher Covington wrote: > On 03/31/2016 01:31 PM, Azriel Samson wrote: > > The kernel headers package (linux-headers) doesn't include > > header files from other architectures required to build > > out-of-tree modules. > > > > For e.g. on ARM64, opcod

Re: [PATCH v2] kbuild: fix if_change and friends to consider argument order

2016-05-10 Thread Michal Marek
On Sat, May 07, 2016 at 03:48:26PM +0900, Masahiro Yamada wrote: > Currently, arg-check is implemented as follows: > > arg-check = $(strip $(filter-out $(cmd_$(1)), $(cmd_$@)) \ > $(filter-out $(cmd_$@), $(cmd_$(1))) ) > > This does not care about the order of arguments

Re: [PATCH] kbuild: move -Wunused-const-variable to W=1 warning level

2016-05-11 Thread Michal Marek
On Tue, May 10, 2016 at 11:30:01PM +0200, Arnd Bergmann wrote: > gcc-6 started warning by default about variables that are not > used anywhere and that are marked 'const', generating many > false positives in an allmodconfig build, e.g.: > > arch/arm/mach-davinci/board-da830-evm.c:282:20: warning:

Re: [PATCH v7 2/6] GCC plugin infrastructure

2016-05-11 Thread Michal Marek
On 2016-04-22 20:22, Emese Revfy wrote: > diff --git a/Documentation/dontdiff b/Documentation/dontdiff > index 8ea834f..5385cba 100644 > --- a/Documentation/dontdiff > +++ b/Documentation/dontdiff > @@ -3,6 +3,7 @@ > *.bc > *.bin > *.bz2 > +*.c.[012]*.* > *.cis > *.cpio > *.csp Hi Emese, Wh

Re: [PATCH] deb-pkg: add the shared header file for arm64

2016-05-12 Thread Michal Marek
On 2016-05-12 11:03, Huang Shijie wrote: > The arch/arm/include/asm/opcodes.h is also used by the arm64. > This patch copies it to the arm64 deb package. > > Signed-off-by: Huang Shijie > --- > scripts/package/builddeb | 6 ++ > 1 file changed, 6 insertions(+) Hi Huang, this is fixed (adm

Re: [PATCH v8 2/4] GCC plugin infrastructure

2016-05-17 Thread Michal Marek
Dne 13.5.2016 v 01:57 Emese Revfy napsal(a): > --- /dev/null > +++ b/scripts/Makefile.gcc-plugins > @@ -0,0 +1,21 @@ > +ifdef CONFIG_GCC_PLUGINS > + __PLUGINCC := $(call cc-ifversion, -ge, 0408, $(HOSTCXX), $(HOSTCC)) > + PLUGINCC := $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-plugin.sh > "$(

Re: [PATCH] coccicheck: Fix missing 0 index in kill loop

2016-05-19 Thread Michal Marek
Dne 17.5.2016 v 16:33 Julia Lawall napsal(a): > > > On Tue, 17 May 2016, Nicolas Palix (LIG) wrote: > >> Le 16/05/16 14:55, Kees Cook a écrit : >>> By default, "seq" counts from 1, but processes were starting counting >>> from 0, so when interrupted, coccicheck would leave the 0th process >>> ru

Re: [PATCH v9 0/4] Introduce GCC plugin infrastructure

2016-05-25 Thread Michal Marek
On 2016-05-24 19:04, Kees Cook wrote: > On Mon, May 23, 2016 at 3:07 PM, Emese Revfy wrote: >> This patch set introduce the GCC plugin infrastructure with examples for >> testing >> and documentation. >> >> GCC plugins are loadable modules that provide extra features to the compiler. >> They are

[GIT PULL] kbuild updates for v4.7-rc1

2016-05-26 Thread Michal Marek
name cmd_cc_i_c to cmd_cpp_i_c kbuild: rename cmd_as_s_S to cmd_cpp_s_S kbuild: fix if_change and friends to consider argument order Maxim Zhukov (1): scripts: genksyms: fix resource leak Michal Marek (1): kbuild: Get rid of KBUILD_STR Nicolas Ferre (1): kbuild: fix call to a

[GIT PULL] kconfig updates for v4.7-rc1

2016-05-26 Thread Michal Marek
Hi Linus, Please pull these kconfig fixes for v4.7-rc1: - Fix for behavior of tristate choice items and fix for documentation of existing kconfig behavior [Dirk Gouders] - More helpful "unexpected data" kconfig warning [Paul Bolle] Thanks, Michal The following changes since commit f55532a0c0b8

[GIT PULL] kbuild misc changes for v4.7-rc1

2016-05-26 Thread Michal Marek
Hi Linus, this is the non-critical part of kbuild: - Coccinelle fixes, one semantic patch less in this round [Vaishali Thakkar, Wolfram Sang, Kees Cook] - rpm-pkg support for (open)SUSE's update-bootloader [Jiří Kosian] - rpm-pkg restored support for $RPMOPTS [Srinivas Pandruvada] - deb-pkg fixe

Re: [PATCH] kbuild: adjust ksym_dep_filter for some cmd_* renames

2016-04-27 Thread Michal Marek
On 2016-04-26 17:21, Nicolas Pitre wrote: > > The following renames occurred recently: > > cmd_cc_i_c --> cmd_cpp_i_c > cmd_as_s_S --> cmd_cpp_s_S > > The respective cc_*_c and as_*_S patterns no longer match the above > therefore additional patterns are needed. > > Signed-off-by: Nicolas P

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

2016-04-27 Thread Michal Marek
On 2016-04-26 22:48, Nicolas Pitre wrote: > On Wed, 27 Apr 2016, Stephen Rothwell wrote: > >> Hi Nicolas, >> >> On Tue, 26 Apr 2016 10:40:57 -0400 (EDT) Nicolas Pitre >> wrote: >>> >>> If you can reproduce this build failure, could you try a make mrproper >>> and attempt it again? I, too, woul

Re: [PATCH] scripts/package/Makefile: rpmbuild add support of RPMOPTS

2016-05-16 Thread Michal Marek
On Sat, May 14, 2016 at 08:09:52PM -0700, Srinivas Pandruvada wrote: > After commit 21a59991ce0c ("scripts/package/Makefile: rpmbuild is needed > for rpm targets"), it is no longer possible to specify RPMOPTS. > For example, we can no longer able to control _topdir using the following > make comman

[PATCH v2 0/8] scripts/tags.sh cleanup

2015-12-04 Thread Michal Marek
-next, ARM KVM patch got merged. Michal Marek (8): tags: Treat header files as C code aic7xxx: Avoid name collision with tags: Fix erroneous pattern match in a comment tags: Process Kconfig files in a single pass tags: Do not try to index defconfigs tags: Drop the _PE rule tags: Unify

[PATCH v2 4/8] tags: Process Kconfig files in a single pass

2015-12-04 Thread Michal Marek
Signed-off-by: Michal Marek --- v2: No change scripts/tags.sh | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index c845b3e2e7b0..283f772133fe 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -219,10 +219,7 @@ exuberant

[PATCH v2 3/8] tags: Fix erroneous pattern match in a comment

2015-12-04 Thread Michal Marek
l a better solution is found. Signed-off-by: Michal Marek --- v2: No change scripts/tags.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index abcf43eed874..c845b3e2e7b0 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -204,7 +204,7 @@

[PATCH v2 7/8] tags: Unify emacs and exuberant rules

2015-12-04 Thread Michal Marek
these versions of the tools: Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert etags (GNU Emacs 24.5) Signed-off-by: Michal Marek --- v2: Rebased onto current linux-next scripts/tags.sh | 199 ++-- 1 file changed, 108 insertions

[PATCH v2 2/8] aic7xxx: Avoid name collision with

2015-12-04 Thread Michal Marek
pansion of name pattern "\3" Cc: linux-s...@vger.kernel.org Signed-off-by: Michal Marek --- v2: No change drivers/scsi/aic7xxx/aic79xx.h | 4 ++-- drivers/scsi/aic7xxx/aic79xx_osm.h | 5 - drivers/scsi/aic7xxx/aic7xxx.h | 2 +- drivers/scsi/aic7xxx/aic7xxx_osm.h | 5 -

[PATCH v2 8/8] treewide: Remove newlines inside DEFINE_PER_CPU() macros

2015-12-04 Thread Michal Marek
syncookies.c:44: null expansion of name pattern "\1" Cc: linux-i...@vger.kernel.org Cc: xen-de...@lists.xenproject.org Cc: linux-a...@vger.kernel.org Cc: rds-de...@oss.oracle.com Cc: net...@vger.kernel.org Signed-off-by: Michal Marek --- v2: No change arch/ia64/kernel/smp.c | 3 +-- drivers/a

[PATCH v2 1/8] tags: Treat header files as C code

2015-12-04 Thread Michal Marek
macros in the code and the C and C++ parsers fail and recover at different points. Also, qconf.h is parsed as C, but that's a negligible regression. Signed-off-by: Michal Marek --- v2: Rebased on current linux-next scripts/tags.sh | 64 ---

[PATCH v2 6/8] tags: Drop the _PE rule

2015-12-04 Thread Michal Marek
We are not indexing the userspace tools, so the rules only match some false positives in the kernel code. Signed-off-by: Michal Marek --- v2: Rebased onto current linux-next scripts/tags.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index

[PATCH v2 5/8] tags: Do not try to index defconfigs

2015-12-04 Thread Michal Marek
The defconfig files are in predictable locations, so there is no need to index them. Plus, the script was only looking for files named 'defconfig', which only works on a few architectures nowadays. Signed-off-by: Michal Marek --- v2: No change scripts/tags.sh | 12 1 fi

Re: [PATCH] fixdep: constify strrcmp arguments

2015-12-07 Thread Michal Marek
On 2015-12-05 10:43, Nicolas Iooss wrote: > Hello, > I sent the path below a few weeks ago and did not have any feedback. > Could you please review it? Applied to kbuild.git#kbuild now. Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH v2 8/8] treewide: Remove newlines inside DEFINE_PER_CPU() macros

2015-12-07 Thread Michal Marek
On 2015-12-07 17:33, David Laight wrote: > From: Michal Marek >> Sent: 04 December 2015 15:26 >> Otherwise make tags can't parse them: >> >> ctags: Warning: arch/ia64/kernel/smp.c:60: null expansion of name pattern >> "\1" > ... > > Seems

Re: [PATCH v2 8/8] treewide: Remove newlines inside DEFINE_PER_CPU() macros

2015-12-07 Thread Michal Marek
On 2015-12-07 18:04, Joe Perches wrote: > On Mon, 2015-12-07 at 17:53 +0100, Michal Marek wrote: >> On 2015-12-07 17:33, David Laight wrote: >>> From: Michal Marek >>>> Sent: 04 December 2015 15:26 >>>> Otherwise make tags can't parse them: >>&g

Re: [PATCH] staging: drop kbuild workaround dummy module from top dir

2015-11-18 Thread Michal Marek
red anymore. Acked-by: Michal Marek In fact, I can't even reproduce the original bug with 2.6.27 + the initial staging series. I also do not remember any fix for such bug in the recent years. 4b024242e8a4 ("kbuild: Fix linking error built-in.o no such file or directory") is re

Re: [PATCH] logfs: clarify MTD dependency

2015-11-27 Thread Michal Marek
HABLE(CONFIG_FOO) evaluates to 1 if CONFIG_FOO=y or we are building a module and CONFIG_FOO=m. Michal >From 63e7ab41e3958e753277728acbe15faf35a5374e Mon Sep 17 00:00:00 2001 From: Michal Marek Date: Fri, 27 Nov 2015 15:08:29 +0100 Subject: [PATCH] kbuild: Use IS_REACHABLE to handle objnam

Re: [PATCH] logfs: clarify MTD dependency

2015-11-27 Thread Michal Marek
On 2015-11-27 15:30, Arnd Bergmann wrote: > On Friday 27 November 2015 15:14:06 Michal Marek wrote: >> >> Hi Arnd, >> >> I hit this as well and was about to submit a slightly different fix. Can >> you try the logfs portion of the below patch? Proper changelog is t

Re: [PATCH 1/2] kbuild: add AFLAGS_REMOVE_(basename).o option

2015-11-30 Thread Michal Marek
On 2015-11-30 09:17, Heiko Carstens wrote: > On Sat, Nov 21, 2015 at 11:59:58AM +0100, Heiko Carstens wrote: >> It is already possible to remove CFLAGS with the CFLAGS_REMOVE option >> that was introduced with commit 656ee82cc855 ("kbuild: create new >> CFLAGS_REMOVE_(basename).o option"). However

Re: [PATCH v2 1/2] scripts: Add a recorduidiv program

2015-11-30 Thread Michal Marek
On 2015-11-26 00:47, Russell King - ARM Linux wrote: > On Wed, Nov 25, 2015 at 01:51:03PM -0800, Stephen Boyd wrote: >> The ARM compiler inserts calls to __aeabi_uidiv() and >> __aeabi_idiv() when it needs to perform division on signed and >> unsigned integers. If a processor has support for the ud

Re: [PATCH v2 1/2] scripts: Add a recorduidiv program

2015-11-30 Thread Michal Marek
On 2015-11-30 16:32, Russell King - ARM Linux wrote: > On Mon, Nov 30, 2015 at 04:11:16PM +0100, Michal Marek wrote: >> On 2015-11-26 00:47, Russell King - ARM Linux wrote: >>> On Wed, Nov 25, 2015 at 01:51:03PM -0800, Stephen Boyd wrote: >>>> The ARM compiler insert

Re: [PATCH v2 1/2] scripts: Add a recorduidiv program

2015-12-01 Thread Michal Marek
On 2015-11-30 16:40, Michal Marek wrote: > On 2015-11-30 16:32, Russell King - ARM Linux wrote: >> On Mon, Nov 30, 2015 at 04:11:16PM +0100, Michal Marek wrote: >>> On 2015-11-26 00:47, Russell King - ARM Linux wrote: >>>> Do we have any resolution on these pr

Re: [PATCH v2 1/2] scripts: Add a recorduidiv program

2015-12-01 Thread Michal Marek
On 2015-12-01 17:19, Russell King - ARM Linux wrote: > On Tue, Dec 01, 2015 at 05:07:05PM +0100, Michal Marek wrote: >> So, both recordmcount and the new recordudiv program are idempotent. >> They check if the to-be-added section is already present and do nothing. > > They ha

Re: [PATCH v2 1/2] scripts: Add a recorduidiv program

2015-12-01 Thread Michal Marek
Dne 1.12.2015 v 19:16 Russell King - ARM Linux napsal(a): > On Tue, Dec 01, 2015 at 12:22:12PM -0500, Steven Rostedt wrote: >> I guess another solution is to do a copy instead of modifying in place >> if it detects the multiple hard link? > > That would be the "transparent" solution. If you think

Re: [PATCH] kbuild: support make dir/file.i for *.S

2015-12-14 Thread Michal Marek
Dne 14.12.2015 v 17:14 Wang YanQing napsal(a): > On Sat, Dec 12, 2015 at 02:13:03PM -0500, Brian Gerst wrote: >> On Thu, Dec 10, 2015 at 11:33 AM, Wang YanQing wrote: >>> This feature could reduce a little time to expand all >>> the macros in *.S for reading. >>> >>> Signed-off-by: Wang YanQing >

Re: [PATCH 2/3] kbuild: Allow to specify composite modules with modname-m

2015-11-25 Thread Michal Marek
Dne 28.10.2015 v 14:25 Michal Marek napsal(a): > From: Michal Marek > > This allows to write > > drm-$(CONFIG_AGP) += drm_agpsupport.o > > without having to handle CONFIG_AGP=y vs. CONFIG_AGP=m. Only support > this syntax for modules, since built-in code dependin

[PATCH] genksyms: Handle string literals with spaces in reference files

2015-12-09 Thread Michal Marek
} $ KBUILD_SYMTYPES=1 make -s drivers/edac/amd64_edac.symtypes drivers/edac/amd64_edac.c:527: warning: amd64_get_dram_hole_info: modversion changed because of changes in struct edac_raw_error_desc Signed-off-by: Michal Marek --- scripts/genksyms/genksyms.c | 6 -- 1 file changed, 4 insertions(+), 2

Re: [PATCH 4/4] Mark files generated by confdata.c

2015-10-27 Thread Michal Marek
Dne 27.10.2015 v 16:30 Nicholas Mc Guire napsal(a): > scripts/kconfig/confdata.c generates a number of files - indicate the > location of the generator in the file heading to ease reading the sources. > > Signed-off-by: Nicholas Mc Guire > --- > This is no actual code change - compile-testing sh

Re: [PATCH 4/4] Mark files generated by confdata.c

2015-10-28 Thread Michal Marek
Dne 28.10.2015 v 09:00 Nicholas Mc Guire napsal(a): > On Tue, Oct 27, 2015 at 10:16:11PM +0100, Michal Marek wrote: >> You cannot run the C source to regenerate the file, so how about >> "generated by kconfig"? >> > Yup that makes more sense - and it would still

Re: [PATCH] coccinelle: misc: remove "complex return code" warnings

2015-10-28 Thread Michal Marek
Dne 28.10.2015 v 10:54 Johan Hovold napsal(a): > On Sat, Oct 03, 2015 at 06:25:39PM +0200, Julia Lawall wrote: >> Should have acked this message... >> >> Acked-by: Julia Lawall >> >> On Wed, 30 Sep 2015, Johan Hovold wrote: >> >>> This effectively reverts 932058a5d5f9 ("coccinelle: misc: semantic

[PATCH 1/3] staging/ad7606: Actually build the interface modules

2015-10-28 Thread Michal Marek
From: Michal Marek The ad7606_par and ad7606_spi drivers are not built if CONFIG_AD7606=m, because kbuild does not currently support -m syntax. Even if we add kbuild support, ad7606 fails to link, because of duplicate module_init definitions. Make the two drivers separate modules, as the Kconfig

[PATCH 2/3] kbuild: Allow to specify composite modules with modname-m

2015-10-28 Thread Michal Marek
From: Michal Marek This allows to write drm-$(CONFIG_AGP) += drm_agpsupport.o without having to handle CONFIG_AGP=y vs. CONFIG_AGP=m. Only support this syntax for modules, since built-in code depending on something modular cannot work and init/Makefile actually relies on the current

[PATCH 3/3] Revert "drm: Hack around CONFIG_AGP=m build failures"

2015-10-28 Thread Michal Marek
From: Michal Marek Kbuild now supports -m variables. This reverts commit 8fa884dc355ffd0caa964a284a530bf747df5c77. Cc: dri-de...@lists.freedesktop.org Signed-off-by: Michal Marek --- drivers/gpu/drm/Makefile | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/Makefile b

Re: [PATCH 2/3] kbuild: Allow to specify composite modules with modname-m

2015-10-29 Thread Michal Marek
Dne 29.10.2015 v 07:34 Peter Chen napsal(a): > On Wed, Oct 28, 2015 at 02:25:41PM +0100, Michal Marek wrote: >> From: Michal Marek >> >> This allows to write >> >> drm-$(CONFIG_AGP) += drm_agpsupport.o >> >> without having to handle CONFIG_AGP=y vs.

Re: tags: Unify emacs and exuberant rules

2016-01-21 Thread Michal Marek
1a9709 > > Parent: a1ccdb63b5535dc3446b0a9efc6d97aca82c72ef > > Refname:refs/heads/master > > Author: Michal Marek > > AuthorDate: Wed Oct 14 11:48:06 2015 +0200 > > Committer: Michal Marek > > CommitDate: Tue Jan 5 22:18:48 2016 +0100 > > > > tags: Unify

Re: Thoughts about introducing OPTIMIZATION_CFLAG

2016-01-04 Thread Michal Marek
Dne 4.1.2016 v 12:47 Sedat Dilek napsal(a): > But I think you did not get my problem - to have two different > optimization-levels for a compiler in *one* make-line makes no sense > to me. That we sometimes have -O2 ... -Os on the command line is not a problem, since any same unix tool parses its

Re: [PATCH -next] MIPS: VDSO: Fix build error with binutils 2.24 and earlier

2016-01-05 Thread Michal Marek
On 2015-12-24 13:57, James Hogan wrote: > On Thu, Dec 24, 2015 at 12:48:12PM +, James Hogan wrote: >> Hi Guenter, >> >> On Wed, Dec 23, 2015 at 09:04:31PM -0800, Guenter Roeck wrote: >>> Commit 2a037f310bab ("MIPS: VDSO: Fix build error") tries to fix a build >>> error seen with binutils 2.24 a

[PATCH] MPI: Endianness fix

2016-02-17 Thread Michal Marek
Fixes: 0f74fbf77d45 ("MPI: Fix mpi_read_buffer") Signed-off-by: Michal Marek --- lib/mpi/mpicoder.c | 39 +-- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/lib/mpi/mpicoder.c b/lib/mpi/mpicoder.c index ec533a6c77b5..eb15e7dc7b65 100644 --- a/lib

Re: [PATCH] kbuild: fixdep: Check fstat(2) return value

2016-02-17 Thread Michal Marek
On Tue, Feb 16, 2016 at 10:32:15AM -0500, Tom Rini wrote: > Ping? Thanks! Applied now, thanks. Michal

Re: [PATCH] kbuild: disable Android-specific compiler features

2016-02-18 Thread Michal Marek
Dne 18.2.2016 v 00:03 Kees Cook napsal(a): > On Fri, Feb 5, 2016 at 4:44 PM, Kees Cook wrote: >> The Android compilers enable some non-standard features by default. While >> most Android build systems inject the needed "-mno-android" option via >> KCFLAGS, it happens too late (at least on x86_64),

Re: [PATCH] scripts/tags.sh: add regex to map kprobe helpers

2016-02-18 Thread Michal Marek
On Thu, Feb 18, 2016 at 08:56:31PM +0530, Naveen N. Rao wrote: > Add regex for [get|free]_[insn|optinsn|dmainsn]_slot() functions. > > Signed-off-by: Naveen N. Rao Applied to kbuild.git#misc, thanks. Michal

Re: [PATCH] coccinelle: bugon: reduce rule applicability

2016-02-18 Thread Michal Marek
Dne 3.2.2016 v 19:05 Julia Lawall napsal(a): > Rule r is only use in org or report mode, so only execute it in those > cases. I applied this and the previous three patches to kbuild.git#misc. Thanks, Michal

linux-kernel@vger.kernel.org

2016-02-19 Thread Michal Marek
On 2016-02-18 00:47, Nishanth Menon wrote: > On 02/17/2016 05:16 PM, Julia Lawall wrote: >> & is no longer allowed in column 0, since Coccinelle 1.0.4. >> >> Signed-off-by: Julia Lawall [...] > Verified with: > spatch --version > spatch byte-code version 1.0.4-00118-gc7cf750d1c44 compiled with OCa

Re: [PATCH] Kbuild: provide a __UNIQUE_ID for clang

2016-02-08 Thread Michal Marek
On Mon, Feb 08, 2016 at 03:38:32PM +0100, Arnd Bergmann wrote: > The default __UNIQUE_ID macro in compiler.h fails to work for some drivers: > > drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c:615:1: error: > redefinition of > '__UNIQUE_ID_firmware615' > BRCMF_FW_NVRAM_DEF(4354, "br

Re: [PATCH] kbuild/mkspec: fix grub2 installkernel issue

2016-02-26 Thread Michal Marek
On 2016-02-26 16:15, Jiri Kosina wrote: > mkspec is copying built kernel to temporrary location > > /boot/vmlinuz-$KERNELRELEASE-rpm > > and runs installkernel on it. This however directly leads to grub2 > menuentry for this suffixed binary being generated as well during the run > of inst

Re: [PATCH] lz4c: shut up lz4c output

2016-02-29 Thread Michal Marek
On 2016-02-29 13:40, Arnd Bergmann wrote: > When KERNEL_LZ4 is set, we always get an output even when building > with 'make -s': > > *** LZ4 Compression CLI , by Yann Collet (May 31 2013) *** > ! Generating compressed LZ4 using Legacy format (deprecated !) ! > Using stdin for input >

Re: [PATCH] X.509: Fix test for self-signed certificate

2016-02-26 Thread Michal Marek
On 2016-02-24 15:54, David Howells wrote: > Hi Michal, > > I have the attached patch already in my queue. > > David > --- > commit d19fcb825912c67e09e0575b95accaa42899e07f > Author: David Howells > Date: Wed Feb 24 14:37:54 2016 + > > X.509: Don't treat self-signed keys specially Hi

Re: [PATCH] Makefile: sort list of defconfig targets in make help output

2014-11-28 Thread Michal Marek
On Tue, Nov 18, 2014 at 03:03:37PM +0300, Konstantin Khlebnikov wrote: > On 2014-10-28 16:18, Konstantin Khlebnikov wrote: > >Without sorting this list is completely unreadable for ARCH=arm. > > Bump. Applied to kbuild.git#kbuild now, sorry for the delay. Michal -- To unsubscribe from this list:

[PATCH] kbuild: Fix make help- on powerpc

2014-11-28 Thread Michal Marek
make ARCH=powerpc help- should not require a cofigured source tree. Also, sort the boards in the output. Signed-off-by: Michal Marek --- Sorry for the double post to the ppc mailing list. The first version got rejected by the vger spam filter. --- Makefile | 4 ++-- 1 file changed, 2 insertions

Re: [PATCH] kconfig: Fix compiler warning

2014-11-28 Thread Michal Marek
On 2014-11-20 06:44, Eddie Kovsky wrote: > diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c > index a26cc5d2a9b0..a728d23949e7 100644 > --- a/scripts/kconfig/menu.c > +++ b/scripts/kconfig/menu.c > @@ -559,8 +559,8 @@ static void get_prompt_str(struct gstr *r, struct > property *prop,

Re: [PATCH] scripts/kconfig/menu.c warning for uninitialized "jump"

2014-11-28 Thread Michal Marek
On 2014-11-21 05:22, Peter Teoh wrote: > This warning was found in v3.18-rc3-68-g20f3963 of Linus git-tree. > > SHIPPED scripts/kconfig/zconf.hash.c > HOSTCC scripts/kconfig/zconf.tab.o > In file included from scripts/kconfig/zconf.tab.c:2537:0: > scripts/kconfig/menu.c: In function ‘get_symb

Re: [PATCH] kbuild: Fix make help- on powerpc

2014-11-28 Thread Michal Marek
On 2014-11-28 13:52, Michal Marek wrote: > make ARCH=powerpc help- should not require a cofigured > source tree. Also, sort the boards in the output. I added this to kbuild.git#kbuild. Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

Re: [PATCH] kbuild: Automatically remove stale file

2014-11-28 Thread Michal Marek
On 2014-11-27 16:38, Michal Marek wrote: > In 3.7, the file moved from include/linux/ to > include/generated/uapi/linux/. The path in the #include directive > remained the same for compatibility reasons, but this created a problem > when bisecting. Commit 9c8cdb71 (kbuild: uncondition

Re: [PATCH] scripts/kconfig/menu.c warning for uninitialized "jump"

2014-11-28 Thread Michal Marek
Dne 28.11.2014 v 19:50 Joe Perches napsal(a): > On Fri, 2014-11-28 at 14:33 +0100, Michal Marek wrote: >> On 2014-11-21 05:22, Peter Teoh wrote: >>> This warning was found in v3.18-rc3-68-g20f3963 of Linus git-tree. >>> >>> SHIPPED scripts/kconfig/zconf.

Re: [PATCH] ARM: kbuild: Fix forced rebuild after 'make dtbs'

2014-12-01 Thread Michal Marek
On 2014-11-28 15:10, Linus Walleij wrote: > On Wed, Nov 26, 2014 at 3:41 PM, Russell King - ARM Linux > wrote: >> On Wed, Nov 26, 2014 at 02:57:42PM +0100, Linus Walleij wrote: >>> make -f Makefile -j5 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- >>> KBUILD_OUTPUT=build-u300 u300_defconfig >>> make

Re: [PATCH v2 02/19] kbuild: kselftest_install - add a new make target to install selftests

2014-12-01 Thread Michal Marek
On 2014-11-11 21:27, Shuah Khan wrote: > Add a new make target to install to install kernel selftests. > This new target will build and install selftests. kselftest > target now depends on kselftest_install and runs the generated > kselftest script to reduce duplicate work and for common look > and

Re: [Cocci] bugon.cocci: fix Options at the macro

2014-11-24 Thread Michal Marek
Dne 21.11.2014 v 19:07 Wolfram Sang napsal(a): > On Fri, Nov 07, 2014 at 06:51:05PM +0100, Wolfram Sang wrote: >> On Tue, Oct 28, 2014 at 03:18:24PM -0200, Mauro Carvalho Chehab wrote: >>> The comma after --no-includes makes coccinelle to not run the script: >>> >>> /usr/bin/spatch -D report --very

Re: [PATCH RESEND] Kbuild: Add an option to enable GCC VTA

2014-11-24 Thread Michal Marek
Dne 21.11.2014 v 19:40 Josh Stone napsal(a): > Due to recent codegen issues, gcc -fvar-tracking-assignments was > unconditionally disabled in commit 2062afb4f804a ("Fix gcc-4.9.0 > miscompilation of load_balance() in scheduler"). However, this reduces [...] > With gcc-4.9.2-1.fc22, I can now build

Re: [PATCH] .gitignore: Add Kdevelop4 project files

2014-11-25 Thread Michal Marek
On Tue, Nov 25, 2014 at 06:42:54PM +0200, Boaz Harrosh wrote: > From: Boaz Harrosh > > I'm not sure what is the costume with such IDE project files. > Most might be dot-files. It is kind of annoying for the Kdevelop4 user. > > So please consider adding *.kdev4 files to be ignored? Sure, why not

Re: [PATCH RESEND] Kbuild: Add an option to enable GCC VTA

2014-11-25 Thread Michal Marek
Dne 25.11.2014 v 00:46 Josh Stone napsal(a): > On 11/24/2014 01:46 PM, Michal Marek wrote: >> Dne 21.11.2014 v 19:40 Josh Stone napsal(a): >>> Due to recent codegen issues, gcc -fvar-tracking-assignments was >>> unconditionally disabled in commit 2062afb4f804a ("Fix

Re: [PATCH] kbuild: collect shorthands into the top Makefile

2014-11-25 Thread Michal Marek
Dne 31.10.2014 v 03:12 Masahiro Yamada napsal(a): > Hi Sam, > > On Wed, 29 Oct 2014 19:59:07 +0100 > Sam Ravnborg wrote: > >> On Wed, Oct 29, 2014 at 04:27:31PM +0900, Masahiro Yamada wrote: >>> The motivation of this commit is to avoid duplicated definitions >>> of "clean" and "hdr-inst" shorth

Re: [PATCH] ARM: kbuild: Fix forced rebuild after 'make dtbs'

2014-11-25 Thread Michal Marek
Dne 2.11.2014 v 21:52 Jason Cooper napsal(a): > After this patch: > > f4d4ffc03efc kbuild: dtbs_install: new make target > > was added the kernel tree, Linus Walleij noticed that 'make dtbs' forced > a following 'make zImage' to rebuild the entire tree, even though > nothing had changed. His r

Re: [PATCH] ARM: kbuild: Fix forced rebuild after 'make dtbs'

2014-11-26 Thread Michal Marek
On 2014-11-26 00:51, Russell King - ARM Linux wrote: > On Tue, Nov 25, 2014 at 10:41:35PM +0100, Michal Marek wrote: >> Dne 2.11.2014 v 21:52 Jason Cooper napsal(a): >>> After this patch: >>> >>> f4d4ffc03efc kbuild: dtbs_install: new make target >>>

Re: [PATCH] kbuild: collect shorthands into scripts/Kbuild.include

2014-11-26 Thread Michal Marek
On Wed, Nov 26, 2014 at 07:31:13PM +0900, Masahiro Yamada wrote: > The shorthand "clean" is defined in both the top Makefile and > scripts/Makefile.clean. Likewise, the "hdr-inst" is defined in > both the top Makefile and scripts/Makefile.headersinst. > > To reduce code duplication, this commit c

[PATCH] kbuild: Remove duplicate $(cmd) definition in Makefile.clean

2014-11-26 Thread Michal Marek
Makefile.clean includes Kbuild.include since commit 371fdc77 (kbuild: collect shorthands into scripts/Kbuild.include), so there is no need for a local copy. Signed-off-by: Michal Marek --- scripts/Makefile.clean | 5 - 1 file changed, 5 deletions(-) diff --git a/scripts/Makefile.clean b

Re: [PATCH] scripts/package: binrpm-pkg do not build source tar file

2014-11-27 Thread Michal Marek
On 2014-10-31 20:05, j.gli...@gmail.com wrote: > From: Jérôme Glisse > > When doing make binrpm-pkg we do not want to build the source tar > file. This patch avoid doing the gigantic tar file. > > Signed-off-by: Jérôme Glisse > Cc: linux-kbu...@vger.kernel.org > Cc: M

[PATCH] kbuild: Automatically remove stale file

2014-11-27 Thread Michal Marek
, provided the user does make distclean between builds. Better not rely on the user and delete the stale file each time make is invoked. Cc: Paul Gortmaker Cc: David Howells Signed-off-by: Michal Marek --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b

Re: [PATCH 4/5] limit _shipped to c h and S files

2014-12-02 Thread Michal Marek
Dne 2.12.2014 v 10:16 Nicholas Mc Guire napsal(a): > > limit _shipped to c h and S files > > _shipped targets are intended for generated source files which should > not permit .o binary blobs which is currently the case. This patch > simply restricts _shipped targets to .c, .h and .S files. IMO

Re: [PATCH 4/5] limit _shipped to c h and S files

2014-12-02 Thread Michal Marek
On 2014-12-02 11:32, Nicholas Mc Guire wrote: > On Tue, 02 Dec 2014, Michal Marek wrote: > >> Dne 2.12.2014 v 10:16 Nicholas Mc Guire napsal(a): >>> >>> limit _shipped to c h and S files >>> >>> _shipped targets are intended for generated source f

Re: [PATCH] scripts/package: binrpm-pkg do not build source tar file v2

2014-12-02 Thread Michal Marek
On 2014-12-01 21:57, j.gli...@gmail.com wrote: > From: Jérôme Glisse > > When doing make binrpm-pkg we do not want to build the source tar > file. This patch avoid doing the gigantic tar file. Can you also update the changelog and subject? There is no gigantic tar file. > > echo 'rm -f $RPM_

Re: [PATCH v2 02/19] kbuild: kselftest_install - add a new make target to install selftests

2014-12-03 Thread Michal Marek
On 2014-12-01 17:39, Shuah Khan wrote: > On 12/01/2014 08:47 AM, Michal Marek wrote: >> On 2014-11-11 21:27, Shuah Khan wrote: >>> diff --git a/Makefile b/Makefile >>> index 05d67af..ccbd2e1 100644 >>> --- a/Makefile >>> +++ b/Makefile >>>

<    3   4   5   6   7   8   9   10   11   >