26 Jan, 2012

3 commits

  • commit 2e885057b7f75035f0b85e02f737891482815a81 upstream.

    In ELF64, the sh_flags field is 64-bits wide. recordmcount was
    erroneously treating it as a 32-bit wide field. For little endian
    objects this works because the flags of interest (SHF_EXECINSTR)
    reside in the lower 32 bits of the word, and you get the same result
    with either a 32-bit or 64-bit read. Big endian objects on the
    other hand do not work at all with this error.

    The fix: Correctly treat sh_flags as 64-bits wide in elf64 objects.

    The symptom I observed was that my
    __start_mcount_loc..__stop_mcount_loc was empty even though ftrace
    function tracing was enabled.

    Link: http://lkml.kernel.org/r/1324345362-12230-1-git-send-email-ddaney.cavm@gmail.com

    Signed-off-by: David Daney
    Signed-off-by: Steven Rostedt
    Signed-off-by: Greg Kroah-Hartman

    David Daney
     
  • commit 364212fddaaa60c5a64f67a0f5624ad996ecc8a0 upstream.

    Thomas Lange reported that when he did a 'make localmodconfig', his
    config was missing the brcmsmac driver, even though he had the module
    loaded.

    Looking into this, I found the file:
    drivers/net/wireless/brcm80211/brcmsmac/Makefile
    had the following in the Makefile:

    MODULEPFX := brcmsmac

    obj-$(CONFIG_BRCMSMAC) += $(MODULEPFX).o

    The way streamline-config.pl works, is parsing all the
    obj-$(CONFIG_FOO) += foo.o
    lines to find that CONFIG_FOO belongs to the module foo.ko.

    But in this case, the brcmsmac.o was not used, but a variable in its place.

    By changing streamline-config.pl to remember defined variables in Makefiles
    and substituting them when they are used in the obj-X lines, allows
    Thomas (and others) to have their brcmsmac module stay configured
    when it is loaded and running "make localmodconfig".

    Reported-by: Thomas Lange
    Tested-by: Thomas Lange
    Cc: Arend van Spriel
    Signed-off-by: Steven Rostedt
    Signed-off-by: Greg Kroah-Hartman

    Steven Rostedt
     
  • commit d060d963e88f3e990cec2fe5214de49de9a49eca upstream.

    Simplify the way lines ending with backslashes (continuation) in Makefiles
    is parsed. This is needed to implement a necessary fix.

    Tested-by: Thomas Lange
    Signed-off-by: Steven Rostedt
    Signed-off-by: Greg Kroah-Hartman

    Steven Rostedt
     

19 Dec, 2011

