17 Dec, 2009

1 commit

  • * 'module' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus:
    modpost: fix segfault with short symbol names
    module: handle ppc64 relocating kcrctabs when CONFIG_RELOCATABLE=y
    Kbuild: clear marker out of modpost
    module: make MODULE_SYMBOL_PREFIX into a CONFIG option
    ARM: unexport symbols used to implement floating point emulation
    ARM: use unified discard definition in linker script
    x86: don't export inline function
    sparc64: don't export static inline pci_ functions

    Linus Torvalds
     

16 Dec, 2009

3 commits

  • Restructure a bit for multiple version control systems support.

    Use a hash for each supported VCS that contains the commands
    and patterns used to find commits, logs, and signers.

    --git command line options are still used for hg except for
    --git-since. Use --hg-since instead.

    The number of commits can differ for git and hg, so --rolestats
    might be different.

    Style changes: Use common push style push(@foo...), simplify a return

    Bumped version to 0.23.

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

    Joe Perches
     
  • Fix email matching without name --n and --git-blame
    Using --non and --git-blame caused maintainer signature
    matching to fail. Fixed that by adding 3rd argument to
    sub format_email to control show/hide name portion of address
    Slurp -f file instead of reading line-by-line for K: pattern matching.
    Suggested by Wolfram Sang as more efficient
    Refactor git command execution
    Break into 2 functions, execute/analyze
    Share code between --git and --git-blame
    Don't warn multiple times when git isn't installed
    Improve stats reporting
    --git-min-percent and -- rolestats now count the total number of commits
    for either the period of --git-since or if using --git-blame the commits
    used by the current file and calculate commit % as
    # of commits signed / total commits * 100
    Code style cleaning
    Use consistent sub foo { my (args...) = @_;

    Signed-off-by: Joe Perches
    Cc: Ben Hutchings
    Cc: Greg KH
    Cc: Pavel Machek
    Cc: Wolfram Sang
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • --roles shows the role of each email address, i.e. why it was selected.
    --rolestats selects --roles and adds git log/blame signers #'s and %

    Multiple roles are possible (supporter, maintainer, git-signer...)

    --roles or --rolestats is meant to help identify appropriate maintainers
    to notify and should not be used with "git send-email --cc-cmd"

    Example output:

    Existing:

    $ ./scripts/get_maintainer.pl -f arch/x86/kernel/acpi/boot.c
    Corentin Chary
    Karol Kozimor
    Len Brown
    Pavel Machek
    Rafael J. Wysocki
    Thomas Gleixner
    Ingo Molnar
    H. Peter Anvin
    x86@kernel.org
    Yinghai Lu
    Jeremy Fitzhardinge
    acpi4asus-user@lists.sourceforge.net
    linux-pm@lists.linux-foundation.org
    linux-kernel@vger.kernel.org

    With --roles

    $ ./scripts/get_maintainer.pl --roles -f arch/x86/kernel/acpi/boot.c
    Corentin Chary (maintainer:ASUS ACPI EXTRAS...)
    Karol Kozimor (maintainer:ASUS ACPI EXTRAS...)
    Len Brown (supporter:SUSPEND TO RAM,git-signer)
    Pavel Machek (supporter:SUSPEND TO RAM)
    Rafael J. Wysocki (supporter:SUSPEND TO RAM)
    Thomas Gleixner (maintainer:X86 ARCHITECTURE...)
    Ingo Molnar (maintainer:X86 ARCHITECTURE...,git-signer)
    H. Peter Anvin (maintainer:X86 ARCHITECTURE...)
    x86@kernel.org (maintainer:X86 ARCHITECTURE...)
    Yinghai Lu (git-signer)
    Jeremy Fitzhardinge (git-signer)
    acpi4asus-user@lists.sourceforge.net (open list:ASUS ACPI EXTRAS...)
    linux-pm@lists.linux-foundation.org (open list:SUSPEND TO RAM)
    linux-kernel@vger.kernel.org (open list)

    With --rolestats

    $ ./scripts/get_maintainer.pl --rolestats -f arch/x86/kernel/acpi/boot.c
    Corentin Chary (maintainer:ASUS ACPI EXTRAS...)
    Karol Kozimor (maintainer:ASUS ACPI EXTRAS...)
    Len Brown (supporter:SUSPEND TO RAM,git-signer:16/79=20%)
    Pavel Machek (supporter:SUSPEND TO RAM)
    Rafael J. Wysocki (supporter:SUSPEND TO RAM)
    Thomas Gleixner (maintainer:X86 ARCHITECTURE...)
    Ingo Molnar (maintainer:X86 ARCHITECTURE...,git-signer:29/79=37%)
    H. Peter Anvin (maintainer:X86 ARCHITECTURE...)
    x86@kernel.org (maintainer:X86 ARCHITECTURE...)
    Yinghai Lu (git-signer:12/79=15%)
    Jeremy Fitzhardinge (git-signer:6/79=8%)
    acpi4asus-user@lists.sourceforge.net (open list:ASUS ACPI EXTRAS...)
    linux-pm@lists.linux-foundation.org (open list:SUSPEND TO RAM)
    linux-kernel@vger.kernel.org (open list)

    With --rolestats and --git-blame

    $ ./scripts/get_maintainer.pl --rolestats --git-blame -f arch/x86/kernel/acpi/boot.c
    Corentin Chary (maintainer:ASUS ACPI EXTRAS...)
    Karol Kozimor (maintainer:ASUS ACPI EXTRAS...)
    Len Brown (supporter:SUSPEND TO RAM,git-signer:16/79=20%,commits:22/154=14%)
    Pavel Machek (supporter:SUSPEND TO RAM)
    Rafael J. Wysocki (supporter:SUSPEND TO RAM)
    Thomas Gleixner (maintainer:X86 ARCHITECTURE...)
    Ingo Molnar (maintainer:X86 ARCHITECTURE...,git-signer:29/79=37%,commits:36/154=23%)
    H. Peter Anvin (maintainer:X86 ARCHITECTURE...)
    x86@kernel.org (maintainer:X86 ARCHITECTURE...)
    Yinghai Lu (git-signer:12/79=15%,commits:9/154=6%)
    Jeremy Fitzhardinge (git-signer:6/79=8%)
    Andi Kleen (commits:11/154=7%)
    Andrew Morton (commits:10/154=6%)
    acpi4asus-user@lists.sourceforge.net (open list:ASUS ACPI EXTRAS...)
    linux-pm@lists.linux-foundation.org (open list:SUSPEND TO RAM)
    linux-kernel@vger.kernel.org (open list)

    Other changes:

    Format git-signers email addresses a bit to reduce bad signatures
    Command line bad arguments emitted a verbose usage(), just show --help
    Version number bumped to .22

    Ben Hutchings had the idea and created a good deal of this implementation.

    Signed-off-by: Joe Perches
    Signed-off-by: Ben Hutchings
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     

15 Dec, 2009

3 commits

  • memcmp() is wrong here, the symbol name can be shorter than KSYMTAB_PFX
    or CRC_PFX.

    Signed-off-by: Michal Marek
    Signed-off-by: Rusty Russell

    Michal Marek
     
  • Remove the unnecessary functions and variables.

    Signed-off-by: Wenji Huang
    Signed-off-by: Michal Marek
    Signed-off-by: Rusty Russell

    Wenji Huang
     
  • The next commit will require the use of MODULE_SYMBOL_PREFIX in
    .tmp_exports-asm.S. Currently it is mixed in with C structure
    definitions in "asm/module.h". Move the definition of this arch option
    into Kconfig, so it can be easily accessed by any code.

    This also lets modpost.c use the same definition. Previously modpost
    relied on a hardcoded list of architectures in mk_elfconfig.c.

    A build test for blackfin, one of the two MODULE_SYMBOL_PREFIX archs,
    showed the generated code was unchanged. vmlinux was identical save
    for build ids, and an apparently randomized suffix on a single "__key"
    symbol in the kallsyms data).

    Signed-off-by: Alan Jenkins
    Acked-by: Mike Frysinger (blackfin)
    CC: Sam Ravnborg
    Signed-off-by: Rusty Russell

    Alan Jenkins
     

