1. 11 Jun, 2011 2 commits
    • Connor Hansen's avatar
      ide-cd: signedness warning fix again · 3307d0d8
      Connor Hansen authored
      One of the legit warnings 'make W=3 drivers/ide/ide-cd.c'
      generates is:
      drivers/ide/ide-cd.c: In function ide_cd_do_request
      drivers/ide/ide-cd.c:828:2: warning: conversion to int from \
      unsigned int may change the sign of the result
      drivers/ide/ide-cd.c:833:2: warning: conversion to int from \
      unsigned int may change the sign of the result
      
      nsectors is declared int, should be unsigned int.
      
      blk_rq_sectors() returns unsigned int, and ide_complete_rq
      expects unsigned int as well.  Fixes both warnings.
      Signed-off-by: default avatarConnor Hansen <cmdkhh@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      3307d0d8
    • David Howells's avatar
      linux/seqlock.h should #include asm/processor.h for cpu_relax() · 56a21052
      David Howells authored
      It uses cpu_relax(), and so needs <asm/processor.h>
      
      Without this patch, I see:
      
         CC      arch/mn10300/kernel/asm-offsets.s
        In file included from include/linux/time.h:8,
                         from include/linux/timex.h:56,
                         from include/linux/sched.h:57,
                         from arch/mn10300/kernel/asm-offsets.c:7:
        include/linux/seqlock.h: In function 'read_seqbegin':
        include/linux/seqlock.h:91: error: implicit declaration of function 'cpu_relax'
      
      whilst building asb2364_defconfig on MN10300.
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      56a21052
  2. 10 Jun, 2011 1 commit
  3. 09 Jun, 2011 29 commits
  4. 08 Jun, 2011 8 commits
    • Linus Torvalds's avatar
      Merge branch 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6 · 06e86849
      Linus Torvalds authored
      * 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6:
        PM / Runtime: Fix loops in pm_runtime_clk_notify()
        PM / Intel IOMMU: Fix init_iommu_pm_ops() for CONFIG_PM unset
      06e86849
    • Linus Torvalds's avatar
      vfs: reorganize 'struct inode' layout a bit · 13e12d14
      Linus Torvalds authored
      This tries to make the 'struct inode' accesses denser in the data cache
      by moving a commonly accessed field (i_security) closer to other fields
      that are accessed often.
      
      It also makes 'i_state' just an 'unsigned int' rather than 'unsigned
      long', since we only use a few bits of that field, and moves it next to
      the existing 'i_flags' so that we potentially get better structure
      layout (although depending on config options, i_flags may already have
      packed in the same word as i_lock, so this improves packing only for the
      case of spinlock debugging)
      
      Out 'struct inode' is still way too big, and we should probably move
      some other fields around too (the acl fields in particular) for better
      data cache access density.  Other fields (like the inode hash) are
      likely to be entirely irrelevant under most loads.
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      13e12d14
    • Linus Torvalds's avatar
      selinux: simplify and clean up inode_has_perm() · 95f4efb2
      Linus Torvalds authored
      This is a rather hot function that is called with a potentially NULL
      "struct common_audit_data" pointer argument.  And in that case it has to
      provide and initialize its own dummy common_audit_data structure.
      
      However, all the _common_ cases already pass it a real audit-data
      structure, so that uncommon NULL case not only creates a silly run-time
      test, more importantly it causes that function to have a big stack frame
      for the dummy variable that isn't even used in the common case!
      
      So get rid of that stupid run-time behavior, and make the (few)
      functions that currently call with a NULL pointer just call a new helper
      function instead (naturally called inode_has_perm_noapd(), since it has
      no adp argument).
      
      This makes the run-time test be a static code generation issue instead,
      and allows for a much denser stack since none of the common callers need
      the dummy structure.  And a denser stack not only means less stack space
      usage, it means better cache behavior.  So we have a win-win-win from
      this simplification: less code executed, smaller stack footprint, and
      better cache behavior.
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      95f4efb2
    • Linus Torvalds's avatar
      Merge branch 'usb-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 · 4c1f683a
      Linus Torvalds authored
      * 'usb-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (28 commits)
        MAINTAINERS: add a maintainer to Gadget Framework
        USB: serial: add another 4N-GALAXY.DE PID to ftdi_sio driver
        Revert "USB: option: add ID for ZTE MF 330"
        drivers/usb/host/ohci-pxa27x.c: add missing clk_put
        USB: CONFIG_USB_GADGET_DUALSPEED is not user-configurable
        USB: dummy-hcd needs the has_tt flag
        usb-storage: redo incorrect reads
        usb/renesas_usbhs: free uep on removal
        usb/s3c-hsudc: fix error path
        usb/pxa25x_udc: cleanup the LUBBOCK err path
        usb/mv_udc_core: fix compile
        usb: gadget: include <linux/prefetch.h> to fix compiling error
        USB: s3c-hsotg: Tone down debugging
        usb: remove bad dput after dentry_unhash
        USB: core: Tolerate protocol stall during hub and port status read
        musb: fix prefetch build failure
        USB: cdc-acm: Adding second ACM channel support for Nokia E7 and C7
        usb-gadget: unlock data->lock mutex on error path in ep_write()
        USB: option Add blacklist for ZTE K3765-Z (19d2:2002)
        option: add Prolink PH300 modem IDs
        ...
      4c1f683a
    • Felipe Balbi's avatar
      MAINTAINERS: add a maintainer to Gadget Framework · d6d0f665
      Felipe Balbi authored
      I'll be continuing the amazing work Dave has
      done with the Gadget Framework.
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      d6d0f665
    • Linus Torvalds's avatar
      Merge branch 'spi/merge' of git://git.secretlab.ca/git/linux-2.6 · 365a13a5
      Linus Torvalds authored
      * 'spi/merge' of git://git.secretlab.ca/git/linux-2.6:
        spi/rtc-m41t93: Use spi_get_drvdata() for SPI devices
        spi/omap2: fix uninitialized variable
      365a13a5
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6 · d21131bb
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
        cifs: trivial: add space in fsc error message
        cifs: silence printk when establishing first session on socket
        CIFS ACL support needs CONFIG_KEYS, so depend on it
        possible memory corruption in cifs_parse_mount_options()
        cifs: make CIFS depend on CRYPTO_ECB
        cifs: fix the kernel release version in the default security warning message
      d21131bb
    • Greg Kroah-Hartman's avatar
      Merge 3.0-rc2 + Linus's latest into usb-linus · 7e24cf43
      Greg Kroah-Hartman authored
      This is needed to get the following MAINTAINERS patch to apply properly.
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      7e24cf43