[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110517.141446.140687548350861625.davem@davemloft.net>
Date: Tue, 17 May 2011 14:14:46 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: bhutchings@...arflare.com
CC: netdev@...r.kernel.org
Subject: sfc: an enumeration is not a bitmask
Ben can you please get rid of "enum efx_fc_type"?
drivers/net/sfc/mcdi_mac.c: In function ‘efx_mcdi_set_mac’:
drivers/net/sfc/mcdi_mac.c:36:2: warning: case value ‘3’ not in enumerated type ‘enum efx_fc_type’
An enumeration is not a bitmask, instead it means one out of the set
of enumerated values will be used. This means that the warning
here about:
switch (efx->wanted_fc) {
case EFX_FC_RX | EFX_FC_TX:
is completely legitimate.
Thanks.
Powered by blists - more mailing lists