19 Oct, 2011

6 commits

  • The stable@kernel.org email address has been replaced with the
    stable@vger.kernel.org mailing list. Change the stable kernel rules to
    reference the new list instead of the semi-defunct email alias.

    CC:
    CC:
    Signed-off-by: Josh Boyer
    Signed-off-by: Greg Kroah-Hartman

    Josh Boyer
     
  • Dynamic debug recently added support for netdev_printk. It uses
    __netdev_printk() to support this functionality. However, when CONFIG_NET
    is not set, we get the following error:

    lib/built-in.o: In function `__dynamic_netdev_dbg':
    (.text+0x9fda): undefined reference to `__netdev_printk'

    Fix this by making the call to netdev_printk() contingent upon CONFIG_NET.
    We could have fixed this by defining netdev_printk() to a 'no-op' in the
    !CONFIG_NET case. However, this is not consistent with how the networking
    layer uses netdev_printk. For example, CONFIG_NET is not set,
    netdev_printk() does not have a 'no-op' definition defined.

    Signed-off-by: Jason Baron
    Acked-by: Randy Dunlap
    Acked-by: Arnd Bergmann
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Jason Baron
     
  • We were using KERN_CONT to combine messages with their prefix. However,
    KERN_CONT is not smp safe, in the sense that it can interleave messages.
    This interleaving can result in printks coming out at the wrong loglevel.
    With the high frequency of printks that dynamic debug can produce this is
    not desirable.

    So make dynamic_emit_prefix() fill a char buf[64] instead of doing a
    printk directly. If we enable printing out of function, module, line, or
    pid info, they are placed in this 64 byte buffer. In my testing 64 bytes
    was enough size to fulfill all requests. Even if it's not, we can match
    up the printk itself to see where it's from, so to me this is no big deal.

    [akpm@linux-foundation.org: convert dangerous macro to C]
    Signed-off-by: Jason Baron
    Cc: Arnd Bergmann
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Jason Baron
     
  • The num_enabled accounting isn't actually used anywhere - remove them.

    Signed-off-by: Jason Baron
    Cc: Arnd Bergmann
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Jason Baron
     
  • Replace the repetitive struct _ddebug descriptor definitions with a new
    DECLARE_DYNAMIC_DEBUG_META_DATA(name, fmt) macro.

    [akpm@linux-foundation.org: s/DECLARE/DEFINE/]
    Signed-off-by: Jason Baron
    Cc: Arnd Bergmann
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Jason Baron
     
  • To support >32-bit physical addresses for UIO_MEM_PHYS type we need to
    extend the width of 'addr' in struct uio_mem. Numerous platforms like
    embedded PPC, ARM, and X86 have support for systems with larger physical
    address than logical.

    Since 'addr' may contain a physical, logical, or virtual address the
    easiest solution is to just change the type to 'phys_addr_t' which
    should always be greater than or equal to the sizeof(void *) such that
    it can properly hold any of the address types.

    For physical address we can support up to a 44-bit physical address on a
    typical 32-bit system as we utilize remap_pfn_range() for the mapping of
    the memory region and pfn's are represnted by shifting the address by
    the page size (typically 4k).

    Signed-off-by: Kai Jiang
    Signed-off-by: Minghuan Lian
    Signed-off-by: Kumar Gala
    Signed-off-by: Hans J. Koch
    Signed-off-by: Greg Kroah-Hartman

    Kai Jiang
     

27 Sep, 2011

5 commits

  • "sysfs: use rb-tree for inode number lookup" added a new printk which
    causes a new compile warning on s390 (and few other architectures):

    fs/sysfs/dir.c: In function 'sysfs_link_sibling':
    fs/sysfs/dir.c:63:4: warning: format '%lx' expects argument of type
    'long unsigned int', but argument 2 has type 'ino_t' [-Wform

    Add an explicit unsigned long cast since ino_t is an unsigned long on
    most architectures.

    Cc: Mikulas Patocka
    Signed-off-by: Heiko Carstens
    Signed-off-by: Greg Kroah-Hartman

    Heiko Carstens
     
  • When DEBUG_DRIVER is activated, be verbose and explicitly state when a
    devicedriver match was rejected by the probe-function of the driver.
    Now all code-paths report what is currently happening which helps
    debugging, because you don't have to remember that no printout means
    the match is rejected (and then you still don't know if it was because
    of ENODEV or ENXIO).

    Signed-off-by: Wolfram Sang
    Signed-off-by: Greg Kroah-Hartman

    Wolfram Sang
     
  • The check to ensure that pages of recently added memory sections are correctly
    marked as reserved before trying to online the memory is broken. The request
    to online the memory fails with the following:

    kernel: section number XXX page number 256 not reserved, was it already online?

    This updates the page reservation checking to check the pages of each memory
    section of the memory block being onlined individually.

    Signed-off-by: Nathan Fontenot
    Signed-off-by: Greg Kroah-Hartman

    Nathan Fontenot
     
  • The sysfs memory probe interface allows unaligned regions
    to be added:

    # echo 0xffffff > /sys/devices/system/memory/probe

    # cat /proc/iomem
    00ffffff-01fffffe : System RAM
    01ffffff-02fffffe : System RAM
    02ffffff-03fffffe : System RAM
    03ffffff-04fffffe : System RAM
    04ffffff-05fffffe : System RAM

    Return -EINVAL instead of creating these bad regions.

    Signed-off-by: Anton Blanchard
    Signed-off-by: Greg Kroah-Hartman

    Anton Blanchard
     
  • This patch can remove the messy code file
    Documentation/zh_CN/SumitChecklist. Of course, i will also fix this
    matter and proofread it again and then submit it again.

    Signed-off-by: Harry Wei
    Signed-off-by: Greg Kroah-Hartman

    Harry Wei
     

27 Aug, 2011

2 commits


25 Aug, 2011

2 commits

  • The driver model documentation was added to the kernel tree before
    struct class was added to . Hence this patch that
    updates the paragraph about struct class in
    Documentation/driver-model/binding.txt.

    Signed-off-by: Bart Van Assche
    Cc: Randy Dunlap
    Signed-off-by: Greg Kroah-Hartman

    Bart Van Assche
     
  • Several drivers use device_create_file() where device.groups should be
    used instead. This patch documents that and also removes the comments
    about device classes since these should not be used in new code in the
    way documented until now in Documentation/driver-model/device.txt.

    Signed-off-by: Bart Van Assche
    Cc: Randy Dunlap
    Signed-off-by: Greg Kroah-Hartman

    Bart Van Assche
     

23 Aug, 2011

24 commits


22 Aug, 2011

1 commit