14 Dec, 2009

1 commit

  • With dynamic function tracer, by default, _mcount is defined as an
    "empty" function, it returns directly without any more action. When
    enabling it in user-space, it will jump to a real tracing
    function(ftrace_caller), and do the real job for us.

    Differ from the static function tracer, dynamic function tracer provides
    two functions ftrace_make_call()/ftrace_make_nop() to enable/disable the
    tracing of some indicated kernel functions(set_ftrace_filter).

    In the kernel version, there is only one "_mcount" string for every
    kernel function, so, we just need to match this one in mcount_regex of
    scripts/recordmcount.pl.

    For more information please look at code and Documentation/trace folder.

    Steven ACK that scripts/recordmcount.pl part.

    Acked-by: Steven Rostedt
    Signed-off-by: Michal Simek

    Michal Simek
     

12 Dec, 2009

2 commits

  • This patch fixes a bug when incrementing/decrementing on a BCD formatted
    integer (i.e. 0x09++ should be 0x10 not 0x0A). It just adds a function
    for incrementing/decrementing BCD integers by converting to decimal,
    doing the increment/decrement and then converting back to BCD.

    Signed-off-by: Nathaniel McCallum
    Signed-off-by: Greg Kroah-Hartman

    Nathaniel McCallum
     
  • The current code to generate usb modaliases from usb_device_id assumes
    that the device's bcdDevice descriptor will actually be in BCD format.
    While this should be a sane assumption, some devices don't follow spec
    and just use plain old hex. This causes drivers for these devices to
    generate invalid modalias lines which will never actually match for the
    hardware.

    The following patch adds hex support for bcdDevice in file2alias.c by
    detecting when a driver uses a hex formatted bcdDevice_(lo|hi) and
    adjusts the output to hex format accordingly.

    Drivers for devices which have bcdDevice conforming to BCD will have no
    change in modalias output. Drivers for devices which don't conform
    (i.e. ibmcam) should now generate valid modaliases.

    EXAMPLE OUTPUT (ibmcam; space added to highlight change)
    Old: usb:v0545p800D d030[10-9] dc*dsc*dp*ic*isc*ip*
    New: usb:v0545p800D d030a dc*dsc*dp*ic*isc*ip*

    Signed-off-by: Nathaniel McCallum
    Signed-off-by: Greg Kroah-Hartman

    Nathaniel McCallum
     

