1. 16 6月, 2009 5 次提交
  2. 08 4月, 2009 2 次提交
  3. 16 3月, 2009 1 次提交
  4. 09 1月, 2009 1 次提交
  5. 07 1月, 2009 2 次提交
    • S
      sparc64: Use unsigned long long for u64. · 90181136
      Sam Ravnborg 提交于
      Andrew Morton wrote:
      
          People keep on doing
      
                  printk("%llu", some_u64);
      
          testing it only on x86_64 and this generates a warning storm on
          powerpc, sparc64, etc.  Because they use `long', not `long long'.
      
          Quite a few 64-bit architectures are using `long' for their
          s64/u64 types.  We should convert them all to `long long'.
      
      Update types.h so we use unsigned long long for u64 and
      fix all warnings in sparc64 code.
      Tested with an allnoconfig, defconfig and allmodconfig builds.
      
      This patch introduces additional warnings in several drivers.
      These will be dealt with in separate patches.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      90181136
    • S
      sparc64: refactor code in init_64.c · ff9aefbf
      Sam Ravnborg 提交于
      The sparc64 allmodconfig build broke due to enabling of the
      branch_tracer that does some very clever things with
      all if conditions. This caused my gcc 3.4.5 to be so confused that
      it emitted two warnings:
      
      arch/sparc/mm/init_64.c: In function `update_mmu_cache':
      arch/sparc/mm/init_64.c:271: warning: 'pg_flags' might be used uninitialized in this function
      arch/sparc/mm/init_64.c:272: warning: 'page' might be used uninitialized in this function
      
      And with -Werror this broke the build.
      
      Refactor code so it:
      1) becomes more readable
      2) no longer emit a warning with the branch_tracer enabled
      
      The refactoring uses a small helper function (flush_dcache()).
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ff9aefbf
  6. 05 12月, 2008 2 次提交
  7. 01 12月, 2008 1 次提交
  8. 12 9月, 2008 1 次提交
  9. 02 9月, 2008 1 次提交
  10. 01 9月, 2008 2 次提交
  11. 30 8月, 2008 1 次提交
  12. 25 8月, 2008 1 次提交
  13. 14 8月, 2008 2 次提交
    • D
      sparc64: Fix cmdline_memory_size handling bugs. · f2b60794
      David S. Miller 提交于
      First, lmb_enforce_memory_limit() interprets it's argument
      (mostly, heh) as a size limit not an address limit.  So pass
      the raw cmdline_memory_size value into it.  And we don't
      need to check it against zero, lmb_enforce_memory_limit() does
      that for us.
      
      Next, free_initmem() needs special handling when the kernel
      command line trims the available memory.  The problem case is
      if the trimmed out memory is where the kernel image itself
      resides.
      
      When that memory is trimmed out, we don't add those physical
      ram areas to the sparsemem active ranges, amongst other things.
      Which means that this free_initmem() code will free up invalid
      page structs, resulting in either crashes or hangs.
      
      Just quick fix this by not freeing initmem at all if "mem="
      was given on the boot command line.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f2b60794
    • D
      sparc64: Fix overshoot in nid_range(). · c918dcce
      David S. Miller 提交于
      If 'start' does not begin on a page boundary, we can overshoot
      past 'end'.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c918dcce
  14. 13 8月, 2008 1 次提交
  15. 27 7月, 2008 1 次提交
  16. 25 7月, 2008 1 次提交
  17. 20 5月, 2008 1 次提交
  18. 17 5月, 2008 1 次提交
  19. 12 5月, 2008 1 次提交
  20. 07 5月, 2008 1 次提交
  21. 06 5月, 2008 1 次提交
  22. 28 4月, 2008 1 次提交
    • C
      pageflags: get rid of FLAGS_RESERVED · 9223b419
      Christoph Lameter 提交于
      NR_PAGEFLAGS specifies the number of page flags we are using.  From that we
      can calculate the number of bits leftover that can be used for zone, node (and
      maybe the sections id).  There is no need anymore for FLAGS_RESERVED if we use
      NR_PAGEFLAGS.
      
      Use the new methods to make NR_PAGEFLAGS available via the preprocessor.
      NR_PAGEFLAGS is used to calculate field boundaries in the page flags fields.
      These field widths have to be available to the preprocessor.
      Signed-off-by: NChristoph Lameter <clameter@sgi.com>
      Cc: David Miller <davem@davemloft.net>
      Cc: Andy Whitcroft <apw@shadowen.org>
      Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
      Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
      Cc: Rik van Riel <riel@redhat.com>
      Cc: Mel Gorman <mel@csn.ul.ie>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9223b419
  23. 24 4月, 2008 8 次提交
  24. 29 4月, 2008 1 次提交