• Michael S. Tsirkin's avatar
    mm/vmscan: fix highidx argument type · 17636faa
    Michael S. Tsirkin authored
    for_each_zone_zonelist_nodemask wants an enum zone_type argument, but is
    passed gfp_t:
    
      mm/vmscan.c:2658:9:    expected int enum zone_type [signed] highest_zoneidx
      mm/vmscan.c:2658:9:    got restricted gfp_t [usertype] gfp_mask
      mm/vmscan.c:2658:9: warning: incorrect type in argument 2 (different base types)
      mm/vmscan.c:2658:9:    expected int enum zone_type [signed] highest_zoneidx
      mm/vmscan.c:2658:9:    got restricted gfp_t [usertype] gfp_mask
    
    convert argument to the correct type.
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    Cc: Johannes Weiner <hannes@cmpxchg.org>
    Cc: Vladimir Davydov <vdavydov@parallels.com>
    Cc: Rik van Riel <riel@redhat.com>
    Cc: Michal Hocko <mhocko@suse.cz>
    Cc: Mel Gorman <mgorman@suse.de>
    Cc: Vlastimil Babka <vbabka@suse.cz>
    Cc: Suleiman Souhlal <suleiman@google.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    17636faa
vmscan.c 108 KB