17 Oct, 2007

40 commits

  • Remove some remaining vestiges of the old hacks jsm had to work around the old
    tty buffering. With the new tty buffering it simply doesn't matter any more.

    [michal.k.k.piotrowski@gmail.com: fix warning]
    Signed-off-by: Alan Cox
    Acked-by: Scott Kilau
    Cc: Michal Piotrowski
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • We simply define it to the same value. Nowdays the TTY flip value is
    irrelevant but the value it used is as good as any so why risk breaking it

    Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • There have been issues with non-latin1 diacritics and unicode.
    http://bugzilla.kernel.org/show_bug.cgi?id=7746

    Git 759448f459234bfcf34b82471f0dba77a9aca498 `Kernel utf-8 handling'
    partly resolved it by adding conversion between diacritics and
    unicode. The patch below goes further by just turning diacritics into
    unicode, hence providing better future support. The kbd support can be
    fetched from
    http://bugzilla.kernel.org/attachment.cgi?id=12313

    This was tested in all of latin1, latin9, latin2 and unicode with french
    and czech dead keys.

    Turn the kernel accent_table into unicode, and extend ioctls KDGKBDIACR
    and KDSKBDIACR into their equivalents KDGKBDIACRUC and KDSKBDIACR.

    New function int conv_uni_to_8bit(u32 uni) for converting unicode into 8bit
    _input_. No, we don't want to store the translation, as it is potentially
    sparse and large.

    Signed-off-by: Samuel Thibault
    Cc: Jan Engelhardt
    Cc: "Antonino A. Daplas"
    Cc: David Woodhouse
    Cc: Martin Schwidefsky
    Cc: Heiko Carstens
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Samuel Thibault
     
  • We can just use skb_mac_header now, and we don't need a wrapper function to
    perform the cast. Instead of requiring the reader to check aoe.h to look
    up what an aoe_hdr function does, I'd rather do without it.

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

    Ed L. Cashin
     
  • There's a small and unlikely memory leak in
    drivers/pnp/pnpbios/proc.c::proc_read_escd(). It's inside a sanity check,
    so it probably won't trigger often (if at all), however it *is* a potential
    leak and it's easy to avoid, so let's just fix it :)

    Signed-off-by: Jesper Juhl
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     
  • Driver does
    proc_mkdir("ipmi", NULL);
    but
    remove_proc_entry(proc_ipmi_root->name, &proc_root);

    This is OK and working if only slightly inconsistent. Also changing
    proc_root to NULL will help OpenVZ which has multiple proc roots and, as we
    now know, requires matching parents in such cases.

    Signed-off-by: Alexey Dobriyan
    Cc: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • If we discover the TIS TPM device via PNP, use the PNP IRQ information rather
    than probing for an IRQ. If PNP shows no IRQ, run the TPM in polling mode.

    Tested-by:
    Signed-off-by: Bjorn Helgaas
    Cc: Kylene Hall
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • drivers/char/ip2/ip2main.c | 104398 -> 104346 (-52 bytes)
    drivers/char/ip2/ip2main.o | 210710 -> 210702 (-8 bytes)

    Signed-off-by: Mariusz Kozlowski
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mariusz Kozlowski
     
  • drivers/char/consolemap.c | 22678 -> 22650 (-28 bytes)
    drivers/char/consolemap.o | 90113 -> 90029 (-84 bytes)

    Signed-off-by: Mariusz Kozlowski
    Acked-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mariusz Kozlowski
     
  • * Remove stupid comments, like, at the beginning of every function that
    function begins (twice per function) and at the end (once)
    * Remove trailing or otherwise broken whitespace as per let c_space_errors=1
    * Reformat comments to fit it into 80 columns and remove stupid ------------'s.
    * Indent case labels on the same column where switch begins
    * other minor CS tweaks not worth mentioning

    Signed-off-by: Alexey Dobriyan
    Cc: Jiri Slaby
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • Adrian Bunk points out that "unsafe" was used to mark modules touched by
    the deprecated MOD_INC_USE_COUNT interface, which has long gone. It's time
    to remove the member from the module structure, as well.

    If you want a module which can't unload, don't register an exit function.

    (Vlad Yasevich says SCTP is now safe to unload, so just remove the
    __unsafe there).

    Signed-off-by: Rusty Russell
    Acked-by: Shannon Nelson
    Acked-by: Dan Williams
    Acked-by: Vlad Yasevich
    Cc: Sridhar Samudrala
    Cc: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     
  • It's *wrong* to have
    #define log2(n) ffz(~(n))
    It should be *reversed*:
    #define log2(n) flz(~(n))
    or
    #define log2(n) fls(n)
    or just use
    ilog2(n) defined in linux/log2.h.

    This patch follows the last solution, recommended by Andrew Morton.

    Cc:
    Cc: Mingming Cao
    Cc: Bjorn Helgaas
    Cc: Chris Ahna
    Cc: David Mosberger-Tang
    Cc: Kyle McMartin
    Cc: Dave Airlie
    Cc: Dave Jones
    Signed-off-by: Fengguang Wu
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Fengguang Wu
     
  • This patch cleans up duplicate includes in
    drivers/w1/

    Signed-off-by: Jesper Juhl
    Acked-by: Evgeniy Polyakov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     
  • This patch cleans up duplicate includes in
    drivers/char/

    Signed-off-by: Jesper Juhl
    Cc: Richard Purdie
    Cc: Ralf Baechle
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     
  • Driver for the CompactFlash slot on the PA Semi Electra eval board. It's
    a simple device sitting on localbus, with interrupts and detect/voltage
    control over GPIO.

    The driver is implemented as an of_platform driver, and adds localbus
    as a bus being probed by the of_platform framework.

    [akpm@linux-foundation.org: cleanups]
    [olof@lixom.net: fix build]
    Signed-off-by: Olof Johansson
    Cc: Christoph Hellwig
    Cc: Milton Miller
    Cc: Kumar Gala
    Cc: Benjamin Herrenschmidt
    Cc: Paul Mackerras
    Cc: Dominik Brodowski
    Signed-off-by: Olof Johansson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Olof Johansson
     
  • Signed-off-by: Diego Woitasen
    Cc: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Diego Woitasen
     
  • This memcpy looks so strange, in fact it's merely a pointer dereference, so I
    change the parameter's type to refer it more directly, this could make the
    memcpy not needed anymore.

    In the function nbd_read_stat where nbd_find_request is only once called, the
    parameter served should be transformed accordingly.

    Signed-off-by: Denis Cheng
    Cc: Paul Clements
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Denis Cheng
     
  • Thus the traverse of the loop may delete nodes, use the safe version.

    Signed-off-by: Denis Cheng
    Cc: Paul Clements
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Denis Cheng
     
  • DECLARE_MUTEX_LOCKED was used for semaphores used as completions and we've
    got rid of them. Well, except for one in libusual that the maintainer
    explicitly wants to keep as semaphore. So convert that useage to an
    explicit sema_init and kill of DECLARE_MUTEX_LOCKED so that new code is
    reminded to use a completion.

    Signed-off-by: Christoph Hellwig
    Acked-by: "Satyam Sharma"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Hellwig
     
  • The Synchronous Serial Controller (SSC) on Atmel microprocessors are
    capable of tranceiving many frame based protocols, like I2S. Tested on the
    AT32AP7000/ATSTK1000.

    This driver is used in the ALSA sound driver for the AT73C213 external DAC
    on the ATSTK1000 development board for AVR32. This sound driver will be
    submitted soon.

    Hardware documentation can be found in the AT32AP7000 data sheet, which can
    be downloaded from
    http://www.atmel.com/dyn/products/datasheets.asp?family_id=682

    [akpm@linux-foundation.org: init spinlock at compile time]
    Signed-off-by: Hans-Christian Egtvedt
    Acked-by: Haavard Skinnemoen
    Cc: David Brownell
    Cc: Andrew Victor
    Cc: Patrice Vilchez
    Cc: Nicolas Ferre
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hans-Christian Egtvedt
     
  • Move the OOM killer's extern function prototypes to include/linux/oom.h and
    include it where necessary.

    [clg@fr.ibm.com: build fix]
    Cc: Andrea Arcangeli
    Acked-by: Christoph Lameter
    Signed-off-by: David Rientjes
    Signed-off-by: Cedric Le Goater
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Rientjes
     
  • Slab constructors currently have a flags parameter that is never used. And
    the order of the arguments is opposite to other slab functions. The object
    pointer is placed before the kmem_cache pointer.

    Convert

    ctor(void *object, struct kmem_cache *s, unsigned long flags)

    to

    ctor(struct kmem_cache *s, void *object)

    throughout the kernel

    [akpm@linux-foundation.org: coupla fixes]
    Signed-off-by: Christoph Lameter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Lameter
     
  • provide BDI constructor/destructor hooks

    [akpm@linux-foundation.org: compile fix]
    Signed-off-by: Peter Zijlstra
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     
  • * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6:
    WOL bugfix for 3c59x.c
    skge 1.12
    skge: add a debug interface
    skge: eeprom support
    skge: internal stats
    skge: XM PHY handling fixes
    skge: changing MTU while running causes problems
    skge: fix ram buffer size calculation
    gianfar: Fix compile regression caused by 09f75cd7
    net: Fix new EMAC driver for NAPI changes
    bonding: two small fixes for IPoIB support
    e1000e: don't poke PHY registers to retreive link status
    e1000e: fix error checks
    e1000e: Fix debug printk macro
    tokenring/3c359.c: fixed array index problem
    [netdrvr] forcedeth: remove in-driver copy of net_device_stats
    [netdrvr] forcedeth: improved probe info; dev_printk() cleanups
    forcedeth: fix NAPI rx poll function

    Linus Torvalds
     
  • AFAICS, fallout from repacing include of blkdev.h with include of bio.h.

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • This fixes a lost 'key' variable declaration that went missing in a
    mismerge (commit b981d8b3f5e008ff10d993be633ad00564fc22cd)

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Some NICs (3c905B) can not generate PME in power state PCI_D0, while others
    like 3c905C can. Call pci_enable_wake() with PCI_D3hot should give proper
    WOL for 3c905B.

    Signed-off-by: Steffen Klassert
    Tested-by: Harry Coin
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    Steffen Klassert
     
  • version update

    Signed-off-by: Stephen Hemminger
    Signed-off-by: Jeff Garzik

    Stephen Hemminger
     
  • Add a debugfs interface to look at internal ring state.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: Jeff Garzik

    Stephen Hemminger
     
  • Add ability to read/write EEPROM

    Signed-off-by: Stephen Hemminger
    Signed-off-by: Jeff Garzik

    Stephen Hemminger
     
  • Use internal stats structure

    Signed-off-by: Stephen Hemminger
    Signed-off-by: Jeff Garzik

    Stephen Hemminger
     
  • Change how PHY is managed on SysKonnect fibre based boards.
    Poll for PHY coming up 1 per second, but use interrupt to detect loss.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: Jeff Garzik

    Stephen Hemminger
     
  • Rather than bring network down/up when changing MTU,
    only need to impact receiver.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: Jeff Garzik

    Stephen Hemminger
     
  • This fixes problems with transmit hangs on older fiber based SysKonnect boards.

    Adjust ram buffer sizing calculation to make it correct on all boards
    and make it like the code in sky2 driver.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: Jeff Garzik

    Stephen Hemminger
     
  • Signed-off-by: Li Yang
    Signed-off-by: Jeff Garzik

    Li Yang
     
  • net: Fix new EMAC driver for NAPI changes

    This fixes the new EMAC driver for the NAPI updates. The previous patch
    by Roland Dreier (already applied) to do that doesn't actually work. This
    applies on top of it makes it work on my test Ebony machine.

    This patch depends on "net: Add __napi_sycnhronize() to sync with napi poll"
    posted previously.

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Jeff Garzik

    Benjamin Herrenschmidt
     
  • Two small fixes to IPoIB support for bonding:

    1- copy header_ops from slave to bonding for IPoIB slaves
    2- move release and destroy logic to UNREGISTER from GOING_DOWN
    notifier to avoid double release

    Set bonding to version 3.2.1.

    Signed-off-by: Moni Shoua
    Signed-off-by: Jay Vosburgh
    Signed-off-by: Jeff Garzik

    Jay Vosburgh
     
  • Apparently poking the link status registers when autonegotiation
    is running on the PHY might botch the PHY link on 80003es2lan
    devices. While this is a very rare condition we can completely
    avoid it alltogether by just using the MAC link bits to provide
    the proper information to ethtool.

    Signed-off-by: Auke Kok
    Signed-off-by: Jeff Garzik

    Auke Kok
     
  • Spotted by the Coverity checker.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Auke Kok
    Signed-off-by: Jeff Garzik

    Adrian Bunk
     
  • Spotted by Joe Perches.

    Signed-off-by: Auke Kok
    Signed-off-by: Jeff Garzik

    Auke Kok