Commit fda35af9 authored by Jesse Brandeburg's avatar Jesse Brandeburg Committed by Tony Nguyen

intel: remove unused macros

As found by the compile option -Wunused-macros, remove these macros
that are never used by the code.
Signed-off-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent bf48c3fa
...@@ -1430,7 +1430,6 @@ static int e100_phy_check_without_mii(struct nic *nic) ...@@ -1430,7 +1430,6 @@ static int e100_phy_check_without_mii(struct nic *nic)
#define MII_NSC_CONG MII_RESV1 #define MII_NSC_CONG MII_RESV1
#define NSC_CONG_ENABLE 0x0100 #define NSC_CONG_ENABLE 0x0100
#define NSC_CONG_TXREADY 0x0400 #define NSC_CONG_TXREADY 0x0400
#define ADVERTISE_FC_SUPPORTED 0x0400
static int e100_phy_init(struct nic *nic) static int e100_phy_init(struct nic *nic)
{ {
struct net_device *netdev = nic->netdev; struct net_device *netdev = nic->netdev;
......
...@@ -82,7 +82,6 @@ E1000_PARAM(Duplex, "Duplex setting"); ...@@ -82,7 +82,6 @@ E1000_PARAM(Duplex, "Duplex setting");
*/ */
E1000_PARAM(AutoNeg, "Advertised auto-negotiation setting"); E1000_PARAM(AutoNeg, "Advertised auto-negotiation setting");
#define AUTONEG_ADV_DEFAULT 0x2F #define AUTONEG_ADV_DEFAULT 0x2F
#define AUTONEG_ADV_MASK 0x2F
/* User Specified Flow Control Override /* User Specified Flow Control Override
* *
...@@ -95,7 +94,6 @@ E1000_PARAM(AutoNeg, "Advertised auto-negotiation setting"); ...@@ -95,7 +94,6 @@ E1000_PARAM(AutoNeg, "Advertised auto-negotiation setting");
* Default Value: Read flow control settings from the EEPROM * Default Value: Read flow control settings from the EEPROM
*/ */
E1000_PARAM(FlowControl, "Flow Control setting"); E1000_PARAM(FlowControl, "Flow Control setting");
#define FLOW_CONTROL_DEFAULT FLOW_CONTROL_FULL
/* XsumRX - Receive Checksum Offload Enable/Disable /* XsumRX - Receive Checksum Offload Enable/Disable
* *
......
...@@ -101,8 +101,6 @@ E1000_PARAM(InterruptThrottleRate, "Interrupt Throttling Rate"); ...@@ -101,8 +101,6 @@ E1000_PARAM(InterruptThrottleRate, "Interrupt Throttling Rate");
* demoted to the most advanced interrupt mode available. * demoted to the most advanced interrupt mode available.
*/ */
E1000_PARAM(IntMode, "Interrupt Mode"); E1000_PARAM(IntMode, "Interrupt Mode");
#define MAX_INTMODE 2
#define MIN_INTMODE 0
/* Enable Smart Power Down of the PHY /* Enable Smart Power Down of the PHY
* *
......
...@@ -236,8 +236,6 @@ static void __i40e_add_stat_strings(u8 **p, const struct i40e_stats stats[], ...@@ -236,8 +236,6 @@ static void __i40e_add_stat_strings(u8 **p, const struct i40e_stats stats[],
I40E_STAT(struct i40e_cp_veb_tc_stats, _name, _stat) I40E_STAT(struct i40e_cp_veb_tc_stats, _name, _stat)
#define I40E_PFC_STAT(_name, _stat) \ #define I40E_PFC_STAT(_name, _stat) \
I40E_STAT(struct i40e_pfc_stats, _name, _stat) I40E_STAT(struct i40e_pfc_stats, _name, _stat)
#define I40E_QUEUE_STAT(_name, _stat) \
I40E_STAT(struct i40e_ring, _name, _stat)
static const struct i40e_stats i40e_gstrings_net_stats[] = { static const struct i40e_stats i40e_gstrings_net_stats[] = {
I40E_NETDEV_STAT(rx_packets), I40E_NETDEV_STAT(rx_packets),
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#define I40E_PRTTSYN_CTL1_TSYNTYPE_V2 (2 << \ #define I40E_PRTTSYN_CTL1_TSYNTYPE_V2 (2 << \
I40E_PRTTSYN_CTL1_TSYNTYPE_SHIFT) I40E_PRTTSYN_CTL1_TSYNTYPE_SHIFT)
#define I40E_SUBDEV_ID_25G_PTP_PIN 0xB #define I40E_SUBDEV_ID_25G_PTP_PIN 0xB
#define to_dev(obj) container_of(obj, struct device, kobj)
enum i40e_ptp_pin { enum i40e_ptp_pin {
SDP3_2 = 0, SDP3_2 = 0,
......
...@@ -372,7 +372,6 @@ static void i40e_change_filter_num(bool ipv4, bool add, u16 *ipv4_filter_num, ...@@ -372,7 +372,6 @@ static void i40e_change_filter_num(bool ipv4, bool add, u16 *ipv4_filter_num,
} }
} }
#define IP_HEADER_OFFSET 14
#define I40E_UDPIP_DUMMY_PACKET_LEN 42 #define I40E_UDPIP_DUMMY_PACKET_LEN 42
#define I40E_UDPIP6_DUMMY_PACKET_LEN 62 #define I40E_UDPIP6_DUMMY_PACKET_LEN 62
/** /**
......
...@@ -5,10 +5,6 @@ ...@@ -5,10 +5,6 @@
#include "iavf_prototype.h" #include "iavf_prototype.h"
#include "iavf_client.h" #include "iavf_client.h"
/* busy wait delay in msec */
#define IAVF_BUSY_WAIT_DELAY 10
#define IAVF_BUSY_WAIT_COUNT 50
/** /**
* iavf_send_pf_msg * iavf_send_pf_msg
* @adapter: adapter structure * @adapter: adapter structure
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#define INCVALUE_MASK 0x7fffffff #define INCVALUE_MASK 0x7fffffff
#define ISGN 0x80000000 #define ISGN 0x80000000
#define IGC_SYSTIM_OVERFLOW_PERIOD (HZ * 60 * 9)
#define IGC_PTP_TX_TIMEOUT (HZ * 15) #define IGC_PTP_TX_TIMEOUT (HZ * 15)
#define IGC_PTM_STAT_SLEEP 2 #define IGC_PTM_STAT_SLEEP 2
......
...@@ -1704,7 +1704,6 @@ ixgb_update_stats(struct ixgb_adapter *adapter) ...@@ -1704,7 +1704,6 @@ ixgb_update_stats(struct ixgb_adapter *adapter)
netdev->stats.tx_window_errors = 0; netdev->stats.tx_window_errors = 0;
} }
#define IXGB_MAX_INTR 10
/** /**
* ixgb_intr - Interrupt Handler * ixgb_intr - Interrupt Handler
* @irq: interrupt number * @irq: interrupt number
......
...@@ -141,8 +141,6 @@ IXGB_PARAM(IntDelayEnable, "Transmit Interrupt Delay Enable"); ...@@ -141,8 +141,6 @@ IXGB_PARAM(IntDelayEnable, "Transmit Interrupt Delay Enable");
#define MAX_RDTR 0xFFFF #define MAX_RDTR 0xFFFF
#define MIN_RDTR 0 #define MIN_RDTR 0
#define XSUMRX_DEFAULT OPTION_ENABLED
#define DEFAULT_FCRTL 0x28000 #define DEFAULT_FCRTL 0x28000
#define DEFAULT_FCRTH 0x30000 #define DEFAULT_FCRTH 0x30000
#define MIN_FCRTL 0 #define MIN_FCRTL 0
......
...@@ -8,12 +8,10 @@ ...@@ -8,12 +8,10 @@
#include "ixgbe_sriov.h" #include "ixgbe_sriov.h"
/* Callbacks for DCB netlink in the kernel */ /* Callbacks for DCB netlink in the kernel */
#define BIT_DCB_MODE 0x01
#define BIT_PFC 0x02 #define BIT_PFC 0x02
#define BIT_PG_RX 0x04 #define BIT_PG_RX 0x04
#define BIT_PG_TX 0x08 #define BIT_PG_TX 0x08
#define BIT_APP_UPCHG 0x10 #define BIT_APP_UPCHG 0x10
#define BIT_LINKSPEED 0x80
/* Responses for the DCB_C_SET_ALL command */ /* Responses for the DCB_C_SET_ALL command */
#define DCB_HW_CHG_RST 0 /* DCB configuration changed with reset */ #define DCB_HW_CHG_RST 0 /* DCB configuration changed with reset */
......
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
#include "ixgbe_phy.h" #include "ixgbe_phy.h"
#define IXGBE_ALL_RAR_ENTRIES 16
enum {NETDEV_STATS, IXGBE_STATS}; enum {NETDEV_STATS, IXGBE_STATS};
struct ixgbe_stats { struct ixgbe_stats {
......
...@@ -138,7 +138,6 @@ ...@@ -138,7 +138,6 @@
#define IXGBE_X550_BASE_PERIOD 0xC80000000ULL #define IXGBE_X550_BASE_PERIOD 0xC80000000ULL
#define INCVALUE_MASK 0x7FFFFFFF #define INCVALUE_MASK 0x7FFFFFFF
#define ISGN 0x80000000 #define ISGN 0x80000000
#define MAX_TIMADJ 0x7FFFFFFF
/** /**
* ixgbe_ptp_setup_sdp_X540 * ixgbe_ptp_setup_sdp_X540
......
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
#include "ixgbevf.h" #include "ixgbevf.h"
#define IXGBE_ALL_RAR_ENTRIES 16
enum {NETDEV_STATS, IXGBEVF_STATS}; enum {NETDEV_STATS, IXGBEVF_STATS};
struct ixgbe_stats { struct ixgbe_stats {
...@@ -130,8 +128,6 @@ static void ixgbevf_set_msglevel(struct net_device *netdev, u32 data) ...@@ -130,8 +128,6 @@ static void ixgbevf_set_msglevel(struct net_device *netdev, u32 data)
adapter->msg_enable = data; adapter->msg_enable = data;
} }
#define IXGBE_GET_STAT(_A_, _R_) (_A_->stats._R_)
static int ixgbevf_get_regs_len(struct net_device *netdev) static int ixgbevf_get_regs_len(struct net_device *netdev)
{ {
#define IXGBE_REGS_LEN 45 #define IXGBE_REGS_LEN 45
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment