Commit 441c793a56502638d45d5da2195056d686147370
Committed by
David S. Miller
1 parent
6997e61891
Exists in
master
and in
4 other branches
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>
Showing 10 changed files with 2 additions and 12 deletions Side-by-side Diff
net/9p/trans_rdma.c
net/caif/cfcnfg.c
... | ... | @@ -23,10 +23,8 @@ |
23 | 23 | #include <asm/atomic.h> |
24 | 24 | |
25 | 25 | #define MAX_PHY_LAYERS 7 |
26 | -#define PHY_NAME_LEN 20 | |
27 | 26 | |
28 | 27 | #define container_obj(layr) container_of(layr, struct cfcnfg, layer) |
29 | -#define RFM_FRAGMENT_SIZE 4030 | |
30 | 28 | |
31 | 29 | /* Information about CAIF physical interfaces held by Config Module in order |
32 | 30 | * to manage physical interfaces |
net/caif/cfdgml.c
net/caif/cfserl.c
net/caif/cfutill.c
... | ... | @@ -20,7 +20,7 @@ |
20 | 20 | #define UTIL_REMOTE_SHUTDOWN 0x82 |
21 | 21 | #define UTIL_FLOW_OFF 0x81 |
22 | 22 | #define UTIL_FLOW_ON 0x80 |
23 | -#define UTIL_CTRL_PKT_SIZE 1 | |
23 | + | |
24 | 24 | static int cfutill_receive(struct cflayer *layr, struct cfpkt *pkt); |
25 | 25 | static int cfutill_transmit(struct cflayer *layr, struct cfpkt *pkt); |
26 | 26 |
net/caif/cfveil.c
... | ... | @@ -17,7 +17,7 @@ |
17 | 17 | #define VEI_FLOW_OFF 0x81 |
18 | 18 | #define VEI_FLOW_ON 0x80 |
19 | 19 | #define VEI_SET_PIN 0x82 |
20 | -#define VEI_CTRL_PKT_SIZE 1 | |
20 | + | |
21 | 21 | #define container_obj(layr) container_of(layr, struct cfsrvl, layer) |
22 | 22 | |
23 | 23 | static int cfvei_receive(struct cflayer *layr, struct cfpkt *pkt); |
net/decnet/dn_table.c
net/packet/af_packet.c
net/rds/rds.h
... | ... | @@ -50,7 +50,6 @@ |
50 | 50 | #define RDS_FRAG_SIZE ((unsigned int)(1 << RDS_FRAG_SHIFT)) |
51 | 51 | |
52 | 52 | #define RDS_CONG_MAP_BYTES (65536 / 8) |
53 | -#define RDS_CONG_MAP_LONGS (RDS_CONG_MAP_BYTES / sizeof(unsigned long)) | |
54 | 53 | #define RDS_CONG_MAP_PAGES (PAGE_ALIGN(RDS_CONG_MAP_BYTES) / PAGE_SIZE) |
55 | 54 | #define RDS_CONG_MAP_PAGE_BITS (PAGE_SIZE * 8) |
56 | 55 |
net/wanrouter/wanmain.c