24 Sep, 2009

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-next: (30 commits)
    Use macros for .data.page_aligned section.
    Use macros for .bss.page_aligned section.
    Use new __init_task_data macro in arch init_task.c files.
    kbuild: Don't define ALIGN and ENTRY when preprocessing linker scripts.
    arm, cris, mips, sparc, powerpc, um, xtensa: fix build with bash 4.0
    kbuild: add static to prototypes
    kbuild: fail build if recordmcount.pl fails
    kbuild: set -fconserve-stack option for gcc 4.5
    kbuild: echo the record_mcount command
    gconfig: disable "typeahead find" search in treeviews
    kbuild: fix cc1 options check to ensure we do not use -fPIC when compiling
    checkincludes.pl: add option to remove duplicates in place
    markup_oops: use modinfo to avoid confusion with underscored module names
    checkincludes.pl: provide usage helper
    checkincludes.pl: close file as soon as we're done with it
    ctags: usability fix
    kernel hacking: move STRIP_ASM_SYMS from General
    gitignore usr/initramfs_data.cpio.bz2 and usr/initramfs_data.cpio.lzma
    kbuild: Check if linker supports the -X option
    kbuild: introduce ld-option
    ...

    Fix trivial conflict in scripts/basic/fixdep.c

    Linus Torvalds
     

23 Sep, 2009

5 commits

  • This makes it consistent with other buses (platform, i2c, vio, ...). I'm
    not sure why we use the prefixes, but there must be a reason.

    This was easy enough to do it, and I did it.

    Signed-off-by: Anton Vorontsov
    Cc: David Brownell
    Cc: David Woodhouse
    Cc: Grant Likely
    Cc: Jean Delvare
    Cc: Ben Dooks
    Cc: Benjamin Herrenschmidt
    Cc: Dmitry Torokhov
    Cc: Samuel Ortiz
    Cc: "John W. Linville"
    Acked-by: Mike Frysinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Anton Vorontsov
     
  • With this patch spi drivers can use standard spi_driver.id_table and
    MODULE_DEVICE_TABLE() mechanisms to bind against the devices. Just like
    we do with I2C drivers.

    This is useful when a single driver supports several variants of devices
    but it is not possible to detect them in run-time (like non-JEDEC chips
    probing in drivers/mtd/devices/m25p80.c), and when platform_data usage is
    overkill.

    This patch also makes life a lot easier on OpenFirmware platforms, since
    with OF we extensively use proper device IDs in modaliases.

    Signed-off-by: Anton Vorontsov
    Cc: David Brownell
    Cc: David Woodhouse
    Cc: Grant Likely
    Cc: Jean Delvare
    Cc: Ben Dooks
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Anton Vorontsov
     
  • Commit b478b782e110fdb4135caa3062b6d687e989d994 "kallsyms, tracing: output
    more proper symbol name" introduces a "bugfix" that introduces a segfault
    in kallsyms in my configurations.

    The cause is the introduction of prefix_underscores_count() which attempts
    to count underscores, even in symbols that do not have them. As a result,
    it just uselessly runs past the end of the buffer until it crashes:

    CC init/version.o
    LD init/built-in.o
    LD .tmp_vmlinux1
    KSYM .tmp_kallsyms1.S
    /bin/sh: line 1: 16934 Done sh-linux-gnu-nm -n .tmp_vmlinux1
    16935 Segmentation fault | scripts/kallsyms > .tmp_kallsyms1.S
    make: *** [.tmp_kallsyms1.S] Error 139

    This simplifies the logic and just does a straightforward count.

    Signed-off-by: Paul Mundt
    Reviewed-by: Li Zefan
    Cc: Lai Jiangshan
    Cc: Sam Ravnborg
    Cc: Paulo Marques
    Cc: Ingo Molnar
    Cc: [2.6.30.x, 2.6.31.x]
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Mundt
     
  • Fix up -Wmissing-prototypes in compileable userspace code, mainly under
    Documentation/.

    Signed-off-by: Ladinu Chandrasinghe
    Signed-off-by: Trevor Keith
    Cc: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ladinu Chandrasinghe
     
  • Signed-off-by: Trevor Keith
    Cc: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Trevor Keith
     

22 Sep, 2009

