Skip to content

Commit

Permalink
Staging: brcm80211: remove typedefs.h
Browse files Browse the repository at this point in the history
It's not needed anymore, so remove it and clean up the .h inclusion mess
a bit to get everything to build properly again.

Wow, this needs some unwinding...

Cc: Brett Rudley <brudley@broadcom.com>
Cc: Henry Ptasinski <henryp@broadcom.com>
Cc: Nohee Ko <noheek@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Oct 21, 2010
1 parent f024c48 commit a1c16ed
Show file tree
Hide file tree
Showing 69 changed files with 91 additions and 185 deletions.
3 changes: 2 additions & 1 deletion drivers/staging/brcm80211/brcmfmac/bcmsdh.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
*/
/* ****************** BCMSDH Interface Functions *************************** */

#include <typedefs.h>
#include <linux/types.h>
#include <bcmdefs.h>
#include <bcmdevs.h>
#include <bcmendian.h>
#include <bcmutils.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#define __UNDEF_NO_VERSION__

#include <typedefs.h>
#include <linuxver.h>

#include <linux/pci.h>
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <typedefs.h>

#include <linux/types.h>
#include <bcmdefs.h>
#include <bcmdevs.h>
#include <bcmendian.h>
#include <bcmutils.h>
Expand Down
7 changes: 3 additions & 4 deletions drivers/staging/brcm80211/brcmfmac/bcmsdh_sdmmc_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#include <typedefs.h>
#include <linux/types.h>
#include <linux/sched.h> /* request_irq() */
#include <bcmdefs.h>
#include <bcmutils.h>
#include <sdio.h> /* SDIO Specs */
#include <bcmsdbus.h> /* bcmsdh to/from specific controller APIs */
#include <sdiovar.h> /* to get msglevel bit values */

#include <linux/sched.h> /* request_irq() */

#include <linux/mmc/core.h>
#include <linux/mmc/card.h>
#include <linux/mmc/sdio_func.h>
Expand Down
3 changes: 2 additions & 1 deletion drivers/staging/brcm80211/brcmfmac/dhd_cdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#include <typedefs.h>
#include <linux/types.h>
#include <bcmdefs.h>
#include <osl.h>

#include <bcmutils.h>
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/brcm80211/brcmfmac/dhd_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <typedefs.h>
#include <osl.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <bcmdefs.h>
#include <osl.h>
#include <bcmutils.h>
#include <bcmendian.h>
#include <dngl_stats.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/brcmfmac/dhd_custom_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#include <typedefs.h>
#include <linuxver.h>
#include <osl.h>
#include <bcmutils.h>
Expand Down
8 changes: 3 additions & 5 deletions drivers/staging/brcm80211/brcmfmac/dhd_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
#ifdef CONFIG_WIFI_CONTROL_FUNC
#include <linux/platform_device.h>
#endif
#include <typedefs.h>
#include <linuxver.h>
#include <osl.h>

#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/kthread.h>
Expand All @@ -34,8 +30,10 @@
#include <linux/ethtool.h>
#include <linux/fcntl.h>
#include <linux/fs.h>

#include <linux/uaccess.h>
#include <bcmdefs.h>
#include <linuxver.h>
#include <osl.h>
#include <bcmutils.h>
#include <bcmendian.h>

Expand Down
3 changes: 2 additions & 1 deletion drivers/staging/brcm80211/brcmfmac/dhd_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#include <typedefs.h>
#include <linux/types.h>
#include <bcmdefs.h>
#include <osl.h>
#include <bcmsdh.h>

Expand Down
6 changes: 2 additions & 4 deletions drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#include <typedefs.h>
#include <linux/kernel.h>
#include <linux/if_arp.h>
#include <linuxver.h>
#include <osl.h>
#include <linux/kernel.h>

#include <bcmutils.h>
#include <bcmendian.h>
#include <proto/ethernet.h>

#include <linux/if_arp.h>
#include <asm/uaccess.h>

#include <dngl_stats.h>
Expand All @@ -35,7 +34,6 @@
#include <dngl_stats.h>
#include <dhd.h>

#include <linux/kernel.h>
#include <linux/kthread.h>
#include <linux/netdevice.h>
#include <linux/sched.h>
Expand Down
5 changes: 2 additions & 3 deletions drivers/staging/brcm80211/brcmfmac/wl_cfg80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
#define _wl_cfg80211_h_

#include <linux/wireless.h>
#include <typedefs.h>
#include <proto/ethernet.h>
#include <wlioctl.h>
#include <linux/wireless.h>
#include <net/cfg80211.h>
#include <proto/ethernet.h>
#include <wlioctl.h>

struct wl_conf;
struct wl_iface;
Expand Down
7 changes: 3 additions & 4 deletions drivers/staging/brcm80211/brcmfmac/wl_iw.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#include <wlioctl.h>

#include <typedefs.h>
#include <linuxver.h>
#include <linux/kthread.h>
#include <bcmdefs.h>
#include <linuxver.h>
#include <osl.h>
#include <wlioctl.h>

#include <bcmutils.h>
#include <bcmendian.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/brcmfmac/wl_iw.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <linux/wireless.h>

