1. 04 5月, 2008 15 次提交
    • J
      modpost: i2c aliases need no trailing wildcard · ac551828
      Jean Delvare 提交于
      Not all device types need a wildcard at the end of their module
      aliases. In particular, for i2c module aliases, the trailing wildcard
      is not only unneeded, it could also cause the wrong driver to be
      loaded.
      
      As I2C devices have no IDs, i2c module aliases are simple, arbitrary
      device names. For example:
      
      $ /sbin/modinfo lm90
      filename:       /lib/modules/2.6.25-git18/kernel/drivers/hwmon/lm90.ko
      author:         Jean Delvare <khali@linux-fr.org>
      description:    LM90/ADM1032 driver
      license:        GPL
      vermagic:       2.6.25-git18 mod_unload
      depends:        hwmon
      alias:          i2c:lm90*
      alias:          i2c:adm1032*
      alias:          i2c:lm99*
      alias:          i2c:lm86*
      alias:          i2c:max6657*
      alias:          i2c:adt7461*
      alias:          i2c:max6680*
      $
      
      This would cause trouble if one I2C chip name matches the beginning of
      another I2C chip name and both chips are supported by different
      drivers. For example, an i2c device named lm9042 would cause the lm90
      driver to be loaded, while it doesn't support that device. This case
      has yet to be seen in practice, but still, I'd like to fix it now. The
      cleanest fix is to remove the trailing wildcard from i2c module aliases.
      
      Here's a patch doing this.
      
      Not all device type aliases need a trailing wildcard, in particular
      the i2c aliases don't. Don't add a wildcard by default in do_table(),
      instead let each device type handler add it if needed.
      
      I have tested types acpi, dmi, eisa, i2c, ide, ieee1394, input, pci,
      pcmcia, platform, pnp, scsi, serio, ssb and usb. Other types (ccw, of,
      vio, parisc, sdio and virtio) are untested.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Acked-by: NJochen Friedrich <jochen@scram.de>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      ac551828
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/tglx/linux-2.6-hrt · afa26be8
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/tglx/linux-2.6-hrt:
        clocksource: allow read access to available/current_clocksource
        clocksource: Fix permissions for available_clocksource
        hrtimer: remove duplicate helper function
      afa26be8
    • U
      tiny mq_open optimization · 269f2134
      Ulrich Drepper 提交于
      A very small cleanup for mq_open.
      
      We do not have to call set_close_on_exit if we create the file
      descriptor right away with the flag set.  We have a function for this
      now.  The resulting code is smaller and a tiny bit faster.
      Signed-off-by: NUlrich Drepper <drepper@redhat.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      269f2134
    • U
      unified (weak) sys_pipe implementation · d35c7b0e
      Ulrich Drepper 提交于
      This replaces the duplicated arch-specific versions of "sys_pipe()" with
      one unified implementation.  This removes almost 250 lines of duplicated
      code.
      
      It's marked __weak, so that *if* an architecture wants to override the
      default implementation it can do so by simply having its own replacement
      version, since many architectures use alternate calling conventions for
      the 'pipe()' system call for legacy reasons (ie traditional UNIX
      implementations often return the two file descriptors in registers)
      
      I still haven't changed the cris version even though Linus says the BKL
      isn't needed.  The arch maintainer can easily do it if there are really
      no obstacles.
      Signed-off-by: NUlrich Drepper <drepper@redhat.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      d35c7b0e
    • L
      Linux 2.6.26-rc1 · 2ddcca36
      Linus Torvalds 提交于
      2ddcca36
    • L
      Merge git://git.infradead.org/battery-2.6 · 38e80121
      Linus Torvalds 提交于
      * git://git.infradead.org/battery-2.6:
        PMU battery: filenames in sysfs with spaces
        pda_power: add init and exit function callbacks
      38e80121
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/hpa/linux-2.6-inttypes · e0986756
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/hpa/linux-2.6-inttypes: (24 commits)
        Make constants in kernel/timeconst.h fixed 64 bits
        types: add C99-style constructors to <asm-generic/int-*.h>
        xtensa: types: use <asm-generic/int-*.h> for the xtensa architecture
        x86: types: use <asm-generic/int-*.h> for the x86 architecture
        v850: types: use <asm-generic/int-*.h> for the v850 architecture
        sparc64: types: use <asm-generic/int-*.h> for the sparc64 architecture
        sparc: types: use <asm-generic/int-*.h> for the sparc architecture
        sh: types: use <asm-generic/int-*.h> for the sh architecture
        s390: types: use <asm-generic/int-*.h> for the s390 architecture
        powerpc: types: use <asm-generic/int-*.h> for the powerpc architecture
        parisc: types: use <asm-generic/int-*.h> for the parisc architecture
        mn10300: types: use <asm-generic/int-*.h> for the mn10300 architecture
        mips: types: use <asm-generic/int-*.h> for the mips architecture
        m68k: types: use <asm-generic/int-*.h> for the m68k architecture
        m32r: types: use <asm-generic/int-*.h> for the m32r architecture
        ia64: types: use <asm-generic/int-*.h> for the ia64 architecture
        h8300: types: use <asm-generic/int-*.h> for the h8300 architecture
        frv: types: use <asm-generic/int-*.h> for the frv architecture
        cris: types: use <asm-generic/int-*.h> for the cris architecture
        blackfin: types: use <asm-generic/int-*.h> for the blackfin architecture
        ...
      e0986756
    • J
      [MAINTAINERS] PCI list moved · 2905474d
      Jesse Barnes 提交于
      Many thanks to Martin for his years of hosting.  The pci list has moved to
      vger, along with what seems like the rest of the major Linux mailing lists.
      Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      2905474d
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6 · c402f98c
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6:
        slub: #ifdef simplification
        slabinfo: Support printout of the number of fallbacks
        slub: Whitespace cleanup and use of strict_strtoul
      c402f98c
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · 4f9faaac
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (47 commits)
        rose: Wrong list_lock argument in rose_node seqops
        netns: Fix reassembly timer to use the right namespace
        netns: Fix device renaming for sysfs
        bnx2: Update version to 1.7.5.
        bnx2: Update RV2P firmware for 5709.
        bnx2: Zero out context memory for 5709.
        bnx2: Fix register test on 5709.
        bnx2: Fix remote PHY initial link state.
        bnx2: Refine remote PHY locking.
        bridge: forwarding table information for >256 devices
        tg3: Update version to 3.92
        tg3: Add link state reporting to UMP firmware
        tg3: Fix ethtool loopback test for 5761 BX devices
        tg3: Fix 5761 NVRAM sizes
        tg3: Use constant 500KHz MI clock on adapters with a CPMU
        hci_usb.h: fix hard-to-trigger race
        dccp: ccid2.c, ccid3.c use clamp(), clamp_t()
        net: remove NR_CPUS arrays in net/core/dev.c
        net: use get/put_unaligned_* helpers
        bluetooth: use get/put_unaligned_* helpers
        ...
      4f9faaac
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6 · bf640be4
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
        sparc32: Delete prom_stdin and prom_stdout.
        sparc32: More memory probing consolidation.
        sparc32: Kill totally unused memory information tables.
        sparc64: Fix syscall restart, for real...
        serial: Fix sparc driver name strings.
        sparc64: Stop creating dummy root PCI host controller devices.
      bf640be4
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc · c36c8045
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
        [POWERPC] Bolt in SLB entry for kernel stack on secondary cpus
        [POWERPC] PS3: Update ps3_defconfig
        [POWERPC] PS3: Remove unsupported wakeup sources
        [POWERPC] PS3: Make ps3_virq_setup and ps3_virq_destroy static
        [POWERPC] PS3: Add time include to lpm
        [POWERPC] Fix slb.c compile warnings
        [POWERPC] Xilinx: Fix compile warnings
        [POWERPC] Squash build warning for print of resource_size_t in fsl_soc.c
        [RAPIDIO] fix current kernel-doc notation
        [POWERPC] 86xx: mpc8610_hpcd: add support for PCI Express x8 slot
        Fix a potential issue in mpc52xx uart driver
        [POWERPC] mpc5200: Allow for fixed speed MII configurations
        [POWERPC] 86xx: Fix the wrong serial1 interrupt for 8610 board
      c36c8045
    • H
      clocksource: allow read access to available/current_clocksource · 4f95f81a
      Heiko Carstens 提交于
      There is no harm, when users can read the info and we ask often enough
      during debugging for this kind of information.
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: John Stultz <johnstul@us.ibm.com>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      4f95f81a
    • H
      clocksource: Fix permissions for available_clocksource · 4359a023
      Heiko Carstens 提交于
      File permissions for
      /sys/devices/system/clocksource/clocksource0/available_clocksource
      are 600 which allows write access. But this is in fact a read only
      file. So change permissions to 400.
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Cc: John Stultz <johnstul@us.ibm.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      4359a023
    • O
      hrtimer: remove duplicate helper function · 4346f654
      Oliver Hartkopp 提交于
      The helper function hrtimer_callback_running() is used in
      kernel/hrtimer.c as well as in the updated net/can/bcm.c which now
      supports hrtimers. Moving the helper function to hrtimer.h removes the
      duplicate definition in the C-files.
      Signed-off-by: NOliver Hartkopp <oliver@hartkopp.net>
      Cc: David Miller <davem@davemloft.net>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      4346f654
  2. 03 5月, 2008 25 次提交