Skip to content
  1. Nov 25, 2006
  2. Nov 24, 2006
  3. Nov 23, 2006
    • Adrian Bunk's avatar
      [SCSI] advansys pci tweaks. · 5ab53cfe
      Adrian Bunk authored
      
      
      Remove a lot of duplicate #defines from the advansys driver,
      and make them look like PCI IDs as defined elsewhere in the kernel.
      Also add a module table so that it automatically gets picked up
      by tools relying on modinfo output (like say, distro installers).
      
      Signed-off-by: default avatarDave Jones <davej@redhat.com>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      5ab53cfe
    • Randy Dunlap's avatar
      advansys section fixes · bc1061ba
      Randy Dunlap authored
      
      
      Priority: not critical.
      Mark 3 functions __init.  Saves a little memory.
      This makes these functions' calls to AdvWaitEEPCmd() (which is __init)
      be clean (i.e., eliminates text -> init -> text call chain).
      
      Fix multiple section mismatch warnings:
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7a22) and 'AdvSet38C0800EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7a4e) and 'AdvSet38C0800EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7a79) and 'AdvSet38C0800EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7aa2) and 'AdvSet38C0800EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet3550EEPConfig' (at offset 0x7abb) and 'AdvSet38C0800EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7ae0) and 'AdvSet38C1600EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b0c) and 'AdvSet38C1600EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b37) and 'AdvSet38C1600EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b60) and 'AdvSet38C1600EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C0800EEPConfig' (at offset 0x7b79) and 'AdvSet38C1600EEPConfig'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7b9e) and 'AdvExeScsiQueue'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7bca) and 'AdvExeScsiQueue'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7bf5) and 'AdvExeScsiQueue'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7c1e) and 'AdvExeScsiQueue'
      WARNING: drivers/scsi/advansys.o - Section mismatch: reference to .init.text: from .text between 'AdvSet38C1600EEPConfig' (at offset 0x7c37) and 'AdvExeScsiQueue'
      
      Signed-off-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      bc1061ba
    • Linus Torvalds's avatar
      [SCSI] advansys driver: limp along on x86 · 3e7fbd08
      Linus Torvalds authored
      
      
      Let people enable the advansys driver on x86-32, even though it's broken
      on other architectures due to missing DMA mapping infrastructure.
      
      It's used by Jeffrey Phillips Freeman <jeffreyfreeman@syncleus.com> and
      possibly others.
      
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      3e7fbd08
    • Alexey Dobriyan's avatar
      i2c-ixp4xx: fix ") != 0))" typo · 5e8721dc
      Alexey Dobriyan authored
      
      
      i2c_bit_add_bus() returns -E;
      -E != 0             =>      err = 1
      probe fails with positive error code
      
      Signed-off-by: default avatarAlexey Dobriyan <adobriyan@openvz.org>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      5e8721dc
  4. Nov 22, 2006
  5. Nov 20, 2006
  6. Nov 19, 2006
  7. Nov 17, 2006
    • Dmitry Mishin's avatar
      Fix timer race in dst GC code · 9e9c7147
      Dmitry Mishin authored
      
      
      Replace add_timer() by mod_timer() in dst_run_gc
      in order to avoid BUG message.
      
         CPU1                            CPU2
      dst_run_gc()  entered           dst_run_gc() entered
      spin_lock(&dst_lock)                   .....
      del_timer(&dst_gc_timer)         fail to get lock
         ....                         mod_timer() <--- puts
                                                   timer back
                                                   to the list
      add_timer(&dst_gc_timer) <--- BUG because timer is in list already.
      
      Found during OpenVZ internal testing.
      
      At first we thought that it is OpenVZ specific as we
      added dst_run_gc(0) call in dst_dev_event(),
      but as Alexey pointed to me it is possible to trigger
      this condition in mainstream kernel.
      
      F.e. timer has fired on CPU2, but the handler was preeempted
      by an irq before dst_lock is tried.
      Meanwhile, someone on CPU1 adds an entry to gc list and
      starts the timer.
      If CPU2 was preempted long enough, this timer can expire
      simultaneously with resuming timer handler on CPU1, arriving
      exactly to the situation described.
      
      Signed-off-by: default avatarDmitry Mishin <dim@openvz.org>
      Signed-off-by: default avatarKirill Korotaev <dev@openvz.org>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      9e9c7147
Loading