26 Nov, 2006

3 commits

  • On Mon, 13 Nov 2006, Phil Oester wrote:
    > In commit 350b5b76384e77bcc58217f00455fdbec5cac594, the default menuconfig
    > color scheme was changed to bluetitle. This breaks the highlighting
    > of the selected item for me with TERM=vt100. The only way I can see
    > which item is selected is via:
    >
    > make MENUCONFIG_COLOR=mono menuconfig
    >
    > Which restores the pre-2.6.19 white on black highlighting.

    Fix.

    Cc: Phil Oester
    Signed-off-by: Roman Zippel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • Fixes a segfault reported by Randy.

    Cc: Randy Dunlap
    Signed-off-by: Roman Zippel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roman Zippel
     
  • Fix bug 7401.

    Handle more than one source dir or file list to the initramfs gen scripts.

    The Kconfig help for INITRAMFS_SOURCE claims that you can specify multiple
    space-separated sources in order to allow unprivileged users to build an
    image. There are two bugs in the current implementation that prevent this
    from working.

    First, we pass "file1 dir2" to the gen_initramfs_list.sh script, which it
    obviously can't open.

    Second, gen_initramfs_list.sh -l outputs multiple definitions for
    deps_initramfs -- one for each argument.

    Signed-off-by: Thomas Chou
    Cc: Sam Ravnborg
    Acked-by: Matthew Wilcox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thomas Chou
     

13 Nov, 2006

1 commit

  • Prevent git from reporting this useless status:

    On branch refs/heads/master
    Untracked files:
    (use "git add" to add to commit)

    TAGS
    scripts/kconfig/lkc_defs.h
    scripts/kconfig/qconf.moc
    nothing to commit

    Signed-off-by: Franck Bui-Huu
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Franck Bui-Huu
     

04 Nov, 2006

1 commit

  • Correct a few comments in kernel-doc Doc and source files.

    (akpm: note: the patch removes a non-ascii character and might have to be
    applied by hand..)

    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     

25 Oct, 2006

1 commit

  • This patch adds support for feature fixups in modules. This involves
    adding support for R_PPC64_REL64 relocs to the 64 bits module loader.
    It also modifies modpost.c to ignore the powerpc fixup sections (or it
    would warn when used in .init.text).

    Signed-off-by: Benjamin Herrenschmidt
    Acked-by: Olof Johansson
    Signed-off-by: Paul Mackerras

    Benjamin Herrenschmidt
     

17 Oct, 2006

2 commits

  • Some people want to do crazy things like pass multiple directories as the
    value of $(SUBDIRS) or $M. Mostly this kinda works, except that
    Makefile.modpost constructs a modpost commandline which fails modpost's
    argument parsing. This patch fixes that little wrinkle.

    Signed-off-by: Greg Banks
    Cc: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Greg Banks
     
  • Fix this:

    make[3]: *** No rule to make target
    `/mnt/md0/devel/linux-git/include/linux/version.h', needed by
    `/mnt/md0/devel/linux-git-obj/usr/include/linux/version.h'. Stop.
    make[2]: *** [linux] Error 2
    make[1]: *** [headers_install] Error 2

    Signed-off-by: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Woodhouse
     

12 Oct, 2006

3 commits

  • - In parameter descriptions, strip all whitespace between the parameter
    name (e.g., @len) and its description so that the description is
    indented uniformly in text and man page modes. Previously, spaces
    or tabs (which are used for cleaner source code viewing) affected
    the produced output in a negative way.

    Before (man mode):
    to Destination address, in user space.
    from Source address, in kernel space.
    n Number of bytes to copy.

    After (man mode):
    to Destination address, in user space.
    from Source address, in kernel space.
    n Number of bytes to copy.

    - Fix/clarify a few function description comments.

    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Drop __inline, __always_inline, and noinline in the produced kernel-doc
    output, similar to other pseudo directives.

    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • scripts/kconfig/lxdialog/util.c fails to build because it uses
    true/false without including stdbool.h:

    kronos:~/src/linux-2.6$ make O=../linux-build-git menuconfig
    GEN /home/kronos/src/linux-build/Makefile
    HOSTCC scripts/kconfig/lxdialog/util.o
    /home/kronos/src/linux-2.6/scripts/kconfig/lxdialog/util.c: In function 'set_classic_theme':
    /home/kronos/src/linux-2.6/scripts/kconfig/lxdialog/util.c:68: error: 'true' undeclared (first use in this function)
    /home/kronos/src/linux-2.6/scripts/kconfig/lxdialog/util.c:68: error: (Each undeclared identifier is reported only once
    /home/kronos/src/linux-2.6/scripts/kconfig/lxdialog/util.c:68: error: for each function it appears in.)
    /home/kronos/src/linux-2.6/scripts/kconfig/lxdialog/util.c:70: error: 'false' undeclared (first use in this function)
    /home/kronos/src/linux-2.6/scripts/kconfig/lxdialog/util.c: In function 'set_blackbg_theme':
    /home/kronos/src/linux-2.6/scripts/kconfig/lxdialog/util.c:101: error: 'true' undeclared (first use in this function)
    /home/kronos/src/linux-2.6/scripts/kconfig/lxdialog/util.c:102: error: 'false' undeclared (first use in this function)
    /home/kronos/src/linux-2.6/scripts/kconfig/lxdialog/util.c: In function 'set_bluetitle_theme':
    /home/kronos/src/linux-2.6/scripts/kconfig/lxdialog/util.c:144: error: 'true' undeclared (first use in this function)
    make[2]: *** [scripts/kconfig/lxdialog/util.o] Error 1
    make[1]: *** [menuconfig] Error 2
    make: *** [menuconfig] Error 2

    Add to dialog.h to fix the breakage.

    Signed-off-by: Luca Tettamanti
    Cc: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Luca Tettamanti
     