#include <typedefs.h>
#include <proto/ethernet.h>
#include <wlioctl.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/include/bcm_rpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#ifndef _BCM_RPC_H_
#define _BCM_RPC_H_

#include <typedefs.h>
#include <rpc_osl.h>

typedef struct rpc_info rpc_info_t;
Expand Down
15 changes: 11 additions & 4 deletions drivers/staging/brcm80211/include/bcmdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,17 @@
#define JTAG_BUS 4
#define USB_BUS 5
#define SPI_BUS 6
/*
* One doesn't need to include this file explicitly, gets included automatically if
* typedefs.h is included.
*/


#ifndef OFF
#define OFF 0
#endif

#ifndef ON
#define ON 1 /* ON = 1 */
#endif

#define AUTO (-1) /* Auto = -1 */

#ifdef mips
#define BCMFASTPATH __attribute__ ((__section__(".text.fastpath")))
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/brcm80211/include/bcmendian.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#ifndef _BCMENDIAN_H_
#define _BCMENDIAN_H_

#include <typedefs.h>

/* Reverse the bytes in a 16-bit value */
#define BCMSWAP16(val) \
((u16)((((u16)(val) & (u16)0x00ffU) << 8) | \
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/include/bcmnvram.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#ifndef _LANGUAGE_ASSEMBLY

#include <typedefs.h>
#include <bcmdefs.h>

struct nvram_header {
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/brcm80211/include/d11.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifndef _D11_H
#define _D11_H

#include <typedefs.h>
#include <bcmdefs.h>
#include <bcmdevs.h>
#include <hndsoc.h>
#include <sbhndpio.h>
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/brcm80211/include/dbus.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#ifndef __DBUS_H__
#define __DBUS_H__

#include "typedefs.h"

#ifdef BCMDBG
#define DBUSERR(args) do { if (net_ratelimit()) printf args; } while (0)
#define DBUSTRACE(args)
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/brcm80211/include/dhdioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#ifndef _dhdioctl_h_
#define _dhdioctl_h_

#include <typedefs.h>

/* require default structure packing */
#define BWL_DEFAULT_PACKING
#include <packed_section_start.h>
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/brcm80211/include/hndrte_armtrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@

#ifndef _LANGUAGE_ASSEMBLY

#include <typedefs.h>

typedef struct _trap_struct {
u32 type;
u32 epc;
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/brcm80211/include/hndrte_cons.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#include <typedefs.h>

#define CBUF_LEN (128)

#define LOG_BUF_LEN 1024
Expand Down
3 changes: 0 additions & 3 deletions drivers/staging/brcm80211/include/linux_osl.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
#ifndef _linux_osl_h_
#define _linux_osl_h_

#ifdef BRCM_FULLMAC
#include <typedefs.h>
#endif

/* Linux Kernel: File Operations: start */
extern void *osl_os_open_image(char *filename);
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/brcm80211/include/msgtrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#ifndef _MSGTRACE_H
#define _MSGTRACE_H

#include <typedefs.h>

/* This marks the start of a packed structure section. */
#include <packed_section_start.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/include/proto/802.11.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#ifndef _802_11_H_
#define _802_11_H_

#include <typedefs.h>
#include <proto/wpa.h>
#include <packed_section_start.h>

Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/include/proto/bcmeth.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#ifndef _BCMETH_H_
#define _BCMETH_H_

#include <typedefs.h>
#include <packed_section_start.h>

#define BCMILCP_SUBTYPE_RATE 1
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/include/proto/bcmevent.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#ifndef _BCMEVENT_H_
#define _BCMEVENT_H_

#include <typedefs.h>
#include <packed_section_start.h>

#define BCM_EVENT_MSG_VERSION 1
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/include/proto/bcmip.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#ifndef _bcmip_h_
#define _bcmip_h_

#include <typedefs.h>
#include <packed_section_start.h>

#define IP_VER_OFFSET 0x0
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/include/proto/ethernet.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#ifndef _NET_ETHERNET_H_
#define _NET_ETHERNET_H_

#include "typedefs.h"
#include <packed_section_start.h>

#define ETHER_ADDR_LEN 6
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/include/proto/vlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#ifndef _vlan_h_
#define _vlan_h_

#include <typedefs.h>
#include <packed_section_start.h>

#define VLAN_VID_MASK 0xfff
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/include/proto/wpa.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#ifndef _proto_wpa_h_
#define _proto_wpa_h_

#include <typedefs.h>
#include <proto/ethernet.h>

#include <packed_section_start.h>
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/brcm80211/include/qmath.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#ifndef __QMATH_H__
#define __QMATH_H__

#include <typedefs.h>

s16 qm_sat32(s32 op);

s32 qm_mul321616(s16 op1, s16 op2);
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/brcm80211/include/sdiovar.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#ifndef _sdiovar_h_
#define _sdiovar_h_

#include <typedefs.h>

/* require default structure packing */
#define BWL_DEFAULT_PACKING
#include <packed_section_start.h>
Expand Down
Loading

0 comments on commit a1c16ed

Please sign in to comment.