14 May, 2010

1 commit

  • This patch removes from drivers/net/ all the unnecessary
    return; statements that precede the last closing brace of
    void functions.

    It does not remove the returns that are immediately
    preceded by a label as gcc doesn't like that.

    It also does not remove null void functions with return.

    Done via:
    $ grep -rP --include=*.[ch] -l "return;\n}" net/ | \
    xargs perl -i -e 'local $/ ; while (<>) { s/\n[ \t\n]+return;\n}/\n}/g; print; }'

    with some cleanups by hand.

    Compile tested x86 allmodconfig only.

    Signed-off-by: Joe Perches
    Signed-off-by: David S. Miller

    Joe Perches
     

10 May, 2010

1 commit

  • Now that core network takes care of trans_start updates, dont do it
    in drivers themselves, if possible. Drivers can avoid one cache miss
    (on dev->trans_start) in their start_xmit() handler.

    Exceptions are NETIF_F_LLTX drivers

    Signed-off-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Eric Dumazet
     

22 Apr, 2010

1 commit


04 Apr, 2010

1 commit

  • Converts the list and the core manipulating with it to be the same as uc_list.

    +uses two functions for adding/removing mc address (normal and "global"
    variant) instead of a function parameter.
    +removes dev_mcast.c completely.
    +exposes netdev_hw_addr_list_* macros along with __hw_addr_* functions for
    manipulation with lists on a sandbox (used in bonding and 80211 drivers)

    Signed-off-by: Jiri Pirko
    Signed-off-by: David S. Miller

    Jiri Pirko
     

26 Feb, 2010

1 commit


04 Dec, 2009

1 commit

  • Only files where David Miller is the primary git-signer.
    wireless, wimax, ixgbe, etc are not modified.

    Compile tested x86 allyesconfig only
    Not all files compiled (not x86 compatible)

    Added a few > 80 column lines, which I ignored.
    Existing checkpatch complaints ignored.

    Signed-off-by: Joe Perches
    Signed-off-by: David S. Miller

    Joe Perches
     

01 Sep, 2009

1 commit


06 Jul, 2009

1 commit


13 Jun, 2009

1 commit


16 Dec, 2008

1 commit


26 Nov, 2008

1 commit

  • Fix the defactoring of ei_XXX functions in 8390 and 8390p.
    Remove the tx_timeout hack since no driver including the 3c503
    overrides tx_timeout at this time, looks like a legacy thing.

    Also, since several drivers all have same hooks, provide common
    netdev_ops.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    Stephen Hemminger
     

22 Nov, 2008

1 commit


04 Nov, 2008

1 commit


09 Oct, 2008

1 commit

  • This lockdep warning:
    =================================
    [ INFO: inconsistent lock state ]
    2.6.27-rc7 #3
    ---------------------------------
    inconsistent {in-softirq-W} -> {softirq-on-W} usage.
    syslogd/2474 [HC0[0]:SC0[0]:HE1:SE1] takes:
    (_xmit_ETHER#2){-+..}, at: [] netpoll_send_skb+0x132/0x190
    ...

    is caused by unconditional local_irq_disable()/local_irq_enable() in
    disable_irq_lockdep()/enable_irq_lockdep() used by __ei_poll(). Since
    netconsole/netpoll always calls dev->poll_controller() with local irqs
    disabled, disable_irq()/enable_irq() instead is safe and enough (like
    e.g. in 3c509 or 8139xx drivers).

    Reported-and-tested-by: Bernard Pidoux F6BVP
    Signed-off-by: Jarek Poplawski
    Signed-off-by: David S. Miller

    Jarek Poplawski
     

12 Jun, 2008

1 commit

  • From: tony@bakeyournoodle.com (Tony Breeds)

    The commit 3f8cb098859bbea29d7b3765a3102e4a6bf81b85
    (drivers/net/lib8390: fix warning, trim trailing whitespace) removed
    ei_local from ei_tx_err() and ei_rx_overrun() resulting in the following
    build errors on m68k and sh:

    Using /scratch1/tony/next as source for kernel
    GEN /scratch1/tony/next_out/Makefile
    CHK include/linux/version.h
    CHK include/linux/utsrelease.h
    CALL /scratch1/tony/next/scripts/checksyscalls.sh
    CHK include/linux/compile.h
    CC [M] drivers/net/zorro8390.o
    In file included from /scratch1/tony/next/drivers/net/zorro8390.c:47:
    drivers/net/lib8390.c: In function 'ei_tx_err':
    drivers/net/lib8390.c:556: error: 'ei_local' undeclared (first use in this function)
    drivers/net/lib8390.c:556: error: (Each undeclared identifier is reported only once
    drivers/net/lib8390.c:556: error: for each function it appears in.)
    drivers/net/lib8390.c: In function 'ei_rx_overrun':
    drivers/net/lib8390.c:823: error: 'ei_local' undeclared (first use in this function)
    make[3]: *** [drivers/net/zorro8390.o] Error 1
    make[2]: *** [drivers/net] Error 2
    make[1]: *** [drivers] Error 2
    make: *** [sub-make] Error 2

    The problem is that ei_inb_p() is using various #defines (from
    drivers/net/8390.h) that use EI_SHIFT, which in some drivers on some
    architectures use ei_local. Tag ei_local as "__maybe_unused" to keep it
    around and keep the warnings the original commit is trying to silence
    ... silenced.

    Signed-off-by: Tony Breeds
    Signed-off-by: Jeff Garzik

    Stephen Rothwell
     

13 May, 2008

2 commits


03 Feb, 2008

1 commit


31 Jul, 2007

1 commit


27 Jul, 2007

1 commit

  • Change INT0 trigger mode from edge-sense mode to level-sense mode,
    in order to fix the following timeout error:
    'NETDEV WATCHDOG: eth0: transmit timed out'.

    This patch is required only for the Mappi platform.

    Signed-off-by: Hirokazu Takata
    Cc: Hitoshi Yamamoto
    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hirokazu Takata
     

26 Apr, 2007

1 commit


02 Dec, 2006

1 commit

  • etherh and a handful of other odd drivers use different macros when building
    8390.c. Since we generate a single 8390.o and then link with it, in any
    config with both oddball and normal 8390-based driver we will end up with
    breakage in at least one of them. Solution: take most of 8390.c into
    lib8390.c and have 8390.c, etherh.c and the rest of oddballs #include it.
    Helper macros are taken from 8390.h to whoever includes lib8390.c. That
    way odd drivers get separate instances of compiled 8390 stuff and stop
    stepping on each other's toes. 8390.h gets cleaned up - we don't have
    the cascade of ifdefs in there and are left with the stuff that can be
    used by any 8390-based driver. Current problems are exactly because of
    that cascade - we attempt to choose the set of helpers by looking at config
    and that, of course, doesn't work well when we have several sets needed
    by various drivers in our config.

    Signed-off-by: Al Viro
    Signed-off-by: Jeff Garzik

    Al Viro