04 Oct, 2006

2 commits


03 Oct, 2006

2 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild:
    kbuild: trivial documentation fixes
    kconfig: fix saving alternate kconfig file in parent dir
    kbuild: make modpost processing configurable
    kconfig/menuconfig: do not let ncurses clutter screen on exit
    kconfig/lxdialog: clear long menu lines
    kbuild: do not build mconf & lxdialog unless needed
    kconfig/lxdialog: fix make mrproper
    kconfig/lxdialog: support resize
    kconfig/lxdialog: let behave as expected
    kconfig/menuconfig: lxdialog is now built-in
    kconfig/lxdialog: add a new theme bluetitle which is now default
    kconfig/lxdialog: add support for color themes and add blackbg theme
    kconfig/lxdialog: refactor color support

    Linus Torvalds
     
  • This seems to have been missed when unifdef went in
    via Sam's tree..

    Signed-off-by: Paul Mundt
    Signed-off-by: Linus Torvalds

    Paul Mundt
     

01 Oct, 2006

3 commits

  • This fixes bugzilla entry: 7182
    http://bugzilla.kernel.org/show_bug.cgi?id=7182

    With this patch we no longer append the directory part twice
    before saving the config file.
    This patch has been sent to Roman Zippel for review with no feedback.
    It is so obviously simple that this should be OK to apply it anyway.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • On request from Al Viro make modpost processing configurable.

    KBUILD_MODPOST_WARN can be set to make modpost warn instead of
    error out in case on unresolved symbols in final module link.

    KBUILD_MODPOST_NOFINAL can be set to avoid the final and timeconsuming
    .c file generation and link of .ko files. This is solely useful for
    speeding up when doing compile checks with for example allmodconfig

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • The driver for /proc/config.gz consumes rather a lot of memory and it is in
    fact possible to build it as a module.

    In some ways this is a bit risky, because the .config which is used for
    compiling kernel/configs.c isn't necessarily the same as the .config which was
    used to build vmlinux.

    But OTOH the potential memory savings are decent, and it'd be fairly dumb to
    build your configs.o with a different .config.

    Signed-off-by: Andrew Morton
    Cc: "Randy.Dunlap"
    Cc: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ross Biro
     

30 Sep, 2006

11 commits

  • Do not initialize ncurses twice - it causes unpredicable
    results. My display was sometimes weird after running
    make menuconfig and I had to execute 'reset' to properly
    restore my display.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • Menulines that were wider than the available
    line width is now properly null terminated.

    While at it renamed the variable choice => line_y
    so it better reflect the usage in do_print_item().

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • Due to a limitation in kbuild all objects referred
    by xxx-y or xxx-objs will be build when one of
    the targets needs to e build.

    This caused lxdialog to be build pulling in ncurses
    that is not always available.
    So avoid building mconf & lxdialog unless really needed.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • No Makefile in scripts/kconfig/lxdialog anymore, so do not
    go there during make mrproper.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • In all dialogs now properly catch KEY_RESIZE and take proper action.
    In mconf try to behave sensibly when a dialog routine returns
    -ERRDISPLAYTOOSMALL.

    The original check for a screnn size of 80x19 is kept for now.
    It may make sense to remove it later, but thats anyway what
    much text is adjusted for.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • is used to step one back in the dialogs.
    When lxdialog became built-in pressing once would cause one step back
    and pressing would cause two steps back.
    This patch - based on concept from Roman Zippel -
    makes one a noop and pressing will cause one step backward.

    In addition the final yes/no dialog now has the option to go back to the
    the kernel configuration. So if you get too far out you can now go back
    to configuring the kernel without saving and starting all over again.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • lxdialog was previously called as an external program causing screen
    to flicker when used. With this patch lxdialog is now built-in.
    It is loosly based om previous work by: Petr Baudis

    Following is a list of changes:
    o Moved build of dialog routings to kconfig Makefile
    o menubox + checklist uses a new item list to hold all menu items
    o in util.c implmented helper function to deal with item list
    o menubox now uses parameters to save scroll state (avoids temp file)
    o textbox now get text to be displayed as parameter and not a file
    o make sure to properly delete subwin's before main windows
    o killed unused files: lxdialog.c msgbox.c
    o modified return value for ESC to match direct calling
    o in a few places the code has been adjusted to 80 char wide
    o in textbox a small refactoring was made to make code remotely readable
    o in mconf removed all unused stuff (functions/variables)

    Following is a list of know short comings:
    a) pressing ESC twice will be interpreted as two ESC presses
    b) resize does not work. menuconfig needs to be restarted to be adjusted

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • The bluetitle theme is a slightly modified version of the colorscheme
    that -mm users has been used to. The bluetitle is more readable especially
    on some LCD screens so it is now default.
    Anyone that really wants the old color selection can get it by selecting
    the classic color theme:
    make MENUCONFIG_COLOR=classic menuconfig

    The bluetitle theme was modified by Roman Zippel
    to further improve readability on LCD screens.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • The blackbg theme was originally made by: Han Boetes
    It was copied from a patch by "Randy.Dunlap"
    which was also the inspiration source for the color theme support.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • Clean up and refactor color support. All color support are now
    in util.c including color definitions.
    In the process introduced a global variable named 'dlg' which is
    used all over to set color - thats the reason why all files are changed.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • Adds a missing exit, if the file that should be parsed couldn't be opened.
    Without it crashes with a segfault, cause the filedescriptor is accessed
    even if the file could not be opened.

    Signed-off-by: Henrik Kretzschmar
    Acked-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Henrik Kretzschmar
     

