mlx4_core: Fix min() warning
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 16 Jan 2009 04:43:56 +0000 (20:43 -0800)
committerRoland Dreier <rolandd@cisco.com>
Fri, 16 Jan 2009 04:43:56 +0000 (20:43 -0800)
commitd3b924d960a808105180d229b4667061123cc4ef
tree737d89283ddb511110d6b651a8d01c8cae704a94
parente0b325d310a6b11f1538413fd557d2eb98f2fae5
mlx4_core: Fix min() warning

Fix

    drivers/net/mlx4/profile.c: In function `mlx4_make_profile':
    drivers/net/mlx4/profile.c:110: warning: comparison of distinct pointer types lacks a cast

This happened because num_possible_cpus() was secretly changed by
commit ae7a47e7 ("cpumask: make cpumask.h eat its own dogfood.") from
returning "int" to (now) returning "unsigned int".  I think that was a
good change, so we should just swallow the fallout.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Roland Dreier <rolandd@cisco.com>
Cc: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Cc: Jack Morgenstein <jackm@dev.mellanox.co.il>
Cc: Vladimir Sokolovsky <vlad@mellanox.co.il>
Cc: Michael S. Tsirkin <mst@dev.mellanox.co.il>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/profile.c