s390/net: reduce inlining
Clean up the inline cruft in s390 net drivers. Many of the inlined functions had only one caller anyway. Suggested-by: Joe Perches <joe@perches.com> Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
f8eb49306d
commit
cef6ff2202
@@ -327,8 +327,7 @@ lcs_set_allowed_threads(struct lcs_card *card, unsigned long threads)
|
||||
spin_unlock_irqrestore(&card->mask_lock, flags);
|
||||
wake_up(&card->wait_q);
|
||||
}
|
||||
static inline int
|
||||
lcs_threads_running(struct lcs_card *card, unsigned long threads)
|
||||
static int lcs_threads_running(struct lcs_card *card, unsigned long threads)
|
||||
{
|
||||
unsigned long flags;
|
||||
int rc = 0;
|
||||
@@ -346,8 +345,7 @@ lcs_wait_for_threads(struct lcs_card *card, unsigned long threads)
|
||||
lcs_threads_running(card, threads) == 0);
|
||||
}
|
||||
|
||||
static inline int
|
||||
lcs_set_thread_start_bit(struct lcs_card *card, unsigned long thread)
|
||||
static int lcs_set_thread_start_bit(struct lcs_card *card, unsigned long thread)
|
||||
{
|
||||
unsigned long flags;
|
||||
|
||||
@@ -373,8 +371,7 @@ lcs_clear_thread_running_bit(struct lcs_card *card, unsigned long thread)
|
||||
wake_up(&card->wait_q);
|
||||
}
|
||||
|
||||
static inline int
|
||||
__lcs_do_run_thread(struct lcs_card *card, unsigned long thread)
|
||||
static int __lcs_do_run_thread(struct lcs_card *card, unsigned long thread)
|
||||
{
|
||||
unsigned long flags;
|
||||
int rc = 0;
|
||||
@@ -444,8 +441,7 @@ lcs_setup_card(struct lcs_card *card)
|
||||
INIT_LIST_HEAD(&card->lancmd_waiters);
|
||||
}
|
||||
|
||||
static inline void
|
||||
lcs_clear_multicast_list(struct lcs_card *card)
|
||||
static void lcs_clear_multicast_list(struct lcs_card *card)
|
||||
{
|
||||
#ifdef CONFIG_IP_MULTICAST
|
||||
struct lcs_ipm_list *ipm;
|
||||
@@ -656,8 +652,7 @@ __lcs_resume_channel(struct lcs_channel *channel)
|
||||
/**
|
||||
* Make a buffer ready for processing.
|
||||
*/
|
||||
static inline void
|
||||
__lcs_ready_buffer_bits(struct lcs_channel *channel, int index)
|
||||
static void __lcs_ready_buffer_bits(struct lcs_channel *channel, int index)
|
||||
{
|
||||
int prev, next;
|
||||
|
||||
@@ -1169,8 +1164,8 @@ lcs_get_mac_for_ipm(__be32 ipm, char *mac, struct net_device *dev)
|
||||
/**
|
||||
* function called by net device to handle multicast address relevant things
|
||||
*/
|
||||
static inline void
|
||||
lcs_remove_mc_addresses(struct lcs_card *card, struct in_device *in4_dev)
|
||||
static void lcs_remove_mc_addresses(struct lcs_card *card,
|
||||
struct in_device *in4_dev)
|
||||
{
|
||||
struct ip_mc_list *im4;
|
||||
struct list_head *l;
|
||||
@@ -1196,8 +1191,9 @@ lcs_remove_mc_addresses(struct lcs_card *card, struct in_device *in4_dev)
|
||||
spin_unlock_irqrestore(&card->ipm_lock, flags);
|
||||
}
|
||||
|
||||
static inline struct lcs_ipm_list *
|
||||
lcs_check_addr_entry(struct lcs_card *card, struct ip_mc_list *im4, char *buf)
|
||||
static struct lcs_ipm_list *lcs_check_addr_entry(struct lcs_card *card,
|
||||
struct ip_mc_list *im4,
|
||||
char *buf)
|
||||
{
|
||||
struct lcs_ipm_list *tmp, *ipm = NULL;
|
||||
struct list_head *l;
|
||||
@@ -1218,8 +1214,8 @@ lcs_check_addr_entry(struct lcs_card *card, struct ip_mc_list *im4, char *buf)
|
||||
return ipm;
|
||||
}
|
||||
|
||||
static inline void
|
||||
lcs_set_mc_addresses(struct lcs_card *card, struct in_device *in4_dev)
|
||||
static void lcs_set_mc_addresses(struct lcs_card *card,
|
||||
struct in_device *in4_dev)
|
||||
{
|
||||
|
||||
struct ip_mc_list *im4;
|
||||
|
Reference in New Issue
Block a user