18 Nov, 2009

1 commit

  • …ux/kernel/git/josh/linux-misc

    * 'hostprogs-wmissing-prototypes' of git://git.kernel.org/pub/scm/linux/kernel/git/josh/linux-misc:
    Makefile: Add -Wmising-prototypes to HOSTCFLAGS
    oss: Mark loadhex static in hex2hex.c
    dtc: Mark various internal functions static
    dtc: Set "noinput" in the lexer to avoid an unused function
    drm: radeon: Mark several functions static in mkregtable
    arch/sparc/boot/*.c: Mark various internal functions static
    arch/powerpc/boot/addRamDisk.c: Mark several internal functions static
    arch/alpha/boot/tools/objstrip.c: Mark "usage" static
    Documentation/vm/page-types.c: Declare checked_open static
    genksyms: Mark is_reserved_word static
    kconfig: Mark various internal functions static
    kconfig: Make zconf.y work with current bison

    Linus Torvalds
     

16 Nov, 2009

4 commits


12 Nov, 2009

1 commit


29 Oct, 2009

8 commits

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

    Andy Whitcroft
     
  • Ingo reported that the following lines triggered a false warning,

    static struct lock_class_key rcu_lock_key;
    struct lockdep_map rcu_lock_map =
    STATIC_LOCKDEP_MAP_INIT("rcu_read_lock", &rcu_lock_key);
    EXPORT_SYMBOL_GPL(rcu_lock_map);

    from kernel/rcutree.c , and the false warning looked like this,

    WARNING: EXPORT_SYMBOL(foo); should immediately follow its
    function/variable
    +EXPORT_SYMBOL_GPL(rcu_lock_map);

    We actually should be checking the statement before the EXPORT_* for a
    mention of the exported object, and complain where it is not there.

    [akpm@linux-foundation.org: coding-style fixes]
    Cc: Ingo Molnar
    Cc: Paul E. McKenney
    Reported-by: Daniel Walker
    Signed-off-by: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Whitcroft
     
  • In the following code,

    union thread_union init_thread_union
    __attribute__((__section__(".data.init_task"))) =
    { INIT_THREAD_INFO(init_task) };

    There is a non-conforming declaration. It should really be like the
    following,

    union thread_union init_thread_union
    __attribute__((__section__(".data.init_task"))) = {
    INIT_THREAD_INFO(init_task)
    };

    However, checkpatch doesn't catch this right now because it doesn't
    correctly evaluate the "__attribute__".

    It is not at all clear that we care what preceeds an assignment style
    attribute when we find the open brace. Relax the test so we do not need
    to check the __attribute__.

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

    Andy Whitcroft
     
  • The macro concatenation (##) sequence can cause false errors when checking
    macro's. Checkpatch doesn't currently know about the operator.

    For example this line,

    + entry = (struct ftrace_raw_##call *)raw_data; \

    is correct but it produces the following error,

    ERROR: need consistent spacing around '*' (ctx:WxB)
    + entry = (struct ftrace_raw_##call *)raw_data;\
    ^

    The line above doesn't have any spacing problems, and if you remove the
    macro concatenation sequence checkpatch doesn't give any errors.

    Extend identifier handling to include ## concatenation within the
    definition of an identifier.

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

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

    Andy Whitcroft
     
  • We are allowing context scanning checks to apply against the first line of
    context outside at the end of the hunk. This can lead to false matches to
    patch names leading to various perl warnings. Correctly stop at the
    bottom of the hunk.

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

    Andy Whitcroft
     
  • Prevent known non types being detected as modifiers. Ensure we do not
    look at any type which starts with a keyword.

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

    Andy Whitcroft
     
  • Based on an idea from Wolfram Sang.

    Add search for MAINTAINERS line "K:" regex pattern match in a patch or file
    Matches are added after file pattern matches
    Add --keywords command line switch (default 1, on)
    Change version to 0.21

    Signed-off-by: Joe Perches
    Cc: Wolfram Sang
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     

16 Oct, 2009

1 commit

  • zconf.y includes zconf.hash.c from the initial code section.
    zconf.hash.c references the token constants from zconf.y. However,
    current bison defines the token constants after the initial code
    section, making zconf.hash.c fail to compile. Move the include of
    zconf.hash.c later in zconf.y, so bison puts it after the token
    constants.

    Signed-off-by: Josh Triplett

    Josh Triplett
     

12 Oct, 2009

6 commits


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

13 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