Skip to content

Remove weird and needless 'return' for void APIs

Zijun Hu linux-arch linux-crypto linux-gpio linux-iommu linux-mm linux-mtd linux-pm linux-rdma linux-wireless lkml netdev 1 version Applied

Status from this message: Applied as 6.15 material, thanks!

Get series with b4
b4 am [email protected] change-id 20250221-rmv_return-f1dc82d492f0

Versions newest first

  1. v1 Latest18 patches 23 repliesApplied 2/18

Patches in v1 Applied · 2/18

#Subject and filesSizeRepliesApplied
1/18mm/mmu_gather: Remove needless return in void API tlb_remove_page()include/asm-generic/tlb.h+1 -18 replies
2/18cpu: Remove needless return in void API suspend_enable_secondary_cpus()include/linux/cpu.h+1 -10 repliesApplied
3/18crypto: api - Remove needless return in void API crypto_free_tfm()include/linux/crypto.h+1 -10 replies
4/18crypto: scomp - Remove needless return in void API crypto_scomp_free_ctx()include/crypto/internal/scompress.h+1 -10 replies
5/18sysfs: Remove needless return in void API sysfs_enable_ns()include/linux/sysfs.h+1 -10 replies
6/18skbuff: Remove needless return in void API consume_skb()include/linux/skbuff.h+1 -10 replies
7/18wifi: mac80211: Remove needless return in void API _ieee80211_hw_set()include/net/mac80211.h+1 -10 replies
8/18net: sched: Remove needless return in void API qdisc_watchdog_schedule_ns()include/net/pkt_sched.h+1 -10 replies
9/18ipv4/igmp: Remove needless return in void API ip_mc_dec_group()include/linux/igmp.h+1 -10 replies
10/18IB/rdmavt: Remove needless return in void API rvt_mod_retry_timer()include/rdma/rdmavt_qp.h+1 -10 replies
11/18ratelimit: Remove needless return in void API ratelimit_default_init()include/linux/ratelimit.h+2 -20 replies
12/18siox: Remove needless return in void API siox_driver_unregister()include/linux/siox.h+1 -10 replies
13/18gpiolib: Remove needless return in two void APIsinclude/linux/gpio.h+2 -22 replies
14/18PM: wakeup: Remove needless return in three void APIsinclude/linux/pm_wakeup.h+3 -31 reply
15/18mfd: db8500-prcmu: Remove needless return in three void APIsinclude/linux/mfd/dbx500-prcmu.h+3 -32 replies
16/18rhashtable: Remove needless return in three void APIsinclude/linux/rhashtable.h+3 -30 repliesApplied
17/18dma-mapping: Remove needless return in five void APIsinclude/linux/dma-mapping.h+6 -60 replies
18/18mtd: nand: Do not return void function in void functioninclude/linux/mtd/nand.h+12 -60 replies

Reviews trailers per patch

1 of 18 patches has a Reviewed-by or Acked-by.

PatchLinus Walleij
1/18
2/18
3/18
4/18
5/18
6/18
7/18
8/18
9/18
10/18
11/18
12/18
13/18
14/18
15/18R-b
16/18
17/18
18/18

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH *-next 00/18] Remove weird and needless 'return' for void APIs

This patch series is to remove weird and needless 'return' for void APIs under include/ with the following pattern:

api_header.h:

void api_func_a(...);

static inline void api_func_b(...)

{
	return api_func_a(...);
}

Remove the needless 'return' in api_func_b().

---
Zijun Hu (18):
mm/mmu_gather: Remove needless return in void API tlb_remove_page()
cpu: Remove needless return in void API suspend_enable_secondary_cpus()
crypto: api - Remove needless return in void API crypto_free_tfm()
crypto: scomp - Remove needless return in void API crypto_scomp_free_ctx()
sysfs: Remove needless return in void API sysfs_enable_ns()
skbuff: Remove needless return in void API consume_skb()
wifi: mac80211: Remove needless return in void API _ieee80211_hw_set()
net: sched: Remove needless return in void API qdisc_watchdog_schedule_ns() ipv4/igmp: Remove needless return in void API ip_mc_dec_group() IB/rdmavt: Remove needless return in void API rvt_mod_retry_timer()
ratelimit: Remove needless return in void API ratelimit_default_init()
siox: Remove needless return in void API siox_driver_unregister()
gpiolib: Remove needless return in two void APIs
PM: wakeup: Remove needless return in three void APIs
mfd: db8500-prcmu: Remove needless return in three void APIs
rhashtable: Remove needless return in three void APIs
dma-mapping: Remove needless return in five void APIs
mtd: nand: Do not return void function in void function

 include/asm-generic/tlb.h           |  2 +-
 include/crypto/internal/scompress.h |  2 +-
 include/linux/cpu.h                 |  2 +-
 include/linux/crypto.h              |  2 +-
 include/linux/dma-mapping.h         | 12 ++++++------
 include/linux/gpio.h                |  4 ++--
 include/linux/igmp.h                |  2 +-
 include/linux/mfd/dbx500-prcmu.h    |  6 +++---
 include/linux/mtd/nand.h            | 18 ++++++++++++------
 include/linux/pm_wakeup.h           |  6 +++---
 include/linux/ratelimit.h           |  4 ++--
 include/linux/rhashtable.h          |  6 +++---
 include/linux/siox.h                |  2 +-
 include/linux/skbuff.h              |  2 +-
 include/linux/sysfs.h               |  2 +-
 include/net/mac80211.h              |  2 +-
 include/net/pkt_sched.h             |  2 +-
 include/rdma/rdmavt_qp.h            |  2 +-
 18 files changed, 42 insertions(+), 36 deletions(-)

---
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
change-id: 20250221-rmv_return-f1dc82d492f0

Best regards,

Signature · 1 line
Zijun Hu <[email protected]>