Skip to contentSkip to conversation

rapidio-remove-some-dead-defines.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message May 12, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: rapidio: remove some dead defines
has been removed from the -mm tree. Its filename was
rapidio-remove-some-dead-defines.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: "Dr. David Alan Gilbert" <[email protected]>
Subject: rapidio: remove some dead defines
Date: Sat, 19 Apr 2025 21:30:11 +0100

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/[email protected]/ 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.

---

 drivers/rapidio/devices/rio_mport_cdev.c |   20 --------------------
 drivers/rapidio/rio_cm.c                 |    6 ------
 2 files changed, 26 deletions(-)
drivers/rapidio/devices/rio_mport_cdev.c renamed from drivers/rapidio/devices/rio_mport_cdev.c~rapidio-remove-some-dead-defines +0 -20
@@ -98,18 +98,6 @@ MODULE_PARM_DESC(dbg_level, "Debugging o
 #endif
 
 /*
- * An internal DMA coherent buffer
- */
-struct mport_dma_buf {
-	void		*ib_base;
-	dma_addr_t	ib_phys;
-	u32		ib_size;
-	u64		ib_rio_base;
-	bool		ib_map;
-	struct file	*filp;
-};
-
-/*
  * Internal memory mapping structure
  */
 enum rio_mport_map_dir {
@@ -131,14 +119,6 @@ struct rio_mport_mapping {
 	struct file *filp;
 };
 
-struct rio_mport_dma_map {
-	int valid;
-	u64 length;
-	void *vaddr;
-	dma_addr_t paddr;
-};
-
-#define MPORT_MAX_DMA_BUFS	16
 #define MPORT_EVENT_DEPTH	10
 
 /*
drivers/rapidio/rio_cm.c renamed from drivers/rapidio/rio_cm.c~rapidio-remove-some-dead-defines +0 -6
@@ -198,12 +198,6 @@ struct cm_peer {
 	struct rio_dev *rdev;
 };
 
-struct rio_cm_work {
-	struct work_struct work;
-	struct cm_dev *cm;
-	void *data;
-};
-
 struct conn_req {
 	struct list_head node;
 	u32 destid;	/* requester destID */

_

Patches currently in -mm which might be from [email protected] are