i40e: Remove XSTRINGIFY macro definitions and uses
Use __stringify instead. Signed-off-by: Joe Perches <joe@perches.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
committed by
Jeff Kirsher
parent
682d11d700
commit
35f5034f8e
@@ -120,10 +120,6 @@
|
|||||||
#define I40E_CURRENT_NVM_VERSION_HI 0x2
|
#define I40E_CURRENT_NVM_VERSION_HI 0x2
|
||||||
#define I40E_CURRENT_NVM_VERSION_LO 0x40
|
#define I40E_CURRENT_NVM_VERSION_LO 0x40
|
||||||
|
|
||||||
/* magic for getting defines into strings */
|
|
||||||
#define STRINGIFY(foo) #foo
|
|
||||||
#define XSTRINGIFY(bar) STRINGIFY(bar)
|
|
||||||
|
|
||||||
#define I40E_RX_DESC(R, i) \
|
#define I40E_RX_DESC(R, i) \
|
||||||
(&(((union i40e_32byte_rx_desc *)((R)->desc))[i]))
|
(&(((union i40e_32byte_rx_desc *)((R)->desc))[i]))
|
||||||
#define I40E_TX_DESC(R, i) \
|
#define I40E_TX_DESC(R, i) \
|
||||||
|
|||||||
@@ -36,9 +36,9 @@
|
|||||||
#define I40E_CLIENT_VERSION_MINOR 01
|
#define I40E_CLIENT_VERSION_MINOR 01
|
||||||
#define I40E_CLIENT_VERSION_BUILD 00
|
#define I40E_CLIENT_VERSION_BUILD 00
|
||||||
#define I40E_CLIENT_VERSION_STR \
|
#define I40E_CLIENT_VERSION_STR \
|
||||||
XSTRINGIFY(I40E_CLIENT_VERSION_MAJOR) "." \
|
__stringify(I40E_CLIENT_VERSION_MAJOR) "." \
|
||||||
XSTRINGIFY(I40E_CLIENT_VERSION_MINOR) "." \
|
__stringify(I40E_CLIENT_VERSION_MINOR) "." \
|
||||||
XSTRINGIFY(I40E_CLIENT_VERSION_BUILD)
|
__stringify(I40E_CLIENT_VERSION_BUILD)
|
||||||
|
|
||||||
struct i40e_client_version {
|
struct i40e_client_version {
|
||||||
u8 major;
|
u8 major;
|
||||||
|
|||||||
Reference in New Issue
Block a user