30 Apr, 2013

12 commits

  • …t/rostedt/linux-kconfig

    Pull localmodconfig changes from Steven Rostedt:
    "A bug was recently found in the make localmodconfig where it would
    miss dependencies of config files are include in other config files
    inside an if statement.

    Also added a debug print that helped in solving this bug."

    * tag 'localmodconfig-v3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-kconfig:
    localmodconfig: Process source kconfig files as they are found
    localmodconfig: Add debug prints for dependencies of module configs

    Linus Torvalds
     
  • As people started using Suggested-by as standard signature, adding
    "Suggested-by" to the standard signature so that checkpatch won't
    generate warning when Suggested-by is used in patch signature

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

    Mugunthan V N
     
  • This check was intended to catch extra newlines at the end of a function
    definition, but it would trigger on any closing brace, including those
    of inline functions and macro definitions, triggering false positives.
    Now, only closing braces on a line by themselves trigger this check.

    Tested with:

    $ cat test.h
    /* test.h - Test file */

    static inline int foo(void) { return 0; }

    static inline int bar(void)
    {
    return 1;

    }

    $ ./scripts/checkpatch.pl --strict -f test.h # Before this commit
    CHECK: Blank lines aren't necessary before a close brace '}'
    +
    +static inline int foo(void) { return 0; }

    CHECK: Blank lines aren't necessary before a close brace '}'
    +
    +}

    total: 0 errors, 0 warnings, 2 checks, 9 lines checked

    $ ./scripts/checkpatch.pl --strict -f test.h # After this commit
    CHECK: Blank lines aren't necessary before a close brace '}'
    +
    +}

    total: 0 errors, 0 warnings, 1 checks, 9 lines checked

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

    Matthijs Kooijman
     
  • Make space before semicolon a warning instead of a --strict CHK test.

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

    Joe Perches
     
  • Complain about files with an executable bit set that are not in a scripts/
    directory and are not type .pl, .py, .awk, or .sh

    Based on an initial patch from Stephen.

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

    Joe Perches
     
  • Add a check for seq_printf use with a constant format without additional
    arguments. Suggest seq_puts instead.

    Signed-off-by: Joe Perches
    Suggested-by: Bjorn Helgaas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • On Thu, 2013-03-14 at 13:30 +0000, David Woodhouse wrote:
    > If krealloc() returns NULL, it *doesn't* free the original. So any code
    > of the form 'foo = krealloc(foo, …);' is almost certainly a bug.

    So add a check for it to checkpatch.

    Signed-off-by: Joe Perches
    Tested-by: Guenter Roeck
    Acked-by: Guenter Roeck
    Cc: David Woodhouse
    Cc: Andy Whitcroft
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • Create a new N: entry type in MAINTAINERS which performs a regex match
    against filenames; either those extracted from patch +++ or --- lines,
    or those specified on the command-line using the -f option.

    This provides the same benefits as using a K: regex option to match a
    set of filenames (see commit eb90d0855b75 "get_maintainer: allow
    keywords to match filenames"), but without the disadvantage that
    "random" file content, such as comments, will ever match the regex.
    Hence, revert most of that commit.

    Switch the Tegra entry from using K: to N:

    [akpm@linux-foundation.org: fix typo in docs, per Marcin]
    Reported-by: Marcin Slusarz
    Suggested-by: Joe Perches
    Signed-off-by: Stephen Warren
    Acked-by: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Warren
     
  • It can accidentally happen that the faulting insn (the exact instruction
    bytes) is repeated a little further on in the trace. This causes that
    same instruction to be tagged twice, see example below.

    What we want to do, however, is to track back from the end of the whole
    disassembly so many lines as the slice which starts with the faulting
    instruction is long. This leads us to the actual faulting instruction
    and *then* we tag it.

    While we're at it, we can drop the sed "g" flag because we address only
    this one line.

    Also, if we point to an instruction which changes decoding depending on
    the slice being objdumped, like a Jcc insn, for example, we do not even
    tag it as a faulting instruction because the instruction decode changes
    in the second slice but we use that second format as a regex on the
    fsrst disassembled buffer and more often than not that instruction
    doesn't match.

    Again, simply tag the line which is deduced from the original "<>"
    marking we've received from the kernel.

    This also solves the pathologic issue of multiple tagging like this:

    29:* 0f 0b ud2 39 48 08 75 0e eb 2a 66 90 48 8b 40 f0 48 39 48 08 74 1e 48
    All code
    ========
    0: 34 dd xor $0xdd,%al
    2: 40 30 ad 81 48 c7 c0 xor %bpl,-0x3f38b77f(%rbp)
    9: 80 f6 00 xor $0x0,%dh
    c: 00 48 8b add %cl,-0x75(%rax)
    f: 3c 30 cmp $0x30,%al
    11: 48 01 c6 add %rax,%rsi
    14: b8 ff ff ff ff mov $0xffffffff,%eax
    19: 48 8d 57 f0 lea -0x10(%rdi),%rdx
    1d: 48 39 f7 cmp %rsi,%rdi
    20: 74 2f je 0x51
    22: 49 8b 4c 24 08 mov 0x8(%r12),%rcx
    27: 48 8b 47 f0 mov -0x10(%rdi),%rax
    2b:* 48 39 48 08 cmp %rcx,0x8(%rax)
    Cc: "H. Peter Anvin"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Borislav Petkov
     
  • A bug was reported that caused localmodconfig to not keep all the
    dependencies of ATH9K. This was caused by the kconfig file:

    In drivers/net/wireless/ath/Kconfig:

    ---
    if ATH_CARDS

    config ATH_DEBUG
    bool "Atheros wireless debugging"
    ---help---
    Say Y, if you want to debug atheros wireless drivers.
    Right now only ath9k makes use of this.

    source "drivers/net/wireless/ath/ath5k/Kconfig"
    source "drivers/net/wireless/ath/ath9k/Kconfig"
    source "drivers/net/wireless/ath/carl9170/Kconfig"
    source "drivers/net/wireless/ath/ath6kl/Kconfig"
    source "drivers/net/wireless/ath/ar5523/Kconfig"
    source "drivers/net/wireless/ath/wil6210/Kconfig"

    endif
    ---

    The current way kconfig works, it processes new source files after the
    first file is completed. It creates an array of new source config files
    and when the one file is finished, it continues with the next file.

    Unfortunately, this means that it loses the fact that the source file is
    within an "if" statement, and this means that each of these source file's
    configs will not have the proper dependencies set.

    As ATH9K requires ATH_CARDS set, the localmodconfig did not see that
    dependency, and did not enable ATH_CARDS. When the oldconfig was run, it
    forced ATH9K to be disabled.

    Link: http://lkml.kernel.org/r/alpine.DEB.2.02.1304291022320.9234@oneiric

    Cc: stable@vger.kernel.org # 3.8+
    Reported-by: Robert P. J. Day
    Tested-by: Robert P. J. Day
    Signed-off-by: Steven Rostedt

    Steven Rostedt
     
  • When a config for a module is added to the list to save in the final
    config file, add a print to show what dependencies are used. This is
    useful to debug when a config is disabled by the make oldconfig after
    localmodconfig is finished.

    This print only appears if the environment variable LOCALMODCONFIG_DEBUG
    is defined.

    Signed-off-by: Steven Rostedt

    Steven Rostedt
     
  • Pull char/misc driver update from Greg Kroah-Hartman:
    "Here's the big char / misc driver update for 3.10-rc1

    A number of various driver updates, the majority being new
    functionality in the MEI driver subsystem (it's now a subsystem, it
    started out just a single driver), extcon updates, memory updates,
    hyper-v updates, and a bunch of other small stuff that doesn't fit in
    any other tree.

    All of these have been in linux-next for a while"

    * tag 'char-misc-3.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (148 commits)
    Tools: hv: Fix a checkpatch warning
    tools: hv: skip iso9660 mounts in hv_vss_daemon
    tools: hv: use FIFREEZE/FITHAW in hv_vss_daemon
    tools: hv: use getmntent in hv_vss_daemon
    Tools: hv: Fix a checkpatch warning
    tools: hv: fix checks for origin of netlink message in hv_vss_daemon
    Tools: hv: fix warnings in hv_vss_daemon
    misc: mark spear13xx-pcie-gadget as broken
    mei: fix krealloc() misuse in in mei_cl_irq_read_msg()
    mei: reduce flow control only for completed messages
    mei: reseting -> resetting
    mei: fix reading large reposnes
    mei: revamp mei_irq_read_client_message function
    mei: revamp mei_amthif_irq_read_message
    mei: revamp hbm state machine
    Revert "drivers/scsi: use module_pcmcia_driver() in pcmcia drivers"
    Revert "scsi: pcmcia: nsp_cs: remove module init/exit function prototypes"
    scsi: pcmcia: nsp_cs: remove module init/exit function prototypes
    mei: wd: fix line over 80 characters
    misc: tsl2550: Use dev_pm_ops
    ...

    Linus Torvalds
     

18 Apr, 2013

1 commit

  • Fix checkpatch misreporting defect with stringification macros

    ERROR: Macros with complex values should be enclosed in parenthesis
    #27: FILE: arch/arm/include/asm/kgdb.h:41:
    +#define ___to_string(X) #X

    Signed-off-by: Joe Perches
    Reported-by: Vincent Stehlé
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     

29 Mar, 2013

1 commit

  • mei client bus will present some of the mei clients
    as devices for other standard subsystems

    Implement the probe, remove, match, device addtion routines, along with
    the sysfs and uevent ones. mei_cl_device_id is also added to
    mod_devicetable.h
    A mei-cleint-bus.txt document describing the rationale and the API usage
    is also added while ABI/testing/sysfs-bus-mei describeis the modalias ABI.

    Signed-off-by: Samuel Ortiz
    Signed-off-by: Tomas Winkler
    Signed-off-by: Greg Kroah-Hartman

    Samuel Ortiz
     

16 Mar, 2013

1 commit


05 Mar, 2013

1 commit

  • Commit 10b63956 ("UAPI: Plumb the UAPI Kbuilds into the user header
    installation and checking") introduced a dependency of make 3.81
    due to use of $(or ...)

    We do not want to lift the requirement to gmake 3.81 just yet...
    Included are a straightforward conversion to $(if ...)

    Bisected-and-tested-by: Tetsuo Handa
    Cc: David Howells
    Signed-off-by: Sam Ravnborg
    Cc: [v3.7+]
    Signed-off-by: Michal Marek

    Sam Ravnborg
     

04 Mar, 2013

1 commit

  • Pull new ImgTec Meta architecture from James Hogan:
    "This adds core architecture support for Imagination's Meta processor
    cores, followed by some later miscellaneous arch/metag cleanups and
    fixes which I kept separate to ease review:

    - Support for basic Meta 1 (ATP) and Meta 2 (HTP) core architecture
    - A few fixes all over, particularly for symbol prefixes
    - A few privilege protection fixes
    - Several cleanups (setup.c includes, split out a lot of
    metag_ksyms.c)
    - Fix some missing exports
    - Convert hugetlb to use vm_unmapped_area()
    - Copy device tree to non-init memory
    - Provide dma_get_sgtable()"

    * tag 'metag-v3.9-rc1-v4' of git://git.kernel.org/pub/scm/linux/kernel/git/jhogan/metag: (61 commits)
    metag: Provide dma_get_sgtable()
    metag: prom.h: remove declaration of metag_dt_memblock_reserve()
    metag: copy devicetree to non-init memory
    metag: cleanup metag_ksyms.c includes
    metag: move mm/init.c exports out of metag_ksyms.c
    metag: move usercopy.c exports out of metag_ksyms.c
    metag: move setup.c exports out of metag_ksyms.c
    metag: move kick.c exports out of metag_ksyms.c
    metag: move traps.c exports out of metag_ksyms.c
    metag: move irq enable out of irqflags.h on SMP
    genksyms: fix metag symbol prefix on crc symbols
    metag: hugetlb: convert to vm_unmapped_area()
    metag: export clear_page and copy_page
    metag: export metag_code_cache_flush_all
    metag: protect more non-MMU memory regions
    metag: make TXPRIVEXT bits explicit
    metag: kernel/setup.c: sort includes
    perf: Enable building perf tools for Meta
    metag: add boot time LNKGET/LNKSET check
    metag: add __init to metag_cache_probe()
    ...

    Linus Torvalds
     

03 Mar, 2013

3 commits


28 Feb, 2013

7 commits

  • Merge third patch-bumb from Andrew Morton:
    "This wraps me up for -rc1.
    - Lots of misc stuff and things which were deferred/missed from
    patchbombings 1 & 2.
    - ocfs2 things
    - lib/scatterlist
    - hfsplus
    - fatfs
    - documentation
    - signals
    - procfs
    - lockdep
    - coredump
    - seqfile core
    - kexec
    - Tejun's large IDR tree reworkings
    - ipmi
    - partitions
    - nbd
    - random() things
    - kfifo
    - tools/testing/selftests updates
    - Sasha's large and pointless hlist cleanup"

    * emailed patches from Andrew Morton : (163 commits)
    hlist: drop the node parameter from iterators
    kcmp: make it depend on CHECKPOINT_RESTORE
    selftests: add a simple doc
    tools/testing/selftests/Makefile: rearrange targets
    selftests/efivarfs: add create-read test
    selftests/efivarfs: add empty file creation test
    selftests: add tests for efivarfs
    kfifo: fix kfifo_alloc() and kfifo_init()
    kfifo: move kfifo.c from kernel/ to lib/
    arch Kconfig: centralise CONFIG_ARCH_NO_VIRT_TO_BUS
    w1: add support for DS2413 Dual Channel Addressable Switch
    memstick: move the dereference below the NULL test
    drivers/pps/clients/pps-gpio.c: use devm_kzalloc
    Documentation/DMA-API-HOWTO.txt: fix typo
    include/linux/eventfd.h: fix incorrect filename is a comment
    mtd: mtd_stresstest: use prandom_bytes()
    mtd: mtd_subpagetest: convert to use prandom library
    mtd: mtd_speedtest: use prandom_bytes
    mtd: mtd_pagetest: convert to use prandom library
    mtd: mtd_oobtest: convert to use prandom library
    ...

    Linus Torvalds
     
  • Allow K: entries in MAINTAINERS to match directly against filenames;
    either those extracted from patch +++ or --- lines, or those specified
    on the command-line using the -f option.

    This potentially allows fewer lines in a MAINTAINERS entry, if all the
    relevant files are scattered throughout the whole kernel tree, yet
    contain some common keyword. An example would be using an ARM SoC name
    as the keyword to catch all related drivers.

    I don't think setting exact_pattern_match_hash would be appropriate
    here; at least for intended Tegra use case, this feature is to ensure
    that all Tegra-related driver changes get Cc'd to the Tegra mailing
    list. Setting exact_pattern_match_hash would prevent git history
    parsing for e.g. S-o-b tags, which still seems like it would be useful.
    Hence, this flag isn't set.

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

    Stephen Warren
     
  • Commit ef5da59f1260 ("scripts/kernel-doc: handle struct member
    __aligned") permits "char something [123] __aligned(8);".

    However, by using \d we constraint ourselves with integers. This is not
    always the case. In fact, it might be better to do char something[123]
    __aligned(sizeof(u16));

    For example, With wireless_dev defining:

    u8 address[ETH_ALEN] __aligned(sizeof(u16));

    With \d, scripts/kernel-doc erroneously says:

    Warning(include/net/cfg80211.h:2618): Excess struct/union/enum/typedef member 'address' description in 'wireless_dev'

    This is because the regex __aligned\s*\(\d+\) fails match at \d as
    sizeof is used.

    So replace \d with . to indicate "something" in kernel-doc to ignore
    __aligned(SOMETHING) in structs. With this change, we can use integers
    OR sizeof() or macros as we please.

    Signed-off-by: Nishanth Menon
    Cc: Fengguang Wu
    Cc: Johannes Berg
    Cc: Randy Dunlap
    Cc: Michal Marek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nishanth Menon
     
  • Add the ClearPage/SetPage/TestClearPage/TestSetPage variants to the not
    reported Page CamelCase variables.

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

    Joe Perches
     
  • Pull kconfig changes from Michal Marek:
    "I forgot to send a pull request in time for the v3.8-rc1 merge window,
    so the list is a bit longer this time:

    - menuconfig enables extended colors in ncurses if the wide-character
    version is used.

    - CONFIG_ prefix can be specified in the environment to make life
    easier for people using kconfig multiple times in a single tree (no
    functional change in the kernel kconfig usage).

    - kconfig aborts on OOM.

    - inputboxes in menuconfig allow to move the cursor.

    - menuconfig has Save/Load buttons now.

    - xconfig build fix with new g++ and Qt3.

    - nconfig color scheme fix and help text update.

    - make oldconfig prints newlines when output is redirected.

    - some other minor fixes."

    * 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    kbuild: Fix missing '\n' for NEW symbols in yes "" | make oldconfig >conf.new
    kconfig: nconf: rewrite labels of function keys line
    kconfig: nconf: rewrite help texts
    kconfig: fix a compiliation error when using make xconfig
    nconf: function keys line, change background color for better readability
    menuconfig: Get rid of the top-level entries for "Load an Alternate/Save an Alternate"
    menuconfig: Add Save/Load buttons
    kconfig:lxdialog: remove duplicate code
    menuconfig:inputbox: support navigate input position
    kconfig: document use of CONFIG_ environment variable
    scripts/kconfig: ensure we use proper CONFIG_ prefix
    merge_config.sh: Add option to specify output dir
    Revert "kconfig-language: add to hints"
    kconfig: Regenerate lexer
    kconfig: Fix malloc handling in conf tools
    kconfig: get CONFIG_ prefix from the environment
    kconfig: add a function to get the CONFIG_ prefix
    kconfig: remove CONFIG_ from string constants
    menuconfig: fix extended colors ncurses support

    Linus Torvalds
     
  • Pull misc non-critical kbuild changes from Michal Marek:

    - Fix for make TAGS

    - Fix for make rpm

    - Some new coccinelle semantic patches

    * 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    scripts/coccinelle: find constant additions that could be bit ors
    coccicheck: Allow to show the executed command line
    coccicheck: Allow the user to give a V= (verbose) argument
    scripts/coccinelle/misc/memcpy-assign.cocci: Replace memcpy with struct assignment
    kbuild: clear KBUILD_SRC when calling 'make' in RPM spec
    scripts/coccinelle/misc/semicolon.cocci: Add unneeded semicolon test
    scripts/tags.sh: Fix regex syntax for etags

    Linus Torvalds
     
  • Pull kbuild changes from Michal Marek:

    - Alias generation in modpost is cross-compile safe.

    - kernel/timeconst.h is now generated using a bc script instead of
    perl.

    - scripts/link-vmlinux.sh now works with an alternative
    $KCONFIG_CONFIG.

    - destination-y for exported headers is supported in Kbuild files
    again.

    - depmod is called with -P $CONFIG_SYMBOL_PREFIX on architectures that
    need it.

    - CONFIG_DEBUG_INFO_REDUCED disables var-tracking

    - scripts/setlocalversion works with too much translated locales ;)

    * 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    kbuild: Fix reading of .config in link-vmlinux.sh
    kbuild: Unset language specific variables in setlocalversion script
    Kbuild: Disable var tracking with CONFIG_DEBUG_INFO_REDUCED
    depmod: pass -P $CONFIG_SYMBOL_PREFIX
    kbuild: Fix destination-y for installed headers
    scripts/link-vmlinux.sh: source variables from KCONFIG_CONFIG
    kernel: Replace timeconst.pl with a bc script
    mod/file2alias: make modalias generation safe for cross compiling

    Linus Torvalds
     

26 Feb, 2013

2 commits

  • Pull module update from Rusty Russell:
    "The sweeping change is to make add_taint() explicitly indicate whether
    to disable lockdep, but it's a mechanical change."

    * tag 'modules-next-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux:
    MODSIGN: Add option to not sign modules during modules_install
    MODSIGN: Add -s option to sign-file
    MODSIGN: Specify the hash algorithm on sign-file command line
    MODSIGN: Simplify Makefile with a Kconfig helper
    module: clean up load_module a little more.
    modpost: Ignore ARC specific non-alloc sections
    module: constify within_module_*
    taint: add explicit flag to show whether lock dep is still OK.
    module: printk message when module signature fail taints kernel.

    Linus Torvalds
     
  • There is one kconfig fix in the rc-fixes branch that I forgot to submit
    for 3.8, so let's add it to the kconfig branch for 3.9-rc1.

    Michal Marek
     

25 Feb, 2013

1 commit

  • The shell '.' command is not required to search the current directory as
    a fallback and in fact newer versions of bash in sh-mode do not do this.
    Force reading the file from the current directory if $KCONFIG_CONFIG
    contains no '/'.

    Reported-by: Stephen Rothwell
    Signed-off-by: Michal Marek

    Michal Marek
     

22 Feb, 2013

10 commits

  • Semantic patch (http://coccinelle.lip6.fr/) to check for constants that are
    added but are used elsewhere as bitmasks.

    Signed-off-by: Julia Lawall
    Signed-off-by: Michal Marek

    Julia Lawall
     
  • On my system one of the tests failed with
    "Fatal error: exception Failure("No OCaml compiler found! Install either ocamlopt or ocamlopt.opt")".

    Investigating such issues is easier if the executed command line is
    being shown.

    Signed-off-by: Bernd Schubert
    CC: Julia Lawall
    Acked-by: Nicolas Palix
    Signed-off-by: Michal Marek

    Bernd Schubert
     
  • This patch allows the use of setlocalversion script regardless of the language
    parameters. Otherwise, the `svn info 2>/dev/null | grep '^Last Changed Rev'`
    returns nothing because for instance, in French the text 'Last Changed Rev'
    is replaced by 'Révision de la dernière modification'

    Signed-off-by: Christophe Leroy
    Signed-off-by: Michal Marek

    Christophe Leroy
     
  • On architectures which have symbol prefixes, depmod emits lots of
    warnings like this:

    WARNING: $module.ko needs unknown symbol $symbol

    This is because depmod isn't being passed the -P
    arguments to specify the symbol prefix to ignore. This option is
    included since the 3.13 release of module-init-tools.

    Update scripts/depmod.sh to take extra arguments for the symbol prefix
    (required but may be empty), and update the main Makefile to always pass
    "$(CONFIG_SYMBOL_PREFIX)" to scripts/depmod.sh.

    If the provided symbol prefix is non-empty, scripts/depmod.sh checks if
    depmod --version reports module-init-tools with a version number < 3.13
    otherwise it appends -P $SYMBOL_PREFIX to the depmod command line.

    Signed-off-by: James Hogan
    Cc: Michal Marek
    Cc: linux-kbuild@vger.kernel.org
    Cc: Mike Frysinger
    Cc: Yoshinori Sato
    Cc: uclinux-dist-devel@blackfin.uclinux.org
    Signed-off-by: Michal Marek

    James Hogan
     
  • Commit 10b63956fce7f369cc37fd4d994f09bd5203efe4 which plumbed in UAPI
    broke the destination-y functionality of scripts/Makefile.headersinst.

    The variable destination-y is used in a := assignment and so is expanded at
    declaration time, and the include of the Kbuild fragments that set
    destination-y to something is after this time, so it now always expands empty.

    There are no in-tree users of destination-y, but it allows any
    Kbuild-fragment to redirect where headers are installed.

    Just move the assignment of the variable that uses it below the include
    of the Kbuild fragment.

    Signed-off-by: Jesper Nilsson
    Cc: Michal Marek
    Cc: David Howells
    Signed-off-by: Michal Marek

    Jesper Nilsson
     
  • Do not run with verbosity on/off depending on the ONLINE variable,
    which gets set with C=1 or C=2, but allow the user to set the
    verbosity using kernel default make V= paramemter.
    Verbosity is off by default now.

    Signed-off-by: Bernd Schubert
    CC: Julia Lawall
    Acked-by: Nicolas Palix
    Signed-off-by: Michal Marek

    Bernd Schubert
     
  • There are error-prone memcpy() that can be replaced by struct
    assignment that are type-safe and much easier to read. This semantic
    patch looks for memcpy() that can be replaced by struct assignment.

    Inspired by patches sent by Ezequiel Garcia

    Signed-off-by: Peter Senna Tschudin
    Signed-off-by: Michal Marek

    Peter Senna Tschudin
     
  • 'make rpm-pkg' and 'make binrpm-pkg' fail when the kernel source is
    read-only. Specifically, when the RPM spec generated by
    scripts/package/mkspec is run, KBUILD_SRC happens to be set to the
    source location and thus the invocation of 'make headers_install'
    fails when an internal call to 'filechk' tries to write a file into
    the source tree.

    The fix is to clear KBUILD_SRC for the 'make headers_install'
    invocation in the spec file, as is already done for the 'make
    modules_install' invocation.

    Signed-off-by: David R. Bild
    Signed-off-by: Michal Marek

    David R. Bild
     
  • Its possible to superseed the config file with KCONFIG_CONFIG and have
    completely no .config in the tree. The current script is sourcing
    .config in every case, so the kernel will never build succesfully. This
    patch fixes that issue by sourcing KCONFIG_CONFIG instead.

    Signed-off-by: Michael Grzeschik
    Signed-off-by: Michal Marek

    Michael Grzeschik
     
  • Pull trivial tree from Jiri Kosina:
    "Assorted tiny fixes queued in trivial tree"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (22 commits)
    DocBook: update EXPORT_SYMBOL entry to point at export.h
    Documentation: update top level 00-INDEX file with new additions
    ARM: at91/ide: remove unsused at91-ide Kconfig entry
    percpu_counter.h: comment code for better readability
    x86, efi: fix comment typo in head_32.S
    IB: cxgb3: delay freeing mem untill entirely done with it
    net: mvneta: remove unneeded version.h include
    time: x86: report_lost_ticks doesn't exist any more
    pcmcia: avoid static analysis complaint about use-after-free
    fs/jfs: Fix typo in comment : 'how may' -> 'how many'
    of: add missing documentation for of_platform_populate()
    btrfs: remove unnecessary cur_trans set before goto loop in join_transaction
    sound: soc: Fix typo in sound/codecs
    treewide: Fix typo in various drivers
    btrfs: fix comment typos
    Update ibmvscsi module name in Kconfig.
    powerpc: fix typo (utilties -> utilities)
    of: fix spelling mistake in comment
    h8300: Fix home page URL in h8300/README
    xtensa: Fix home page URL in Kconfig
    ...

    Linus Torvalds