]> git.baikalelectronics.ru Git - kernel.git/commitdiff
intel: remove unused macros
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Sat, 25 Jun 2022 00:33:02 +0000 (17:33 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 30 Jun 2022 16:40:55 +0000 (09:40 -0700)
As found by the compile option -Wunused-macros, remove these macros
that are never used by the code.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
14 files changed:
drivers/net/ethernet/intel/e100.c
drivers/net/ethernet/intel/e1000/e1000_param.c
drivers/net/ethernet/intel/e1000e/param.c
drivers/net/ethernet/intel/i40e/i40e_ethtool.c
drivers/net/ethernet/intel/i40e/i40e_ptp.c
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/iavf/iavf_virtchnl.c
drivers/net/ethernet/intel/igc/igc_ptp.c
drivers/net/ethernet/intel/ixgb/ixgb_main.c
drivers/net/ethernet/intel/ixgb/ixgb_param.c
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c
drivers/net/ethernet/intel/ixgbevf/ethtool.c

index 36418b510ddee6e6a28bfdbe63c2ffcb134a8db4..11a884aa5082c119b2bbe8ca3585b7b7524f4809 100644 (file)
@@ -1430,7 +1430,6 @@ static int e100_phy_check_without_mii(struct nic *nic)
 #define MII_NSC_CONG           MII_RESV1
 #define NSC_CONG_ENABLE                0x0100
 #define NSC_CONG_TXREADY       0x0400
-#define ADVERTISE_FC_SUPPORTED 0x0400
 static int e100_phy_init(struct nic *nic)
 {
        struct net_device *netdev = nic->netdev;
index 4d4f5bf1e5161cd1cbae8ebdd1010a15b951d0c6..f4154ca7fcb41c7ff074feb0a36ce063bc5f6ba7 100644 (file)
@@ -82,7 +82,6 @@ E1000_PARAM(Duplex, "Duplex setting");
  */
 E1000_PARAM(AutoNeg, "Advertised auto-negotiation setting");
 #define AUTONEG_ADV_DEFAULT  0x2F
-#define AUTONEG_ADV_MASK     0x2F
 
 /* User Specified Flow Control Override
  *
@@ -95,7 +94,6 @@ E1000_PARAM(AutoNeg, "Advertised auto-negotiation setting");
  * Default Value: Read flow control settings from the EEPROM
  */
 E1000_PARAM(FlowControl, "Flow Control setting");
-#define FLOW_CONTROL_DEFAULT FLOW_CONTROL_FULL
 
 /* XsumRX - Receive Checksum Offload Enable/Disable
  *
index ebe121db430728c075b3cca7199fb63b1392f87b..3132d8f2f207d71a3ea81e31ef10467637d85f75 100644 (file)
@@ -101,8 +101,6 @@ E1000_PARAM(InterruptThrottleRate, "Interrupt Throttling Rate");
  * demoted to the most advanced interrupt mode available.
  */
 E1000_PARAM(IntMode, "Interrupt Mode");
-#define MAX_INTMODE    2
-#define MIN_INTMODE    0
 
 /* Enable Smart Power Down of the PHY
  *
index 55841816272bfee28563bc3ef20f34b80fd1dc7a..d9a934ca3eba9413cc17a7bf4e0663c05deeb153 100644 (file)
@@ -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)
 #define I40E_PFC_STAT(_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[] = {
        I40E_NETDEV_STAT(rx_packets),
index 61e5789d78db70040a97f404c191fb87e51ed95d..57a71fa17ed599301da7f0a1ccbaf4398b02d995 100644 (file)
@@ -27,7 +27,6 @@
 #define I40E_PRTTSYN_CTL1_TSYNTYPE_V2  (2 << \
                                        I40E_PRTTSYN_CTL1_TSYNTYPE_SHIFT)
 #define I40E_SUBDEV_ID_25G_PTP_PIN     0xB
-#define to_dev(obj) container_of(obj, struct device, kobj)
 
 enum i40e_ptp_pin {
        SDP3_2 = 0,
index a327189deda0978d5c9752954e769dc9068a4679..f6ba97a0166eb43670654caa593fd254ff1581e0 100644 (file)
@@ -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_UDPIP6_DUMMY_PACKET_LEN   62
 /**
index e2b4ba98f71e43065f47158c48a0b794a150c6e6..0d22bba6a5f2702987c7ec9721060b64e4816183 100644 (file)
@@ -5,10 +5,6 @@
 #include "iavf_prototype.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
  * @adapter: adapter structure
index 653e9f1e35b5c7023d26a78a021cab81a078319f..8dbb9f903ca70fc5864b4911249ed63e1c8aaa1f 100644 (file)
@@ -15,7 +15,6 @@
 #define INCVALUE_MASK          0x7fffffff
 #define ISGN                   0x80000000
 
-#define IGC_SYSTIM_OVERFLOW_PERIOD     (HZ * 60 * 9)
 #define IGC_PTP_TX_TIMEOUT             (HZ * 15)
 
 #define IGC_PTM_STAT_SLEEP             2
index affdefcca7e307417cb4be1848225adfa887dbb9..bca53625da3380e4d140d7dff68013bf358d642c 100644 (file)
@@ -1704,7 +1704,6 @@ ixgb_update_stats(struct ixgb_adapter *adapter)
        netdev->stats.tx_window_errors = 0;
 }
 
-#define IXGB_MAX_INTR 10
 /**
  * ixgb_intr - Interrupt Handler
  * @irq: interrupt number
index f0cadd532c539c1d0a896d68693c2c24b96a2a04..d40f96250691082cf83b17bbb62c33f208b22213 100644 (file)
@@ -141,8 +141,6 @@ IXGB_PARAM(IntDelayEnable, "Transmit Interrupt Delay Enable");
 #define MAX_RDTR                        0xFFFF
 #define MIN_RDTR                             0
 
-#define XSUMRX_DEFAULT          OPTION_ENABLED
-
 #define DEFAULT_FCRTL                  0x28000
 #define DEFAULT_FCRTH                  0x30000
 #define MIN_FCRTL                            0
index 72e6ebffea334c1f92623e45e2af26c17e7ca0bd..e85f7d2e88106eee557be496e40ee0aa17f036bc 100644 (file)
@@ -8,12 +8,10 @@
 #include "ixgbe_sriov.h"
 
 /* Callbacks for DCB netlink in the kernel */
-#define BIT_DCB_MODE   0x01
 #define BIT_PFC                0x02
 #define BIT_PG_RX      0x04
 #define BIT_PG_TX      0x08
 #define BIT_APP_UPCHG  0x10
-#define BIT_LINKSPEED   0x80
 
 /* Responses for the DCB_C_SET_ALL command */
 #define DCB_HW_CHG_RST  0  /* DCB configuration changed with reset */
index 628d0eb0599f2ebe5dc264c44e3ac0d4953cfcc8..04f453eabef64e91786bd0dbc497512777d81538 100644 (file)
@@ -18,8 +18,6 @@
 #include "ixgbe_phy.h"
 
 
-#define IXGBE_ALL_RAR_ENTRIES 16
-
 enum {NETDEV_STATS, IXGBE_STATS};
 
 struct ixgbe_stats {
index 336426a67ac1beb68278e8f3b80da82004ef36b3..27a71fa26d3c162a0f1a1ba49d3a5d8839fd6e13 100644 (file)
 #define IXGBE_X550_BASE_PERIOD 0xC80000000ULL
 #define INCVALUE_MASK  0x7FFFFFFF
 #define ISGN           0x80000000
-#define MAX_TIMADJ     0x7FFFFFFF
 
 /**
  * ixgbe_ptp_setup_sdp_X540
index 3b41f83c8dff611e5315079458695dedec399f40..fed46872af2bf8a495469c4e80c111f6889d1fda 100644 (file)
@@ -17,8 +17,6 @@
 
 #include "ixgbevf.h"
 
-#define IXGBE_ALL_RAR_ENTRIES 16
-
 enum {NETDEV_STATS, IXGBEVF_STATS};
 
 struct ixgbe_stats {
@@ -130,8 +128,6 @@ static void ixgbevf_set_msglevel(struct net_device *netdev, u32 data)
        adapter->msg_enable = data;
 }
 
-#define IXGBE_GET_STAT(_A_, _R_) (_A_->stats._R_)
-
 static int ixgbevf_get_regs_len(struct net_device *netdev)
 {
 #define IXGBE_REGS_LEN 45