]> git.karo-electronics.de Git - karo-tx-linux.git/log
karo-tx-linux.git
13 years agoMerge branch 'misc' into for-next
Michal Marek [Wed, 13 Oct 2010 12:30:29 +0000 (12:30 +0000)]
Merge branch 'misc' into for-next

13 years agoCoccinelle: Use the -no_show_diff option for org and report mode
Nicolas Palix [Fri, 8 Oct 2010 19:27:41 +0000 (21:27 +0200)]
Coccinelle: Use the -no_show_diff option for org and report mode

This allows to write the semantic patches with code sharing
for the matching parts.

Signed-off-by: Nicolas Palix <npalix.work@gmail.com>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Add a new mode named 'chain'
Nicolas Palix [Fri, 8 Oct 2010 19:27:40 +0000 (21:27 +0200)]
Coccinelle: Add a new mode named 'chain'

spatch now returns -1 when a virtual rule (given with
-D on the command line) is not defined in the semantic patch.

Using this spatch feature, coccicheck is now
tries several modes by default, in the order:
patch, report, context, org

Signed-off-by: Nicolas Palix <npalix.work@gmail.com>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Use new comment format to explain kfree.cocci
Nicolas Palix [Fri, 8 Oct 2010 19:27:39 +0000 (21:27 +0200)]
Coccinelle: Use new comment format to explain kfree.cocci

Use new comment format to separate proposed commit message
and information about generated false positives

Signed-off-by: Nicolas Palix <npalix.work@gmail.com>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Improve user information with a new kind of comment
Nicolas Palix [Fri, 8 Oct 2010 19:27:38 +0000 (21:27 +0200)]
Coccinelle: Improve user information with a new kind of comment

Improve user information with a new kind of comment
about semantic patch output.

Fix spelling.

Signed-off-by: Nicolas Palix <npalix.work@gmail.com>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Update documentation
Nicolas Palix [Tue, 12 Oct 2010 22:49:07 +0000 (00:49 +0200)]
Coccinelle: Update documentation

 - Add information about use of the C={1,2} make flag
 - Add a description of the new chain mode mechanism
 - Add a link to the wiki

Signed-off-by: Nicolas Palix <npalix.work@gmail.com>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoMAINTAINERS: Coccinelle: Update email address
Nicolas Palix [Fri, 8 Oct 2010 19:27:36 +0000 (21:27 +0200)]
MAINTAINERS: Coccinelle: Update email address

Update my email address

Signed-off-by: Nicolas Palix <npalix.work@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoMerge branch 'kconfig' into for-next
Michal Marek [Wed, 13 Oct 2010 11:41:56 +0000 (11:41 +0000)]
Merge branch 'kconfig' into for-next

13 years agoREADME: cite nconfig
Andrea Gelmini [Fri, 1 Oct 2010 21:15:35 +0000 (14:15 -0700)]
README: cite nconfig

Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoMerge branch 'kconfig' into for-next
Michal Marek [Tue, 12 Oct 2010 22:21:14 +0000 (22:21 +0000)]
Merge branch 'kconfig' into for-next

13 years agoRevert "kconfig: Temporarily disable dependency warnings"
Michal Marek [Tue, 12 Oct 2010 13:12:23 +0000 (15:12 +0200)]
Revert "kconfig: Temporarily disable dependency warnings"

This reverts commit 71ebc01, which was a 2.6.36-only stopgap solution.

Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoMerge branch 'kbuild/rc-fixes' into kbuild/kconfig
Michal Marek [Tue, 12 Oct 2010 13:09:06 +0000 (15:09 +0200)]
Merge branch 'kbuild/rc-fixes' into kbuild/kconfig

We need to revert the temporary hack in 71ebc01, hence the merge.

13 years agoMerge branch 'rc-fixes' into for-next
Michal Marek [Sat, 9 Oct 2010 22:20:24 +0000 (22:20 +0000)]
Merge branch 'rc-fixes' into for-next

13 years agokbuild: fix oldnoconfig to do the right thing
Kyle McMartin [Wed, 1 Sep 2010 15:21:30 +0000 (11:21 -0400)]
kbuild: fix oldnoconfig to do the right thing

