From 1a3bf7471e8acaab0e66a6304212218025fe1ec2 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Thu, 7 Oct 2010 16:34:51 -0700 Subject: [PATCH] Staging: brcm80211: remove some more macros from linuxver.h These aren't needed anymore, and now we are down to just one broken one, and a whole bunch of #include files here. This can be further factored by moving the proper #includes into the different .c files, and not leaving them in this one large one. Cc: Brett Rudley Cc: Henry Ptasinski Cc: Nohee Ko Signed-off-by: Greg Kroah-Hartman --- drivers/staging/brcm80211/include/linux_osl.h | 2 +- drivers/staging/brcm80211/include/linuxver.h | 14 +++----------- drivers/staging/brcm80211/sys/wl_mac80211.c | 1 + 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/drivers/staging/brcm80211/include/linux_osl.h b/drivers/staging/brcm80211/include/linux_osl.h index d3662e315045..41cac00824b3 100644 --- a/drivers/staging/brcm80211/include/linux_osl.h +++ b/drivers/staging/brcm80211/include/linux_osl.h @@ -404,7 +404,7 @@ osl_pkt_tonative(osl_pubinfo_t *osh, void *pkt) #define PKTSETLINK(skb, x) (((struct sk_buff *)(skb))->prev = (struct sk_buff*)(x)) #define PKTPRIO(skb) (((struct sk_buff *)(skb))->priority) #define PKTSETPRIO(skb, x) (((struct sk_buff *)(skb))->priority = (x)) -#define PKTSUMNEEDED(skb) (((struct sk_buff *)(skb))->ip_summed == CHECKSUM_HW) +#define PKTSUMNEEDED(skb) (((struct sk_buff *)(skb))->ip_summed == CHECKSUM_PARTIAL) #define PKTSETSUMGOOD(skb, x) (((struct sk_buff *)(skb))->ip_summed = \ ((x) ? CHECKSUM_UNNECESSARY : CHECKSUM_NONE)) /* PKTSETSUMNEEDED and PKTSUMGOOD are not possible because skb->ip_summed is overloaded */ diff --git a/drivers/staging/brcm80211/include/linuxver.h b/drivers/staging/brcm80211/include/linuxver.h index 383170d79f97..a3a20aeda526 100644 --- a/drivers/staging/brcm80211/include/linuxver.h +++ b/drivers/staging/brcm80211/include/linuxver.h @@ -17,11 +17,8 @@ #ifndef _linuxver_h_ #define _linuxver_h_ -#include #include - #include - #include #include #include @@ -29,18 +26,15 @@ #include #include #include -#undef IP_TOS -#include - #include #include #include - -#define CHECKSUM_HW CHECKSUM_PARTIAL - #include #include +#undef IP_TOS +#include + #define KILL_PROC(nr, sig) \ do { \ struct task_struct *tsk; \ @@ -51,6 +45,4 @@ send_sig(sig, tsk, 1); \ } while (0) -#define WL_DEV_IF(dev) ((wl_if_t *)netdev_priv(dev)) - #endif /* _linuxver_h_ */ diff --git a/drivers/staging/brcm80211/sys/wl_mac80211.c b/drivers/staging/brcm80211/sys/wl_mac80211.c index 2360815a49d6..7c07808a7128 100644 --- a/drivers/staging/brcm80211/sys/wl_mac80211.c +++ b/drivers/staging/brcm80211/sys/wl_mac80211.c @@ -135,6 +135,7 @@ struct ieee80211_tkip_data { }; #ifndef WLC_HIGH_ONLY +#define WL_DEV_IF(dev) ((wl_if_t *)netdev_priv(dev)) #define WL_INFO(dev) ((wl_info_t *)(WL_DEV_IF(dev)->wl)) /* points to wl */ static int wl_request_fw(wl_info_t *wl, struct pci_dev *pdev); static void wl_release_fw(wl_info_t *wl); -- 2.34.1