21 May, 2010

2 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1674 commits)
    qlcnic: adding co maintainer
    ixgbe: add support for active DA cables
    ixgbe: dcb, do not tag tc_prio_control frames
    ixgbe: fix ixgbe_tx_is_paused logic
    ixgbe: always enable vlan strip/insert when DCB is enabled
    ixgbe: remove some redundant code in setting FCoE FIP filter
    ixgbe: fix wrong offset to fc_frame_header in ixgbe_fcoe_ddp
    ixgbe: fix header len when unsplit packet overflows to data buffer
    ipv6: Never schedule DAD timer on dead address
    ipv6: Use POSTDAD state
    ipv6: Use state_lock to protect ifa state
    ipv6: Replace inet6_ifaddr->dead with state
    cxgb4: notify upper drivers if the device is already up when they load
    cxgb4: keep interrupts available when the ports are brought down
    cxgb4: fix initial addition of MAC address
    cnic: Return SPQ credit to bnx2x after ring setup and shutdown.
    cnic: Convert cnic_local_flags to atomic ops.
    can: Fix SJA1000 command register writes on SMP systems
    bridge: fix build for CONFIG_SYSFS disabled
    ARCNET: Limit com20020 PCI ID matches for SOHARD cards
    ...

    Fix up various conflicts with pcmcia tree drivers/net/
    {pcmcia/3c589_cs.c, wireless/orinoco/orinoco_cs.c and
    wireless/orinoco/spectrum_cs.c} and feature removal
    (Documentation/feature-removal-schedule.txt).

    Also fix a non-content conflict due to pm_qos_requirement getting
    renamed in the PM tree (now pm_qos_request) in net/mac80211/scan.c

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (44 commits)
    vlynq: make whole Kconfig-menu dependant on architecture
    add descriptive comment for TIF_MEMDIE task flag declaration.
    EEPROM: max6875: Header file cleanup
    EEPROM: 93cx6: Header file cleanup
    EEPROM: Header file cleanup
    agp: use NULL instead of 0 when pointer is needed
    rtc-v3020: make bitfield unsigned
    PCI: make bitfield unsigned
    jbd2: use NULL instead of 0 when pointer is needed
    cciss: fix shadows sparse warning
    doc: inode uses a mutex instead of a semaphore.
    uml: i386: Avoid redefinition of NR_syscalls
    fix "seperate" typos in comments
    cocbalt_lcdfb: correct sections
    doc: Change urls for sparse
    Powerpc: wii: Fix typo in comment
    i2o: cleanup some exit paths
    Documentation/: it's -> its where appropriate
    UML: Fix compiler warning due to missing task_struct declaration
    UML: add kernel.h include to signal.c
    ...

    Linus Torvalds
     

20 May, 2010

1 commit

  • …s/security-testing-2.6

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6: (61 commits)
    KEYS: Return more accurate error codes
    LSM: Add __init to fixup function.
    TOMOYO: Add pathname grouping support.
    ima: remove ACPI dependency
    TPM: ACPI/PNP dependency removal
    security/selinux/ss: Use kstrdup
    TOMOYO: Use stack memory for pending entry.
    Revert "ima: remove ACPI dependency"
    Revert "TPM: ACPI/PNP dependency removal"
    KEYS: Do preallocation for __key_link()
    TOMOYO: Use mutex_lock_interruptible.
    KEYS: Better handling of errors from construct_alloc_key()
    KEYS: keyring_serialise_link_sem is only needed for keyring->keyring links
    TOMOYO: Use GFP_NOFS rather than GFP_KERNEL.
    ima: remove ACPI dependency
    TPM: ACPI/PNP dependency removal
    selinux: generalize disabling of execmem for plt-in-heap archs
    LSM Audit: rename LSM_AUDIT_NO_AUDIT to LSM_AUDIT_DATA_NONE
    CRED: Holding a spinlock does not imply the holding of RCU read lock
    SMACK: Don't #include Ext2 headers
    ...

    Linus Torvalds
     

19 May, 2010

2 commits


18 May, 2010

2 commits


23 Apr, 2010

1 commit


12 Apr, 2010

1 commit


07 Apr, 2010

1 commit

  • Add support for the hardware version of the Hamming weight function,
    popcnt, present in CPUs which advertize it under CPUID, Function
    0x0000_0001_ECX[23]. On CPUs which don't support it, we fallback to the
    default lib/hweight.c sw versions.

    A synthetic benchmark comparing popcnt with __sw_hweight64 showed almost
    a 3x speedup on a F10h machine.

    Signed-off-by: Borislav Petkov
    LKML-Reference:
    Signed-off-by: H. Peter Anvin

    Borislav Petkov
     

03 Apr, 2010

