1. 04 Nov, 2011 10 commits
  2. 03 Nov, 2011 17 commits
    • Olof Johansson's avatar
      af_packet: de-inline some helper functions · eea49cc9
      Olof Johansson authored
      This popped some compiler errors due to mismatched prototypes. Just
      remove most manual inlines, the compiler should be able to figure out
      what makes sense to inline and not.
      
      net/packet/af_packet.c:252: warning: 'prb_curr_blk_in_use' declared inline after being called
      net/packet/af_packet.c:252: warning: previous declaration of 'prb_curr_blk_in_use' was here
      net/packet/af_packet.c:258: warning: 'prb_queue_frozen' declared inline after being called
      net/packet/af_packet.c:258: warning: previous declaration of 'prb_queue_frozen' was here
      net/packet/af_packet.c:248: warning: 'packet_previous_frame' declared inline after being called
      net/packet/af_packet.c:248: warning: previous declaration of 'packet_previous_frame' was here
      net/packet/af_packet.c:251: warning: 'packet_increment_head' declared inline after being called
      net/packet/af_packet.c:251: warning: previous declaration of 'packet_increment_head' was here
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      Cc: Chetan Loke <loke.chetan@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      eea49cc9
    • Oliver Hartkopp's avatar
      MAINTAINERS: Add can-gw include to maintained files · c49b82da
      Oliver Hartkopp authored
      Commit c1aabdf3 (can-gw: add netlink based
      CAN routing) added a new include file that's neither referenced by any of
      the CAN maintainers.
      Signed-off-by: default avatarOliver Hartkopp <socketcan@hartkopp.net>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c49b82da
    • Tony Lindgren's avatar
      net: Add back alignment for size for __alloc_skb · bc417e30
      Tony Lindgren authored
      Commit 87fb4b7b (net: more
      accurate skb truesize) changed the alignment of size. This
      can cause problems at least on some machines with NFS root:
      
      Unhandled fault: alignment exception (0x801) at 0xc183a43a
      Internal error: : 801 [#1] PREEMPT
      Modules linked in:
      CPU: 0    Not tainted  (3.1.0-08784-g5eeee4a #733)
      pc : [<c02fbba0>]    lr : [<c02fbb9c>]    psr: 60000013
      sp : c180fef8  ip : 00000000  fp : c181f580
      r10: 00000000  r9 : c044b28c  r8 : 00000001
      r7 : c183a3a0  r6 : c1835be0  r5 : c183a412  r4 : 000001f2
      r3 : 00000000  r2 : 00000000  r1 : ffffffe6  r0 : c183a43a
      Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
      Control: 0005317f  Table: 10004000  DAC: 00000017
      Process swapper (pid: 1, stack limit = 0xc180e270)
      Stack: (0xc180fef8 to 0xc1810000)
      fee0:                                                       00000024 00000000
      ff00: 00000000 c183b9c0 c183b8e0 c044b28c c0507ccc c019dfc4 c180ff2c c0503cf8
      ff20: c180ff4c c180ff4c 00000000 c1835420 c182c740 c18349c0 c05233c0 00000000
      ff40: 00000000 c00e6bb8 c180e000 00000000 c04dd82c c0507e7c c050cc18 c183b9c0
      ff60: c05233c0 00000000 00000000 c01f34f4 c0430d70 c019d364 c04dd898 c04dd898
      ff80: c04dd82c c0507e7c c180e000 00000000 c04c584c c01f4918 c04dd898 c04dd82c
      ffa0: c04ddd28 c180e000 00000000 c0008758 c181fa60 3231d82c 00000037 00000000
      ffc0: 00000000 c04dd898 c04dd82c c04ddd28 00000013 00000000 00000000 00000000
      ffe0: 00000000 c04b2224 00000000 c04b21a0 c001056c c001056c 00000000 00000000
      Function entered at [<c02fbba0>] from [<c019dfc4>]
      Function entered at [<c019dfc4>] from [<c01f34f4>]
      Function entered at [<c01f34f4>] from [<c01f4918>]
      Function entered at [<c01f4918>] from [<c0008758>]
      Function entered at [<c0008758>] from [<c04b2224>]
      Function entered at [<c04b2224>] from [<c001056c>]
      Code: e1a00005 e3a01028 ebfa7cb0 e35a0000 (e5858028)
      
      Here PC is at __alloc_skb and &shinfo->dataref is unaligned because
      skb->end can be unaligned without this patch.
      
      As explained by Eric Dumazet <eric.dumazet@gmail.com>, this happens
      only with SLOB, and not with SLAB or SLUB:
      
      * Eric Dumazet <eric.dumazet@gmail.com> [111102 15:56]:
      >
      > Your patch is absolutely needed, I completely forgot about SLOB :(
      >
      > since, kmalloc(386) on SLOB gives exactly ksize=386 bytes, not nearest
      > power of two.
      >
      > [   60.305763] malloc(size=385)->ffff880112c11e38 ksize=386 -> nsize=2
      > [   60.305921] malloc(size=385)->ffff88007c92ce28 ksize=386 -> nsize=2
      > [   60.306898] malloc(size=656)->ffff88007c44ad28 ksize=656 -> nsize=272
      > [   60.325385] malloc(size=656)->ffff88007c575868 ksize=656 -> nsize=272
      > [   60.325531] malloc(size=656)->ffff88011c777230 ksize=656 -> nsize=272
      > [   60.325701] malloc(size=656)->ffff880114011008 ksize=656 -> nsize=272
      > [   60.346716] malloc(size=385)->ffff880114142008 ksize=386 -> nsize=2
      > [   60.346900] malloc(size=385)->ffff88011c777690 ksize=386 -> nsize=2
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      Acked-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bc417e30
    • Eric Dumazet's avatar
      net: add missing bh_unlock_sock() calls · 918eb399
      Eric Dumazet authored
      Simon Kirby reported lockdep warnings and following messages :
      
      [104661.897577] huh, entered softirq 3 NET_RX ffffffff81613740
      preempt_count 00000101, exited with 00000102?
      
      [104661.923653] huh, entered softirq 3 NET_RX ffffffff81613740
      preempt_count 00000101, exited with 00000102?
      
      Problem comes from commit 0e734419
      (ipv4: Use inet_csk_route_child_sock() in DCCP and TCP.)
      
      If inet_csk_route_child_sock() returns NULL, we should release socket
      lock before freeing it.
      
      Another lock imbalance exists if __inet_inherit_port() returns an error
      since commit 093d2823 ( tproxy: fix hash locking issue when using
      port redirection in __inet_inherit_port()) a backport is also needed for
      >= 2.6.37 kernels.
      Reported-by: default avatarSimon Kirby <sim@hostway.ca>
      Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
      Tested-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
      CC: Balazs Scheidler <bazsi@balabit.hu>
      CC: KOVACS Krisztian <hidden@balabit.hu>
      Reviewed-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Tested-by: default avatarSimon Kirby <sim@hostway.ca>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      918eb399
    • Eric Dumazet's avatar
      l2tp: fix race in l2tp_recv_dequeue() · e2e210c0
      Eric Dumazet authored
      Misha Labjuk reported panics occurring in l2tp_recv_dequeue()
      
      If we release reorder_q.lock, we must not keep a dangling pointer (tmp),
      since another thread could manipulate reorder_q.
      
      Instead we must restart the scan at beginning of list.
      Reported-by: default avatarMisha Labjuk <spiked.yar@gmail.com>
      Tested-by: default avatarMisha Labjuk <spiked.yar@gmail.com>
      Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e2e210c0
    • Rob Herring's avatar
      ahci: add DT binding for Calxeda AHCI controller · 02aac316
      Rob Herring authored
      Add devicetree match table to ahci platform driver for Calxeda Highbank
      AHCI controller.
      Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
      Acked-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      Cc: Jeff Garzik <jgarzik@pobox.com>
      Cc: linux-ide@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Cc: devicetree-discuss@lists.ozlabs.org
      02aac316
    • Olof Johansson's avatar
      dt/platform: minor cleanup · 303f59d1
      Olof Johansson authored
      * Correct description of of_platform_bus_create to match implementation
      * Remove a level of indentation in of_dev_lookup
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      Acked-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
      303f59d1
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus · d6748066
      Linus Torvalds authored
      * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (37 commits)
        MIPS: O32: Provide definition of registers ta0 .. ta3.
        MIPS: perf: Add Octeon support for hardware perf.
        MIPS: perf: Add support for 64-bit perf counters.
        MIPS: perf: Reorganize contents of perf support files.
        MIPS: perf: Cleanup formatting in arch/mips/kernel/perf_event.c
        MIPS: Add accessor macros for 64-bit performance counter registers.
        MIPS: Add probes for more Octeon II CPUs.
        MIPS: Add more CPU identifiers for Octeon II CPUs.
        MIPS: XLR, XLS: Add comment for smp setup
        MIPS: JZ4740: GPIO: Check correct IRQ in demux handler
        MIPS: JZ4740: GPIO: Simplify IRQ demuxer
        MIPS: JZ4740: Use generic irq chip
        MIPS: Alchemy: remove all CONFIG_SOC_AU1??? defines
        MIPS: Alchemy: kill au1xxx.h header
        MIPS: Alchemy: clean DMA code of CONFIG_SOC_AU1??? defines
        MIPS, IDE: Alchem, au1xxx-ide: Remove pb1200/db1200 header dep
        MIPS: Alchemy: Redo PCI as platform driver
        MIPS: Alchemy: more base address cleanup
        MIPS: Alchemy: rewrite USB platform setup.
        MIPS: Alchemy: abstract USB block control register access
        ...
      
      Fix up trivial conflicts in:
      	arch/mips/alchemy/devboards/db1x00/platform.c
      	drivers/ide/Kconfig
      	drivers/mmc/host/au1xmmc.c
      	drivers/video/Kconfig
      	sound/mips/Kconfig
      d6748066
    • Josh Boyer's avatar
      edac: Only build sb_edac on 64-bit · f04c045f
      Josh Boyer authored
      The sb_edac driver is marginally useful on a 32-bit kernel, and
      currently has 64-bit divide compile errors when building that config.
      For now, make this build on only for 64-bit kernels.
      Signed-off-by: default avatarJosh Boyer <jwboyer@redhat.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f04c045f
    • Linus Torvalds's avatar
      Merge branch 'next' of git://github.com/kernelslacker/cpufreq · 70c9f18c
      Linus Torvalds authored
      * 'next' of git://github.com/kernelslacker/cpufreq:
        [CPUFREQ] db8500: support all frequencies
        [CPUFREQ] db8500: remove unneeded for loop iteration over freq_table
        [CPUFREQ] ARM Exynos4210 PM/Suspend compatibility with different bootloaders
        [CPUFREQ] ARM: ux500: send cpufreq notification for all cpus
        [CPUFREQ] e_powersaver: Allow user to lower maximum voltage
        [CPUFREQ] e_powersaver: Check BIOS limit for CPU frequency
        [CPUFREQ] e_powersaver: Additional checks
        [CPUFREQ] exynos4210: Show list of available frequencies
      70c9f18c
    • Linus Torvalds's avatar
      Merge branch 'for-next' of git://git.infradead.org/users/sameo/mfd-2.6 · a0a4194c
      Linus Torvalds authored
      * 'for-next' of git://git.infradead.org/users/sameo/mfd-2.6: (80 commits)
        mfd: Fix missing abx500 header file updates
        mfd: Add missing <linux/io.h> include to intel_msic
        x86, mrst: add platform support for MSIC MFD driver
        mfd: Expose TurnOnStatus in ab8500 sysfs
        mfd: Remove support for early drop ab8500 chip
        mfd: Add support for ab8500 v3.3
        mfd: Add ab8500 interrupt disable hook
        mfd: Convert db8500-prcmu panic() into pr_crit()
        mfd: Refactor db8500-prcmu request_clock() function
        mfd: Rename db8500-prcmu init function
        mfd: Fix db5500-prcmu defines
        mfd: db8500-prcmu voltage domain consumers additions
        mfd: db8500-prcmu reset code retrieval
        mfd: db8500-prcmu tweak for modem wakeup
        mfd: Add db8500-pcmu watchdog accessor functions for watchdog
        mfd: hwacc power state db8500-prcmu accessor
        mfd: Add db8500-prcmu accessors for PLL and SGA clock
        mfd: Move to the new db500 PRCMU API
        mfd: Create a common interface for dbx500 PRCMU drivers
        mfd: Initialize DB8500 PRCMU regs
        ...
      
      Fix up trivial conflicts in
      	arch/arm/mach-imx/mach-mx31moboard.c
      	arch/arm/mach-omap2/board-omap3beagle.c
      	arch/arm/mach-u300/include/mach/irqs.h
      	drivers/mfd/wm831x-spi.c
      a0a4194c
    • Linus Torvalds's avatar
      Merge branch 'sh-latest' of git://github.com/pmundt/linux-sh · cf022350
      Linus Torvalds authored
      * 'sh-latest' of git://github.com/pmundt/linux-sh:
        sh: Add default uImage rule for sh7757lcr
        sh: modify the asm/sh_eth.h to linux/sh_eth.h in sh7757lcr
        sh: userimask.c needs linux/stat.h
        sh: pfc: Add GPIO IRQ support
        sh: modify the asm/sh_eth.h to linux/sh_eth.h in some boards
        sh: pfc: Remove unused gpio_in_use member
        sh: add parameters for EHCI and RIIC in clock-sh7757.c
        sh: kexec: Add PHYSICAL_START
        SH: irq: Remove IRQF_DISABLED
        sh: pfc: get_config_reg() shift clean up
        sh: intc: Add IRQ trigger bit field check
        sh: drop unused Kconfig symbol
        sh: Fix implicit declaration of function numa_node_id
        sh: kexec: Register crashk_res
        sh: ecovec: add renesas_usbhs DMAEngine support
      cf022350
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad/hwspinlock · 3f8ddb03
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad/hwspinlock:
        hwspinlock: add MAINTAINERS entries
        hwspinlock/omap: omap_hwspinlock_remove should be __devexit
        hwspinlock/u8500: add hwspinlock driver
        hwspinlock/core: register a bank of hwspinlocks in a single API call
        hwspinlock/core: remove stubs for register/unregister
        hwspinlock/core: use a mutex to protect the radix tree
        hwspinlock/core/omap: fix id issues on multiple hwspinlock devices
        hwspinlock/omap: simplify allocation scheme
        hwspinlock/core: simplify 'owner' handling
        hwspinlock/core: simplify Kconfig
      
      Fix up trivial conflicts (addition of omap_hwspinlock_pdata, removal of
      omap_spinlock_latency) in arch/arm/mach-omap2/hwspinlock.c
      
      Also, do an "evil merge" to fix a compile error in omap_hsmmc.c which
      for some reason was reported in the same email thread as the "please
      pull hwspinlock changes".
      3f8ddb03
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid · 30307c69
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
        Revert "HID: multitouch: decide if hid-multitouch needs to handle mt devices"
        HID: drivers/hid/hid-roccat.c: eliminate a null pointer dereference
        HID: hid-apple: add device ID of another wireless aluminium
        HID: Add device IDs for Macbook Pro 8 keyboards
      30307c69
    • Linus Torvalds's avatar
      Revert "perf: Add PM notifiers to fix CPU hotplug races" · 4536e4d1
      Linus Torvalds authored
      This reverts commit 144060fe.
      
      It causes a resume regression for Andi on his Acer Aspire 1830T post
      3.1.  The screen just stays black after wakeup.
      
      Also, it really looks like the wrong way to suspend and resume perf
      events: I think they should be done as part of the CPU suspend and
      resume, rather than as a notifier that does smp_call_function().
      Reported-by: default avatarAndi Kleen <andi@firstfloor.org>
      Acked-by: default avatarIngo Molnar <mingo@elte.hu>
      Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Rafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      4536e4d1
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/linux-dm · 43672a07
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/steve/linux-dm:
        dm: raid fix device status indicator when array initializing
        dm log userspace: add log device dependency
        dm log userspace: fix comment hyphens
        dm: add thin provisioning target
        dm: add persistent data library
        dm: add bufio
        dm: export dm get md
        dm table: add immutable feature
        dm table: add always writeable feature
        dm table: add singleton feature
        dm kcopyd: add dm_kcopyd_zero to zero an area
        dm: remove superfluous smp_mb
        dm: use local printk ratelimit
        dm table: propagate non rotational flag
      43672a07
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.selinuxproject.org/~jmorris/linux-security · 2380078c
      Linus Torvalds authored
      * 'for-linus' of git://git.selinuxproject.org/~jmorris/linux-security:
        TOMOYO: Fix interactive judgment functionality.
      2380078c
  3. 02 Nov, 2011 13 commits