summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMitchell Blank Jr. <mitch@sfgoth.com>2002-06-08 20:24:15 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-06-08 20:24:15 -0700
commitdce2f963e28e62f2e961d13d41015059a226acee (patch)
treebbf43220e0fc0e01a8359ed8152fb756143e1b81 /include/linux
parent685876620203668ab4bcab66ef575e4c3f2f30d1 (diff)
[PATCH] atm warning fix (vs 2.5.21)
This fixes a large batch of warnings that popped up with the new stricter bitops.h that recently was introduced. We actually didn't have 64-bit bug, but we had built our own *_flags_t typedef's that were just struct wrappers around an unsigned long. We used to pass their addresses directly to set_bit() and friends but now that causes an error. The typedef's really didn't serve much purpose so the cleanest fix is to just eliminate them and use "unsigned long" directly.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/atmdev.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/include/linux/atmdev.h b/include/linux/atmdev.h
index 61f9ed77c999..ac6dbe9dd062 100644
--- a/include/linux/atmdev.h
+++ b/include/linux/atmdev.h
@@ -275,12 +275,8 @@ enum {
#define ATM_ATMOPT_CLP 1 /* set CLP bit */
-
-typedef struct { unsigned long bits; } atm_vcc_flags_t;
-
-
struct atm_vcc {
- atm_vcc_flags_t flags; /* VCC flags (ATM_VF_*) */
+ unsigned long flags; /* VCC flags (ATM_VF_*) */
unsigned char family; /* address family; 0 if unused */
short vpi; /* VPI and VCI (types must be equal */
/* with sockaddr) */
@@ -330,10 +326,6 @@ struct atm_dev_addr {
struct atm_dev_addr *next; /* next address */
};
-
-typedef struct { unsigned int bits; } atm_dev_flags_t;
-
-
struct atm_dev {
const struct atmdev_ops *ops; /* device operations; NULL if unused */
const struct atmphy_ops *phy; /* PHY operations, may be undefined */
@@ -344,7 +336,7 @@ struct atm_dev {
struct atm_vcc *last; /* last VCC (or undefined) */
void *dev_data; /* per-device data */
void *phy_data; /* private PHY date */
- atm_dev_flags_t flags; /* device flags (ATM_DF_*) */
+ unsigned long flags; /* device flags (ATM_DF_*) */
struct atm_dev_addr *local; /* local ATM addresses */
unsigned char esi[ESI_LEN]; /* ESI ("MAC" addr) */
struct atm_cirange ci_range; /* VPI/VCI range */
@@ -414,7 +406,7 @@ struct atm_skb_data {
#define ATM_SKB(skb) (((struct atm_skb_data *) (skb)->cb))
struct atm_dev *atm_dev_register(const char *type,const struct atmdev_ops *ops,
- int number,atm_dev_flags_t *flags); /* number == -1: pick first available */
+ int number,unsigned long *flags); /* number == -1: pick first available */
struct atm_dev *atm_find_dev(int number);
void atm_dev_deregister(struct atm_dev *dev);
void shutdown_atm_dev(struct atm_dev *dev);