08 Dec, 2009

1 commit


06 Dec, 2009

2 commits

  • …git/tip/linux-2.6-tip

    * 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (470 commits)
    x86: Fix comments of register/stack access functions
    perf tools: Replace %m with %a in sscanf
    hw-breakpoints: Keep track of user disabled breakpoints
    tracing/syscalls: Make syscall events print callbacks static
    tracing: Add DEFINE_EVENT(), DEFINE_SINGLE_EVENT() support to docbook
    perf: Don't free perf_mmap_data until work has been done
    perf_event: Fix compile error
    perf tools: Fix _GNU_SOURCE macro related strndup() build error
    trace_syscalls: Remove unused syscall_name_to_nr()
    trace_syscalls: Simplify syscall profile
    trace_syscalls: Remove duplicate init_enter_##sname()
    trace_syscalls: Add syscall_nr field to struct syscall_metadata
    trace_syscalls: Remove enter_id exit_id
    trace_syscalls: Set event_enter_##sname->data to its metadata
    trace_syscalls: Remove unused event_syscall_enter and event_syscall_exit
    perf_event: Initialize data.period in perf_swevent_hrtimer()
    perf probe: Simplify event naming
    perf probe: Add --list option for listing current probe events
    perf probe: Add argv_split() from lib/argv_split.c
    perf probe: Move probe event utility functions to probe-event.c
    ...

    Linus Torvalds
     
  • …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: (40 commits)
    tracing: Separate raw syscall from syscall tracer
    ring-buffer-benchmark: Add parameters to set produce/consumer priorities
    tracing, function tracer: Clean up strstrip() usage
    ring-buffer benchmark: Run producer/consumer threads at nice +19
    tracing: Remove the stale include/trace/power.h
    tracing: Only print objcopy version warning once from recordmcount
    tracing: Prevent build warning: 'ftrace_graph_buf' defined but not used
    ring-buffer: Move access to commit_page up into function used
    tracing: do not disable interrupts for trace_clock_local
    ring-buffer: Add multiple iterations between benchmark timestamps
    kprobes: Sanitize struct kretprobe_instance allocations
    tracing: Fix to use __always_unused attribute
    compiler: Introduce __always_unused
    tracing: Exit with error if a weak function is used in recordmcount.pl
    tracing: Move conditional into update_funcs() in recordmcount.pl
    tracing: Add regex for weak functions in recordmcount.pl
    tracing: Move mcount section search to front of loop in recordmcount.pl
    tracing: Fix objcopy revision check in recordmcount.pl
    tracing: Check absolute path of input file in recordmcount.pl
    tracing: Correct the check for number of arguments in recordmcount.pl
    ...

    Linus Torvalds
     

