1. 20 12月, 2011 1 次提交
  2. 08 12月, 2011 3 次提交
  3. 02 12月, 2011 1 次提交
  4. 28 11月, 2011 1 次提交
  5. 22 11月, 2011 1 次提交
    • T
      freezer: unexport refrigerator() and update try_to_freeze() slightly · a0acae0e
      Tejun Heo 提交于
      There is no reason to export two functions for entering the
      refrigerator.  Calling refrigerator() instead of try_to_freeze()
      doesn't save anything noticeable or removes any race condition.
      
      * Rename refrigerator() to __refrigerator() and make it return bool
        indicating whether it scheduled out for freezing.
      
      * Update try_to_freeze() to return bool and relay the return value of
        __refrigerator() if freezing().
      
      * Convert all refrigerator() users to try_to_freeze().
      
      * Update documentation accordingly.
      
      * While at it, add might_sleep() to try_to_freeze().
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: Samuel Ortiz <samuel@sortiz.org>
      Cc: Chris Mason <chris.mason@oracle.com>
      Cc: "Theodore Ts'o" <tytso@mit.edu>
      Cc: Steven Whitehouse <swhiteho@redhat.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Jan Kara <jack@suse.cz>
      Cc: KONISHI Ryusuke <konishi.ryusuke@lab.ntt.co.jp>
      Cc: Christoph Hellwig <hch@infradead.org>
      a0acae0e
  6. 19 11月, 2011 1 次提交
    • G
      USB: convert drivers/net/* to use module_usb_driver() · d632eb1b
      Greg Kroah-Hartman 提交于
      This converts the drivers in drivers/net/* to use the
      module_usb_driver() macro which makes the code smaller and a bit
      simpler.
      
      Added bonus is that it removes some unneeded kernel log messages about
      drivers loading and/or unloading.
      
      Cc: Wolfgang Grandegger <wg@grandegger.com>
      Cc: Samuel Ortiz <samuel@sortiz.org>
      Cc: Oliver Neukum <oliver@neukum.name>
      Cc: Peter Korsgaard <jacmet@sunsite.dk>
      Cc: Petko Manolov <petkan@users.sourceforge.net>
      Cc: Steve Glendinning <steve.glendinning@smsc.com>
      Cc: Christian Lamparter <chunkeey@googlemail.com>
      Cc: "John W. Linville" <linville@tuxdriver.com>
      Cc: Dan Williams <dcbw@redhat.com>
      Cc: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
      Cc: Ivo van Doorn <IvDoorn@gmail.com>
      Cc: Gertjan van Wingerde <gwingerde@gmail.com>
      Cc: Helmut Schaa <helmut.schaa@googlemail.com>
      Cc: Herton Ronaldo Krzesinski <herton@canonical.com>
      Cc: Hin-Tak Leung <htl10@users.sourceforge.net>
      Cc: Larry Finger <Larry.Finger@lwfinger.net>
      Cc: Chaoming Li <chaoming_li@realsil.com.cn>
      Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Roel Kluin <roel.kluin@gmail.com>
      Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
      Cc: Jiri Pirko <jpirko@redhat.com>
      Cc: Pavel Roskin <proski@gnu.org>
      Cc: Yoann DI-RUZZA <y.diruzza@lim.eu>
      Cc: George <george0505@realtek.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      d632eb1b
  7. 25 10月, 2011 1 次提交
  8. 11 10月, 2011 1 次提交
  9. 16 9月, 2011 3 次提交
  10. 11 8月, 2011 3 次提交
    • K
      net/irda: sh_sir: tidyup compile warning · 2eed7982
      Kuninori Morimoto 提交于
      This patch tidyup below warning
      
      ${LINUX}/drivers/net/irda/sh_sir.c:514:6: warning:
       'val' may be used uninitialized in this function
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2eed7982
    • K
      net/irda: sh_sir: add missing header · 86d0aff0
      Kuninori Morimoto 提交于
      This patch fixup below build error on sh_sir
      
      sh_sir.c: In function 'sh_sir_write':
      sh_sir.c:127:2: error: implicit declaration of function 'iowrite16'
      sh_sir.c: In function 'sh_sir_read':
      sh_sir.c:132:2: error: implicit declaration of function 'ioread16'
      sh_sir.c: At top level:
      sh_sir.c:561:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sh_sir_irq'
      sh_sir.c: In function 'sh_sir_probe':
      sh_sir.c:727:2: error: implicit declaration of function 'ioremap_nocache'
      sh_sir.c:727:16: warning: assignment makes pointer from integer without a cast
      sh_sir.c:762:2: error: implicit declaration of function 'request_irq'
      sh_sir.c:762:23: error: 'sh_sir_irq' undeclared (first use in this function)
      sh_sir.c:762:23: note: each undeclared identifier is reported only once for each function it appears in
      sh_sir.c:762:35: error: 'IRQF_DISABLED' undeclared (first use in this function)
      sh_sir.c:776:2: error: implicit declaration of function 'iounmap'
      sh_sir.c: At top level:
      sh_sir.c:436:13: warning: 'sh_sir_clear_all_err' defined but not used
      sh_sir.c:474:12: warning: 'sh_sir_is_which_phase' defined but not used
      sh_sir.c:490:13: warning: 'sh_sir_tx' defined but not used
      sh_sir.c:540:13: warning: 'sh_sir_rx' defined but not used
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      86d0aff0
    • K
      net/irda: sh_irda: add missing header · a916d82b
      Kuninori Morimoto 提交于
      This patch fixup below build error on sh_irda
      
      sh_irda.c: In function 'sh_irda_write':
      sh_irda.c:174: error: implicit declaration of function 'iowrite16'
      sh_irda.c: In function 'sh_irda_read':
      sh_irda.c:184: error: implicit declaration of function 'ioread16'
      sh_irda.c: At top level:
      sh_irda.c:492: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sh_irda_irq'
      sh_irda.c: In function 'sh_irda_probe':
      sh_irda.c:776: error: implicit declaration of function 'ioremap_nocache'
      sh_irda.c:776: warning: assignment makes pointer from integer without a cast
      sh_irda.c:811: error: implicit declaration of function 'request_irq'
      sh_irda.c:811: error: 'sh_irda_irq' undeclared (first use in this function)
      sh_irda.c:811: error: (Each undeclared identifier is reported only once
      sh_irda.c:811: error: for each function it appears in.)
      sh_irda.c:811: error: 'IRQF_DISABLED' undeclared (first use in this function)
      sh_irda.c:825: error: implicit declaration of function 'iounmap'
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a916d82b
  11. 04 8月, 2011 1 次提交
  12. 24 6月, 2011 1 次提交
  13. 22 6月, 2011 2 次提交
  14. 07 6月, 2011 1 次提交
  15. 06 6月, 2011 1 次提交
  16. 04 6月, 2011 1 次提交
    • L
      Revert "tty: make receive_buf() return the amout of bytes received" · 55db4c64
      Linus Torvalds 提交于
      This reverts commit b1c43f82.
      
      It was broken in so many ways, and results in random odd pty issues.
      
      It re-introduced the buggy schedule_work() in flush_to_ldisc() that can
      cause endless work-loops (see commit a5660b41: "tty: fix endless
      work loop when the buffer fills up").
      
      It also used an "unsigned int" return value fo the ->receive_buf()
      function, but then made multiple functions return a negative error code,
      and didn't actually check for the error in the caller.
      
      And it didn't actually work at all.  BenH bisected down odd tty behavior
      to it:
        "It looks like the patch is causing some major malfunctions of the X
         server for me, possibly related to PTYs.  For example, cat'ing a
         large file in a gnome terminal hangs the kernel for -minutes- in a
         loop of what looks like flush_to_ldisc/workqueue code, (some ftrace
         data in the quoted bits further down).
      
         ...
      
         Some more data: It -looks- like what happens is that the
         flush_to_ldisc work queue entry constantly re-queues itself (because
         the PTY is full ?) and the workqueue thread will basically loop
         forver calling it without ever scheduling, thus starving the consumer
         process that could have emptied the PTY."
      
      which is pretty much exactly the problem we fixed in a5660b41.
      
      Milton Miller pointed out the 'unsigned int' issue.
      Reported-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Reported-by: NMilton Miller <miltonm@bga.com>
      Cc: Stefan Bigler <stefan.bigler@keymile.com>
      Cc: Toby Gray <toby.gray@realvnc.com>
      Cc: Felipe Balbi <balbi@ti.com>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      55db4c64
  17. 01 6月, 2011 1 次提交
  18. 24 5月, 2011 1 次提交
  19. 10 5月, 2011 1 次提交
  20. 23 4月, 2011 1 次提交
  21. 19 4月, 2011 1 次提交
  22. 31 3月, 2011 1 次提交
  23. 30 3月, 2011 2 次提交
  24. 18 2月, 2011 1 次提交
  25. 19 1月, 2011 1 次提交
  26. 10 1月, 2011 2 次提交
  27. 04 1月, 2011 1 次提交
    • S
      smsc-ircc2: Fix section mismatch derived from smsc_ircc_pnp_probe() · 1170bed0
      Sedat Dilek 提交于
      This fixes the following warning:
      
      drivers/net/irda/smsc-ircc2.o(.data+0x18): Section mismatch in reference from the variable smsc_ircc_pnp_driver to the function .init.text:smsc_ircc_pnp_probe()
      The variable smsc_ircc_pnp_driver references
      the function __init smsc_ircc_pnp_probe()
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the variable:
      *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      Tested with linux-next (next-20101231)
      Signed-off-by: NSedat Dilek <sedat.dilek@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1170bed0
  28. 21 12月, 2010 1 次提交
  29. 12 12月, 2010 1 次提交
    • T
      drivers/net: don't use flush_scheduled_work() · 23f333a2
      Tejun Heo 提交于
      flush_scheduled_work() is on its way out.  This patch contains simple
      conversions to replace flush_scheduled_work() usage with direct
      cancels and flushes.
      
      Directly cancel the used works on driver detach and flush them in
      other cases.
      
      The conversions are mostly straight forward and the only dangers are,
      
      * Forgetting to cancel/flush one or more used works.
      
      * Cancelling when a work should be flushed (ie. the work must be
        executed once scheduled whether the driver is detaching or not).
      
      I've gone over the changes multiple times but it would be much
      appreciated if you can review with the above points in mind.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jay Cliburn <jcliburn@gmail.com>
      Cc: Michael Chan <mchan@broadcom.com>
      Cc: Divy Le Ray <divy@chelsio.com>
      Cc: e1000-devel@lists.sourceforge.net
      Cc: Vasanthy Kolluri <vkolluri@cisco.com>
      Cc: Samuel Ortiz <samuel@sortiz.org>
      Cc: Lennert Buytenhek <buytenh@wantstofly.org>
      Cc: Andrew Gallatin <gallatin@myri.com>
      Cc: Francois Romieu <romieu@fr.zoreil.com>
      Cc: Ramkrishna Vepa <ramkrishna.vepa@exar.com>
      Cc: Matt Carlson <mcarlson@broadcom.com>
      Cc: David Brownell <dbrownell@users.sourceforge.net>
      Cc: Shreyas Bhatewara <sbhatewara@vmware.com>
      Cc: netdev@vger.kernel.org
      23f333a2
  30. 22 11月, 2010 1 次提交
  31. 02 11月, 2010 1 次提交