18 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (34 commits)
    trivial: fix typo in aic7xxx comment
    trivial: fix comment typo in drivers/ata/pata_hpt37x.c
    trivial: typo in kernel-parameters.txt
    trivial: fix typo in tracing documentation
    trivial: add __init/__exit macros in drivers/gpio/bt8xxgpio.c
    trivial: add __init macro/ fix of __exit macro location in ipmi_poweroff.c
    trivial: remove unnecessary semicolons
    trivial: Fix duplicated word "options" in comment
    trivial: kbuild: remove extraneous blank line after declaration of usage()
    trivial: improve help text for mm debug config options
    trivial: doc: hpfall: accept disk device to unload as argument
    trivial: doc: hpfall: reduce risk that hpfall can do harm
    trivial: SubmittingPatches: Fix reference to renumbered step
    trivial: fix typos "man[ae]g?ment" -> "management"
    trivial: media/video/cx88: add __init/__exit macros to cx88 drivers
    trivial: fix typo in CONFIG_DEBUG_FS in gcov doc
    trivial: fix missing printk space in amd_k7_smp_check
    trivial: fix typo s/ketymap/keymap/ in comment
    trivial: fix typo "to to" in multiple files
    trivial: fix typos in comments s/DGBU/DBGU/
    ...

    Linus Torvalds
     
  • Add checks for Blackfin-specific issues that seem to crop up from time to
    time. In particular, we have helper macros to break a 32bit address into
    the hi/lo parts, and we want to make sure people use the csync/ssync
    variant that includes fun anomaly workarounds.

    Signed-off-by: Mike Frysinger
    Signed-off-by: Bryan Wu
    Cc: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Frysinger
     
  • Signed-off-by: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Whitcroft
     
  • Limit our type matcher to the s/u/le/be etc sizes that actually exist to
    prevent miss categorising s2 as a type. Fix up the spelling of the error
    also.

    Signed-off-by: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Whitcroft
     
  • We should not recommend braces for the following:

    #define pr_fmt(fmt) "%s: " fmt, __func__

    allow things with double quotes round them to avoid this check.

    Signed-off-by: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Whitcroft
     
  • Impact:
    - More verbose help/usage message.
    - Make the option -f an alias for --file.
    - On -h, --help, and --version display help message and exit(0).
    - With no FILE(s) given, exit(1) with "no input files".
    - On invalid options display help/usage and exit(1).

    Based on a patch by Pavel Machek.

    Signed-off-by: Hannes Eder
    Acked-by: Pavel Machek
    Signed-off-by: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hannes Eder
     
  • Ensure we terminate when there are no futher continuation lines when
    trying to determine relative indent of conditionals and their blocks.

    Reported-by: John Daiker
    Signed-off-by: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Whitcroft
     
  • This fixes the sanitation process in checkpatch.pl so that it blocks out
    the text after a C99 style comment the same way it does with block style
    comments. This prevents the text from getting processed as regular code.

    Signed-off-by: Daniel Walker
    Signed-off-by: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Daniel Walker
     
  • An else cannot start a type, it would have to be within a block after the
    else. This can trigger false modifier matching.

    Signed-off-by: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Whitcroft
     
  • Previous behavior was "bottom-up" in each section from the pattern "F:"
    entry that matched. Now information is entered into the various lists in
    the "as entered" order for each matched section.

    This also allows the F: entry to be put anywhere in a section, not just as
    the last entries in the section.

    And a couple of improvements:

    Don't alphabetically sort before outputting the matched scm, status,
    subsystem and web sections.

    Ignore content after a single email address so these entries are acceptable
    M: name

    whatever other comment

    And a fix:

    Make an M: entry without a name again use the name from an immediately
    preceding P: line if it exists.

    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Allow control over the elimination of duplicate email names and addresses

    --remove-duplicates will use the first email name or address presented
    --noremove-duplicates will emit all names and addresses

    --remove-duplicates is enabled by default

    For instance:

    $ ./scripts/get_maintainer.pl -f drivers/char/tty_ioctl.c
    Greg Kroah-Hartman
    Alan Cox
    Mike Frysinger
    Alexey Dobriyan
    linux-kernel@vger.kernel.org

    $ ./scripts/get_maintainer.pl -f --noremove-duplicates drivers/char/tty_ioctl.c
    Greg Kroah-Hartman
    Alan Cox
    Alan Cox
    Alan Cox
    Mike Frysinger
    Alexey Dobriyan
    linux-kernel@vger.kernel.org

    Using --remove-duplicates could eliminate multiple maintainers that
    share the same name but not the same email address.

    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • If a person sets a separator, it's only used if --nomultiline is set.
    Don't make the command line also include --nomultiline in that case.

    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Add reading and using .mailmap file if it exists
    Convert address entries in .mailmap to first encountered address
    Don't terminate shell commands with \n
    Strip characters found after sign-offs by: name

    [stripped]

    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Added format_email and parse_email routines to reduce inline use.

    Added email_address_inuse to eliminate multiple maintainer entries
    for the same email address, the first name encountered is used.

    Used internal perl equivalents of shell cmd use of grep|cut|sort|uniq

    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • --pattern-depth is used to control how many levels of directory traversal
    should be performed to find maintainers. default is 0 (all directory levels).

    For instance:

    MAINTAINERS currently has multiple M: and F: entries that match
    net/netfilter/ipvs/ip_vs_app.c

    IPVS
    M: Wensong Zhang
    M: Simon Horman
    M: Julian Anastasov
    [...]
    F: net/netfilter/ipvs/

    NETFILTER/IPTABLES/IPCHAINS
    [...]
    M: Patrick McHardy
    [...]
    F: net/netfilter/

    NETWORKING [GENERAL]
    M: "David S. Miller"
    [...]
    F: net/

    THE REST
    M: Linus Torvalds
    [...]
    F: */

    Using this command will return all of those maintainers:
    (except Linus unless --git-chief-maintainers is specified)

    $ ./scripts/get_maintainer.pl --nogit -nol \
    -f net/netfilter/ipvs/ip_vs_app.c
    Julian Anastasov
    Simon Horman
    Wensong Zhang
    Patrick McHardy
    David S. Miller

    Adding --pattern-depth=1 will match at the deepest level
    $ ./scripts/get_maintainer.pl --nogit -nol --pattern-depth=1 \
    -f net/netfilter/ipvs/ip_vs_app.c
    Julian Anastasov
    Simon Horman
    Wensong Zhang

    Adding --pattern-depth=2 will match at the deepest level and 1 higher
    $ ./scripts/get_maintainer.pl --nogit -nol --pattern-depth=2 \
    -f net/netfilter/ipvs/ip_vs_app.c
    Julian Anastasov
    Simon Horman
    Wensong Zhang
    Patrick McHardy

    and so on.

    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Before this change, matched sections were added in the order
    of appearance in the normally alphabetic section order of
    the MAINTAINERS file.

    For instance, finding the maintainer for drivers/scsi/wd7000.c
    would first find "SCSI SUBSYSTEM", then "WD7000 SCSI SUBSYSTEM",
    then "THE REST".

    before patch:

    $ ./scripts/get_maintainer.pl --nogit -f drivers/scsi/wd7000.c
    James E.J. Bottomley
    Miroslav Zagorac
    linux-scsi@vger.kernel.org
    linux-kernel@vger.kernel.org

    get_maintainer.pl now selects matched sections by longest pattern match.
    Longest is the number of "/"s and any specific file pattern.

    This changes the example output order of MAINTAINERS to whatever is
    selected in "WD7000 SUBSYSTEM", then "SCSI SYSTEM", then "THE REST".

    after patch:

    $ ./scripts/get_maintainer.pl --nogit -f drivers/scsi/wd7000.c
    Miroslav Zagorac
    James E.J. Bottomley
    linux-scsi@vger.kernel.org
    linux-kernel@vger.kernel.org

    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Julia Lawall suggested that get_maintainers.pl should have the
    ability to include signatories of commits that are modified by
    a particular patch.

    Vegard Nossum did something similar once.
    http://lkml.org/lkml/2008/5/29/449

    The modified script looks the commits for all lines in the
    patch, and includes the "-by:" signatories for those commits.
    It uses the same git-min-percent, git-max-maintainers, and
    git-min-signatures options. git-since is ignored.

    It can be used independently from the --git default, so
    ./scripts/get_maintainers.pl --nogit --git-blame
    or
    ./scripts/get_maintainers.pl --nogit --git-blame -f
    is acceptable.

    If used with -f , all lines/commits for the file are
    checked.

    --git-blame can be slow if used with -f
    --git-blame does not work with -f

    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • …nel/git/tip/linux-2.6-tip

    * 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    kernel/profile.c: Switch /proc/irq/prof_cpu_mask to seq_file
    tracing: Export trace_profile_buf symbols
    tracing/events: use list_for_entry_continue
    tracing: remove max_tracer_type_len
    function-graph: use ftrace_graph_funcs directly
    tracing: Remove markers
    tracing: Allocate the ftrace event profile buffer dynamically
    tracing: Factorize the events profile accounting

    Linus Torvalds
     

