Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 e8de370188d0 ("rapidio: add mport char device
driver") but never used.

'rio_cm_work' was unused since the original commit b6e8d4aa1110 ("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>

authored by

Dr. David Alan Gilbert and committed by
Andrew Morton
b7df1f25 8d1d4b53

-26
-20
drivers/rapidio/devices/rio_mport_cdev.c
··· 98 98 #endif 99 99 100 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 - 112 - /* 113 101 * Internal memory mapping structure 114 102 */ 115 103 enum rio_mport_map_dir { ··· 119 131 struct file *filp; 120 132 }; 121 133 122 - struct rio_mport_dma_map { 123 - int valid; 124 - u64 length; 125 - void *vaddr; 126 - dma_addr_t paddr; 127 - }; 128 - 129 - #define MPORT_MAX_DMA_BUFS 16 130 134 #define MPORT_EVENT_DEPTH 10 131 135 132 136 /*
-6
drivers/rapidio/rio_cm.c
··· 198 198 struct rio_dev *rdev; 199 199 }; 200 200 201 - struct rio_cm_work { 202 - struct work_struct work; 203 - struct cm_dev *cm; 204 - void *data; 205 - }; 206 - 207 201 struct conn_req { 208 202 struct list_head node; 209 203 u32 destid; /* requester destID */