diff options
author | Shan Wei <shanwei@cn.fujitsu.com> | 2011-01-13 17:19:52 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-20 02:20:04 -0500 |
commit | 441c793a56502638d45d5da2195056d686147370 (patch) | |
tree | df9860150ce675a2f05e657f2ccad572eced7a66 /net/caif | |
parent | 6997e618910b902081a5123f228aac620faa899b (diff) |
net: cleanup unused macros in net directory
Clean up some unused macros in net/*.
1. be left for code change. e.g. PGV_FROM_VMALLOC, PGV_FROM_VMALLOC, KMEM_SAFETYZONE.
2. never be used since introduced to kernel.
e.g. P9_RDMA_MAX_SGE, UTIL_CTRL_PKT_SIZE.
Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Acked-by: Sjur Braendeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif')
-rw-r--r-- | net/caif/cfcnfg.c | 2 | ||||
-rw-r--r-- | net/caif/cfdgml.c | 1 | ||||
-rw-r--r-- | net/caif/cfserl.c | 1 | ||||
-rw-r--r-- | net/caif/cfutill.c | 2 | ||||
-rw-r--r-- | net/caif/cfveil.c | 2 |
5 files changed, 2 insertions, 6 deletions
diff --git a/net/caif/cfcnfg.c b/net/caif/cfcnfg.c index c665de778b60..f1f98d967d8a 100644 --- a/net/caif/cfcnfg.c +++ b/net/caif/cfcnfg.c | |||
@@ -23,10 +23,8 @@ | |||
23 | #include <asm/atomic.h> | 23 | #include <asm/atomic.h> |
24 | 24 | ||
25 | #define MAX_PHY_LAYERS 7 | 25 | #define MAX_PHY_LAYERS 7 |
26 | #define PHY_NAME_LEN 20 | ||
27 | 26 | ||
28 | #define container_obj(layr) container_of(layr, struct cfcnfg, layer) | 27 | #define container_obj(layr) container_of(layr, struct cfcnfg, layer) |
29 | #define RFM_FRAGMENT_SIZE 4030 | ||
30 | 28 | ||
31 | /* Information about CAIF physical interfaces held by Config Module in order | 29 | /* Information about CAIF physical interfaces held by Config Module in order |
32 | * to manage physical interfaces | 30 | * to manage physical interfaces |
diff --git a/net/caif/cfdgml.c b/net/caif/cfdgml.c index d3ed264ad6c4..27dab26ad3b8 100644 --- a/net/caif/cfdgml.c +++ b/net/caif/cfdgml.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #define DGM_CMD_BIT 0x80 | 18 | #define DGM_CMD_BIT 0x80 |
19 | #define DGM_FLOW_OFF 0x81 | 19 | #define DGM_FLOW_OFF 0x81 |
20 | #define DGM_FLOW_ON 0x80 | 20 | #define DGM_FLOW_ON 0x80 |
21 | #define DGM_CTRL_PKT_SIZE 1 | ||
22 | #define DGM_MTU 1500 | 21 | #define DGM_MTU 1500 |
23 | 22 | ||
24 | static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt); | 23 | static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt); |
diff --git a/net/caif/cfserl.c b/net/caif/cfserl.c index 9297f7dea9d8..8303fe3ebf89 100644 --- a/net/caif/cfserl.c +++ b/net/caif/cfserl.c | |||
@@ -25,7 +25,6 @@ struct cfserl { | |||
25 | spinlock_t sync; | 25 | spinlock_t sync; |
26 | bool usestx; | 26 | bool usestx; |
27 | }; | 27 | }; |
28 | #define STXLEN(layr) (layr->usestx ? 1 : 0) | ||
29 | 28 | ||
30 | static int cfserl_receive(struct cflayer *layr, struct cfpkt *pkt); | 29 | static int cfserl_receive(struct cflayer *layr, struct cfpkt *pkt); |
31 | static int cfserl_transmit(struct cflayer *layr, struct cfpkt *pkt); | 30 | static int cfserl_transmit(struct cflayer *layr, struct cfpkt *pkt); |
diff --git a/net/caif/cfutill.c b/net/caif/cfutill.c index efad410e4c82..315c0d601368 100644 --- a/net/caif/cfutill.c +++ b/net/caif/cfutill.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #define UTIL_REMOTE_SHUTDOWN 0x82 | 20 | #define UTIL_REMOTE_SHUTDOWN 0x82 |
21 | #define UTIL_FLOW_OFF 0x81 | 21 | #define UTIL_FLOW_OFF 0x81 |
22 | #define UTIL_FLOW_ON 0x80 | 22 | #define UTIL_FLOW_ON 0x80 |
23 | #define UTIL_CTRL_PKT_SIZE 1 | 23 | |
24 | static int cfutill_receive(struct cflayer *layr, struct cfpkt *pkt); | 24 | static int cfutill_receive(struct cflayer *layr, struct cfpkt *pkt); |
25 | static int cfutill_transmit(struct cflayer *layr, struct cfpkt *pkt); | 25 | static int cfutill_transmit(struct cflayer *layr, struct cfpkt *pkt); |
26 | 26 | ||
diff --git a/net/caif/cfveil.c b/net/caif/cfveil.c index 3b425b189a99..c3b1dec4acf6 100644 --- a/net/caif/cfveil.c +++ b/net/caif/cfveil.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #define VEI_FLOW_OFF 0x81 | 17 | #define VEI_FLOW_OFF 0x81 |
18 | #define VEI_FLOW_ON 0x80 | 18 | #define VEI_FLOW_ON 0x80 |
19 | #define VEI_SET_PIN 0x82 | 19 | #define VEI_SET_PIN 0x82 |
20 | #define VEI_CTRL_PKT_SIZE 1 | 20 | |
21 | #define container_obj(layr) container_of(layr, struct cfsrvl, layer) | 21 | #define container_obj(layr) container_of(layr, struct cfsrvl, layer) |
22 | 22 | ||
23 | static int cfvei_receive(struct cflayer *layr, struct cfpkt *pkt); | 23 | static int cfvei_receive(struct cflayer *layr, struct cfpkt *pkt); |