orinoco: Don't use "extern inline" on locking functions
Subsystems (3)
PATCH 1/2 orinoco: Don't use "extern inline" on locking functions
From: Pavel Roskin <[email protected]>
SPARC architecture has been fixed, so it's no longer needed.
Signed-off-by Pavel Roskin <[email protected]>
---
drivers/net/wireless/orinoco.h | 8 ++------ 1 files changed, 2 insertions(+), 6 deletions(-)
drivers/net/wireless/orinoco.h +2 -6
@@ -134,11 +134,7 @@ extern irqreturn_t orinoco_interrupt(int/* Locking and synchronization functions */ /********************************************************************/ -/* These functions *must* be inline or they will break horribly on -* SPARC, due to its weird semantics for save/restore flags. extern -* inline should prevent the kernel from linking or module from -* loading if they are not inlined. */ -extern inline int orinoco_lock (struct orinoco_private *priv, +static inline int orinoco_lock (struct orinoco_private *priv,unsigned long *flags) {spin_lock_irqsave (&priv->lock, *flags);
@@ -151,7 +147,7 @@ extern inline int orinoco_lock(struct orreturn 0 ; } -extern inline void orinoco_unlock (struct orinoco_private *priv, +static inline void orinoco_unlock (struct orinoco_private *priv,unsigned long *flags) {spin_unlock_irqrestore (&priv->lock, *flags);
PATCH 2/2 Don't rely on linux/if_arp.h being included by other headers
From: Pavel Roskin <[email protected]>
---
drivers/net/wireless/orinoco.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/orinoco.c +1 -0
@@ -82,6 +82,7 @@ #include <linux/init.h>#include <linux/netdevice.h> #include <linux/etherdevice.h> #include <linux/ethtool.h> +#include <linux/if_arp.h> #include <linux/wireless.h> #include <net/iw_handler.h> #include <net/ieee80211.h>