04 Feb, 2006

30 commits

  • "rm" command, on file system with "ufs1" type cause system hang up. This
    is, in fact, not so bad as it seems to be, because of after that in "kernel
    control path" there are 3-4 places which may cause "oops".

    So the first patch fix oopses, and the second patch fix "kernel hang up".

    "oops" appears because of reading of group's summary info partly wrong, and
    access to not first group's summary info cause "oops".

    Signed-off-by: Evgeniy Dushistov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Evgeniy Dushistov
     
  • drivers/char/sx.c: In function `sx_set_real_termios':
    drivers/char/sx.c:934: warning: long unsigned int format, different type arg (arg 2)
    drivers/char/sx.c:961: warning: long unsigned int format, different type arg (arg 2)
    drivers/char/sx.c:976: warning: long unsigned int format, different type arg (arg 2)

    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • fs/quota_v2.c: In function `v2_check_quota_file':
    fs/quota_v2.c:39: warning: int format, different type arg (arg 2)
    fs/quota_v2.c:39: warning: int format, different type arg (arg 3)

    Cc: Jan Kara
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • drivers/parport/parport_serial.c: In function `parport_register':
    drivers/parport/parport_serial.c:334: warning: unsigned int format, different type arg (arg 3)

    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Signed-off-by: Hans Reiser
    Signed-off-by: Vitaly Fertman
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Vitaly Fertman
     
  • Do not allow people to create configurations with CONFIG_BROKEN=y.

    The sole reason for CONFIG_BROKEN=y would be if you are working on fixing a
    broken driver, but in this case editing the Kconfig file is trivial.

    Never ever should a user enable CONFIG_BROKEN.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Fix printk format warning:
    drivers/parport/probe.c:205: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'

    Signed-off-by: Randy Dunlap
    Signed-off-by: Arnaud Giersch
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Signed-off-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • drivers/char/sx.c: In function `sx_set_real_termios':
    drivers/char/sx.c:934: warning: int format, long unsigned int arg (arg 2)
    drivers/char/sx.c:961: warning: unsigned int format, tcflag_t arg (arg 2)
    drivers/char/sx.c:976: warning: unsigned int format, tcflag_t arg (arg 2)

    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Count the total number of packets with collisions during transmission in
    vp->stats.collisions.

    Signed-off-by: Steffen Klassert
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Steffen Klassert
     
  • I noticed that list.h init functions were evaluating macro arguments
    multiple times and thought it might be nice to protect the unsuspecting
    caller. Converting the macros to inline functions seems to reduce code
    size, too. A i386 defconfig build with gcc 3.3.3 from fc4:

    text data bss dec hex filename
    3573148 565664 188828 4327640 4208d8 vmlinux.before
    3572177 565664 188828 4326669 42050d vmlinux

    add/remove: 0/0 grow/shrink: 11/144 up/down: 88/-1016 (-928)

    There was no difference in checkstack output.

    Signed-off-by: Zach Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Zach Brown
     
  • "[PATCH] m68knommu: fix find_next_zero_bit in bitops.h" fixed a typo in
    m68knommu implementation of find_next_zero_bit().

    grep(1) shows that cris, frv, h8300, v850 are also affected.

    Signed-off-by: Alexey Dobriyan
    Cc: Mikael Starvik
    Cc: David Howells
    Cc: Yoshinori Sato
    Cc: Miles Bader
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • When one module exports a function symbol and another module uses that
    symbol then kallsyms shows the symbol twice. Once from the consumer with a
    type of 'U' and once from the provider with a type of 't' or 'T'. On most
    architectures, both entries have the same address so it does not matter
    which one is returned by kallsyms_lookup_name(). But on architectures with
    function descriptors, the 'U' entry points to the descriptor, not to the
    code body, which is not what we want.

    IA64 # grep -w qla2x00_remove_one /proc/kallsyms
    a000000208c25ef8 U qla2x00_remove_one [qla2300]
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Keith Owens
     
  • Fix broken to_channelpath macro (fortunately worked in all current cases...).

    Signed-off-by: Cornelia Huck
    Signed-off-by: Heiko Carstens
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Cornelia Huck
     
  • Patch 9ad11ab48b1ad618bf47076e9e579f267f5306c2 changes the type of the first
    argument of some compat syscalls from int to unsigned int. Add these changes
    to the s390 compat wrapper as well.

    Signed-off-by: Heiko Carstens
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Heiko Carstens
     
  • Compile fix: add missing __raw_read* and __raw_write* defines to
    include/asm-s390/io.h.
    These are mandatory since patch c27a0d75b33c030965cc97d3d7f571107a673fb4
    was merged.

    Signed-off-by: Heiko Carstens
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Heiko Carstens
     
  • Avoid visibility of kernel internal interface to user space.

    Signed-off-by: Jan Glauber
    Signed-off-by: Heiko Carstens
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Glauber
     
  • The DASD extended error reporting is a facility that allows to get detailed
    information about certain problems in the DASD I/O. This information can be
    used to implement fail-over applications that can recover these problems.

    Signed-off-by: Stefan Weinhuber
    Signed-off-by: Martin Schwidefsky
    Signed-off-by: Heiko Carstens
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stefan Weinhuber
     
  • This patch adds missing initialization sequence, necessary to get the
    "Macintosh" version of AEC6280 cards to work in Linux. Without this patch,
    the driver hangs for several minutes trying to initialize the card and the
    kernel is left in an unstable state. This patch has been tested fine on
    ppc and i386.

    Signed-off-by: Thibaut VARENE
    Acked-by: Bartlomiej Zolnierkiewicz
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thibaut VARENE
     
  • CC drivers/mtd/maps/dc21285.o
    drivers/mtd/maps/dc21285.c: In function `dc21285_copy_to_32':
    drivers/mtd/maps/dc21285.c:113: error: invalid lvalue in increment
    drivers/mtd/maps/dc21285.c: In function `dc21285_copy_to_16':
    drivers/mtd/maps/dc21285.c:124: error: invalid lvalue in increment
    drivers/mtd/maps/dc21285.c: In function `dc21285_copy_to_8':
    drivers/mtd/maps/dc21285.c:134: error: invalid lvalue in increment
    make[3]: *** [drivers/mtd/maps/dc21285.o] Error 1

    Signed-off-by: Martin Michlmayr
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Martin Michlmayr
     
  • Noticed by Rune Torgersen.

    Fix generic_fls64(). tcp_cubic is using fls64().

    Signed-off-by: Akinobu Mita
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita
     
  • This patch is a cleanup/restructuring/clarification of the PCI error
    handling doc. It should look rather professional at this point.

    Signed-off-by: Linas Vepstas
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Linas Vepstas
     
  • kernel/power/power.h:49: error: static declaration of 'pm_prepare_console' follows non-static declaration
    include/linux/suspend.h:46: error: previous declaration of 'pm_prepare_console' was here
    kernel/power/power.h:50: error: static declaration of 'pm_restore_console' follows non-static declaration
    include/linux/suspend.h:47: error: previous declaration of 'pm_restore_console' was here

    Signed-off-by: Dave Jones
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Jones
     
  • When two function-return probes are inserted on kfree()[1] and the second
    on say, sys_link()[2], and later [2] is unregistered, we have a deadlock as
    kfree is called with the kretprobe_lock held and the function-return probe
    on kfree will also try to grab the same lock.

    However, we can move the kfree() during unregistration to outside the
    spinlock as we are sure that no instances from the free list will be used
    after synchronized_sched() returns during the unregistration process.
    Thanks to Masami Hiramatsu for spotting this.

    Signed-off-by: Ananth N Mavinakayanahalli
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ananth N Mavinakayanahalli
     
  • kernel/kprobes.c:353: warning: 'pre_handler_kretprobe' defined but not used

    Signed-off-by: Adrian Bunk
    Acked-by: Ananth N Mavinakayanahalli
    Acked-by: "Keshavamurthy, Anil S"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • Sometimes it doesn't so make the code more like the version-0 code which
    works.

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • - version-1 superblock
    + The default_bitmap_offset is in sectors, not bytes.
    + the 'size' field in the superblock is in sectors, not KB
    - raid0_run should return a negative number on error, not '1'
    - raid10_read_balance should not return a valid 'disk' number if
    ->rdev turned out to be NULL
    - kmem_cache_destroy doesn't like being passed a NULL.

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • mdu_array_info_t->size is 'int', which isn't big enough for the size (in KB of
    each component in) some arrays.

    So rather than a random overflow, set size to -1 when it cannot be set
    correctly.

    To update aspect on an array, userspace will sometimes:
    get_array_info
    change one field
    set_array_info

    in this case, we don't want the '-1' in 'size' to change to size, or look like
    a size change at all. So test for that in update_array_info.

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • Edits to the driver-model documentation for grammar, clarity and content.

    These docs haven't been updated in years, and some of the technical content
    and discussion has become stale; this patch updates these. In addition,
    some of the language is awkward. Fix this.

    (I'm trying to cleanup the other files in this directory also,
    patches for these will come a bit later).

    Signed-off-by: Linas Vepstas
    Acked-by: Patrick Mochel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Linas Vepstas
     
  • Call "ld->receive_buf" using the start of the character and flag buffers,
    rather than the ends.

    Signed-off-by: Michal Ostrowski
    Acked-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michal Ostrowski
     

03 Feb, 2006

7 commits


02 Feb, 2006

3 commits