04 Dec, 2009

1 commit

  • That is "success", "unknown", "through", "performance", "[re|un]mapping"
    , "access", "default", "reasonable", "[con]currently", "temperature"
    , "channel", "[un]used", "application", "example","hierarchy", "therefore"
    , "[over|under]flow", "contiguous", "threshold", "enough" and others.

    Signed-off-by: André Goddard Rosa
    Signed-off-by: Jiri Kosina

    André Goddard Rosa
     

03 Dec, 2009

1 commit


02 Dec, 2009

1 commit

  • The introduction of the new 'DECLARE_EVENT_CLASS()' obviates the
    need for the 'TRACE_EVENT()' macro in some cases. Thus, docbook
    style comments that used to live with 'TRACE_EVENT()' are now
    moved to 'DEFINE_EVENT()'. Thus, we need to make the docbook
    system understand the new 'DEFINE_EVENT()' macro. In addition
    I've tried to futureproof the patch, by also adding support for
    'DEFINE_SINGLE_EVENT()', since there has been discussion about
    renaming: TRACE_EVENT() -> DEFINE_SINGLE_EVENT().

    Without this patch the tracepoint docbook fails to build.

    I've verified that this patch correctly builds the tracepoint
    docbook which currently covers signals, and irqs.

    Changes in v2:
    - properly indent perl 'if' statements

    Signed-off-by: Jason Baron
    Acked-by: Steven Rostedt
    Acked-by: Randy Dunlap
    Cc: William Cohen
    Cc: Frederic Weisbecker
    Cc: Mathieu Desnoyers
    Cc: Masami Hiramatsu
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Jason Baron
     

23 Nov, 2009

1 commit

  • If a permission name is long enough the selinux class definition generation
    tool will go into a infinite loop. This is because it's macro max() is
    fooled into thinking it is dealing with unsigned numbers. This patch makes
    sure the macro always uses signed number so 1 > -1.

    Signed-off-by: Eric Paris
    Signed-off-by: James Morris

    Eric Paris
     

20 Nov, 2009

1 commit

  • When the output directory is something other than the kernel source,
    the streamline_config script gets confused. This patch passes in the
    source directory to the script so that it can find the proper files.

    Reported-by: Peter Zijlstra
    Tested-by: Peter Zijlstra
    Signed-off-by: Steven Rostedt

    Steven Rostedt
     

19 Nov, 2009

1 commit

  • scripts/selinux/genheaders/genheaders.c:20: warning: no previous prototype
    for ?usage?
    scripts/selinux/genheaders/genheaders.c:26: warning: no previous prototype
    for ?stoupperx?

    Signed-off-by: Alan Cox
    Acked-by: WANG Cong
    Signed-off-by: James Morris

    Alan Cox
     

18 Nov, 2009

2 commits

  • …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
     
  • If the user has an older version of objcopy, that can not handle
    converting local symbols to global and vice versa, then some
    functions will not be part of the dynamic function tracer. The current
    code in recordmcount.pl will print a warning in this case. Unfortunately,
    there exists lots of files that may have this issue with older objcopys
    and this will cause a warning for every file compiled with this
    issue.

    This patch solves this overwhelming output by creating a
    .tmp_quiet_recordmcount file on the first instance the warning is
    encountered. The warning will not print if this file exists.

    The temp file is deleted at the beginning of the compile to ensure that
    the warning will happen once again on new compiles (because the issue
    is still present).

    Reported-by: Andrew Morton
    Cc: Sam Ravnborg
    Signed-off-by: Steven Rostedt

    Steven Rostedt
     

16 Nov, 2009

4 commits


15 Nov, 2009

1 commit


12 Nov, 2009

1 commit


04 Nov, 2009

1 commit


30 Oct, 2009

8 commits


29 Oct, 2009

4 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