Skip to content

Commit b7df1f2

Browse files
Dr. David Alan Gilbertakpm00
authored andcommitted
rapidio: remove some dead defines
Patch series "rapidio deadcoding". A couple of rapidio deadcoding patches. The first of these is a repost and was originally posted almost a year ago https://lore.kernel.org/all/20240528002515.211366-1-linux@treblig.org/ but got no answer. Other than being rebased and a typo fixed, it's not changed. This patch (of 2): 'mport_dma_buf', 'rio_mport_dma_map' and 'MPORT_MAX_DMA_BUFS' were added in the original commit e8de370 ("rapidio: add mport char device driver") but never used. 'rio_cm_work' was unused since the original commit b6e8d4a ("rapidio: add RapidIO channelized messaging driver") but never used. Remove them. Link: https://lkml.kernel.org/r/20250419203012.429787-1-linux@treblig.org Link: https://lkml.kernel.org/r/20250419203012.429787-2-linux@treblig.org Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Cc: Alexandre Bounine <alex.bou9@gmail.com> Cc: Matt Porter <mporter@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 8d1d4b5 commit b7df1f2

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

drivers/rapidio/devices/rio_mport_cdev.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -97,18 +97,6 @@ module_param(dbg_level, uint, S_IWUSR | S_IWGRP | S_IRUGO);
9797
MODULE_PARM_DESC(dbg_level, "Debugging output level (default 0 = none)");
9898
#endif
9999

100-
/*
101-
* An internal DMA coherent buffer
102-
*/
103-
struct mport_dma_buf {
104-
void *ib_base;
105-
dma_addr_t ib_phys;
106-
u32 ib_size;
107-
u64 ib_rio_base;
108-
bool ib_map;
109-
struct file *filp;
110-
};
111-
112100
/*
113101
* Internal memory mapping structure
114102
*/
@@ -131,14 +119,6 @@ struct rio_mport_mapping {
131119
struct file *filp;
132120
};
133121

134-
struct rio_mport_dma_map {
135-
int valid;
136-
u64 length;
137-
void *vaddr;
138-
dma_addr_t paddr;
139-
};
140-
141-
#define MPORT_MAX_DMA_BUFS 16
142122
#define MPORT_EVENT_DEPTH 10
143123

144124
/*

drivers/rapidio/rio_cm.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,6 @@ struct cm_peer {
198198
struct rio_dev *rdev;
199199
};
200200

201-
struct rio_cm_work {
202-
struct work_struct work;
203-
struct cm_dev *cm;
204-
void *data;
205-
};
206-
207201
struct conn_req {
208202
struct list_head node;
209203
u32 destid; /* requester destID */

0 commit comments

Comments
 (0)