diff options
author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2016-10-13 16:13:55 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-14 16:05:42 -0400 |
commit | 85a624403c77c3f074931aefdfced59f61b668cb (patch) | |
tree | 97d6f017863272b5f2e8c84129a8c55f31c8c03c /drivers/block | |
parent | 958b3d396d7f80755e2c2e6a8f873a669f38de10 (diff) | |
download | linux-85a624403c77c3f074931aefdfced59f61b668cb.tar.bz2 |
ethtool: silence warning on bit loss
Sparse was complaining when we went to prototype some code
using ethtool_cmd_speed_set and SPEED_100000, which uses
the upper 16 bits of __u32 speed for the first time.
CHECK
...
.../uapi/linux/ethtool.h:123:28: warning:
cast truncates bits from constant value (186a0 becomes 86a0)
The warning is actually bogus, as no bits are really lost, but
we can get rid of the sparse warning with this one small change.
Reported-by: Preethi Banala <preethi.banala@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions