12 Sep, 2012

1 commit


11 Sep, 2012

1 commit

  • Commit 1f2bfbd00e466ff3489b2ca5cc75b1cccd14c123 ("kbuild: link of
    vmlinux moved to a script") introduced in v3.5-rc1 broke kallsyms on
    architectures which have symbol prefixes.

    The --symbol-prefix argument used to be added to the KALLSYMS command
    line from the architecture Makefile, however this isn't picked up by the
    new scripts/link-vmlinux.sh. This resulted in symbols like
    kallsyms_addresses being added which weren't correctly overriding the
    weak symbols such as _kallsyms_addresses. These could then trigger
    BUG_ONs in kallsyms code.

    This is fixed by removing the KALLSYMS addition from the architecture
    Makefile, and using CONFIG_SYMBOL_PREFIX in the link-vmlinux.sh script
    to determine whether to add the --symbol-prefix argument.

    Signed-off-by: James Hogan
    Signed-off-by: Bob Liu

    James Hogan
     

07 Sep, 2012

1 commit

  • Pull kbuild fixes from Michal Marek:
    "These are two fixes that should go into 3.6. The link-vmlinux.sh one
    is obvious.

    The other one fixes make firmware_install with certain configurations,
    where a file in the toplevel firmware tree gets installed first, and
    $(INSTALL_FW_PATH)/$$(dir ) results in /lib/firmware/./, which
    confuses make 3.82 for some reason."

    * 'rc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    firmware: fix directory creation rule matching with make 3.82
    link-vmlinux.sh: Fix stray "echo" in error message

    Linus Torvalds
     

30 Aug, 2012

1 commit

  • Attempting to run 'firmware_install' with CONFIG_USB_SERIAL_TI=y when
    using make 3.82 results in an error

    make[2]: *** No rule to make target `/lib/firmware/./', needed by
    `/lib/firmware/ti_3410.fw'. Stop.

    It turns out make 3.82 is picky when matching directory names with
    trailing slashes as a result, where make 3.81 would handle this
    correctly make 3.82 does not find the rule needed to create the
    directory.

    The './' seen in the error is added by $(dir) for firmware which
    resides in the base firmware src directory, such as
    ti_3410.fw.ihex. By performing $(dir) after we prepend the
    $(INSTALL_FW_PATH) we can ensure we don't end up with a './' in the
    middle of the path and the directory will be properly created.

    This change works with make 3.81 and should work with previous
    versions as well.

    Signed-off-by: Mark Asselstine
    Signed-off-by: Michal Marek

    Mark Asselstine
     

22 Aug, 2012

1 commit

  • Commit b13edf7ff2dd ("checkpatch: add checks for do {} while (0) macro
    misuses") added a test that is overly simplistic for single statement
    macros.

    Macros that start with control tests should be enclosed in a do {} while
    (0) loop.

    Add the necessary control tests to the check.

    Signed-off-by: Joe Perches
    Acked-by: Andy Whitcroft
    Tested-by: Franz Schrober
    Cc: Stephen Rothwell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     

18 Aug, 2012

1 commit


17 Aug, 2012

1 commit

  • When dumping "Code: " sections from an oops, the trapping instruction
    %rip points to can be a string copy

    2b:* f3 a5 rep movsl %ds:(%rsi),%es:(%rdi)

    and the line contain a bunch of ":". Current "cut" selects only the and
    the second field output looks funnily overlaid this:

    2b:* f3 a5 rep movsl %ds
    Cc: Linus Torvalds
    Cc: linux-kbuild@vger.kernel.org
    Signed-off-by: Borislav Petkov
    Signed-off-by: Linus Torvalds

    Borislav Petkov
     

10 Aug, 2012

1 commit


01 Aug, 2012

1 commit

  • Pull s390 updates from Martin Schwidefsky:
    "This it the second batch of s390 patches for the 3.6 merge window.
    Included is enablement for two common code changes, killable page
    faults and sorted exception tables. And the regular set of cleanup
    and bug fix patches."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
    s390: make use of user_mode() macro where possible
    s390/mm: rename user_mode variable to addressing_mode
    s390/mm: fix fault handling for page table walk case
    s390/mm: make page faults killable
    s390: update defconfig
    s390/mm: downgrade page table after fork of a 31 bit process
    s390/ipl: Use diagnose 8 command separation
    s390/linker script: use RO_DATA_SECTION
    s390/exceptions: sort exception table at build time
    s390/debug: remove module_exit function / move EXPORT_SYMBOLs

    Linus Torvalds
     

31 Jul, 2012

10 commits

  • Merge Andrew's first set of patches:
    "Non-MM patches:

    - lots of misc bits

    - tree-wide have_clk() cleanups

    - quite a lot of printk tweaks. I draw your attention to "printk:
    convert the format for KERN_ to a 2 byte pattern" which
    looks a bit scary. But afaict it's solid.

    - backlight updates

    - lib/ feature work (notably the addition and use of memweight())

    - checkpatch updates

    - rtc updates

    - nilfs updates

    - fatfs updates (partial, still waiting for acks)

    - kdump, proc, fork, IPC, sysctl, taskstats, pps, etc

    - new fault-injection feature work"

    * Merge emailed patches from Andrew Morton : (128 commits)
    drivers/misc/lkdtm.c: fix missing allocation failure check
    lib/scatterlist: do not re-write gfp_flags in __sg_alloc_table()
    fault-injection: add tool to run command with failslab or fail_page_alloc
    fault-injection: add selftests for cpu and memory hotplug
    powerpc: pSeries reconfig notifier error injection module
    memory: memory notifier error injection module
    PM: PM notifier error injection module
    cpu: rewrite cpu-notifier-error-inject module
    fault-injection: notifier error injection
    c/r: fcntl: add F_GETOWNER_UIDS option
    resource: make sure requested range is included in the root range
    include/linux/aio.h: cpp->C conversions
    fs: cachefiles: add support for large files in filesystem caching
    pps: return PTR_ERR on error in device_create
    taskstats: check nla_reserve() return
    sysctl: suppress kmemleak messages
    ipc: use Kconfig options for __ARCH_WANT_[COMPAT_]IPC_PARSE_VERSION
    ipc: compat: use signed size_t types for msgsnd and msgrcv
    ipc: allow compat IPC version field parsing if !ARCH_WANT_OLD_COMPAT_IPC
    ipc: add COMPAT_SHMLBA support
    ...

    Linus Torvalds
     
  • These types of macros should not be used for either a single statement
    nor should the macro end with a semi-colon.

    Add tests for these conditions.

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

    Joe Perches
     
  • Kernel style uses parenthesis around sizeof.

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

    Joe Perches
     
  • usleep_range() shouldn't use the same args for min and max.

    Report it when it happens and when both args are decimal and min > max.

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

    Joe Perches
     
  • Warn on non-standard signature styles.

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

    Joe Perches
     
  • Parenthesis alignment doesn't correctly check an existing line after an
    inserted or modified line with an open parenthesis.

    Fix it.

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

    Joe Perches
     
  • …/rostedt/linux-kconfig

    Pull localmodconfig updates from Steven Rostedt:
    "Improve localmodconfig to remove even more unused module configs.

    These changes drastically improve the amount of module configs removed
    from a config file. It also adds some debug that I can have users
    easily enable if things do not work for them."

    * tag 'localmodconfig-v3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-kconfig:
    localmodconfig: Add debug environment variable LOCALMODCONFIG_DEBUG
    localmodconfig: Check if configs are already set for selects
    localmodconfig: Read in orig config file to avoid extra processing
    localmodconfig: Comments and cleanup for streamline_config.pl

    Linus Torvalds
     
  • Pull misc kbuild changes from Michal Marek:
    "This is the non-critical part of kbuild for v3.6-rc1:

    - Two new coccinelle semantic patches
    - New scripts/tags.sh regexp
    - scripts/config improvements that I mistakenly applied here instead
    of in the kconfig branch (but there are no conflicts)
    - Debian packaging fixes"

    * 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    scripts/tags.sh: Teach [ce]tags about libtraceeevent error codes
    scripts/coccinelle: list iterator variable semantic patch
    scripts/coccinelle: Find threaded IRQs requests which are missing IRQF_ONESHOT
    deb-pkg: Add all Makefiles to header package
    deb-pkg: Install linux-firmware-image in versioned dir
    scripts/config: add option to undef a symbol
    scripts/config: allow alternate prefix to config option symbol
    scripts/config: add option to not upper-case symbols

    Linus Torvalds
     
  • Pull kconfig changes from Michal Marek:
    - kconfig Makefile portability fixes
    - menuconfig/nconfig help pager usability fix
    - .gitignore cleanup
    - quoting fix in scripts/config
    - Makefile prints errors to stderr
    - support for arbitrarily log lines in .config
    - fix oldnoconfig description in 'make help'

    * 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    kconfig: Document oldnoconfig to what it really does
    nconf: add u, d command keys in scroll windows
    menuconfig: add u, d, q command keys in text boxes
    scripts/config: fix double-quotes un-escaping
    kconfig: Print errors to stderr in the Makefile
    kconfig: allow long lines in config file
    kconfig: remove lkc_defs.h from .gitignore and dontdiff
    xconfig: add quiet rule for moc
    xconfig: use pkgconfig to find moc
    kconfig: fix check-lxdialog for DLL platforms
    kconfig: check ncursesw headers first in check-lxdialog
    kconfig/nconf: fix compile with ncurses reentrant API

    Linus Torvalds
     
  • Pull kbuild fix from Michal Marek:
    "The main kbuild branch ended up with a single commit this time, a fix
    to send errors to stderr"

    * 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
    kbuild: Print errors to stderr

    Linus Torvalds
     

27 Jul, 2012

1 commit

  • Pull USB patches from Greg Kroah-Hartman:
    "Here's the big USB patch set for the 3.6-rc1 merge window.

    Lots of little changes in here, primarily for gadget controllers and
    drivers. There's some scsi changes that I think also went in through
    the scsi tree, but they merge just fine. All of these patches have
    been in the linux-next tree for a while now.

    Signed-off-by: Greg Kroah-Hartman "

    Fix up trivial conflicts in include/scsi/scsi_device.h (same libata
    conflict that Jeff had already encountered)

    * tag 'usb-3.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (207 commits)
    usb: Add USB_QUIRK_RESET_RESUME for all Logitech UVC webcams
    usb: Add quirk detection based on interface information
    usb: s3c-hsotg: Add header file protection macros in s3c-hsotg.h
    USB: ehci-s5p: Add vbus setup function to the s5p ehci glue layer
    USB: add USB_VENDOR_AND_INTERFACE_INFO() macro
    USB: notify phy when root hub port connect change
    USB: remove 8 bytes of padding from usb_host_interface on 64 bit builds
    USB: option: add ZTE MF821D
    USB: sierra: QMI mode MC7710 moved to qcserial
    USB: qcserial: adding Sierra Wireless devices
    USB: qcserial: support generic Qualcomm serial ports
    USB: qcserial: make probe more flexible
    USB: qcserial: centralize probe exit path
    USB: qcserial: consolidate usb_set_interface calls
    USB: ehci-s5p: Add support for device tree
    USB: ohci-exynos: Add support for device tree
    USB: ehci-omap: fix compile failure(v1)
    usb: host: tegra: pass correct pointer in ehci_setup()
    USB: ehci-fsl: Update ifdef check to work on 64-bit ppc
    USB: serial: keyspan: Removed unrequired parentheses.
    ...

    Linus Torvalds
     

26 Jul, 2012

6 commits

  • The make target 'oldnoconfig' is a misnomer. It doesn't set new symbols
    to 'n', but instead sets it to their default values.

    Unfortunately, assuming that it actually did this, broke ktest in some
    of its tests. For example, the tests to create a minimum config and even
    a config bisect, depends on removing various configs and using
    oldnoconfig to get rid of other configs that may have depended on it.

    But because some configs that it was trying to disable, were in fact
    default enabled, this caused those configs to re-enable and corrupt the
    test.

    I thought about fixing oldnoconfig, but I'm afraid that people are
    already dependent on its current behavior. Instead, I'm just updating
    the documentation to state that it sets the new symbols to their default
    values and not to 'n'.

    Ideally, this would be called, 'olddefconfig' and we have an
    'oldnoconfig' that actually disables the new symbols. But it's useless
    for me now. If it changed, ktest would need to be consistent between
    each version, and that would be to difficult to detect. I'll handle this
    issue with ktest with other means.

    Signed-off-by: Steven Rostedt
    Signed-off-by: Michal Marek

    Steven Rostedt
     
  • As we use a macro trick to sync each error codes with its
    description string, teach [ce]tags to process them properly.

    Suggested-by: Steven Rostedt
    Cc: Frederic Weisbecker
    Link: http://lkml.kernel.org/n/tip-qt5fv4pzigr2nnl27ydimg4h@git.kernel.org
    Signed-off-by: Namhyung Kim
    Acked-by: Steven Rostedt
    Signed-off-by: Michal Marek

    Namhyung Kim
     
  • They function just like they do in less(1).
    Also correct some discrepancy between the help text and the code wrt
    function keys.

    Signed-off-by: Benjamin Poirier
    Signed-off-by: Michal Marek

    Benjamin Poirier
     
  • They function just like they do in less(1).

    Signed-off-by: Benjamin Poirier
    Signed-off-by: Michal Marek

    Benjamin Poirier
     
  • When reporting a string value, only the first double-quote was
    un-escaped. We need to un-escape all escaped double-quotes.

    Signed-off-by: "Yann E. MORIN"
    Signed-off-by: Michal Marek

    Yann E. MORIN
     
  • Follow x86 and MIPS and sort the main exception table at build time.

    Signed-off-by: Heiko Carstens
    Signed-off-by: Martin Schwidefsky

    Heiko Carstens
     

25 Jul, 2012

2 commits

  • Pull PCI changes from Bjorn Helgaas:
    "Host bridge hotplug:
    - Add MMCONFIG support for hot-added host bridges (Jiang Liu)
    Device hotplug:
    - Move fixups from __init to __devinit (Sebastian Andrzej Siewior)
    - Call FINAL fixups for hot-added devices, too (Myron Stowe)
    - Factor out generic code for P2P bridge hot-add (Yinghai Lu)
    - Remove all functions in a slot, not just those with _EJx (Amos
    Kong)
    Dynamic resource management:
    - Track bus number allocation (struct resource tree per domain)
    (Yinghai Lu)
    - Make P2P bridge 1K I/O windows work with resource reassignment
    (Bjorn Helgaas, Yinghai Lu)
    - Disable decoding while updating 64-bit BARs (Bjorn Helgaas)
    Power management:
    - Add PCIe runtime D3cold support (Huang Ying)
    Virtualization:
    - Add VFIO infrastructure (ACS, DMA source ID quirks) (Alex
    Williamson)
    - Add quirks for devices with broken INTx masking (Jan Kiszka)
    Miscellaneous:
    - Fix some PCI Express capability version issues (Myron Stowe)
    - Factor out some arch code with a weak, generic, pcibios_setup()
    (Myron Stowe)"

    * tag 'for-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (122 commits)
    PCI: hotplug: ensure a consistent return value in error case
    PCI: fix undefined reference to 'pci_fixup_final_inited'
    PCI: build resource code for M68K architecture
    PCI: pciehp: remove unused pciehp_get_max_lnk_width(), pciehp_get_cur_lnk_width()
    PCI: reorder __pci_assign_resource() (no change)
    PCI: fix truncation of resource size to 32 bits
    PCI: acpiphp: merge acpiphp_debug and debug
    PCI: acpiphp: remove unused res_lock
    sparc/PCI: replace pci_cfg_fake_ranges() with pci_read_bridge_bases()
    PCI: call final fixups hot-added devices
    PCI: move final fixups from __init to __devinit
    x86/PCI: move final fixups from __init to __devinit
    MIPS/PCI: move final fixups from __init to __devinit
    PCI: support sizing P2P bridge I/O windows with 1K granularity
    PCI: reimplement P2P bridge 1K I/O windows (Intel P64H2)
    PCI: disable MEM decoding while updating 64-bit MEM BARs
    PCI: leave MEM and IO decoding disabled during 64-bit BAR sizing, too
    PCI: never discard enable/suspend/resume_early/resume fixups
    PCI: release temporary reference in __nv_msi_ht_cap_quirk()
    PCI: restructure 'pci_do_fixups()'
    ...

    Linus Torvalds
     
  • Pull trivial tree from Jiri Kosina:
    "Trivial updates all over the place as usual."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (29 commits)
    Fix typo in include/linux/clk.h .
    pci: hotplug: Fix typo in pci
    iommu: Fix typo in iommu
    video: Fix typo in drivers/video
    Documentation: Add newline at end-of-file to files lacking one
    arm,unicore32: Remove obsolete "select MISC_DEVICES"
    module.c: spelling s/postition/position/g
    cpufreq: Fix typo in cpufreq driver
    trivial: typo in comment in mksysmap
    mach-omap2: Fix typo in debug message and comment
    scsi: aha152x: Fix sparse warning and make printing pointer address more portable.
    Change email address for Steve Glendinning
    Btrfs: fix typo in convert_extent_bit
    via: Remove bogus if check
    netprio_cgroup.c: fix comment typo
    backlight: fix memory leak on obscure error path
    Documentation: asus-laptop.txt references an obsolete Kconfig item
    Documentation: ManagementStyle: fixed typo
    mm/vmscan: cleanup comment error in balance_pgdat
    mm: cleanup on the comments of zone_reclaim_stat
    ...

    Linus Torvalds
     

20 Jul, 2012

1 commit


14 Jul, 2012

3 commits


13 Jul, 2012

4 commits


08 Jul, 2012

1 commit

  • ... at least in the top-level Makefile and scripts/link-vmlinux.sh.
    There are some more instances of the 'echo ; exit 1' pattern in
    some arch Makefiles and kconfig.

    Reported-by: Linus Torvalds
    Signed-off-by: Michal Marek

    Michal Marek
     

05 Jul, 2012

3 commits