]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: fix compiler warnings
authorDavid Ertman <davidx.m.ertman@intel.com>
Sat, 14 Dec 2013 07:18:18 +0000 (07:18 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 18 Dec 2013 05:52:39 +0000 (21:52 -0800)
commit760eeec8fa4240ed6adf8f38b17f3f41b28fd3c8
tree7c649caddf8cca456e147ee5517a471e4621df1c
parenta55ed703037751f4b8fe1d2e7414896bf9cb41c6
e1000e: fix compiler warnings

This patch is to fix a compiler warning of __bad_udelay due to a value
of >999 being passed as a parameter to udelay() in the function
e1000e_phy_has_link_generic().  This affects the gcc compiler when
it is given a flag of -O3 and the icc compiler.

This patch is also making the change from mdelay() to msleep() in the
same function, since it was determined though code inspection that this
function is never called in atomic context.

Signed-off-by: David Ertman <davidx.m.ertman@intel.com>
Acked-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/phy.c