1. 12 8月, 2008 1 次提交
  2. 09 8月, 2008 1 次提交
  3. 08 8月, 2008 5 次提交
  4. 07 8月, 2008 11 次提交
    • A
      PCI: make pci_register_driver() a macro · bba81165
      Andrew Morton 提交于
      alpha:
      
      CC [M]  drivers/usb/gadget/u_ether.o
      In file included from include/asm/dma-mapping.h:7,
                       from include/linux/dma-mapping.h:52,
                       from include/linux/dmaengine.h:29,
                       from include/linux/skbuff.h:29,
                       from include/linux/if_ether.h:114,
                       from include/linux/etherdevice.h:27,
                       from drivers/usb/gadget/u_ether.c:29:
      include/linux/pci.h: In function 'pci_register_driver':
      include/linux/pci.h:673: error: 'KBUILD_MODNAME' undeclared (first use in this function)
      include/linux/pci.h:673: error: (Each undeclared identifier is reported only once
      include/linux/pci.h:673: error: for each function it appears in.)
      
      Sam says:
      
      The problem is that u_ether.o is used by two modules so when we build it
      KBUILD_MODNAME is not defined because kbuild does not know what value to
      use.
      
      And in pci.h we have the following inline:
      
      static inline int __must_check pci_register_driver(struct pci_driver *driver)
      {
              return __pci_register_driver(driver, THIS_MODULE, KBUILD_MODNAME);
      }
      
      And alpha uses dma-mapping.h to nullify a number of functions that seem to
      require something from pci.h.
      
      Making it a macro fixes this particular problem.  However, the underlying issue
      of a file using KBUILD_MODNAME and being shared between multiple modules is
      *not* addressed.  I guess the answer there is "don't do that".
      
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Greg KH <greg@kroah.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      bba81165
    • L
      list.h: add list_cut_position() · 00e8a4da
      Luis R. Rodriguez 提交于
      This adds list_cut_position() which lets you cut a list into
      two lists given a pivot in the list.
      Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      00e8a4da
    • L
      list.h: Add list_splice_tail() and list_splice_tail_init() · 7d283aee
      Luis R. Rodriguez 提交于
      If you are using linked lists for queues list_splice() will not do what
      you would expect even if you use the elements passed reversed. We need
      to handle these differently. We add list_splice_tail() and
      list_splice_tail_init().
      Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      7d283aee
    • R
      [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach · a09e64fb
      Russell King 提交于
      This just leaves include/asm-arm/plat-* to deal with.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      a09e64fb
    • R
      [ARM] Remove asm/hardware.h, use asm/arch/hardware.h instead · be509729
      Russell King 提交于
      Remove includes of asm/hardware.h in addition to asm/arch/hardware.h.
      Then, since asm/hardware.h only exists to include asm/arch/hardware.h,
      update everything to directly include asm/arch/hardware.h and remove
      asm/hardware.h.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      be509729
    • R
      [ARM] Eliminate useless includes of asm/mach-types.h · 0f8469a5
      Russell King 提交于
      There are 43 includes of asm/mach-types.h by files that don't
      reference anything from that file.  Remove these unnecessary
      includes.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      0f8469a5
    • G
      tcp: Fix kernel panic when calling tcp_v(4/6)_md5_do_lookup · 6edafaaf
      Gui Jianfeng 提交于
      If the following packet flow happen, kernel will panic.
      MathineA			MathineB
      		SYN
      	---------------------->    
              	SYN+ACK
      	<----------------------
      		ACK(bad seq)
      	---------------------->
      When a bad seq ACK is received, tcp_v4_md5_do_lookup(skb->sk, ip_hdr(skb)->daddr))
      is finally called by tcp_v4_reqsk_send_ack(), but the first parameter(skb->sk) is 
      NULL at that moment, so kernel panic happens.
      This patch fixes this bug.
      
      OOPS output is as following:
      [  302.812793] IP: [<c05cfaa6>] tcp_v4_md5_do_lookup+0x12/0x42
      [  302.817075] Oops: 0000 [#1] SMP 
      [  302.819815] Modules linked in: ipv6 loop dm_multipath rtc_cmos rtc_core rtc_lib pcspkr pcnet32 mii i2c_piix4 parport_pc i2c_core parport ac button ata_piix libata dm_mod mptspi mptscsih mptbase scsi_transport_spi sd_mod scsi_mod crc_t10dif ext3 jbd mbcache uhci_hcd ohci_hcd ehci_hcd [last unloaded: scsi_wait_scan]
      [  302.849946] 
      [  302.851198] Pid: 0, comm: swapper Not tainted (2.6.27-rc1-guijf #5)
      [  302.855184] EIP: 0060:[<c05cfaa6>] EFLAGS: 00010296 CPU: 0
      [  302.858296] EIP is at tcp_v4_md5_do_lookup+0x12/0x42
      [  302.861027] EAX: 0000001e EBX: 00000000 ECX: 00000046 EDX: 00000046
      [  302.864867] ESI: ceb69e00 EDI: 1467a8c0 EBP: cf75f180 ESP: c0792e54
      [  302.868333]  DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
      [  302.871287] Process swapper (pid: 0, ti=c0792000 task=c0712340 task.ti=c0746000)
      [  302.875592] Stack: c06f413a 00000000 cf75f180 ceb69e00 00000000 c05d0d86 000016d0 ceac5400 
      [  302.883275]        c05d28f8 000016d0 ceb69e00 ceb69e20 681bf6e3 00001000 00000000 0a67a8c0 
      [  302.890971]        ceac5400 c04250a3 c06f413a c0792eb0 c0792edc cf59a620 cf59a620 cf59a634 
      [  302.900140] Call Trace:
      [  302.902392]  [<c05d0d86>] tcp_v4_reqsk_send_ack+0x17/0x35
      [  302.907060]  [<c05d28f8>] tcp_check_req+0x156/0x372
      [  302.910082]  [<c04250a3>] printk+0x14/0x18
      [  302.912868]  [<c05d0aa1>] tcp_v4_do_rcv+0x1d3/0x2bf
      [  302.917423]  [<c05d26be>] tcp_v4_rcv+0x563/0x5b9
      [  302.920453]  [<c05bb20f>] ip_local_deliver_finish+0xe8/0x183
      [  302.923865]  [<c05bb10a>] ip_rcv_finish+0x286/0x2a3
      [  302.928569]  [<c059e438>] dev_alloc_skb+0x11/0x25
      [  302.931563]  [<c05a211f>] netif_receive_skb+0x2d6/0x33a
      [  302.934914]  [<d0917941>] pcnet32_poll+0x333/0x680 [pcnet32]
      [  302.938735]  [<c05a3b48>] net_rx_action+0x5c/0xfe
      [  302.941792]  [<c042856b>] __do_softirq+0x5d/0xc1
      [  302.944788]  [<c042850e>] __do_softirq+0x0/0xc1
      [  302.948999]  [<c040564b>] do_softirq+0x55/0x88
      [  302.951870]  [<c04501b1>] handle_fasteoi_irq+0x0/0xa4
      [  302.954986]  [<c04284da>] irq_exit+0x35/0x69
      [  302.959081]  [<c0405717>] do_IRQ+0x99/0xae
      [  302.961896]  [<c040422b>] common_interrupt+0x23/0x28
      [  302.966279]  [<c040819d>] default_idle+0x2a/0x3d
      [  302.969212]  [<c0402552>] cpu_idle+0xb2/0xd2
      [  302.972169]  =======================
      [  302.974274] Code: fc ff 84 d2 0f 84 df fd ff ff e9 34 fe ff ff 83 c4 0c 5b 5e 5f 5d c3 90 90 57 89 d7 56 53 89 c3 50 68 3a 41 6f c0 e8 e9 55 e5 ff <8b> 93 9c 04 00 00 58 85 d2 59 74 1e 8b 72 10 31 db 31 c9 85 f6 
      [  303.011610] EIP: [<c05cfaa6>] tcp_v4_md5_do_lookup+0x12/0x42 SS:ESP 0068:c0792e54
      [  303.018360] Kernel panic - not syncing: Fatal exception in interrupt
      Signed-off-by: NGui Jianfeng <guijianfeng@cn.fujitsu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6edafaaf
    • L
      dm9000: Support MAC address setting through platform data. · fe414248
      Laurent Pinchart 提交于
      The dm9000 driver reads the chip's MAC address from the attached EEPROM. When
      no EEPROM is present, or when the MAC address is invalid, it falls back to
      reading the address from the chip.
      
      This patch lets platform code set the desired MAC address through platform
      data.
      Signed-off-by: NLaurent Pinchart <laurentp@cse-semaphore.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      fe414248
    • B
      ethtool: Expand ethtool_cmd.speed to 32 bits · b11f8d8c
      Brandon Philips 提交于
      Introduce the speed_hi field to ethtool_cmd, using the reserved space,
      to expand the speed field to 2^32 Megabits/second.
      
      Making this field expansion now gives us plenty of time to fix up the
      user-space pieces that use SIOCETHTOOL before hardware faster than 64
      Gb/s is available.
      Signed-off-by: NBrandon Philips <bphilips@suse.de>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      b11f8d8c
    • G
      Move all of include/asm-m68knommu to arch/m68knommu/include/asm. · 58750139
      Greg Ungerer 提交于
      With the current kbuild infrastructure in place no other changes
      are required for this to work.
      Signed-off-by: NGreg Ungerer <gerg@uclinux.org>
      58750139
    • Y
      mlx4_core: Add ethernet fields to CQE struct · f780a9f1
      Yevgeny Petrilin 提交于
      Add ethernet-related fields to struct mlx4_cqe so that the mlx4_en
      ethernet NIC driver can share the same definition.
      Signed-off-by: NYevgeny Petrilin <yevgenyp@mellanox.co.il>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      f780a9f1
  5. 06 8月, 2008 9 次提交
  6. 05 8月, 2008 13 次提交