1. 08 7月, 2010 11 次提交
    • S
      powerpc: Fix feature-fixup tests for gcc 4.5 · 3880ecb0
      Stephen Rothwell 提交于
      The feature-fixup test declare some extern void variables and then take
      their addresses.  Fix this by declaring them as extern u8 instead.
      
      Fixes these warnings (treated as errors):
      
        CC      arch/powerpc/lib/feature-fixups.o
      cc1: warnings being treated as errors
      arch/powerpc/lib/feature-fixups.c: In function 'test_cpu_macros':
      arch/powerpc/lib/feature-fixups.c:293:23: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:294:9: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:297:2: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:297:2: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c: In function 'test_fw_macros':
      arch/powerpc/lib/feature-fixups.c:306:23: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:307:9: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:310:2: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:310:2: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c: In function 'test_lwsync_macros':
      arch/powerpc/lib/feature-fixups.c:321:23: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:322:9: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:326:3: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:326:3: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:329:3: error: taking address of expression of type 'void'
      arch/powerpc/lib/feature-fixups.c:329:3: error: taking address of expression of type 'void'
      Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      3880ecb0
    • Y
      powerpc: Disable SPARSE_IRQ by default · 9ce91685
      Yang Li 提交于
      The SPARSE_IRQ considerably adds overhead to critical path of IRQ
      handling.  However it doesn't benefit much in space for most systems with
      limited IRQ_NR.  Should be disabled unless really necessary.
      Signed-off-by: NLi Yang <leoli@freescale.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      9ce91685
    • S
      powerpc: Fix compile errors in prom_init_check for gcc 4.5 · 5afd878a
      Stephen Rothwell 提交于
      Just whitelist these extra compiler generated symbols.
      Fixes these errors:
      
      Error: External symbol '_restgpr0_14' referenced from prom_init.c
      Error: External symbol '_restgpr0_20' referenced from prom_init.c
      Error: External symbol '_restgpr0_22' referenced from prom_init.c
      Error: External symbol '_restgpr0_24' referenced from prom_init.c
      Error: External symbol '_restgpr0_25' referenced from prom_init.c
      Error: External symbol '_restgpr0_26' referenced from prom_init.c
      Error: External symbol '_restgpr0_27' referenced from prom_init.c
      Error: External symbol '_restgpr0_28' referenced from prom_init.c
      Error: External symbol '_restgpr0_29' referenced from prom_init.c
      Error: External symbol '_restgpr0_31' referenced from prom_init.c
      Error: External symbol '_savegpr0_14' referenced from prom_init.c
      Error: External symbol '_savegpr0_20' referenced from prom_init.c
      Error: External symbol '_savegpr0_22' referenced from prom_init.c
      Error: External symbol '_savegpr0_24' referenced from prom_init.c
      Error: External symbol '_savegpr0_25' referenced from prom_init.c
      Error: External symbol '_savegpr0_26' referenced from prom_init.c
      Error: External symbol '_savegpr0_27' referenced from prom_init.c
      Error: External symbol '_savegpr0_28' referenced from prom_init.c
      Error: External symbol '_savegpr0_29' referenced from prom_init.c
      Error: External symbol '_savegpr0_31' referenced from prom_init.c
      Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Acked-by: NSegher Boessenkool <segher@kernel.crashing.org>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      5afd878a
    • S
      powerpc: Fix module building for gcc 4.5 and 64 bit · 7fca5dc8
      Stephen Rothwell 提交于
      Gcc 4.5 is now generating out of line register save and restore
      in the function prefix and postfix when we use -Os.
      Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      7fca5dc8
    • M
      powerpc/perf_event: Fix for power_pmu_disable() · 219a92a4
      Matt Evans 提交于
      When power_pmu_disable() removes the given event from a particular index into
      cpuhw->event[], it shuffles down higher event[] entries.  But, this array is
      paired with cpuhw->events[] and cpuhw->flags[] so should shuffle them
      similarly.
      
      If these arrays get out of sync, code such as power_check_constraints() will
      fail.  This caused a bug where events were temporarily disabled and then failed
      to be re-enabled; subsequent code tried to write_pmc() with its (disabled) idx
      of 0, causing a message "oops trying to write PMC0".  This triggers this bug on
      POWER7, running a miss-heavy test:
      
        perf record -e L1-dcache-load-misses -e L1-dcache-store-misses ./misstest
      Signed-off-by: NMatt Evans <matt@ozlabs.org>
      Acked-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      219a92a4
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · 2aa72f61
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (35 commits)
        NET: SB1250: Initialize .owner
        vxge: show startup message with KERN_INFO
        ll_temac: Fix missing iounmaps
        bridge: Clear IPCB before possible entry into IP stack
        bridge br_multicast: BUG: unable to handle kernel NULL pointer dereference
        net: Fix definition of netif_vdbg() when VERBOSE_DEBUG is defined
        net/ne: fix memory leak in ne_drv_probe()
        xfrm: fix xfrm by MARK logic
        virtio_net: fix oom handling on tx
        virtio_net: do not reschedule rx refill forever
        s2io: resolve statistics issues
        linux/net.h: fix kernel-doc warnings
        net: decreasing real_num_tx_queues needs to flush qdisc
        sched: qdisc_reset_all_tx is calling qdisc_reset without qdisc_lock
        qlge: fix a eeh handler to not add a pending timer
        qlge: Replacing add_timer() to mod_timer()
        usbnet: Set parent device early for netdev_printk()
        net: Revert "rndis_host: Poll status channel before control channel"
        netfilter: ip6t_REJECT: fix a dst leak in ipv6 REJECT
        drivers: bluetooth: bluecard_cs.c: Fixed include error, changed to linux/io.h
        ...
      2aa72f61
    • R
      NET: SB1250: Initialize .owner · 33b665ee
      Ralf Baechle 提交于
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      
       drivers/net/sb1250-mac.c |    1 +
       1 files changed, 1 insertions(+), 0 deletions(-)
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      33b665ee
    • W
      vxge: show startup message with KERN_INFO · 7074b16c
      Wu Fengguang 提交于
      The original KERN_CRIT will mess up terminals.
      
      CC: Sreenivasa Honnur <Sreenivasa.Honnur@neterion.com>
      Signed-off-by: NWu Fengguang <fengguang.wu@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7074b16c
    • D
      ll_temac: Fix missing iounmaps · dfe1e8ed
      Denis Kirjanov 提交于
      Fix missing iounmaps.
      Signed-off-by: NDenis Kirjanov <dkirjanov@kernel.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dfe1e8ed
    • H
      bridge: Clear IPCB before possible entry into IP stack · 17762060
      Herbert Xu 提交于
      The bridge protocol lives dangerously by having incestuous relations
      with the IP stack.  In this instance an abomination has been created
      where a bogus IPCB area from a bridged packet leads to a crash in
      the IP stack because it's interpreted as IP options.
      
      This patch papers over the problem by clearing the IPCB area in that
      particular spot.  To fix this properly we'd also need to parse any
      IP options if present but I'm way too lazy for that.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      
      Cheers,
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      17762060
    • L
      Merge branch 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 · 78178c7d
      Linus Torvalds 提交于
      * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
        drm: correctly update connector DPMS status in drm_fb_helper
        drm/radeon/kms: fix shared ddc handling
        drm/ttm: Allocate the page pool manager in the heap.
      78178c7d
  2. 07 7月, 2010 9 次提交
  3. 06 7月, 2010 20 次提交