1 commit

  • Commit 5c48b108 ("um: take arch/um/sys-x86 to arch/x86/um") broke the
    make target update-po-config, as its symlink trick (again) fails.
    (Previous breakage was fixed with commit bdc69ca4 ("kconfig: change
    update-po-config to reflect new layout of arch/um").)

    The new UML layout allows to drop the symlick trick entirely. And if,
    one day, another architecture supports UML too, that should now work
    without again breaking this make target.

    Signed-off-by: Paul Bolle
    Signed-off-by: Michal Marek

    Paul Bolle
     

07 Nov, 2011

4 commits

  • * 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    script/checkpatch.pl: warn about deprecated use of EXTRA_{A,C,CPP,LD}FLAGS
    tags, powerpc: Update tags.sh to support _GLOBAL symbols
    scripts: add extract-vmlinux

    Linus Torvalds
     
  • * 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    scripts/kconfig/nconf: add KEY_HOME / KEY_END for dialog_inputbox
    scripts/kconfig/nconf: fix editing long strings
    scripts/kconfig/nconf: dynamically alloc dialog_input_result
    scripts/kconfig/nconf: fix memmove's length arg
    scripts/kconfig/nconf: fix typo: unknow => unknown
    kconfig: fix set but not used variables
    kconfig: handle SIGINT in menuconfig
    kconfig: fix __enabled_ macros definition for invisible and un-selected symbols
    kconfig: factor code in menu_get_ext_help()
    kbuild: Fix help text not displayed in choice option.
    kconfig/nconf: nuke unreferenced `nohelp_text'
    kconfig/streamline_config.pl: merge local{mod,yes}config
    kconfig/streamline_config.pl: use options to determine operating mode
    kconfig/streamline_config.pl: directly access LSMOD from the environment

    Linus Torvalds
     
  • * 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    Kbuild: append missing-syscalls to the default target list
    genksyms: Regenerate lexer and parser
    genksyms: Do not expand internal types
    genksyms: Minor parser cleanup
    Makefile: remove a duplicated line
    fixdep: fix extraneous dependencies
    scripts/Makefile.build: do not reference EXTRA_CFLAGS as CFLAGS replacement
    kbuild: prevent make from deleting _shipped files
    kbuild: Do not delete empty files in make distclean

    Linus Torvalds
     
  • Use of the GPL or a compatible licence doesn't necessarily make the code
    any good. We already consider staging modules to be suspect, and this
    should also be true for out-of-tree modules which may receive very
    little review.

    Signed-off-by: Ben Hutchings
    Reviewed-by: Dave Jones
    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Rusty Russell (patched oops-tracing.txt)

    Ben Hutchings
     

01 Nov, 2011

2 commits


26 Oct, 2011

1 commit

  • * 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (1519 commits)
    staging: et131x: Remove redundant check and return statement
    staging: et131x: Mainly whitespace changes to appease checkpatch
    staging: et131x: Remove last of the forward declarations
    staging: et131x: Remove even more forward declarations
    staging: et131x: Remove yet more forward declarations
    staging: et131x: Remove more forward declarations
    staging: et131x: Remove forward declaration of et131x_adapter_setup
    staging: et131x: Remove some forward declarations
    staging: et131x: Remove unused rx_ring.recv_packet_pool
    staging: et131x: Remove call to find pci pm capability
    staging: et131x: Remove redundant et131x_reset_recv() call
    staging: et131x: Remove unused rx_ring.recv_buffer_pool
    Staging: bcm: Fix three initialization errors in InterfaceDld.c
    Staging: bcm: Fix coding style issues in InterfaceDld.c
    staging:iio:dac: Add AD5360 driver
    staging:iio:trigger:bfin-timer: Fix compile error
    Staging: vt6655: add some range checks before memcpy()
    Staging: vt6655: whitespace fixes to iotcl.c
    Staging: vt6656: add some range checks before memcpy()
    Staging: vt6656: whitespace cleanups in ioctl.c
    ...

    Fix up conflicts in:
    - drivers/{Kconfig,Makefile}, drivers/staging/{Kconfig,Makefile}:
    vg driver movement
    - drivers/staging/brcm80211/brcmfmac/{dhd_linux.c,mac80211_if.c}:
    driver removal vs now stale changes
    - drivers/staging/rtl8192e/r8192E_core.c:
    driver removal vs now stale changes
    - drivers/staging/et131x/et131*:
    driver consolidation into one file, tried to do fixups

    Linus Torvalds
     

11 Oct, 2011

3 commits


15 Sep, 2011

2 commits


09 Sep, 2011

6 commits

  • to make it easier to locate begin/end when editing long strings;

    Signed-off-by: Cheng Renquan
    Acked By: Nir Tzachar

    Cheng Renquan
     
  • The original dialog_inputbox doesn't work with longer than prompt_width
    strings, here fixed it in this way:
    1) add variable cursor_form_win to record cursor of form_win,
    keep its value always between [0, prompt_width-1];
    reuse the original cursor_position as cursor of the string result,
    use (cursor_position-cursor_form_win) as begin offset to show part of
    the string in form_win;

    Signed-off-by: Cheng Renquan
    Cc: Arnaud Lacombe
    Cc: Nir Tzachar

    Cheng Renquan
     
  • To support unlimited length string config items;

    No check for realloc return value keeps code simple, and to be
    consistent with other existing unchecked malloc in kconfig.

    Signed-off-by: Cheng Renquan
    Signed-off-by: Arnaud Lacombe

    Cheng Renquan
     
  • In case KEY_BACKSPACE / KEY_DC to delete a char, it memmove only
    (len-cursor_position+1) bytes;
    the default case is to insert a char, it should also memmove exactly
    (len-cursor_position+1) bytes;

    the original use of (len+1) is wrong and may access following memory
    that doesn't belong to result, may cause SegFault in theory;

    case KEY_BACKSPACE:
    if (cursor_position > 0) {
    memmove(&result[cursor_position-1],
    &result[cursor_position],
    len-cursor_position+1);
    cursor_position--;
    }
    break;
    case KEY_DC:
    if (cursor_position >= 0 && cursor_position < len) {
    memmove(&result[cursor_position],
    &result[cursor_position+1],
    len-cursor_position+1);
    }
    break;
    default:
    if ((isgraph(res) || isspace(res)) &&
    len-2 < result_len) {
    /* insert the char at the proper position */
    memmove(&result[cursor_position+1],
    &result[cursor_position],
    len-cursor_position+1);
    result[cursor_position] = res;
    cursor_position++;
    }

    Signed-off-by: Cheng Renquan
    Acked-by: Nir Tzachar

    Cheng Renquan
     
  • Signed-off-by: Cheng Renquan
    Acked-by: Arnaud Lacombe

    Cheng Renquan
     
  • The introduction of include/linux/kconfig.h created 3 extraneous
    dependencies:
    include/config/.h
    include/config/h.h
    include/config/foo.h

    Fix this by excluding kconfig.h from fixdep calculations.

    Signed-off-by: Peter Foley
    Signed-off-by: Michal Marek

    Peter Foley
     

31 Aug, 2011

6 commits

  • Usage of these flags has been deprecated for nearly 4 years by:

    commit f77bf01425b11947eeb3b5b54685212c302741b8
    Author: Sam Ravnborg
    Date: Mon Oct 15 22:25:06 2007 +0200

    kbuild: introduce ccflags-y, asflags-y and ldflags-y

    Moreover, these flags (at least EXTRA_CFLAGS) have been documented for command
    line use. By default, gmake(1) do not override command line setting, so this is
    likely to result in build failure or unexpected behavior.

    Warn about their introduction in Makefile or Kbuild files.

    Cc: Sam Ravnborg
    Cc: Andy Whitcroft
    Signed-off-by: Arnaud Lacombe
    Signed-off-by: Michal Marek

    Arnaud Lacombe
     
  • Usage of these flags has been deprecated for nearly 4 years by:

    commit f77bf01425b11947eeb3b5b54685212c302741b8
    Author: Sam Ravnborg
    Date: Mon Oct 15 22:25:06 2007 +0200

    kbuild: introduce ccflags-y, asflags-y and ldflags-y

    Moreover, these flags (at least EXTRA_CFLAGS) have been documented for
    command line use. By default, gmake(1) do not override command line
    setting, so this is likely to result in build failure or unexpected
    behavior.

    Do not advertise for its usage.

    Cc: Sam Ravnborg
    Cc: linux-kbuild@vger.kernel.org
    Signed-off-by: Arnaud Lacombe
    Signed-off-by: Michal Marek

    Arnaud Lacombe
     
  • commit 7373f4f (kbuild: add implicit rules for parser generation)
    created a implicit rule chain (%.c: %.c_shipped: %.y).
    Make considers the _shipped files to be intermediate files which
    causes them to be deleted if they didn't exist before make was run.
    Mark the _shipped files PRECIOUS to prevent make from deleting them.

    Signed-off-by: Peter Foley
    Acked-by: Arnaud Lacombe
    Signed-off-by: Michal Marek

    Peter Foley
     
  • On PowerPC we use _GLOBAL throughout the assembly to define symbols, but
    currently these symbols are missing from the tags generated with
    ARCH=powerpc make tags. This patch modifies the tags.sh script to
    recognise _GLOBAL(.*) so that these symbols will be in the tags.

    This is almost (but not quite) PowerPC specific and this change should
    not affect anyone else:

    $ git grep -E '^_GLOBAL\(([^)]*)\).*' |sed 's/^\([^/]*\/[^/]*\)\/.*$/\1/'|uniq -c
    627 arch/powerpc
    2 arch/um

    Signed-off-by: Ian Munsie
    Signed-off-by: Michal Marek

    Ian Munsie
     
  • This script can be used to extract vmlinux from a compressed
    kernel image (bzImage, etc..). It's inspired from (a subset of)
    extract-ikconfig.

    It's something a lot of people have been looking for (mainly
    people with xen < 4 that doesn't support bzImages at all).

    Signed-off-by: Corentin Chary
    Signed-off-by: Michal Marek

    Corentin Chary
     
  • Michal Marek
     

30 Aug, 2011

3 commits


29 Aug, 2011

1 commit


26 Aug, 2011

4 commits


19 Aug, 2011

1 commit


08 Aug, 2011

3 commits

  • Cc: Srinivas Kandagatla
    Signed-off-by: Arnaud Lacombe
    Signed-off-by: Michal Marek

    Arnaud Lacombe
     
  • Help text under choice menu is never displayed because it does not have
    symbol name associated with it, however many kconfigs have help text
    under choice, assuming that it will be displayed when user selects help.
    for example in Kconfig if we have:
    choice
    prompt "Choice"
    ---help---
    HELP TEXT ...

    config A
    bool "A"

    config B
    bool "B"

    endchoice

    Without this patch "HELP TEXT" is not displayed when user selects help
    option when "Choice" is highlighted from menuconfig or xconfig or
    gconfig.

    This patch changes the logic in menu_get_ext_help to display help for
    cases which dont have symbol names like choice.

    Signed-off-by: Srinivas Kandagatla
    Reviewed-by: Stuart Menefy
    Reviewed-by: Arnaud Lacombe
    Cc: stable@kernel.org
    Signed-off-by: Michal Marek

    Srinivas Kandagatla
     
  • After commit 5416857867c9cc94aba641898c567d9707de30f1, nohelp_text' is no
    longer referenced, nuke it.

    Signed-off-by: Arnaud Lacombe
    Signed-off-by: Michal Marek

    Arnaud Lacombe