1 commit

  • We don't use the normal hotplug mechanism because it doesn't work. It will
    load the module some time after the device appears, but that's not good
    enough for us -- we need the driver loaded _immediately_ because otherwise
    the NIC driver may just abort and then the phy 'device' goes away.

    [bwh: s/phy/mdio/ in module alias, kerneldoc for struct mdio_device_id]

    Signed-off-by: David Woodhouse
    Signed-off-by: Ben Hutchings
    Acked-by: Andy Fleming
    Signed-off-by: David S. Miller

    David Woodhouse
     

31 Mar, 2010

1 commit


29 Mar, 2010

1 commit


25 Mar, 2010

3 commits

  • Fix a fatal error in scripts/kernel-doc when a function signature uses
    __init_or_module (just ignore that string):

    Error(drivers/base/platform.c:568): cannot understand prototype: 'struct platform_device * __init_or_module platform_create_bundle(struct platform_driver *driver, int (*probe)(struct platform_device *), struct resource *res, unsigned int n_res, const void *data, size_t size) '

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

    Randy Dunlap
     
  • Commit 22dd5b0cba50a197aaa3bd2790a29ee2e8e4e372 (fix perlcritic warnings)
    broke the ability to handle STDIN because the three argument version of
    open() cannot handle standard IO-streams (which is mentioned in
    PerlBestPractices, too).

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

    Wolfram Sang
     
  • scripts/kernel-doc erroneously says:

    Warning(include/linux/skbuff.h:410): Excess struct/union/enum/typedef member 'cb' description in 'sk_buff'

    on this line in struct sk_buff:
    char cb[48] __aligned(8);

    due to treating the last field as the struct member name, so teach
    kernel-doc to ignore __aligned(x) in structs.

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

    Randy Dunlap
     

16 Mar, 2010

1 commit

  • Fix const warning in the genheaders script as a result of
    changes to the headers, as noted here:

    http://linux.derkeiler.com/Mailing-Lists/Kernel/2010-03/msg03977.html

    Reported-by: Stephen Rothwell
    Signed-off-by: James Morris

    James Morris
     

15 Mar, 2010

1 commit


13 Mar, 2010

2 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (56 commits)
    doc: fix typo in comment explaining rb_tree usage
    Remove fs/ntfs/ChangeLog
    doc: fix console doc typo
    doc: cpuset: Update the cpuset flag file
    Fix of spelling in arch/sparc/kernel/leon_kernel.c no longer needed
    Remove drivers/parport/ChangeLog
    Remove drivers/char/ChangeLog
    doc: typo - Table 1-2 should refer to "status", not "statm"
    tree-wide: fix typos "ass?o[sc]iac?te" -> "associate" in comments
    No need to patch AMD-provided drivers/gpu/drm/radeon/atombios.h
    devres/irq: Fix devm_irq_match comment
    Remove reference to kthread_create_on_cpu
    tree-wide: Assorted spelling fixes
    tree-wide: fix 'lenght' typo in comments and code
    drm/kms: fix spelling in error message
    doc: capitalization and other minor fixes in pnp doc
    devres: typo fix s/dev/devm/
    Remove redundant trailing semicolons from macros
    fix typo "definetly" -> "definitely" in comment
    tree-wide: s/widht/width/g typo in comments
    ...

    Fix trivial conflict in Documentation/laptops/00-INDEX

    Linus Torvalds
     
  • scripts/kernel-doc mishandles a function that has a multi-line function
    short description and no function parameters. The observed problem was
    from drivers/scsi/scsi_netlink.c:

    /**
    * scsi_netlink_init - Called by SCSI subsystem to intialize
    * the SCSI transport netlink interface
    *
    **/

    kernel-doc treated the " * " line as a Description: section with only a
    newline character in the Description contents. This caused
    output_highlight() to complain: "output_highlight got called with no
    args?", plus produce a perl call stack backtrace.

    The fix is just to ignore Description sections if they only contain "\n".

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

    Randy Dunlap
     

08 Mar, 2010

1 commit


07 Mar, 2010

