From: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
To: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com,
"David S. Miller" <davem@davemloft.net>,
Florian Fainelli <f.fainelli@gmail.com>,
Andrew Lunn <andrew@lunn.ch>,
Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Subject: [PATCH net-next v2 17/17] etherdevice: remove unused eth_addr_greater
Date: Sat, 11 Mar 2017 16:13:03 -0500 [thread overview]
Message-ID: <20170311211303.24560-18-vivien.didelot@savoirfairelinux.com> (raw)
In-Reply-To: <20170311211303.24560-1-vivien.didelot@savoirfairelinux.com>
eth_addr_greater() was introduced for the mv88e6xxx driver, but is not
used anymore. There is no other user, thus remove this function.
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
---
include/linux/etherdevice.h | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h
index c62b709b1ce0..2d9f80848d4b 100644
--- a/include/linux/etherdevice.h
+++ b/include/linux/etherdevice.h
@@ -447,21 +447,6 @@ static inline void eth_addr_dec(u8 *addr)
}
/**
- * ether_addr_greater - Compare two Ethernet addresses
- * @addr1: Pointer to a six-byte array containing the Ethernet address
- * @addr2: Pointer other six-byte array containing the Ethernet address
- *
- * Compare two Ethernet addresses, returns true addr1 is greater than addr2
- */
-static inline bool ether_addr_greater(const u8 *addr1, const u8 *addr2)
-{
- u64 u1 = ether_addr_to_u64(addr1);
- u64 u2 = ether_addr_to_u64(addr2);
-
- return u1 > u2;
-}
-
-/**
* is_etherdev_addr - Tell if given Ethernet address belongs to the device.
* @dev: Pointer to a device structure
* @addr: Pointer to a six-byte array containing the Ethernet address
--
2.12.0
next prev parent reply other threads:[~2017-03-11 21:19 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-11 21:12 [PATCH net-next v2 00/17] net: dsa: mv88e6xxx: rework ATU support Vivien Didelot
2017-03-11 21:12 ` [PATCH net-next v2 01/17] net: dsa: mv88e6xxx: add port mask helper Vivien Didelot
2017-03-11 21:12 ` [PATCH net-next v2 02/17] net: dsa: mv88e6xxx: move ATU ageing time setter Vivien Didelot
2017-03-11 21:12 ` [PATCH net-next v2 03/17] net: dsa: mv88e6xxx: add ATU setup helper Vivien Didelot
2017-03-11 23:51 ` Andrew Lunn
2017-03-11 21:12 ` [PATCH net-next v2 04/17] net: dsa: mv88e6xxx: setup message ports Vivien Didelot
2017-03-11 21:12 ` [PATCH net-next v2 05/17] net: dsa: mv88e6xxx: enable ATU Learn2All Vivien Didelot
2017-03-11 21:12 ` [PATCH net-next v2 06/17] net: dsa: mv88e6xxx: rework ATU Load/Purge Vivien Didelot
2017-03-11 21:12 ` [PATCH net-next v2 07/17] net: dsa: mv88e6xxx: rework ATU GetNext Vivien Didelot
2017-03-11 21:12 ` [PATCH net-next v2 08/17] net: dsa: mv88e6xxx: rework ATU Flush Vivien Didelot
2017-03-11 21:12 ` [PATCH net-next v2 09/17] net: dsa: mv88e6xxx: rework ATU Remove Vivien Didelot
2017-03-11 21:12 ` [PATCH net-next v2 10/17] net: dsa: mv88e6xxx: rename new FID helper Vivien Didelot
2017-03-11 21:12 ` [PATCH net-next v2 11/17] net: dsa: mv88e6xxx: rename the port vector member Vivien Didelot
2017-03-11 21:12 ` [PATCH net-next v2 12/17] net: dsa: add dsa_is_normal_port helper Vivien Didelot
2017-03-11 23:49 ` Andrew Lunn
2017-03-12 2:17 ` Florian Fainelli
2017-03-13 14:54 ` Vivien Didelot
2017-03-11 21:12 ` [PATCH net-next v2 13/17] net: dsa: mv88e6xxx: rework port mode setup Vivien Didelot
2017-03-11 21:13 ` [PATCH net-next v2 14/17] net: dsa: mv88e6xxx: fix port egress flooding mode Vivien Didelot
2017-03-11 21:13 ` [PATCH net-next v2 15/17] net: dsa: mv88e6xxx: add port ATU learn limit op Vivien Didelot
2017-03-11 21:13 ` [PATCH net-next v2 16/17] net: dsa: mv88e6xxx: add port priority override op Vivien Didelot
2017-03-11 21:13 ` Vivien Didelot [this message]
2017-03-11 23:49 ` [PATCH net-next v2 17/17] etherdevice: remove unused eth_addr_greater Andrew Lunn
2017-03-12 2:27 ` [PATCH net-next v2 00/17] net: dsa: mv88e6xxx: rework ATU support Florian Fainelli
2017-03-13 14:52 ` Vivien Didelot
2017-03-13 6:54 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170311211303.24560-18-vivien.didelot@savoirfairelinux.com \
--to=vivien.didelot@savoirfairelinux.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=kernel@savoirfairelinux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).