diff options
| author | Stefan Agner <[email protected]> | 2018-04-05 16:25:38 -0700 | 
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2018-04-05 21:36:27 -0700 | 
| commit | 644d87dccdc69cf79834a72ed0c889580d6af32a (patch) | |
| tree | f5ecd90a78edc8c8d62210bd5a14a9bab16eaa04 /tools/perf/scripts/python/Perf-Trace-Util/Context.c | |
| parent | 514c60324960137e74457fdc233a339b985fa8a8 (diff) | |
mm/memblock.c: cast constant ULLONG_MAX to phys_addr_t
This fixes a warning shown when phys_addr_t is 32-bit int when compiling
with clang:
  mm/memblock.c:927:15: warning: implicit conversion from 'unsigned long long'
        to 'phys_addr_t' (aka 'unsigned int') changes value from
        18446744073709551615 to 4294967295 [-Wconstant-conversion]
                                  r->base : ULLONG_MAX;
                                            ^~~~~~~~~~
  ./include/linux/kernel.h:30:21: note: expanded from macro 'ULLONG_MAX'
  #define ULLONG_MAX      (~0ULL)
                           ^~~~~
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Stefan Agner <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Pavel Tatashin <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/Context.c')
0 files changed, 0 insertions, 0 deletions