diff options
author | stephen hemminger <shemminger@vyatta.com> | 2011-06-08 10:33:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-09 03:08:39 -0400 |
commit | 6f7c156c08d5eaa9fff2bd062f0a2b9d09a1e7a9 (patch) | |
tree | 6132ae6aa5fadcb9566e5b50d4a4ad1a39323e79 /drivers | |
parent | a504b86e718a425ea4a34e2f95b5cf0545ddfd8d (diff) |
tun: dont force inline of functions
Current standard practice is to not mark most functions as inline
and let compiler decide instead.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/tun.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 17db19420637..2829badbae38 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -550,9 +550,9 @@ static unsigned int tun_chr_poll(struct file *file, poll_table * wait) | |||
550 | 550 | ||
551 | /* prepad is the amount to reserve at front. len is length after that. | 551 | /* prepad is the amount to reserve at front. len is length after that. |
552 | * linear is a hint as to how much to copy (usually headers). */ | 552 | * linear is a hint as to how much to copy (usually headers). */ |
553 | static inline struct sk_buff *tun_alloc_skb(struct tun_struct *tun, | 553 | static struct sk_buff *tun_alloc_skb(struct tun_struct *tun, |
554 | size_t prepad, size_t len, | 554 | size_t prepad, size_t len, |
555 | size_t linear, int noblock) | 555 | size_t linear, int noblock) |
556 | { | 556 | { |
557 | struct sock *sk = tun->socket.sk; | 557 | struct sock *sk = tun->socket.sk; |
558 | struct sk_buff *skb; | 558 | struct sk_buff *skb; |
@@ -578,9 +578,9 @@ static inline struct sk_buff *tun_alloc_skb(struct tun_struct *tun, | |||
578 | } | 578 | } |
579 | 579 | ||
580 | /* Get packet from user space buffer */ | 580 | /* Get packet from user space buffer */ |
581 | static __inline__ ssize_t tun_get_user(struct tun_struct *tun, | 581 | static ssize_t tun_get_user(struct tun_struct *tun, |
582 | const struct iovec *iv, size_t count, | 582 | const struct iovec *iv, size_t count, |
583 | int noblock) | 583 | int noblock) |
584 | { | 584 | { |
585 | struct tun_pi pi = { 0, cpu_to_be16(ETH_P_IP) }; | 585 | struct tun_pi pi = { 0, cpu_to_be16(ETH_P_IP) }; |
586 | struct sk_buff *skb; | 586 | struct sk_buff *skb; |
@@ -729,9 +729,9 @@ static ssize_t tun_chr_aio_write(struct kiocb *iocb, const struct iovec *iv, | |||
729 | } | 729 | } |
730 | 730 | ||
731 | /* Put packet to the user space buffer */ | 731 | /* Put packet to the user space buffer */ |
732 | static __inline__ ssize_t tun_put_user(struct tun_struct *tun, | 732 | static ssize_t tun_put_user(struct tun_struct *tun, |
733 | struct sk_buff *skb, | 733 | struct sk_buff *skb, |
734 | const struct iovec *iv, int len) | 734 | const struct iovec *iv, int len) |
735 | { | 735 | { |
736 | struct tun_pi pi = { 0, skb->protocol }; | 736 | struct tun_pi pi = { 0, skb->protocol }; |
737 | ssize_t total = 0; | 737 | ssize_t total = 0; |