]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
mlx4_core: Fix warning from min()
authorRoland Dreier <rolandd@cisco.com>
Fri, 9 Jan 2009 21:14:07 +0000 (13:14 -0800)
committerRoland Dreier <rolandd@cisco.com>
Fri, 9 Jan 2009 21:14:07 +0000 (13:14 -0800)
commit70cb92539cd1b8e1dec935a68fc154ea0db3a177
tree956d3125f32cb8dde879d8c402e99cd9e76698d1
parent6a94cb73064c952255336cc57731904174b2c58f
mlx4_core: Fix warning from min()

Recent cpumask changes changed num_possible_cpus() from returning an int
to returning an unsigned int.  This means that doing

    min(num_possible_cpus(), <int expression>)

now produces a warning like

    drivers/net/mlx4/main.c: In function 'mlx4_enable_msi_x':
    drivers/net/mlx4/main.c:915: warning: comparison of distinct pointer types lacks a cast

Fix this by using min_t(int, ...).

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/main.c