12 Aug, 2008

1 commit


22 Jul, 2008

1 commit


18 Jul, 2008

1 commit

  • This patch contains the following cleanups:
    - make the following needlessly global code static:
    - char/uctrl.c: uctrl_get_event_status()
    - char/uctrl.c: uctrl_get_external_status()
    - char/vfc_dev.c: struct vfc_dev_lst
    - char/vfc_dev.c: vfc_lock_device()
    - char/vfc_dev.c: vfc_unlock_device()
    - char/vfc_dev.c: vfc_captstat_reset()
    - char/vfc_dev.c: vfc_memptr_reset()
    - char/vfc_dev.c: vfc_csr_init()
    - char/vfc_dev.c: vfc_saa9051_init()
    - char/vfc_dev.c: init_vfc_hw()
    - char/vfc_dev.c: init_vfc_devstruct()
    - char/vfc_dev.c: init_vfc_device()
    - char/vfc_dev.c: vfc_get_dev_ptr()
    - char/vfc_dev.c: vfc_capture_start()
    - char/vfc_dev.c: vfc_capture_poll()
    - char/vfc_dev.c: vfc_port_change_ioctl()
    - char/vfc_dev.c: vfc_set_video_ioctl()
    - char/vfc_dev.c: vfc_get_video_ioctl()
    - char/vfc_i2c.c: vfc_i2c_wait_for_bus()
    - char/vfc_i2c.c: vfc_i2c_wait_for_pin()
    - char/vfc_i2c.c: vfc_i2c_xmit_addr()
    - char/vfc_i2c.c: vfc_i2c_xmit_byte()
    - char/vfc_i2c.c: vfc_i2c_recv_byte()
    - dvma.c: init_one_dvma()
    - remove an unused variable from a function:
    - char/uctrl.c: ts102_uctrl_init()
    - remove the following unused and empty function:
    - char/uctrl.c: uctrl_set_video()

    Signed-off-by: Adrian Bunk
    Signed-off-by: David S. Miller

    Adrian Bunk
     

15 Jul, 2008

1 commit


03 Jul, 2008

4 commits


21 Jun, 2008

7 commits


22 May, 2008

1 commit


05 May, 2008

1 commit


30 Apr, 2008

1 commit


20 Nov, 2007

1 commit


21 Oct, 2007

1 commit


18 Oct, 2007

1 commit


01 Aug, 2007

2 commits


31 Jul, 2007

1 commit


30 Jul, 2007

1 commit

  • Fully unify all of the DMA ops so that subordinate bus types to
    the DMA operation providers (such as ebus, isa, of_device) can
    work transparently.

    Basically, we just make sure that for every system device we
    create, the dev->archdata 'iommu' and 'stc' fields are filled
    in.

    Then we have two platform variants of the DMA ops, one for SUN4U which
    actually programs the real hardware, and one for SUN4V which makes
    hypervisor calls.

    This also fixes the crashes in parport_pc on sparc64, reported by
    Meelis Roos.

    Signed-off-by: David S. Miller

    David S. Miller
     

25 Jul, 2007

2 commits


24 Jul, 2007

1 commit

  • Some of the code has been gradually transitioned to using the proper
    struct request_queue, but there's lots left. So do a full sweet of
    the kernel and get rid of this typedef and replace its uses with
    the proper type.

    Signed-off-by: Jens Axboe

    Jens Axboe
     

21 Jul, 2007

1 commit


20 Jul, 2007

1 commit

  • Transform some calls to kmalloc/memset to a single kzalloc (or kcalloc).

    Here is a short excerpt of the semantic patch performing
    this transformation:

    @@
    type T2;
    expression x;
    identifier f,fld;
    expression E;
    expression E1,E2;
    expression e1,e2,e3,y;
    statement S;
    @@

    x =
    - kmalloc
    + kzalloc
    (E1,E2)
    ... when != \(x->fld=E;\|y=f(...,x,...);\|f(...,x,...);\|x=E;\|while(...) S\|for(e1;e2;e3) S\)
    - memset((T2)x,0,E1);

    @@
    expression E1,E2,E3;
    @@

    - kzalloc(E1 * E2,E3)
    + kcalloc(E1,E2,E3)

    [akpm@linux-foundation.org: get kcalloc args the right way around]
    Signed-off-by: Yoann Padioleau
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Acked-by: Russell King
    Cc: Bryan Wu
    Acked-by: Jiri Slaby
    Cc: Dave Airlie
    Acked-by: Roland Dreier
    Cc: Jiri Kosina
    Acked-by: Dmitry Torokhov
    Cc: Benjamin Herrenschmidt
    Acked-by: Mauro Carvalho Chehab
    Acked-by: Pierre Ossman
    Cc: Jeff Garzik
    Cc: "David S. Miller"
    Acked-by: Greg KH
    Cc: James Bottomley
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yoann Padioleau
     

18 Jul, 2007