15 commits

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

    Joe Perches
     
  • Signed-off-by: Alberto Panizzo
    Cc: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alberto Panizzo
     
  • Based on Arjan's suggestion, extend the list of ops structures that should
    be const.

    Signed-off-by: Emese Revfy
    Cc: Andy Whitcroft
    Cc: Arjan van de Ven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Emese Revfy
     
  • Here is a small code snippet, which will be complained about by
    checkpatch.pl:

    #define __STRUCT_KFIFO_COMMON(recsize, ptrtype) \
    union { \
    struct { \
    unsigned int in; \
    unsigned int out; \
    }; \
    char rectype[recsize]; \
    ptrtype *ptr; \
    const ptrtype *ptr_const; \
    };

    This construct is legal and safe, so checkpatch.pl should accept this. It
    should be also true for struct defined in a macro.

    Add the `struct' and `union' keywords to the exceptions list of the
    checkpatch.pl script, to prevent error message "Macros with multiple
    statements should be enclosed in a do - while loop". Otherwise it is not
    possible to build a struct or union with a macro.

    Signed-off-by: Stefani Seibold
    Cc: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stefani Seibold
     
  • checkpatch falsely complained about '__initconst' because it thought the
    'const' needed a space before. Fix this by changing the list of
    attributes:

    - add '__initconst'
    - force plain 'init' to contain a word-boundary at the end

    Signed-off-by: Wolfram Sang
    Cc: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

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

    Joe Perches
     
  • In case if the statement and the conditional are in one line, the line
    appears in the report doubly.

    And items of this check have no blank line before the next item.

    This patch fixes these trivial problems, to improve readability of the
    report.

    [sample.c]
    > if (cond1
    > && cond2
    > && cond3) func_foo();
    >
    > if (cond4) func_bar();

    Before:
    > ERROR: trailing statements should be on next line
    > #1: FILE: sample.c:1:
    > +if (cond1
    > [...]
    > + && cond3) func_foo();
    > ERROR: trailing statements should be on next line
    > #5: FILE: sample.c:5:
    > +if (cond4) func_bar();
    > +if (cond4) func_bar();
    > total: 2 errors, 0 warnings, 5 lines checked

    After:
    > ERROR: trailing statements should be on next line
    > #1: FILE: sample.c:1:
    > +if (cond1
    > [...]
    > + && cond3) func_foo();
    >
    > ERROR: trailing statements should be on next line
    > #5: FILE: sample.c:5:
    > +if (cond4) func_bar();
    >
    > total: 2 errors, 0 warnings, 5 lines checked

    Signed-off-by: Hidetoshi Seto
    Cc: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hidetoshi Seto
     
  • sizeof(&foo) is frequently an error. Warn on its use.

    Signed-off-by: Joe Perches
    Cc: Andy Whitcroft
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • If MAINTAINERS section entries are misformatted, it was possible to have
    an infinite loop.

    Correct the defect by always moving the index to the end of section + 1

    Also, exit check for exclude as soon as possible.

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

    Joe Perches
     
  • Picky mail systems won't accept email addresses where recipient has period
    in name; ie. David S. Miller will not work.

    Signed-off-by: Stephen Hemminger
    Acked-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Hemminger
     
  • perlcritic is a standard checker for Perl Best Practices. This patch
    fixes most of the warnings in the get_maintainer script. If kernel
    programmers are going to have checkpatch they should write clean scripts
    as well...

    Bareword file handle opened at line 176, column 1. See pages 202,204 of PBP. (Severity: 5)
    Two-argument "open" used at line 176, column 1. See page 207 of PBP. (Severity: 5)
    Bareword file handle opened at line 207, column 5. See pages 202,204 of PBP. (Severity: 5)
    Two-argument "open" used at line 207, column 5. See page 207 of PBP. (Severity: 5)
    Bareword file handle opened at line 246, column 6. See pages 202,204 of PBP. (Severity: 5)
    Two-argument "open" used at line 246, column 6. See page 207 of PBP. (Severity: 5)
    Bareword file handle opened at line 258, column 2. See pages 202,204 of PBP. (Severity: 5)
    Two-argument "open" used at line 258, column 2. See page 207 of PBP. (Severity: 5)
    Expression form of "eval" at line 983, column 17. See page 161 of PBP. (Severity: 5)
    Expression form of "eval" at line 985, column 17. See page 161 of PBP. (Severity: 5)
    Subroutine prototypes used at line 1186, column 1. See page 194 of PBP. (Severity: 5)
    Subroutine prototypes used at line 1206, column 1. See page 194 of PBP. (Severity: 5)

    Signed-off-by: Stephen Hemminger
    Acked-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Hemminger
     
  • Doesn't need or accept '-' as a trailing option to read stdin. Doesn't
    print usage() after bad options. Adds --usage as command line equivalent
    of --help

    Suggested-by: Borislav Petkov
    Signed-off-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Signed-off-by: Joe Perches
    Cc: Stefan Richter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Print the complete contents of the matched subsystems
    in pattern match depth order.

    Sample output:

    $ ./scripts/get_maintainer.pl --sections -f drivers/net/usb/smsc95xx.c
    USB SMSC95XX ETHERNET DRIVER
    M:Steve Glendinning
    L:netdev@vger.kernel.org
    S:Supported
    F:drivers/net/usb/smsc95xx.*
    USB SUBSYSTEM
    M:Greg Kroah-Hartman
    L:linux-usb@vger.kernel.org
    W:http://www.linux-usb.org
    T:quilt kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/
    S:Supported
    F:Documentation/usb/
    F:drivers/net/usb/
    F:drivers/usb/
    F:include/linux/usb.h
    F:include/linux/usb/
    NETWORKING DRIVERS
    L:netdev@vger.kernel.org
    W:http://www.linuxfoundation.org/en/Net
    T:git git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6.git
    S:Odd Fixes
    F:drivers/net/
    F:include/linux/if_*
    F:include/linux/*device.h
    THE REST
    M:Linus Torvalds
    L:linux-kernel@vger.kernel.org
    Q:http://patchwork.kernel.org/project/LKML/list/
    T:git git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
    S:Buried alive in reporters
    F:*
    F:*/

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

    Joe Perches
     
  • Add an imperfect option to search a source file for email addresses.

    New option: --file-emails or --fe

    email addresses in files are freeform text and are nearly impossible to
    parse. Still, might as well try to do a somewhat acceptable job of
    finding them. This code should find all addresses that are in the form
    addr@domain.tld

    The code assumes that up to 3 alphabetic words along with dashes, commas,
    and periods that preceed the email address are a name.

    If 3 words are found for the name, and one of the first two words are a
    single letter and period, or just a single letter then the 3 words are use
    as name otherwise the last 2 words are used.

    Some variants that are shown correctly:
    John Smith
    Random J. Developer
    Random J. Developer (rjd@tld.com)
    J. Random Developer rjd@tld.com

    Variants that are shown nominally correctly:
    Written by First Last (funny-addr@somecompany.com)
    is shown as:
    First Last

    Variants that are shown incorrectly:
    Some Really Long Name
    MontaVista Software, Inc.
    are returned as:
    Long Name
    "Software, Inc"

    --roles and --rolestats show "(in file)" for matches.

    For instance:

    Without -file-emails:

    $ ./scripts/get_maintainer.pl -f -nogit -roles net/core/netpoll.c
    David S. Miller (maintainer:NETWORKING [GENERAL])
    linux-kernel@vger.kernel.org (open list)

    With -fe:

    $ ./scripts/get_maintainer.pl -f -fe -nogit -roles net/core/netpoll.c
    David S. Miller (maintainer:NETWORKING [GENERAL])
    Matt Mackall (in file)
    Ingo Molnar (in file)
    linux-kernel@vger.kernel.org (open list)
    netdev@vger.kernel.org (open list:NETWORKING [GENERAL])

    The number of email addresses in the file in not limited. Neither is the
    number of returned email addresses.

    Signed-off-by: Joe Perches
    Cc: Matt Mackall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     

