[ofa-general] possible bugs in IB code usage of min() and max()

Or Gerlitz ogerlitz at voltaire.com
Wed Mar 18 01:18:36 PDT 2009


Roland,

I came across these sparse warnings, are they false-negative or bugs
that should be fixed?

drivers/infiniband/hw/mlx4/qp.c:421:22: warning: symbol '_min1' shadows an earlier one
drivers/infiniband/hw/mlx4/qp.c:421:22: warning: symbol '_min1' shadows an earlier one
drivers/infiniband/hw/mlx4/qp.c:421:22: warning: symbol '_min2' shadows an earlier one
drivers/infiniband/ulp/ipoib/ipoib_main.c:1399:21: warning: symbol '_max1' shadows an earlier one
drivers/infiniband/ulp/ipoib/ipoib_main.c:1399:21: warning: symbol '_max1' shadows an earlier one
drivers/infiniband/ulp/ipoib/ipoib_main.c:1399:21: warning: symbol '_max2' shadows an earlier one


Or.



More information about the general mailing list