2 commits

  • Various pieces of code around the kernel want to be able to trigger an
    orderly poweroff. This pulls them together into a single
    implementation.

    By default the poweroff command is /sbin/poweroff, but it can be set
    via sysctl: kernel/poweroff_cmd. This is split at whitespace, so it
    can include command-line arguments.

    This patch replaces four other instances of invoking either "poweroff"
    or "shutdown -h now": two sbus drivers, and acpi thermal
    management.

    sparc64 has its own "powerd"; still need to determine whether it should
    be replaced by orderly_poweroff().

    Signed-off-by: Jeremy Fitzhardinge
    Acked-by: Len Brown
    Signed-off-by: Chris Wright
    Cc: Andrew Morton
    Cc: Randy Dunlap
    Cc: Andi Kleen
    Cc: Al Viro
    Cc: Arnd Bergmann
    Cc: David S. Miller

    Jeremy Fitzhardinge
     
  • No need to warn unregister_blkdev() failure by the callers. (The previous
    patch makes unregister_blkdev() print error message in error case)

    Signed-off-by: Akinobu Mita
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita
     

17 Jul, 2007

1 commit

  • sparc64:

    drivers/sbus/char/cpwatchdog.c: In function `wd_toggleintr':
    drivers/sbus/char/cpwatchdog.c:523: error: implicit declaration of function `readb'
    drivers/sbus/char/cpwatchdog.c:533: error: implicit declaration of function `writeb'
    drivers/sbus/char/cpwatchdog.c: In function `wd_pingtimer':
    drivers/sbus/char/cpwatchdog.c:545: error: implicit declaration of function `readw'
    drivers/sbus/char/cpwatchdog.c: In function `wd_starttimer':
    drivers/sbus/char/cpwatchdog.c:584: error: implicit declaration of function `writew'
    drivers/sbus/char/cpwatchdog.c: In function `wd_init':
    drivers/sbus/char/cpwatchdog.c:767: error: implicit declaration of function `ioremap'
    drivers/sbus/char/cpwatchdog.c:767: warning: assignment makes pointer from integer without a cast
    drivers/sbus/char/cpwatchdog.c: In function `wd_cleanup':
    drivers/sbus/char/cpwatchdog.c:849: error: implicit declaration of function `iounmap'

    Cc: "David S. Miller"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     

31 May, 2007

1 commit


14 May, 2007

2 commits


12 May, 2007

1 commit


09 May, 2007

2 commits


03 May, 2007

1 commit

  • I noticed that many source files include while they do
    not appear to need it. Here is an attempt to clean it all up.

    In order to find all possibly affected files, I searched for all
    files including but without any other occurence of "pci"
    or "PCI". I removed the include statement from all of these, then I
    compiled an allmodconfig kernel on both i386 and x86_64 and fixed the
    false positives manually.

    My tests covered 66% of the affected files, so there could be false
    positives remaining. Untested files are:

    arch/alpha/kernel/err_common.c
    arch/alpha/kernel/err_ev6.c
    arch/alpha/kernel/err_ev7.c
    arch/ia64/sn/kernel/huberror.c
    arch/ia64/sn/kernel/xpnet.c
    arch/m68knommu/kernel/dma.c
    arch/mips/lib/iomap.c
    arch/powerpc/platforms/pseries/ras.c
    arch/ppc/8260_io/enet.c
    arch/ppc/8260_io/fcc_enet.c
    arch/ppc/8xx_io/enet.c
    arch/ppc/syslib/ppc4xx_sgdma.c
    arch/sh64/mach-cayman/iomap.c
    arch/xtensa/kernel/xtensa_ksyms.c
    arch/xtensa/platform-iss/setup.c
    drivers/i2c/busses/i2c-at91.c
    drivers/i2c/busses/i2c-mpc.c
    drivers/media/video/saa711x.c
    drivers/misc/hdpuftrs/hdpu_cpustate.c
    drivers/misc/hdpuftrs/hdpu_nexus.c
    drivers/net/au1000_eth.c
    drivers/net/fec_8xx/fec_main.c
    drivers/net/fec_8xx/fec_mii.c
    drivers/net/fs_enet/fs_enet-main.c
    drivers/net/fs_enet/mac-fcc.c
    drivers/net/fs_enet/mac-fec.c
    drivers/net/fs_enet/mac-scc.c
    drivers/net/fs_enet/mii-bitbang.c
    drivers/net/fs_enet/mii-fec.c
    drivers/net/ibm_emac/ibm_emac_core.c
    drivers/net/lasi_82596.c
    drivers/parisc/hppb.c
    drivers/sbus/sbus.c
    drivers/video/g364fb.c
    drivers/video/platinumfb.c
    drivers/video/stifb.c
    drivers/video/valkyriefb.c
    include/asm-arm/arch-ixp4xx/dma.h
    sound/oss/au1550_ac97.c

    I would welcome test reports for these files. I am fine with removing
    the untested files from the patch if the general opinion is that these
    changes aren't safe. The tested part would still be nice to have.

    Note that this patch depends on another header fixup patch I submitted
    to LKML yesterday:
    [PATCH] scatterlist.h needs types.h
    http://lkml.org/lkml/2007/3/01/141

    Signed-off-by: Jean Delvare
    Cc: Badari Pulavarty
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare