diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2009-01-06 01:06:02 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-06 01:06:02 +0100 |
commit | 48e4cc777c091b037acaf39036a77ece43fe1ab9 (patch) | |
tree | 339831eed5702871dd5502cbd7f3fef4799b397a /drivers/net/ehea/ehea_main.c | |
parent | Revert "net: Fix for initial link state in 2.6.28" (diff) | |
download | linux-48e4cc777c091b037acaf39036a77ece43fe1ab9.tar.xz linux-48e4cc777c091b037acaf39036a77ece43fe1ab9.zip |
net/ehea: bitops work on unsigned longs
The flags field of struct ehea_port is only used with test_bit(),
clear_bit() and set_bit() and these interfaces only work on
"unsigned long"s, so change the field to be an "unsigned long". Also,
this field only has two bits defined for it (0 and 1) so will still be
fine if someone builds this driver for a 32 bit arch (at least as far as
this flags field is concerned).
Also note that ehea_driver_flags is only used in ehca_main.c, so make it
static in there.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/ehea/ehea_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ehea/ehea_main.c b/drivers/net/ehea/ehea_main.c index a2f1905a23df..e3131ea629cd 100644 --- a/drivers/net/ehea/ehea_main.c +++ b/drivers/net/ehea/ehea_main.c @@ -99,7 +99,7 @@ MODULE_PARM_DESC(use_lro, " Large Receive Offload, 1: enable, 0: disable, " static int port_name_cnt; static LIST_HEAD(adapter_list); -u64 ehea_driver_flags; +static unsigned long ehea_driver_flags; struct work_struct ehea_rereg_mr_task; static DEFINE_MUTEX(dlpar_mem_lock); struct ehea_fw_handle_array ehea_fw_handles; |