1. 28 1月, 2009 4 次提交
  2. 27 1月, 2009 8 次提交
  3. 26 1月, 2009 1 次提交
  4. 23 1月, 2009 2 次提交
  5. 22 1月, 2009 3 次提交
  6. 21 1月, 2009 2 次提交
    • J
      klist.c: bit 0 in pointer can't be used as flag · c0e69a5b
      Jesper Nilsson 提交于
      The commit a1ed5b0c
      (klist: don't iterate over deleted entries) introduces use of the
      low bit in a pointer to indicate if the knode is dead or not,
      assuming that this bit is always free.
      
      This is not true for all architectures, CRIS for example may align data
      on byte borders.
      
      The result is a bunch of warnings on bootup, devices not being
      added correctly etc, reported by Hinko Kocevar <hinko.kocevar@cetrtapot.si>:
      
      ------------[ cut here ]------------
      WARNING: at lib/klist.c:62 ()
      Modules linked in:
      
      Stack from c1fe1cf0:
             c01cc7f4 c1fe1d11 c000eb4e c000e4de 00000000 00000000 c1f4f78f c1f50c2d
             c01d008c c1fdd1a0 c1fdd1a0 c1fe1d38 c0192954 c1fe0000 00000000 c1fe1dc0
             00000002 7fffffff c1fe1da8 c0192d50 c1fe1dc0 00000002 7fffffff c1ff9fcc
      Call Trace: [<c000eb4e>] [<c000e4de>] [<c0192954>] [<c0192d50>] [<c001d49e>] [<c000b688>] [<c0192a3c>]
             [<c000b63e>] [<c000b63e>] [<c001a542>] [<c00b55b0>] [<c00411c0>] [<c00b559c>] [<c01918e6>] [<c0191988>]
             [<c01919d0>] [<c00cd9c8>] [<c00cdd6a>] [<c0034178>] [<c000409a>] [<c0015576>] [<c0029130>] [<c0029078>]
             [<c0029170>] [<c0012336>] [<c00b4076>] [<c00b4770>] [<c006d6e4>] [<c006d974>] [<c006dca0>] [<c0028d6c>]
             [<c0028e12>] [<c0006424>] <4>---[ end trace 4eaa2a86a8e2da22 ]---
      ------------[ cut here ]------------
      Repeat ad nauseam.
      
      Wed, Jan 14, 2009 at 12:11:32AM +0100, Bastien ROUCARIES wrote:
      > Perhaps using a pointerhackalign trick on this structure where
      > #define pointerhackalign(x) __attribute__ ((aligned (x)))
      > and declare
      > struct klist_node {
      > ...
      > }  pointerhackalign(2);
      >
      > Because  __attribute__ ((aligned (x))) could only increase alignment
      > it will safe to do that and serve as documentation purpose :)
      
      That works, but we need to do it not for the struct klist_node,
      but for the struct we insert into the void * in klist_node,
      which is struct klist.
      
      Reported-by: Hinko Kocevar <hinko.kocevar@cetrtapot.si
      Cc: Bastien ROUCARIES <roucaries.bastien@gmail.com>
      Signed-off-by: NJesper Nilsson <jesper.nilsson@axis.com>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      c0e69a5b
    • I
      debugfs: introduce stub for debugfs_create_size_t() when DEBUG_FS=n · 8adb711f
      Inaky Perez-Gonzalez 提交于
      Toralf Förster <toralf.foerster@gmx.de> reported a build failure in
      the WiMAX stack when CONFIG_DEBUG_FS=n
      
      http://linuxwimax.org/pipermail/wimax/2009-January/000449.html
      
      This is due to debugfs_create_size_t() missing an stub that returns
      -ENODEV when the DEBUGFS subsystem is not configured in (like the rest
      of the debugfs API).
      
      This patch adds said stub.
      Reported-by: NToralf Förster <toralf.foerster@gmx.de>
      Signed-off-by: NInaky Perez-Gonzalez <inaky@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      8adb711f
  7. 20 1月, 2009 2 次提交
  8. 17 1月, 2009 4 次提交
    • R
      mac80211: more kernel-doc fixes · b6b50a21
      Randy Dunlap 提交于
      Fix (delete) more mac80211 kernel-doc:
      
      Warning(linux-2.6.28-git13//include/net/mac80211.h:375): Excess struct/union/enum/typedef member 'retry_count' description in 'ieee80211_tx_info'
      Warning(linux-2.6.28-git13//net/mac80211/sta_info.h:308): Excess struct/union/enum/typedef member 'last_txrate' description in 'sta_info'
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      b6b50a21
    • R
      PCI PM: Restore standard config registers of all devices early · aa8c6c93
      Rafael J. Wysocki 提交于
      There is a problem in our handling of suspend-resume of PCI devices that
      many of them have their standard config registers restored with
      interrupts enabled and they are put into the full power state with
      interrupts enabled as well.  This may lead to the following scenario:
        * an interrupt vector is shared between two or more devices
        * one device is resumed earlier and generates an interrupt
        * the interrupt handler of another device tries to handle it and
          attempts to access the device the config space of which hasn't been
          restored yet and/or which still is in a low power state
        * the system crashes as a result
      
      To prevent this from happening we should restore the standard
      configuration registers of all devices with interrupts disabled and we
      should put them into the D0 power state right after that.
      Unfortunately, this cannot be done using the existing
      pci_set_power_state(), because it can sleep.  Also, to do it we have to
      make sure that the config spaces of all devices were actually saved
      during suspend.
      Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
      Acked-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      aa8c6c93
    • D
      ACPI: fix ACPI_FADT_S4_RTC_WAKE comment · c3407710
      David Brownell 提交于
      Make the comment for ACPI_FADT_S4_RTC_WAKE match the ACPI spec;
      that bit has nothing to do with status bits.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      c3407710
    • J
      quota: Improve locking · cc33412f
      Jan Kara 提交于
      We implement dqget() and dqput() that need neither dqonoff_mutex nor dqptr_sem.
      Then move dqget() and dqput() calls so that they are not called from under
      dqptr_sem. This is important because filesystem callbacks aren't called from
      under dqptr_sem which used to cause *lots* of problems with lock ranking
      (and with OCFS2 they became close to unsolvable).
      
      The patch also removes two functions which were introduced solely because OCFS2
      needed them to cope with the old locking scheme. As time showed, they were not
      enough for OCFS2 anyway and it would be unnecessary work to adapt them to the
      new locking scheme in which they aren't needed.  As a result OCFS2 needs the
      following patch to compile properly with quotas.  Sorry to any bisecters which
      hit this in advance.
      Signed-off-by: NJan Kara <jack@suse.cz>
      cc33412f
  9. 16 1月, 2009 10 次提交
    • D
      libata: Add another column to the ata_timing table. · 3ada9c12
      David Daney 提交于
      The forthcoming OCTEON SOC Compact Flash driver needs an additional
      timing value that was not available in the ata_timing table.  I add a
      new column for dmack_hold time.  The values were obtained from the
      Compact Flash specification Rev 4.1.
      Signed-off-by: NDavid Daney <ddaney@caviumnetworks.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      3ada9c12
    • J
      [libata] get-identity ioctl: Fix use of invalid memory pointer · 94be9a58
      Jeff Garzik 提交于
      for SAS drivers.
      
      Caught by Ke Wei (and team?) at Marvell.
      
      Also, move the ata_scsi_ioctl export to libata-scsi.c, as that seems to be the
      general trend.
      Acked-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      94be9a58
    • S
      m68k,m68knommu: merge header files · 49148020
      Sam Ravnborg 提交于
      Merge header files for m68k and m68knommu to the single location:
      
          arch/m68k/include/asm
      
      The majority of this patch was the result of the
      script that is included in the changelog below.
      
      The script was originally written by Arnd Bergman and
      exten by me to cover a few more files.
      
      When the header files differed the script uses the following:
      
      The original m68k file is named <file>_mm.h  [mm for memory manager]
      The m68knommu file is named <file>_no.h [no for no memory manager]
      
      The files uses the following include guard:
      
      This include gaurd works as the m68knommu toolchain set
      the __uClinux__ symbol - so this should work in userspace too.
      
      Merging the header files for m68k and m68knommu exposes the
      (unexpected?) ABI differences thus it is easier to actually
      identify these and thus to fix them.
      
      The commit has been build tested with both a m68k and
      a m68knommu toolchain - with success.
      
      The commit has also been tested with "make headers_check"
      and this patch fixes make headers_check for m68knommu.
      
      The script used:
      TARGET=arch/m68k/include/asm
      SOURCE=arch/m68knommu/include/asm
      
      INCLUDE="cachectl.h errno.h fcntl.h hwtest.h ioctls.h ipcbuf.h \
      linkage.h math-emu.h md.h mman.h movs.h msgbuf.h openprom.h \
      oplib.h poll.h posix_types.h resource.h rtc.h sembuf.h shmbuf.h \
      shm.h shmparam.h socket.h sockios.h spinlock.h statfs.h stat.h \
      termbits.h termios.h tlb.h types.h user.h"
      
      EQUAL="auxvec.h cputime.h device.h emergency-restart.h futex.h \
      ioctl.h irq_regs.h kdebug.h local.h mutex.h percpu.h \
      sections.h topology.h"
      
      NOMUUFILES="anchor.h bootstd.h coldfire.h commproc.h dbg.h \
      elia.h flat.h m5206sim.h m520xsim.h m523xsim.h m5249sim.h \
      m5272sim.h m527xsim.h m528xsim.h m5307sim.h m532xsim.h \
      m5407sim.h m68360_enet.h m68360.h m68360_pram.h m68360_quicc.h \
      m68360_regs.h MC68328.h MC68332.h MC68EZ328.h MC68VZ328.h \
      mcfcache.h mcfdma.h mcfmbus.h mcfne.h mcfpci.h mcfpit.h \
      mcfsim.h mcfsmc.h mcftimer.h mcfuart.h mcfwdebug.h \
      nettel.h quicc_simple.h smp.h"
      
      FILES="atomic.h bitops.h bootinfo.h bug.h bugs.h byteorder.h cache.h \
      cacheflush.h checksum.h current.h delay.h div64.h \
      dma-mapping.h dma.h elf.h entry.h fb.h fpu.h hardirq.h hw_irq.h io.h \
      irq.h kmap_types.h machdep.h mc146818rtc.h mmu.h mmu_context.h \
      module.h page.h page_offset.h param.h pci.h pgalloc.h \
      pgtable.h processor.h ptrace.h scatterlist.h segment.h \
      setup.h sigcontext.h siginfo.h signal.h string.h system.h swab.h \
      thread_info.h timex.h tlbflush.h traps.h uaccess.h ucontext.h \
      unaligned.h unistd.h"
      
      mergefile() {
      	BASE=${1%.h}
      	git mv ${SOURCE}/$1 ${TARGET}/${BASE}_no.h
      	git mv ${TARGET}/$1 ${TARGET}/${BASE}_mm.h
      
      cat << EOF > ${TARGET}/$1
      EOF
      
      	git add ${TARGET}/$1
      }
      
      set -e
      
      mkdir -p ${TARGET}
      
      git mv include/asm-m68k/* ${TARGET}
      rmdir include/asm-m68k
      
      git rm ${SOURCE}/Kbuild
      for F in $INCLUDE $EQUAL; do
      	git rm ${SOURCE}/$F
      done
      
      for F in $NOMUUFILES; do
      	git mv ${SOURCE}/$F ${TARGET}/$F
      done
      
      for F in $FILES ; do
      	mergefile $F
      done
      
      rmdir arch/m68knommu/include/asm
      rmdir arch/m68knommu/include
      
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NGreg Ungerer <gerg@uclinux.org>
      49148020
    • J
      drm: initial KMS config fixes · 40a518d9
      Jesse Barnes 提交于
      When mode setting is first initialized, the driver will call into
      drm_helper_initial_config() to set up an initial output and framebuffer
      configuration.  This routine is responsible for probing the available
      connectors, encoders, and crtcs, looking for modes and putting together
      something reasonable (where reasonable is defined as "allows kernel
      messages to be visible on as many displays as possible").
      
      However, the code was a bit too aggressive in setting default modes when
      none were found on a given connector.  Even if some connectors had modes,
      any connectors found lacking modes would have the default 800x600 mode added
      to their mode list, which in some cases could cause problems later down the
      line.  In my case, the LVDS was perfectly available, but the initial config
      code added 800x600 modes to both of the detected but unavailable HDMI
      connectors (which are on my non-existent docking station).  This ended up
      preventing later code from setting a mode on my LVDS, which is bad.
      
      This patch fixes that behavior by making the initial config code walk
      through the connectors first, counting the available modes, before it decides
      to add any default modes to a possibly connected output.  It also fixes the
      logic in drm_target_preferred() that was causing zeroed out modes to be set
      as the preferred mode for a given connector, even if no modes were available.
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NEric Anholt <eric@anholt.net>
      Signed-off-by: NDave Airlie <airlied@linux.ie>
      40a518d9
    • J
      include of <linux/types.h> is preferred over <asm/types.h> · 00bfddaf
      Jaswinder Singh Rajput 提交于
      Impact: fix 15 make headers_check warnings:
      
      include of <linux/types.h> is preferred over <asm/types.h>
      Signed-off-by: NJaswinder Singh Rajput <jaswinderrajput@gmail.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      00bfddaf
    • I
      alpha: fix RTC on marvel · 5f7dc5d7
      Ivan Kokshaysky 提交于
      Unlike other alphas, marvel doesn't have real PC-style CMOS clock hardware
      - RTC accesses are emulated via PAL calls.  Unfortunately, for unknown
      reason these calls work only on CPU #0.  So current implementation for
      arbitrary CPU makes CMOS_READ/WRITE to be executed on CPU #0 via IPI.
      However, for obvious reason this doesn't work with standard
      get/set_rtc_time() functions, where a bunch of CMOS accesses is done with
      disabled interrupts.
      
      Solved by making the IPI calls for entire get/set_rtc_time() functions,
      not for individual CMOS accesses.  Which is also a lot more effective
      performance-wise.
      
      The patch is largely based on the code from Jay Estabrook.
      My changes:
      - tweak asm-generic/rtc.h by adding a couple of #defines to
        avoid a massive code duplication in arch/alpha/include/asm/rtc.h;
      - sys_marvel.c: fix get/set_rtc_time() return values (Jay's FIXMEs).
      
      NOTE: this fixes *only* LIB_RTC drivers.  Legacy (CONFIG_RTC) driver
      wont't work on marvel.  Actually I think that we should just disable
      CONFIG_RTC on alpha (maybe in 2.6.30?), like most other arches - AFAIK,
      all modern distributions use LIB_RTC anyway.
      Signed-off-by: NIvan Kokshaysky <ink@jurassic.park.msu.ru>
      Cc: Richard Henderson <rth@twiddle.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5f7dc5d7
    • Q
      btrfs & squashfs: Move btrfs and squashfsto's magic number to <linux/magic.h> · 1bcbf313
      Qinghuang Feng 提交于
      Use the standard magic.h for btrfs and squashfs.
      Signed-off-by: NQinghuang Feng <qhfeng.kernel@gmail.com>
      Cc: Phillip Lougher <phillip@lougher.demon.co.uk>
      Cc: Chris Mason <chris.mason@oracle.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      1bcbf313
    • R
      resources: fix parameter name and kernel-doc · 6ae301e8
      Randy Dunlap 提交于
      Fix __request_region() parameter kernel-doc notation and parameter name:
      
      Warning(linux-2.6.28-git10//kernel/resource.c:627): No description found for parameter 'flags'
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      6ae301e8
    • R
      jbd: fix missing kernel-doc · 3eabdb76
      Randy Dunlap 提交于
      Fix jbd header file kernel-doc notation:
      
      Warning(linux-2.6.28-git13//include/linux/jbd.h:823): No description found for parameter 'j_average_commit_time'
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      3eabdb76
    • L
      cgroups: consolidate cgroup documents · 45ce80fb
      Li Zefan 提交于
      Move Documentation/cpusets.txt and Documentation/controllers/* to
      Documentation/cgroups/
      Signed-off-by: NLi Zefan <lizf@cn.fujitsu.com>
      Acked-by: NKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Acked-by: NBalbir Singh <balbir@linux.vnet.ibm.com>
      Acked-by: NPaul Menage <menage@google.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      45ce80fb
  10. 15 1月, 2009 4 次提交
    • B
      net: Add init_dummy_netdev() and fix EMAC driver using it · 937f1ba5
      Benjamin Herrenschmidt 提交于
      This adds an init_dummy_netdev() function that gets a network device
      structure (allocation and lifetime entirely under caller's control) and
      initialize the minimum amount of fields so it can be used to schedule
      NAPI polls without registering a full blown interface. This is to be
      used by drivers that need to tie several hardware interfaces to a single
      NAPI poll scheduler due to HW limitations.
      
      It also updates the ibm_newemac driver to use that, this fixing the
      oops on 2.6.29 due to passing NULL as "dev" to netif_napi_add()
      
      Symbol is exported GPL only a I don't think we want binary drivers doing
      that sort of acrobatics (if we want them at all).
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Tested-by: NGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      937f1ba5
    • H
      byteorder: make swab.h include asm/swab.h like a regular header · 74d96f01
      Harvey Harrison 提交于
      Add swab.h to kbuild.asm and remove the individual entries from
      each arch, mark as unifdef as some arches have some kernel-only
      bits inside.
      Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      74d96f01
    • B
      IDE: fix sparse signed-ness errors with host->host_busy · e720b9e4
      Ben Dooks 提交于
      The host_busy field in struct ide_host defaults to a
      signed-long, where most arch's test_and_set_bit_*
      macros use an unsigned long.
      
      Change to using an unsigned long, which on ARM removes
      the following sparse errors:
      
      drivers/ide/ide-io.c:681:8: warning: incorrect type in argument 2 (different signedness)
      drivers/ide/ide-io.c:681:8:    expected unsigned long volatile *p
      drivers/ide/ide-io.c:681:8:    got long volatile *<noident>
      drivers/ide/ide-io.c:681:8: warning: incorrect type in argument 2 (different signedness)
      drivers/ide/ide-io.c:681:8:    expected unsigned long volatile *p
      drivers/ide/ide-io.c:681:8:    got long volatile *<noident>
      drivers/ide/ide-io.c:695:3: warning: incorrect type in argument 2 (different signedness)
      drivers/ide/ide-io.c:695:3:    expected unsigned long volatile *p
      drivers/ide/ide-io.c:695:3:    got long volatile *<noident>
      drivers/ide/ide-io.c:695:3: warning: incorrect type in argument 2 (different signedness)
      drivers/ide/ide-io.c:695:3:    expected unsigned long volatile *p
      drivers/ide/ide-io.c:695:3:    got long volatile *<noident>
      drivers/ide/ide-io.c:695:3: warning: incorrect type in argument 2 (different signedness)
      drivers/ide/ide-io.c:695:3:    expected unsigned long volatile *p
      drivers/ide/ide-io.c:695:3:    got long volatile *<noident>
      drivers/ide/ide-io.c:695:3: warning: incorrect type in argument 2 (different signedness)
      drivers/ide/ide-io.c:695:3:    expected unsigned long volatile *p
      drivers/ide/ide-io.c:695:3:    got long volatile *<noident>
      drivers/ide/ide-io.c:695:3: warning: incorrect type in argument 2 (different signedness)
      drivers/ide/ide-io.c:695:3:    expected unsigned long volatile *p
      drivers/ide/ide-io.c:695:3:    got long volatile *<noident>
      drivers/ide/ide-io.c:695:3: warning: incorrect type in argument 2 (different signedness)
      drivers/ide/ide-io.c:695:3:    expected unsigned long volatile *p
      drivers/ide/ide-io.c:695:3:    got long volatile *<noident>
      drivers/ide/ide-io.c:695:3: warning: incorrect type in argument 2 (different signedness)
      drivers/ide/ide-io.c:695:3:    expected unsigned long volatile *p
      drivers/ide/ide-io.c:695:3:    got long volatile *<noident>
      drivers/ide/ide-io.c:695:3: warning: incorrect type in argument 2 (different signedness)
      drivers/ide/ide-io.c:695:3:    expected unsigned long volatile *p
      drivers/ide/ide-io.c:695:3:    got long volatile *<noident>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      e720b9e4
    • B
      it821x: Add ultra_mask quirk for Vortex86SX · b94b898f
      Brandon Philips 提交于
      On Vortex86SX with IDE controller revision 0x11 ultra DMA must be
      disabled. This patch was tested by DMP and seems to work.
      
      It is a cleaned up version of their older Kernel patch: 
       http://www.dmp.com.tw/tech/vortex86sx/patch-2.6.24-DMP.gzTested-by: NShawn Lin <shawn@dmp.com.tw>
      Signed-off-by: NBrandon Philips <bphilips@suse.de>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      b94b898f