: Remove FASTCALL/fastcall macros
Subsystems (4)
PATCH 1/1 : Remove FASTCALL/fastcall macros
X86_32 was the last user of the FASTCALL/fastcall macros, now that it uses regparm(3) by default, these macros expand to nothing.
---
Dave, this is a wrap-up of my patch in your net-2.6.25.git with the build breakage fix from Andrew Morton included. This also chops the fastcall macro which is also now empty.
Original: 172f5efbe9150a82e8d5b0562bbe128492ac820e
Buildfix: 451ff1232b1ff3d32635ea4844ef0d1376460c21
drivers/net/ns83820.c | 12 ++++-------- include/net/bluetooth/rfcomm.h | 4 ++-- include/net/sock.h | 4 ++-- net/bluetooth/rfcomm/core.c | 4 ++-- net/core/dev.c | 2 +- net/core/sock.c | 4 ++-- 6 files changed, 13 insertions(+), 17 deletions(-)
drivers/net/ns83820.c +4 -8
@@ -611,8 +611,7 @@ static inline int rx_refill(struct net_device *ndev, gfp_t gfp)return i ?0 : -ENOMEM ; } -static void FASTCALL (rx_refill_atomic (struct net_device *ndev)); -static void fastcall rx_refill_atomic(struct net_device *ndev) +static void rx_refill_atomic (struct net_device *ndev) {rx_refill (ndev,GFP_ATOMIC ); }
@@ -633,8 +632,7 @@ static inline void clear_rx_desc(struct ns83820 *dev, unsigned i)build_rx_desc (dev, dev->rx_info.descs + (DESC_SIZE * i),0 ,0 ,CMDSTS_OWN ,0 ); } -static void FASTCALL (phy_intr (struct net_device *ndev)); -static void fastcall phy_intr(struct net_device *ndev) +static void phy_intr (struct net_device *ndev) {struct ns83820 *dev =PRIV (ndev);static const char *speeds[] = {"10" ,"100" ,"1000" ,"1000(?)" ,"1000F" };
@@ -832,8 +830,7 @@ static void ns83820_cleanup_rx(struct ns83820 *dev) } } -static void FASTCALL (ns83820_rx_kick (struct net_device *ndev)); -static void fastcall ns83820_rx_kick(struct net_device *ndev) +static void ns83820_rx_kick (struct net_device *ndev) {struct ns83820 *dev =PRIV (ndev);/*if (nr_rx_empty(dev) >= NR_RX_DESC/4)*/ {
@@ -854,8 +851,7 @@ static void fastcall ns83820_rx_kick(struct net_device *ndev)/* rx_irq * */ -static void FASTCALL (rx_irq (struct net_device *ndev)); -static void fastcall rx_irq(struct net_device *ndev) +static void rx_irq (struct net_device *ndev) {struct ns83820 *dev =PRIV (ndev);struct rx_info *info = &dev->rx_info;
include/net/bluetooth/rfcomm.h +2 -2
@@ -252,8 +252,8 @@ static inline void rfcomm_dlc_put(struct rfcomm_dlc *d)rfcomm_dlc_free (d); } -extern void FASTCALL (__rfcomm_dlc_throttle (struct rfcomm_dlc *d)); -extern void FASTCALL (__rfcomm_dlc_unthrottle (struct rfcomm_dlc *d)); +extern void __rfcomm_dlc_throttle (struct rfcomm_dlc *d); +extern void __rfcomm_dlc_unthrottle (struct rfcomm_dlc *d);static inline void rfcomm_dlc_throttle (struct rfcomm_dlc *d) {
include/net/sock.h +2 -2
@@ -774,14 +774,14 @@ do { \lockdep_init_map (&(sk)->sk_lock.dep_map, (name), (key),0 ); \ }while (0 ) -extern void FASTCALL(lock_sock_nested(struct sock *sk, int subclass)); +extern void lock_sock_nested(struct sock *sk, int subclass);static inline void lock_sock (struct sock *sk) {lock_sock_nested (sk,0 ); } -extern void FASTCALL (release_sock (struct sock *sk)); +extern void release_sock (struct sock *sk);/* BH context may only use the following locking interface. */ #define bh_lock_sock (__sk) spin_lock(&((__sk)->sk_lock.slock))
net/bluetooth/rfcomm/core.c +2 -2
@@ -465,7 +465,7 @@ int rfcomm_dlc_send(struct rfcomm_dlc *d, struct sk_buff *skb)return len; } -void fastcall __rfcomm_dlc_throttle(struct rfcomm_dlc *d) +void __rfcomm_dlc_throttle (struct rfcomm_dlc *d) {BT_DBG ("dlc %p state %ld" , d, d->state);
@@ -476,7 +476,7 @@ void fastcall __rfcomm_dlc_throttle(struct rfcomm_dlc *d)rfcomm_schedule (RFCOMM_SCHED_TX ); } -void fastcall __rfcomm_dlc_unthrottle(struct rfcomm_dlc *d) +void __rfcomm_dlc_unthrottle (struct rfcomm_dlc *d) {BT_DBG ("dlc %p state %ld" , d, d->state);
net/core/dev.c +1 -1
@@ -2143,7 +2143,7 @@ static int process_backlog(struct napi_struct *napi, int quota)* * The entry's receive function will be scheduled to run */ -void fastcall __napi_schedule(struct napi_struct *n) +void __napi_schedule (struct napi_struct *n) {unsigned long flags;
net/core/sock.c +2 -2
@@ -1616,7 +1616,7 @@ void sock_init_data(struct socket *sock, struct sock *sk)atomic_set (&sk->sk_drops,0 ); } -void fastcall lock_sock_nested(struct sock *sk, int subclass) +void lock_sock_nested (struct sock *sk,int subclass) {might_sleep ();spin_lock_bh (&sk->sk_lock.slock);
@@ -1633,7 +1633,7 @@ void fastcall lock_sock_nested(struct sock *sk, int subclass)EXPORT_SYMBOL (lock_sock_nested); -void fastcall release_sock(struct sock *sk) +void release_sock (struct sock *sk) {/* * The sk_lock has mutex_unlock() semantics:
Signature · 1 line
1.5.4.rc0.1083.gf568
David Miller
maintainerFrom: Harvey Harrison <[email protected]>
Date: Sun, 16 Dec 2007 20:16:25 -0800
Quoted 8 lines
X86_32was the last user of the FASTCALL/fastcall macros, now that it uses regparm(3) by default, these macros expand to nothing.Signed-off-by Harvey Harrison <[email protected]>---
Dave, this is a wrap-up of my patch in your net-2.6.25.git with the build breakage fix from Andrew Morton included. This also chops the fastcall macro which is also now empty.
If only it applied:
davem@sunset:~/src/GIT/net-2.6.25$ pcheck diff + git apply --check --whitespace=error-all diff error: patch failed: drivers/net/ns83820.c:611 error: drivers/net/ns83820.c: patch does not apply error: patch failed: include/net/bluetooth/rfcomm.h:252 error: include/net/bluetooth/rfcomm.h: patch does not apply error: patch failed: include/net/sock.h:774 error: include/net/sock.h: patch does not apply
PATCH 1/1 NET: ns83820.c remove fastcall macro
---
Dave, this is the remainder of the FASTCALL/fastcall removal patch that is not already in your tree.
Generated against net-2.6.25.git
drivers/net/ns83820.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-)
drivers/net/ns83820.c +4 -5
@@ -611,8 +611,7 @@ static inline int rx_refill(struct net_device *ndev, gfp_t gfp)return i ?0 : -ENOMEM ; } -static void rx_refill_atomic (struct net_device *ndev); -static void fastcall rx_refill_atomic(struct net_device *ndev) +static void rx_refill_atomic (struct net_device *ndev) {rx_refill (ndev,GFP_ATOMIC ); }
@@ -633,7 +632,7 @@ static inline void clear_rx_desc(struct ns83820 *dev, unsigned i)build_rx_desc (dev, dev->rx_info.descs + (DESC_SIZE * i),0 ,0 ,CMDSTS_OWN ,0 ); } -static void fastcall phy_intr(struct net_device *ndev) +static void phy_intr (struct net_device *ndev) {struct ns83820 *dev =PRIV (ndev);static const char *speeds[] = {"10" ,"100" ,"1000" ,"1000(?)" ,"1000F" };
@@ -831,7 +830,7 @@ static void ns83820_cleanup_rx(struct ns83820 *dev) } } -static void fastcall ns83820_rx_kick(struct net_device *ndev) +static void ns83820_rx_kick (struct net_device *ndev) {struct ns83820 *dev =PRIV (ndev);/*if (nr_rx_empty(dev) >= NR_RX_DESC/4)*/ {
@@ -852,7 +851,7 @@ static void fastcall ns83820_rx_kick(struct net_device *ndev)/* rx_irq * */ -static void fastcall rx_irq(struct net_device *ndev) +static void rx_irq (struct net_device *ndev) {struct ns83820 *dev =PRIV (ndev);struct rx_info *info = &dev->rx_info;
Signature · 1 line
1.5.4.rc0.1083.gf568