06 Jan, 2019

1 commit

  • Currently, CONFIG_JUMP_LABEL just means "I _want_ to use jump label".

    The jump label is controlled by HAVE_JUMP_LABEL, which is defined
    like this:

    #if defined(CC_HAVE_ASM_GOTO) && defined(CONFIG_JUMP_LABEL)
    # define HAVE_JUMP_LABEL
    #endif

    We can improve this by testing 'asm goto' support in Kconfig, then
    make JUMP_LABEL depend on CC_HAS_ASM_GOTO.

    Ugly #ifdef HAVE_JUMP_LABEL will go away, and CONFIG_JUMP_LABEL will
    match to the real kernel capability.

    Signed-off-by: Masahiro Yamada
    Acked-by: Michael Ellerman (powerpc)
    Tested-by: Sedat Dilek

    Masahiro Yamada
     

02 Nov, 2017

1 commit

  • Many source files in the tree are missing licensing information, which
    makes it harder for compliance tools to determine the correct license.

    By default all files without license information are under the default
    license of the kernel, which is GPL version 2.

    Update the files which contain no license information with the 'GPL-2.0'
    SPDX license identifier. The SPDX identifier is a legally binding
    shorthand, which can be used instead of the full boiler plate text.

    This patch is based on work done by Thomas Gleixner and Kate Stewart and
    Philippe Ombredanne.

    How this work was done:

    Patches were generated and checked against linux-4.14-rc6 for a subset of
    the use cases:
    - file had no licensing information it it.
    - file was a */uapi/* one with no licensing information in it,
    - file was a */uapi/* one with existing licensing information,

    Further patches will be generated in subsequent months to fix up cases
    where non-standard license headers were used, and references to license
    had to be inferred by heuristics based on keywords.

    The analysis to determine which SPDX License Identifier to be applied to
    a file was done in a spreadsheet of side by side results from of the
    output of two independent scanners (ScanCode & Windriver) producing SPDX
    tag:value files created by Philippe Ombredanne. Philippe prepared the
    base worksheet, and did an initial spot review of a few 1000 files.

    The 4.13 kernel was the starting point of the analysis with 60,537 files
    assessed. Kate Stewart did a file by file comparison of the scanner
    results in the spreadsheet to determine which SPDX license identifier(s)
    to be applied to the file. She confirmed any determination that was not
    immediately clear with lawyers working with the Linux Foundation.

    Criteria used to select files for SPDX license identifier tagging was:
    - Files considered eligible had to be source code files.
    - Make and config files were included as candidates if they contained >5
    lines of source
    - File already had some variant of a license header in it (even if
    Reviewed-by: Philippe Ombredanne
    Reviewed-by: Thomas Gleixner
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

20 Aug, 2014

1 commit


08 Jan, 2014

1 commit

  • As commit a9468f30b5eac6 "ARM: 7333/2: jump label: detect %c
    support for ARM", this patch detects the same thing for ARM64
    because some ARM64 GCC versions have the same issue.

    Some versions of ARM64 GCC which do support asm goto, do not
    support the %c specifier. Since we need the %c to support jump
    labels on ARM64, detect that too in the asm goto detection script
    to avoid build errors with these versions.

    Acked-by: Will Deacon
    Signed-off-by: Jiang Liu
    Signed-off-by: Catalin Marinas

    Jiang Liu
     

24 Mar, 2012

1 commit

  • Some versions of ARM GCC which do support asm goto, do not support
    the %c specifier. Since we need the %c to support jump labels
    on ARM, detect that too in the asm goto detection script to avoid
    build errors with these versions.

    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48637

    Acked-by: Jason Baron
    Signed-off-by: Rabin Vincent
    Signed-off-by: Russell King

    Rabin Vincent
     

16 Jun, 2011

1 commit


24 Sep, 2010

1 commit

  • The following build bug occurs on distcc builds:

    CC arch/x86/kernel/asm-offsets.s
    In file included from include/linux/module.h:24,
    from include/linux/crypto.h:22,
    from arch/x86/kernel/asm-offsets_64.c:9,
    from arch/x86/kernel/asm-offsets.c:5:
    include/trace/events/module.h: In function 'trace_module_load':
    include/trace/events/module.h:18: error: expected '(' before 'goto'
    include/trace/events/module.h:18: error: expected identifier or '*' before '(' token

    It triggers because distcc is invoked by turning $CC into "distcc gcc",
    but gcc-goto.sh check script was using $1 not $@ to expand parameters.

    Cc: Jason Baron
    Cc: Steven Rostedt
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Ingo Molnar
     

23 Sep, 2010

1 commit

  • base patch to implement 'jump labeling'. Based on a new 'asm goto' inline
    assembly gcc mechanism, we can now branch to labels from an 'asm goto'
    statment. This allows us to create a 'no-op' fastpath, which can subsequently
    be patched with a jump to the slowpath code. This is useful for code which
    might be rarely used, but which we'd like to be able to call, if needed.
    Tracepoints are the current usecase that these are being implemented for.

    Acked-by: David S. Miller
    Signed-off-by: Jason Baron
    LKML-Reference:

    [ cleaned up some formating ]

    Signed-off-by: Steven Rostedt

    Jason Baron