1. 10 7月, 2008 17 次提交
  2. 09 7月, 2008 14 次提交
  3. 08 7月, 2008 5 次提交
  4. 07 7月, 2008 4 次提交
    • B
      powerpc: Fix unterminated of_device_id array in legacy_serial.c · 3bc5ab9b
      Benjamin Herrenschmidt 提交于
      A recent patch to legacy_serial.c factored out some code by
      using the of_match_node() facility to match a node against
      an array of possible matches. However, the patch didn't properly
      terminate the array causing potential crashes in cases where no
      match is found. In addition, the name of the array was poorly
      chosen for a static symbol making debugging harder.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      3bc5ab9b
    • L
      vsprintf: add support for '%pS' and '%pF' pointer formats · 0fe1ef24
      Linus Torvalds 提交于
      They print out a pointer in symbolic format, if possible (ie using
      symbolic KALLSYMS information).  The '%pS' format is for regular direct
      pointers (which can point to data or code and that you find on the stack
      during backtraces etc), while '%pF' is for C function pointer types.
      
      On most architectures, the two mean exactly the same thing, but some
      architectures use an indirect pointer for C function pointers, where the
      function pointer points to a function descriptor (which in turn contains
      the actual pointer to the code).  The '%pF' code automatically does the
      appropriate function descriptor dereference on such architectures.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      0fe1ef24
    • L
      vsprintf: add infrastructure support for extended '%p' specifiers · 4d8a743c
      Linus Torvalds 提交于
      This expands the kernel '%p' handling with an arbitrary alphanumberic
      specifier extension string immediately following the '%p'.  Right now
      it's just being ignored, but the next commit will start adding some
      specific pointer type extensions.
      
      NOTE! The reason the extension is appended to the '%p' is to allow
      minimal gcc type checking: gcc will still see the '%p' and will check
      that the argument passed in is indeed a pointer, and yet will not
      complain about the extended information that gcc doesn't understand
      about (on the other hand, it also won't actually check that the pointer
      type and the extension are compatible).
      
      Alphanumeric characters were chosen because there is no sane existing
      use for a string format with a hex pointer representation immediately
      followed by alphanumerics (which is what such a format string would have
      traditionally resulted in).
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4d8a743c
    • L
      vsprintf: split out '%p' handling logic · 78a8bf69
      Linus Torvalds 提交于
      The actual code is the same, just split out into a helper function.
      This makes it easier to read, and allows for simple future extension
      of %p handling.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      78a8bf69