Commit 861b4ea4 broke oldnoconfig when removed the oldnoconfig checks on
                       if (input_mode == nonint_oldconfig ||
                           input_mode == oldnoconfig) {
                               if (input_mode == nonint_oldconfig &&
                                   sym->name &&
                                    !sym_is_choice_value(sym)) {
to avoid oldnoconfig chugging through the else stanza.

Fix that to restore expected behaviour (which I've confirmed in the
Fedora kernel build that the configs end up looking the same.)

Signed-off-by: Kyle McMartin <kyle@redhat.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agokconfig: Temporarily disable dependency warnings
Michal Marek [Fri, 8 Oct 2010 14:40:27 +0000 (16:40 +0200)]
kconfig: Temporarily disable dependency warnings

After fixing a use-after-free bug in kconfig, a 'make defconfig' or
'make allmodconfig' fills the screen with warnings that were not
detected before. Given that we are close to the release now, disable the
warnings temporarily and deal with them after 2.6.36.

Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoMerge branch 'misc' into for-next
Michal Marek [Wed, 6 Oct 2010 12:53:33 +0000 (12:53 +0000)]
Merge branch 'misc' into for-next

13 years agoDocumentation/kbuild: modules.txt cleanup
matt mooney [Sat, 2 Oct 2010 04:21:55 +0000 (21:21 -0700)]
Documentation/kbuild: modules.txt cleanup

A few modifications done for consistency, such as adding the shell
prompt for command line examples and trailing slash for directories.
Also corrects the module include header and fixes a few grammar
issues that I introduced.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoMerge branch 'kconfig' into for-next
Michal Marek [Mon, 4 Oct 2010 13:40:30 +0000 (13:40 +0000)]
Merge branch 'kconfig' into for-next

13 years agokconfig: Use PATH_MAX instead of 128 for path buffer sizes.
Will Newton [Wed, 22 Sep 2010 14:59:13 +0000 (15:59 +0100)]
kconfig: Use PATH_MAX instead of 128 for path buffer sizes.

This prevents the buffers being overflowed when using a config
file with a long name. PATH_MAX is used elsewhere in the same
file, so use it here as well.

Signed-off-by: Will Newton <will.newton@imgtec.com>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoMerge branch 'rc-fixes' into for-next
Michal Marek [Mon, 4 Oct 2010 13:16:13 +0000 (13:16 +0000)]
Merge branch 'rc-fixes' into for-next

13 years agokconfig: delay symbol direct dependency initialization
Arnaud Lacombe [Sun, 26 Sep 2010 20:22:03 +0000 (16:22 -0400)]
kconfig: delay symbol direct dependency initialization

This fixes the use-after-free and associated crash in kconfig introduced
in commit 246cf9c26bf11f2bffbecea6e5bd222eee7b1df8.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoMerge branch 'kbuild' into for-next
Michal Marek [Thu, 30 Sep 2010 20:38:50 +0000 (20:38 +0000)]
Merge branch 'kbuild' into for-next

13 years agoMerge branch 'kconfig' into for-next
Michal Marek [Thu, 30 Sep 2010 20:28:41 +0000 (20:28 +0000)]
Merge branch 'kconfig' into for-next

13 years agokconfig: Fix realloc usage()
Michal Marek [Thu, 30 Sep 2010 20:21:12 +0000 (22:21 +0200)]
kconfig: Fix realloc usage()

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agokconfig: Propagate const
Michal Marek [Thu, 30 Sep 2010 20:17:48 +0000 (22:17 +0200)]
kconfig: Propagate const

Commit 2e7a091 made struct file->name a const char*, but forgot to
constify all users of it.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agokconfig: Don't go out from read config loop when you read new symbol
Naohiro Aota [Thu, 30 Sep 2010 19:23:17 +0000 (04:23 +0900)]
kconfig: Don't go out from read config loop when you read new symbol

commit 8baefd30b5b0101aa07aa75da44a9eee881eed28 of linux-next replaced
a `switch()' statement with some `if()' statements, but left `break's
in the `switch()' statement untouched. This cause read config loop to
exit and so "make oldconfig" is not much usable (see below).

> $ make oldconfig
><snip>
> scripts/kconfig/conf --oldconfig Kconfig
> #
> # using defaults found in /boot/config-2.6.34-ccs-r1
> #
> *
> * Restart config...
> *
> *
> * General setup
> *
> Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [N/y/?] (NEW)

(I've already have "CONFIG_EXPERIMENTAL=y" in the old config file. But
that's not read here.)

This patch should fix this problem.

Signed-off-by: Naohiro Aota <naota@elisp.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoMerge branch 'misc' into for-next
Michal Marek [Wed, 29 Sep 2010 15:04:16 +0000 (15:04 +0000)]
Merge branch 'misc' into for-next

13 years agoDocumentation/kbuild: major edit of modules.txt sections 5-8
matt mooney [Mon, 20 Sep 2010 06:06:36 +0000 (23:06 -0700)]
Documentation/kbuild: major edit of modules.txt sections 5-8

A follow-up to my edit of the first 4 sections.

Shift sections down by one due to the deletion of section 3; grammar
corrections along with some rewording; margin width cleanup; and
change EXTRA_CFLAGS -> ccflags-y.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoDocumentation/kbuild: major edit of modules.txt sections 1-4
matt mooney [Sun, 19 Sep 2010 01:33:57 +0000 (18:33 -0700)]
Documentation/kbuild: major edit of modules.txt sections 1-4

Omit needless words and sentences; reorganize and tighten sentence structure;
swap sections 2.2 and 2.3 for a more logical flow; remove section 3, therefore
shifting 4->3; add to explanations; and add section on building multiple modules.

Signed-off-by: matt mooney <mfm@muteddisk.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoinitramfs: fix initramfs size calculation
Hendrik Brueckner [Fri, 17 Sep 2010 22:24:11 +0000 (15:24 -0700)]
initramfs: fix initramfs size calculation

The size of a built-in initramfs is calculated in init/initramfs.c by
"__initramfs_end - __initramfs_start".  Those symbols are defined in the
linker script include/asm-generic/vmlinux.lds.h:

#define INIT_RAM_FS                                                     \
        . = ALIGN(PAGE_SIZE);                                           \
        VMLINUX_SYMBOL(__initramfs_start) = .;                          \
        *(.init.ramfs)                                                  \
        VMLINUX_SYMBOL(__initramfs_end) = .;

If the initramfs file has an odd number of bytes, the "__initramfs_end"
symbol points to an odd address, for example, the symbols in the
System.map might look like:

    0000000000572000 T __initramfs_start
    00000000005bcd05 T __initramfs_end   <-- odd address

At least on s390 this causes a problem:

Certain s390 instructions, especially instructions for loading addresses
(larl) or branch addresses must be on even addresses.  The compiler loads
the symbol addresses with the "larl" instruction.  This instruction sets
the last bit to 0 and, therefore, for odd size files, the calculated size
is one byte less than it should be:

    0000000000540a9c <populate_rootfs>:
      540a9c:     eb cf f0 78 00 24       stmg    %r12,%r15,120(%r15),
      540aa2:     c0 10 00 01 8a af       larl    %r1,572000 <__initramfs_start>
      540aa8:     c0 c0 00 03 e1 2e       larl    %r12,5bcd04 <initramfs_end>
                                                  (Instead of  5bcd05)
      ...
      540abe:     1b c1                   sr      %r12,%r1

To fix the problem, this patch introduces the global variable
__initramfs_size, which is calculated in the "usr/initramfs_data.S" file.
The populate_rootfs() function can then use the start marker of the
.init.ramfs section and the value of __initramfs_size for loading the
initramfs.  Because the start marker and size is sufficient, the
__initramfs_end symbol is no longer needed and is removed.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com>
Acked-by: Michal Marek <mmarek@suse.cz>
Acked-by: "H. Peter Anvin" <hpa@zytor.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoinitramfs: generalize initramfs_data.xxx.S variants
Hendrik Brueckner [Fri, 17 Sep 2010 22:24:09 +0000 (15:24 -0700)]
initramfs: generalize initramfs_data.xxx.S variants

Remove initramfs_data.{lzo,lzma,gz,bz2}.S variants and use a common
implementation in initramfs_data.S.  The common implementation expects the
file name of the initramfs to be defined in INITRAMFS_IMAGE.

Change the Makefile to set the INITRAMFS_IMAGE define symbol according
to the selected compression method.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Cc: WANG Cong <xiyou.wangcong@gmail.com>
Acked-by: Michal Marek <mmarek@suse.cz>
Acked-by: "H. Peter Anvin" <hpa@zytor.com>
Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoscripts/kallsyms: Enable error messages while hush up unnecessary warnings
Jean Sacren [Sat, 11 Sep 2010 05:13:33 +0000 (23:13 -0600)]
scripts/kallsyms: Enable error messages while hush up unnecessary warnings

As no error was handled, we wouldn't be able to know when an error does
occur. The fix preserves error messages while it doesn't let unnecessary
compiling warnings show up.

Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoMerge branch 'kconfig' into for-next
Michal Marek [Wed, 29 Sep 2010 14:10:52 +0000 (14:10 +0000)]
Merge branch 'kconfig' into for-next

13 years agoMerge branch 'kbuild/kconfig/kbuild-generic-v7' of http://github.com/lacombar/linux...
Michal Marek [Mon, 27 Sep 2010 21:24:53 +0000 (23:24 +0200)]
Merge branch 'kbuild/kconfig/kbuild-generic-v7' of http://github.com/lacombar/linux-2.6 into kbuild/kconfig

* 'kbuild/kconfig/kbuild-generic-v7' of http://github.com/lacombar/linux-2.6:
  kbuild: migrate all arch to the kconfig mainmenu upgrade
  kconfig: expand file names
  kconfig: use the file's name of sourced file
  kconfig: constify file name
  kconfig: don't emit warning upon rootmenu's prompt redefinition
  kconfig: replace KERNELVERSION usage by the mainmenu's prompt
  kconfig: delay gconf window initialization
  kconfig: expand by default the rootmenu's prompt
  kconfig: add a symbol string expansion helper
  kconfig: regen parser
  kconfig: implement the `mainmenu' directive
  kconfig: allow PACKAGE to be defined on the compiler's command-line
  kconfig: rephrase help texts/comments not to include the package name
  kconfig: allow build-time definition of the internal config prefix
  kconfig: rephrase help text not to mention the internal prefix
  kconfig: replace a `switch()' statement by a more flexible `if()' statement

13 years agoMerge branch 'kconfig' into for-next
Michal Marek [Mon, 20 Sep 2010 12:12:00 +0000 (12:12 +0000)]
Merge branch 'kconfig' into for-next

13 years agokconfig: fix menuconfig on debian lenny
Junio C Hamano [Sun, 19 Sep 2010 02:25:32 +0000 (19:25 -0700)]
kconfig: fix menuconfig on debian lenny

In 60f33b8 (kconfig: get rid of stray a.o, support ncursesw, 2006-01-15),
support to link menuconfig with ncursesw library was added.  To compute
the linker command option -l, we check "libncursesw.{so,a,dylib}" to allow
ncursesw to be used as a replacement ncurses.  However, when checking what
header file to include, we do not check /usr/include/ncursesw directory.

Add /usr/include/ncursesw to the list of directories that are checked.
With this patch, on my Debian Lenny box with libncursesw5-dev package but
not libncurses5-dev package, I can say "make menuconfig".

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agokbuild: migrate all arch to the kconfig mainmenu upgrade
Arnaud Lacombe [Sat, 4 Sep 2010 21:10:20 +0000 (17:10 -0400)]
kbuild: migrate all arch to the kconfig mainmenu upgrade

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
13 years agokconfig: expand file names
Arnaud Lacombe [Sat, 4 Sep 2010 20:11:26 +0000 (16:11 -0400)]
kconfig: expand file names

This will allow to use the following construct in source files:

config FOO
    string
    default "foo"

source "$FOO/Kconfig"

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
13 years agokconfig: use the file's name of sourced file
Arnaud Lacombe [Sat, 4 Sep 2010 20:09:26 +0000 (16:09 -0400)]
kconfig: use the file's name of sourced file

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
13 years agokconfig: constify file name
Arnaud Lacombe [Sat, 4 Sep 2010 20:03:30 +0000 (16:03 -0400)]
kconfig: constify file name

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
13 years agokconfig: don't emit warning upon rootmenu's prompt redefinition
Arnaud Lacombe [Sat, 4 Sep 2010 20:05:15 +0000 (16:05 -0400)]
kconfig: don't emit warning upon rootmenu's prompt redefinition

This silences the warning printed upon prompt redefinition for the rootmenu.
We will encounter this redefinition when a "mainmenu" statement is specified and
override the default prompt.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
13 years agokconfig: replace KERNELVERSION usage by the mainmenu's prompt
Arnaud Lacombe [Wed, 18 Aug 2010 05:57:13 +0000 (01:57 -0400)]
kconfig: replace KERNELVERSION usage by the mainmenu's prompt

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
13 years agokconfig: delay gconf window initialization
Arnaud Lacombe [Mon, 20 Sep 2010 02:47:17 +0000 (22:47 -0400)]
kconfig: delay gconf window initialization

Delay the window initialization to let the rootmenu's prompt be
initialized as it will be used to get the window's title.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
13 years agokconfig: expand by default the rootmenu's prompt
Arnaud Lacombe [Fri, 10 Sep 2010 01:17:26 +0000 (21:17 -0400)]
kconfig: expand by default the rootmenu's prompt

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
13 years agokconfig: add a symbol string expansion helper
Arnaud Lacombe [Wed, 18 Aug 2010 05:23:50 +0000 (01:23 -0400)]
kconfig: add a symbol string expansion helper

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
13 years agokconfig: regen parser
Arnaud Lacombe [Sat, 11 Sep 2010 01:23:28 +0000 (21:23 -0400)]
kconfig: regen parser

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
13 years agokconfig: implement the `mainmenu' directive
Arnaud Lacombe [Tue, 17 Aug 2010 02:55:31 +0000 (22:55 -0400)]
kconfig: implement the `mainmenu' directive

If specified, the directive must be placed at the top of the Kconfig file.

We need to change the grammar to make the mainmenu directive set the
`rootmenu' prompt. This reflect how menu_add_prompt() works internally, ie.
set the prompt of the `current_entry', pointing originally to `rootmenu'.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
13 years agokconfig: allow PACKAGE to be defined on the compiler's command-line
Arnaud Lacombe [Sat, 21 Aug 2010 05:20:52 +0000 (01:20 -0400)]
kconfig: allow PACKAGE to be defined on the compiler's command-line

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
13 years agokconfig: rephrase help texts/comments not to include the package name
Arnaud Lacombe [Sun, 15 Aug 2010 03:51:40 +0000 (23:51 -0400)]
kconfig: rephrase help texts/comments not to include the package name

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Reviewed-by: Randy Dunlap <rdunlap@xenotime.net>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
13 years agokconfig: allow build-time definition of the internal config prefix
Arnaud Lacombe [Sun, 15 Aug 2010 03:57:43 +0000 (23:57 -0400)]
kconfig: allow build-time definition of the internal config prefix

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
13 years agokconfig: rephrase help text not to mention the internal prefix
Arnaud Lacombe [Sat, 21 Aug 2010 04:43:46 +0000 (00:43 -0400)]
kconfig: rephrase help text not to mention the internal prefix

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
13 years agokconfig: replace a `switch()' statement by a more flexible `if()' statement
Arnaud Lacombe [Tue, 24 Aug 2010 04:14:47 +0000 (00:14 -0400)]
kconfig: replace a `switch()' statement by a more flexible `if()' statement

With the upcoming dynamical configuration prefix, we can no longer assume that
the prefix will start by a 'C'. As such, we can no longer hardcode this value in
the `case ...:', so replace the `switch() { ... }' statement by a more flexible
'if () { ... }' statement.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
13 years agoMerge branch 'kconfig' into for-next
Michal Marek [Fri, 17 Sep 2010 16:21:05 +0000 (16:21 +0000)]
Merge branch 'kconfig' into for-next

13 years agoMerge branch 'kbuild' into for-next
Michal Marek [Fri, 17 Sep 2010 16:21:03 +0000 (16:21 +0000)]
Merge branch 'kbuild' into for-next

13 years agoscripts: Enable error messages while hush up unnecessary warnings
Jean Sacren [Sat, 11 Sep 2010 05:13:33 +0000 (23:13 -0600)]
scripts: Enable error messages while hush up unnecessary warnings

As no error was handled, we wouldn't be able to know when an error does
occur. The fix preserves error messages while it doesn't let unnecessary
compiling warnings show up.

Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoscripts/kconfig/gconf.glade Update broken web addresses.
Justin P. Mattock [Mon, 13 Sep 2010 19:55:56 +0000 (12:55 -0700)]
scripts/kconfig/gconf.glade Update broken web addresses.

As discussed, remove the DOCTYPE declaration since libglade validates
the file against itself..

Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoMerge branch 'kbuild' into for-next
Michal Marek [Mon, 13 Sep 2010 15:23:06 +0000 (15:23 +0000)]
Merge branch 'kbuild' into for-next

13 years agoMerge branch 'kbuild/clean' into kbuild/kbuild
Michal Marek [Mon, 13 Sep 2010 15:20:59 +0000 (17:20 +0200)]
Merge branch 'kbuild/clean' into kbuild/kbuild

13 years agoMerge branch 'kconfig' into for-next
Michal Marek [Mon, 13 Sep 2010 15:18:25 +0000 (15:18 +0000)]
Merge branch 'kconfig' into for-next

13 years agokconfig: Simplify Makefile for xconfig
Michal Marek [Mon, 13 Sep 2010 11:41:31 +0000 (13:41 +0200)]
kconfig: Simplify Makefile for xconfig

Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoFix QT4 moc, cflags libs detection on dual QT3/Qt4 systems
Alexander Stein [Fri, 10 Sep 2010 17:01:14 +0000 (19:01 +0200)]
Fix QT4 moc, cflags libs detection on dual QT3/Qt4 systems

On system with QT3 and QT4 qmake in PATH may be from QT3. So we use
pkg-config for proper QT4 detection.
By reqesting cflags and libs for either QtCore, QtGui and QtSupport include
dirs and libs get listed several times, but so we won't mis anything

Signed-off-by: Alexander Stein <alexander.stein@informatik.tu-chemnitz.de>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agonconfig: Fix help for choice menus
Stephen Boyd [Fri, 10 Sep 2010 08:32:50 +0000 (01:32 -0700)]
nconfig: Fix help for choice menus

When getting the help for a choice menu with a help section (for example
the "Choose SLAB allocator" menu) nconfig pops up a window with nothing
inside it. This is due to show_help() passing an empty string to
show_scroll_win()'s 3rd argument. The option really does have help
though, but it isn't a config symbol, so just add the help text for
the option, and don't try to add anything else like the config option
name.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Acked-by: Nir Tzachar <nir.tzachar@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoMerge branch 'kconfig' into for-next
Michal Marek [Wed, 8 Sep 2010 11:57:14 +0000 (11:57 +0000)]
Merge branch 'kconfig' into for-next

13 years agokbuild: fix oldnoconfig to do the right thing
Kyle McMartin [Wed, 1 Sep 2010 15:21:30 +0000 (11:21 -0400)]
kbuild: fix oldnoconfig to do the right thing

Commit 861b4ea4 broke oldnoconfig when removed the oldnoconfig checks on
                       if (input_mode == nonint_oldconfig ||
                           input_mode == oldnoconfig) {
                               if (input_mode == nonint_oldconfig &&
                                   sym->name &&
                                    !sym_is_choice_value(sym)) {
to avoid oldnoconfig chugging through the else stanza.

Fix that to restore expected behaviour (which I've confirmed in the
Fedora kernel build that the configs end up looking the same.)

Signed-off-by: Kyle McMartin <kyle@redhat.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoMerge branch 'packaging' into for-next
Michal Marek [Mon, 6 Sep 2010 11:34:26 +0000 (11:34 +0000)]
Merge branch 'packaging' into for-next

13 years agoMerge branch 'kconfig' into for-next
Michal Marek [Mon, 6 Sep 2010 11:34:24 +0000 (11:34 +0000)]
Merge branch 'kconfig' into for-next

13 years agoMerge branch 'kbuild' into for-next
Michal Marek [Mon, 6 Sep 2010 11:34:23 +0000 (11:34 +0000)]
Merge branch 'kbuild' into for-next

13 years agoxconfig: Change the titlebar if using Qt3
Michal Marek [Wed, 1 Sep 2010 15:39:27 +0000 (17:39 +0200)]
xconfig: Change the titlebar if using Qt3

Qt4 is now used by default and will get more testing. In case someone
still uses Qt3 and reports a bug, make it easy to recognize that this is
Qt3.

Acked-by: Alexander Stein <alexander.stein@informatik.tu-chemnitz.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agokbuild, deb-pkg: Check if KBUILD_IMAGE exists before copying it
Guillem Jover [Fri, 3 Sep 2010 02:33:28 +0000 (04:33 +0200)]
kbuild, deb-pkg: Check if KBUILD_IMAGE exists before copying it

Avoid an error when doing cp over the image when it does not contain
the full path to the file.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoscripts/setlocalversion: update comment
Michael Prokop [Mon, 6 Sep 2010 09:57:19 +0000 (11:57 +0200)]
scripts/setlocalversion: update comment

A tagged repository state isn't enough, git describe only
looks at signed or annotated tags (git tag -a/-s). This
documentation update makes sure the comment matches the
current behaviour.

Signed-off-by: Michael Prokop <mika@grml.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agokbuild: Use a single clean rule for kernel and external modules
Michal Marek [Mon, 6 Sep 2010 10:00:08 +0000 (12:00 +0200)]
kbuild: Use a single clean rule for kernel and external modules

The list of patterns for the external modules case was constantly
lagging behind.

Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agokbuild: Do not run make clean in $(srctree)
Michal Marek [Fri, 3 Sep 2010 13:00:22 +0000 (15:00 +0200)]
kbuild: Do not run make clean in $(srctree)

Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoMerge branch 'kconfig' into for-next
Michal Marek [Wed, 1 Sep 2010 15:39:12 +0000 (15:39 +0000)]
Merge branch 'kconfig' into for-next

13 years agokconfig qconf: port to QT4
Alexander Stein [Tue, 31 Aug 2010 15:34:37 +0000 (17:34 +0200)]
kconfig qconf: port to QT4

A straight forward port to QT4 using qt3to4 and compiling against
  qt3support

* Use pkg-config to detect QT4 which is hopefully portable enough
* If no QT4, QT3 will by tried instead
* Classes renamed using qt3to4
  * If build using QT3 renamed to QT3 class names using defines
* ConfigInfoView::menu has to be renamed as QT4 moc strips struct from
  struct menu and creates a name conflict
* QT2 support has been dropped
* The hidden options inserted in 39a4897c1bb66e8a36043c105d7fd73d8b32b480
  are use in native API

Signed-off-by: Alexander Stein <alexander.stein@informatik.tu-chemnitz.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoMerge branch 'misc' into for-next
Michal Marek [Wed, 1 Sep 2010 13:02:34 +0000 (13:02 +0000)]
Merge branch 'misc' into for-next

13 years agoMerge branch 'kconfig' into for-next
Michal Marek [Wed, 1 Sep 2010 13:02:33 +0000 (13:02 +0000)]
Merge branch 'kconfig' into for-next

13 years agoMerge branch 'kbuild' into for-next
Michal Marek [Wed, 1 Sep 2010 13:02:31 +0000 (13:02 +0000)]
Merge branch 'kbuild' into for-next

13 years agokbuild: use getopt_long(), not its _only() variant
Arnaud Lacombe [Mon, 23 Aug 2010 16:01:24 +0000 (12:01 -0400)]
kbuild: use getopt_long(), not its _only() variant

NetBSD lacks getopt_long_only() whereas getopt_long() works just fine.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Add misc/ifcol.cocci
Nicolas Palix [Tue, 24 Aug 2010 15:39:12 +0000 (17:39 +0200)]
Coccinelle: Add misc/ifcol.cocci

Find confusingly indented code in or after an if.  An if branch should
be indented.  The code following an if should not be indented.
Sometimes, code after an if that is indented is actually intended to be
part of the if branch.

This has a high rate of false positives, because Coccinelle's column
calculation does not distinguish between spaces and tabs, so code that
is not visually aligned may be considered to be in the same column.

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Add misc/doubleinit.cocci
Nicolas Palix [Tue, 24 Aug 2010 15:39:11 +0000 (17:39 +0200)]
Coccinelle: Add misc/doubleinit.cocci

Find duplicate field initializations.  This has a high rate of false
positives due to #ifdefs, which Coccinelle is not aware of in a structure
initialization.

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Move alloc directory into api directory
Nicolas Palix [Tue, 24 Aug 2010 15:39:10 +0000 (17:39 +0200)]
Coccinelle: Move alloc directory into api directory

alloc contains various semantic patches related
to the allocation APIs

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Move resource_size.cocci to the api directory
Nicolas Palix [Tue, 24 Aug 2010 15:39:09 +0000 (17:39 +0200)]
Coccinelle: Move resource_size.cocci to the api directory

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Move err_cast.cocci to the api directory
Nicolas Palix [Tue, 24 Aug 2010 15:39:08 +0000 (17:39 +0200)]
Coccinelle: Move err_cast.cocci to the api directory

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Add api/memdup_user
Nicolas Palix [Tue, 24 Aug 2010 15:39:07 +0000 (17:39 +0200)]
Coccinelle: Add api/memdup_user

Use kmemdup_user rather than duplicating its implementation
This is a little bit restricted to reduce false positives

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Add api/memdup.cocci
Nicolas Palix [Tue, 24 Aug 2010 15:39:06 +0000 (17:39 +0200)]
Coccinelle: Add api/memdup.cocci

Use kmemdup rather than duplicating its implementation

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Add api/kstrdup.cocci
Nicolas Palix [Tue, 24 Aug 2010 15:39:05 +0000 (17:39 +0200)]
Coccinelle: Add api/kstrdup.cocci

Use kstrdup rather than duplicating its implementation

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Add free/kfree.cocci
Nicolas Palix [Tue, 24 Aug 2010 15:39:04 +0000 (17:39 +0200)]
Coccinelle: Add free/kfree.cocci

Find a use after free.  Values of variables may imply that some
execution paths are not possible, resulting in false positives.
Another source of false positives are macros such as
SCTP_DBG_OBJCNT_DEC that do not actually evaluate their argument

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Add iterators/list_entry_update.cocci
Nicolas Palix [Tue, 24 Aug 2010 15:39:03 +0000 (17:39 +0200)]
Coccinelle: Add iterators/list_entry_update.cocci

list_for_each_entry uses its first argument to get from one element of
the list to the next, so it is usually not a good idea to reassign it.
The first rule finds such a reassignment and the second rule checks
that there is a path from the reassignment back to the top of the loop.

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Add iterators/itnull.cocci
Nicolas Palix [Tue, 24 Aug 2010 15:39:02 +0000 (17:39 +0200)]
Coccinelle: Add iterators/itnull.cocci

Many iterators have the property that the first argument is always bound
to a real list element, never NULL.  False positives arise for some
iterators that do not have this property, or in cases when the loop
cursor is reassigned.  The latter should only happen when the matched
code is on the way to a loop exit (break, goto, or return).

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Add iterators/fen.cocci
Nicolas Palix [Tue, 24 Aug 2010 15:39:01 +0000 (17:39 +0200)]
Coccinelle: Add iterators/fen.cocci

for_each_node iterators only exit normally when the loop cursor is
NULL, so there is no point to call of_node_put on the final value.

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Add locks/mini_lock.cocci
Nicolas Palix [Tue, 24 Aug 2010 15:39:00 +0000 (17:39 +0200)]
Coccinelle: Add locks/mini_lock.cocci

Find missing unlocks.  This semantic match considers the specific case
where the unlock is missing from an if branch, and there is a lock
before the if and an unlock after the if.  False positives are due to
cases where the if branch represents a case where the function is
supposed to exit with the lock held, or where there is some preceding
function call that releases the lock.

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Add locks/double_lock.cocci
Nicolas Palix [Tue, 24 Aug 2010 15:38:59 +0000 (17:38 +0200)]
Coccinelle: Add locks/double_lock.cocci

Find double locks.  False positives may occur when some paths cannot
occur at execution, due to the values of variables, and when there is
an intervening function call that releases the lock.

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Add locks/call_kern.cocci
Nicolas Palix [Tue, 24 Aug 2010 15:38:58 +0000 (17:38 +0200)]
Coccinelle: Add locks/call_kern.cocci

Find functions that refer to GFP_KERNEL but are called with locks held.
The proposed change of converting the GFP_KERNEL is not necessarily the
correct one.  It may be desired to unlock the lock, or to not call the
function under the lock in the first place.

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Move deref_null.cocci to a more appropriate directory
Nicolas Palix [Tue, 24 Aug 2010 15:38:57 +0000 (17:38 +0200)]
Coccinelle: Move deref_null.cocci to a more appropriate directory

deref_null.cocci is moved to the 'null' directory
which contains other null related rules.

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Add null/kmerr.cocci
Nicolas Palix [Tue, 24 Aug 2010 15:38:56 +0000 (17:38 +0200)]
Coccinelle: Add null/kmerr.cocci

This semantic patch looks for kmalloc etc that are not followed by a
NULL check.  It only gives a report in the case where there is some
error handling code later in the function, which may be helpful
in determining what the error handling code for the call to kmalloc etc
should be.

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
13 years agoCoccinelle: Add null/eno.cocci
Nicolas Palix [Tue, 24 Aug 2010 15:38:55 +0000 (17:38 +0200)]
Coccinelle: Add null/eno.cocci

The various basic memory allocation functions don't return ERR_PTR

Signed-off-by: Nicolas Palix <npalix@diku.dk>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Michal Marek <mmarek@suse.cz>
14 years agokbuild: don't overwrite HOST_EXTRACFLAGS
Arnaud Lacombe [Mon, 23 Aug 2010 00:03:06 +0000 (20:03 -0400)]
kbuild: don't overwrite HOST_EXTRACFLAGS

This might be used by the user to specify extra arguments for the host
compiler.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
14 years agoscripts/mod/modpost.c: fix commentary accordingly to last changes
Andy Shevchenko [Tue, 17 Aug 2010 10:36:40 +0000 (13:36 +0300)]
scripts/mod/modpost.c: fix commentary accordingly to last changes

The last commits
 37ed19d5cce35a40d3913cf9aa208ce9f60db3d7
 5003bab82d56754b27be01eef24495a02e00039d
have introduced new behaviour of sec2annotation() method. However, the
commentary inside the method was left as before. Let's fix it accordingly.

Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andrew Morton <akpm@linux-foundation.org>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
14 years agoMerge branch 'rc-fixes' into for-next
Michal Marek [Sat, 21 Aug 2010 13:19:15 +0000 (13:19 +0000)]
Merge branch 'rc-fixes' into for-next

14 years agosetlocalversion: Ignote SCMs above the linux source tree
Michal Marek [Mon, 16 Aug 2010 15:09:52 +0000 (17:09 +0200)]
setlocalversion: Ignote SCMs above the linux source tree

Dan McGee <dpmcgee@gmail.com> writes:
> Note that when in git, you get the appended "+" sign. If
> LOCALVERSION_AUTO is set, you will get something like
> "eee-gb01b08c-dirty" (whereas the copy of the tree in /tmp still
> returns "eee"). It doesn't matter whether the working tree is dirty or
> clean.
>
> Is there a way to disable this? I'm building from a clean tarball that
> just happens to be unpacked inside a git repository. One would think
> setting LOCALVERSION_AUTO to false would do it, but no such luck...

Fix this by checking if the kernel source tree is the root of the git or
hg repository. No fix for svn: If the kernel source is not tracked in
the svn repository, it works as expected, otherwise determining the
'repository root' is not really a defined task.

Reported-and-tested-by: Dan McGee <dpmcgee@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>