atm: remove unused exported helpers
Subsystems (3)
PATCH 1/1 atm: remove unused exported helpers
From: Xiang-Bin Shi <[email protected]>
Commit 6deb53595092 ("net: remove unused ATM protocols and legacy ATM device drivers") removed the remaining in-tree users of atm_alloc_charge(), atm_pcr_goal(), sonet_copy_stats() and sonet_subtract_stats().
Remove these unused exported helpers and their declarations. The removal of the SONET statistics helpers also leaves include/linux/sonet.h without users, so remove the internal header and its MAINTAINERS entry.
--- MAINTAINERS | 1 - include/linux/atmdev.h | 3 -- include/linux/sonet.h | 20 ----------- net/atm/atm_misc.c | 79 ------------------------------------------ 4 files changed, 103 deletions(-) delete mode 100644 include/linux/sonet.h
MAINTAINERS +0 -1
@@ -4279,7 +4279,6 @@ W: http://linux-atm.sourceforge.net F: drivers/atm/ F: drivers/usb/atm/ F: include/linux/atm* -F: include/linux/sonet.h F: include/uapi/linux/atm* F: include/uapi/linux/sonet.h F: net/atm/
include/linux/atmdev.h +0 -3
@@ -229,9 +229,6 @@ static inline void atm_dev_put(struct atm_dev *dev)int atm_charge (struct atm_vcc *vcc,int truesize); -struct sk_buff *atm_alloc_charge (struct atm_vcc *vcc,int pdu_size, -gfp_t gfp_flags); -int atm_pcr_goal (const struct atm_trafprm *tp);void vcc_release_async (struct atm_vcc *vcc,int reply);
include/linux/sonet.h deleted +0 -20
@@ -1,20 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* sonet.h - SONET/SHD physical layer control */ -#ifndef LINUX_SONET_H -#define LINUX_SONET_H - - -#include <linux/atomic.h> -#include <uapi/linux/sonet.h> - -struct k_sonet_stats { -#define __HANDLE_ITEM (i) atomic_t i - __SONET_ITEMS -#undef __HANDLE_ITEM -}; - -extern void sonet_copy_stats (struct k_sonet_stats *from,struct sonet_stats *to); -extern void sonet_subtract_stats (struct k_sonet_stats *from, -struct sonet_stats *to); - -#endif
net/atm/atm_misc.c +0 -79
88 lines not on this page · raw message
Signature · 1 line
2.34.1
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Mon, 27 Jul 2026 13:45:38 +0800 you wrote:
From: Xiang-Bin Shi <[email protected]>
Commit
6deb53595092("net: remove unused ATM protocols and legacy ATM device drivers") removed the remaining in-tree users ofatm_alloc_charge(),atm_pcr_goal(),sonet_copy_stats()andsonet_subtract_stats().[...]
Here is the summary with links:
- [net-next] atm: remove unused exported helpers
https://git.kernel.org/netdev/net-next/c/ec83512ba345
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html