01 Mar, 2010

1 commit

  • …el/git/tip/linux-2.6-tip

    * 'tracing-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (28 commits)
    ftrace: Add function names to dangling } in function graph tracer
    tracing: Simplify memory recycle of trace_define_field
    tracing: Remove unnecessary variable in print_graph_return
    tracing: Fix typo of info text in trace_kprobe.c
    tracing: Fix typo in prof_sysexit_enable()
    tracing: Remove CONFIG_TRACE_POWER from kernel config
    tracing: Fix ftrace_event_call alignment for use with gcc 4.5
    ftrace: Remove memory barriers from NMI code when not needed
    tracing/kprobes: Add short documentation for HAVE_REGS_AND_STACK_ACCESS_API
    s390: Add pt_regs register and stack access API
    tracing/kprobes: Make Kconfig dependencies generic
    tracing: Unify arch_syscall_addr() implementations
    tracing: Add notrace to TRACE_EVENT implementation functions
    ftrace: Allow to remove a single function from function graph filter
    tracing: Add correct/incorrect to sort keys for branch annotation output
    tracing: Simplify test for function_graph tracing start point
    tracing: Drop the tr check from the graph tracing path
    tracing: Add stack dump to trace_printk if stacktrace option is set
    tracing: Use appropriate perl constructs in recordmcount.pl
    tracing: optimize recordmcount.pl for offsets-handling
    ...

    Linus Torvalds
     

27 Feb, 2010

2 commits

  • I also found the -filelist option, but apparently the implementation
    is broken, and it was broken from the very first git commit.
    For the -filelist option I suggest the removal (I wasn't able to find
    any users of it, moreover it's not even listed in the
    usage() output, so presumably nobody knows about it).

    Signed-off-by: Ilya Dryomov
    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Ilya Dryomov
     
  • The problem is that $. keeps track of the current record number (which
    is line number by default). But if you pass it multiple files, it does
    not wrap at the end of file, and therefore contains the *total* number
    of processed lines.
    I suppose we can fix line numbering by introducing a simple assignment
    $. = 1
    before processing every new file.

    Signed-off-by: Ilya Dryomov
    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Ilya Dryomov
     

26 Feb, 2010

1 commit