21 Sep, 2009

4 commits

  • Signed-off-by: Trevor Keith
    Signed-off-by: Jiri Kosina

    Trevor Keith
     
  • Ignore drivers/staging/ since it is very likely that new drivers
    introduce it again.

    Signed-off-by: Markus Heidelberg
    Signed-off-by: Jiri Kosina

    Markus Heidelberg
     
  • Adding a reference to to x86's causes
    the x86 linker script to have syntax errors, because the ALIGN and
    ENTRY keywords get redefined to the assembly implementations of those.
    One could fix this by adjusting the include structure, but I think any
    solution based on that approach would be fragile.

    Currently, it is impossible when writing a header to do something
    different for assembly files and linker scripts, even though there are
    clearly cases where one wants them to define macros differently for
    the two (ENTRY being an excellent example).
    So I think the right solution here is to introduce a new preprocessor
    definition, called LINKER_SCRIPT that is set along with __ASSEMBLY__
    for linker scripts, and to use that to not define ALIGN and ENTRY in
    linker scripts.
    I suspect we'll find other uses for this mechanism in
    the future.

    Signed-off-by: Tim Abbott
    Signed-off-by: Sam Ravnborg

    Tim Abbott
     
  • …/kernel/git/tip/linux-2.6-tip

    * 'perfcounters-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (58 commits)
    perf_counter: Fix perf_copy_attr() pointer arithmetic
    perf utils: Use a define for the maximum length of a trace event
    perf: Add timechart help text and add timechart to "perf help"
    tracing, x86, cpuidle: Move the end point of a C state in the power tracer
    perf utils: Be consistent about minimum text size in the svghelper
    perf timechart: Add "perf timechart record"
    perf: Add the timechart tool
    perf: Add a SVG helper library file
    tracing, perf: Convert the power tracer into an event tracer
    perf: Add a sample_event type to the event_union
    perf: Allow perf utilities to have "callback" options without arguments
    perf: Store trace event name/id pairs in perf.data
    perf: Add a timestamp to fork events
    sched_clock: Make it NMI safe
    perf_counter: Fix up swcounter throttling
    x86, perf_counter, bts: Optimize BTS overflow handling
    perf sched: Add --input=file option to builtin-sched.c
    perf trace: Sample timestamp and cpu when using record flag
    perf tools: Increase MAX_EVENT_LENGTH
    perf tools: Fix memory leak in read_ftrace_printk()
    ...

    Linus Torvalds
     