27 Sep, 2006

1 commit

  • Add modalias attribute support for the almost forgotten now EISA bus and
    (at least some) EISA-aware modules.

    The modalias entry looks like (for an 3c509 NIC):

    eisa:sTCM5093

    and the in-module alias like:

    eisa:sTCM5093*

    The patch moves struct eisa_device_id declaration from include/linux/eisa.h
    to include/linux/mod_devicetable.h (so that the former now #includes the
    latter), adds proper MODULE_DEVICE_TABLE(eisa, ...) statements for all
    drivers with EISA IDs I found (some drivers already have that DEVICE_TABLE
    declared), and adds recognision of __mod_eisa_device_table to
    scripts/mod/file2alias.c so that proper modules.alias will be generated.

    There's no support for /lib/modules/$kver/modules.eisamap, as it's not used
    by any existing tools, and because with in-kernel modalias mechanism those
    maps are obsolete anyway.

    The rationale for this patch is:

    a) to make EISA bus to act as other busses with modalias
    support, to unify driver loading

    b) to foget about EISA finally - with this patch, kernel
    (who still supports EISA) will be the only one who knows
    how to choose the necessary drivers for this bus ;)

    [akpm@osdl.org: fix the kbuild bit]
    Signed-off-by: Michael Tokarev
    Cc: Rusty Russell
    Cc: Randy Dunlap
    Acked-the-net-bits-by: Jeff Garzik
    Acked-the-tulip-bit-by: Valerie Henson
    Cc: James Bottomley
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Tokarev
     

26 Sep, 2006

3 commits

  • Current gcc generates calls not jumps to noreturn functions. When that happens the
    return address can point to the next function, which confuses the unwinder.

    This patch works around it by marking asynchronous exception
    frames in contrast normal call frames in the unwind information. Then teach
    the unwinder to decode this.

    For normal call frames the unwinder now subtracts one from the address which avoids
    this problem. The standard libgcc unwinder uses the same trick.

    It doesn't include adjustment of the printed address (i.e. for the original
    example, it'd still be kernel_math_error+0 that gets displayed, but the
    unwinder wouldn't get confused anymore.

    This only works with binutils 2.6.17+ and some versions of H.J.Lu's 2.6.16
    unfortunately because earlier binutils don't support .cfi_signal_frame

    [AK: added automatic detection of the new binutils and wrote description]

    Signed-off-by: Jan Beulich
    Signed-off-by: Andi Kleen

    Jan Beulich
     
  • Add a feature check that checks that the gcc compiler has stack-protector
    support and has the bugfix for PR28281 to make this work in kernel mode.
    The easiest solution I could find was to have a shell script in scripts/
    to do the detection; if needed we can make this fancier in the future
    without making the makefile too complex.

    Signed-off-by: Arjan van de Ven
    Signed-off-by: Andi Kleen
    CC: Andi Kleen
    CC: Sam Ravnborg

    Arjan van de Ven
     
  • ... instead of using a CONFIG option. The config option still controls
    if the resulting executable actually has unwind information.

    This is useful to prevent compilation errors when users select
    CONFIG_STACK_UNWIND on old binutils and also allows to use
    CFI in the future for non kernel debugging applications.

    Cc: jbeulich@novell.com
    Cc: sam@ravnborg.org

    Signed-off-by: Andi Kleen

    Andi Kleen
     

25 Sep, 2006

7 commits