20 Sep, 2009

12 commits

  • Albin Tonnerre reported:

    Bash 4 filters out variables which contain a dot in them.
    This happends to be the case of CPPFLAGS_vmlinux.lds.
    This is rather unfortunate, as it now causes
    build failures when using SHELL=/bin/bash to compile,
    or when bash happens to be used by make (eg when it's /bin/sh)

    Remove the common definition of CPPFLAGS_vmlinux.lds by
    pushing relevant stuff to either Makefile.build or the
    arch specific kernel/Makefile where we build the linker script.

    This is also nice cleanup as we move the information out where
    it is used.

    Notes for the different architectures touched:

    arm - we use an already exported symbol
    cris - we use a config symbol aleady available
    [Not build tested]
    mips - the jiffies complexity has moved to vmlinux.lds.S where we need it.
    Added a few variables to CPPFLAGS - they are only used by
    the linker script.
    [Not build tested]
    powerpc - removed assignment that is not needed
    [not build tested]
    sparc - simplified it using $(BITS)
    um - introduced a few new exported variables to deal with this
    xtensa - added options to CPP invocation
    [not build tested]

    Cc: Albin Tonnerre
    Cc: Russell King
    Cc: Mikael Starvik
    Cc: Jesper Nilsson
    Cc: Benjamin Herrenschmidt
    Cc: Paul Mackerras
    Cc: "David S. Miller"
    Cc: Jeff Dike
    Cc: Chris Zankel
    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • Warnings found via gcc -Wmissing-prototypes.

    Signed-off-by: Trevor Keith
    Acked-by: WANG Cong
    Signed-off-by: Andrew Morton
    Signed-off-by: Sam Ravnborg

    Trevor Keith
     
  • When this script fails the build should fail too. Otherwise there
    are mysterious build failures later.

    Signed-off-by: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Sam Ravnborg

    Andi Kleen
     
  • I had some problems with record_mcount in the Makefile and it was hard
    to track down. Echo it by default to make it easier to diagnose.

    Signed-off-by: Andi Kleen
    Signed-off-by: Andrew Morton
    Signed-off-by: Sam Ravnborg

    Andi Kleen
     
  • When typeahead find is enabled, using 'y', 'n' and 'm' to change the status
    of the configuration items will also start up the search system, making you
    jump around the configuration.

    Disabling the enable_search property does not mean that search is not
    possible, it only disables the typeahead; to execute a search in the
    treeview, you can just call it up explicitly (i.e.: on most systems that
    will be Ctrl-f).

    Signed-off-by: Diego Elio 'Flameeyes' Pettenò
    Cc: Roman Zippel
    Signed-off-by: Andrew Morton
    Signed-off-by: Sam Ravnborg

    Diego Elio 'Flameeyes' Pettenò
     
  • The arch/*/boot/Makefile use cc-options to check for GCC command options
    and cc-options use the hardened specs when checking for GCC command
    options. When -fPIE is pass to cc1 it can't use -ffreestanding or
    -fno-toplevel-reorder. Then it fail to build stuff with -ffreestanding
    and -fno-toplevel-reorder.

    Thanks to Fredric Johansson for finding the main problem behind a failed
    build using a hardened toolchain.

    Signed-off-by: Magnus Granberg
    Signed-off-by: Jory A. Pratt
    Cc: Fredric Johansson
    Cc: "H. Peter Anvin"
    Signed-off-by: Andrew Morton
    Cc:
    Signed-off-by: Sam Ravnborg

    Jory A. Pratt
     
  • checkincludes.pl is more useful if it actually removed the lines. This
    adds support for that with -r.

    [akpm@linux-foundation.org: improve usage message]
    Signed-off-by: Luis R. Rodriguez
    Signed-off-by: Andrew Morton
    Signed-off-by: Sam Ravnborg

    Luis R. Rodriguez
     
  • When EIP is at a module having an underscore in its name, the current code
    fails to find it because the module filenames has '-' instead of '_'. Use
    modinfo for a better path finding.

    Signed-off-by: Ozan Çaglayan
    Acked-by: WANG Cong
    Cc: Arjan van de Ven
    Signed-off-by: Andrew Morton
    Signed-off-by: Sam Ravnborg

    Ozan Çaglayan
     
  • Signed-off-by: Luis R. Rodriguez
    Signed-off-by: Andrew Morton
    Signed-off-by: Sam Ravnborg

    Luis R. Rodriguez
     
  • Signed-off-by: Luis R. Rodriguez
    Signed-off-by: Andrew Morton
    Signed-off-by: Sam Ravnborg

    Luis R. Rodriguez
     
  • The tag file generated by the tags.sh script has some issue.

    First:
    The identifier-list miss the
    DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL
    special handling, which can result in a wrong tag, not to jump to the
    right variable definition or function implementation.

    Second:
    It makes no real sense to include function prototypes and external and
    forward variable declarations, because jumping to a tag will sometimes
    go to this and not to the real definition and implementation. The information
    about the declaration is still there at the definition and implementation
    place.

    So this patch make it lot easier to navigate through the kernel source
    tree using vi.

    Signed-off-by: Stefani Seibold
    Acked-by: WANG Cong
    Signed-off-by: Andrew Morton
    Signed-off-by: Sam Ravnborg

    Stefani Seibold
     
  • ld-option is used to check if $(LD) supports a specific option.

    Based on patch from Andi Kleen.

    Cc: Andi Kleen
    Signed-off-by: Sam Ravnborg
    First use is to check if option -X is supported (upcoming patch).
    Theis is ne

    Sam Ravnborg