Skip to content

RFC kernel-hacking: introduce CONFIG_NO_AUTO_INLINE

Chen Linxuan b4-sent kvm linux-integrity linux-kbuild linux-mm linux-nvme lkml llvm oe-kbuild-all virtualization xen-devel 3 versions – In review

Get series with b4
b4 am [email protected] change-id 20250416-noautoinline-8e9b9e535452

Versions newest first

  1. v3 RFC Latest8 patches 8 repliesIn review
  2. v2 RFC5 patches 3 repliesSuperseded inferred link
  3. v1 RFC0 of 7 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Fix some modpost and objtool warnings
- Try support clang as Bart Van Assche suggested.
- Remove architecture depends as Bart Van Assche suggested.
- Link to v2: https://lore.kernel.org/r/[email protected]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8nvme: add __always_inline for nvme_pci_npages_prpdrivers/nvme/host/pci.c+1 -10 replies
2/8mm: add __always_inline for page_contains_unacceptedmm/page_alloc.c+1 -10 replies
3/8vfio/virtio: add __always_inline for virtiovf_get_device_config_sizedrivers/vfio/pci/virtio/legacy_io.c+1 -10 replies
4/8tpm: add __always_inline for tpm_is_hwrng_enableddrivers/char/tpm/tpm-chip.c+1 -10 replies
5/8rseq: add __always_inline for rseq_kernel_fieldskernel/rseq.c+1 -10 replies
6/8kcov: add __always_inline for canonicalize_ipkernel/kcov.c+1 -10 replies
7/8x86/xen: add __init for xen_pgd_walkarch/x86/xen/mmu_pv.c+1 -10 replies
8/8lib/Kconfig.debug: introduce CONFIG_NO_AUTO_INLINEMakefile lib/Kconfig.debug lib/Makefile+40 -00 replies

Reviews trailers per patch

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

PatchJarkko Sakkinen
1/8
2/8
3/8
4/8R-b
5/8
6/8
7/8
8/8

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

Read the v3 thread

Cover letter [PATCH RFC v3 0/8] kernel-hacking: introduce CONFIG_NO_AUTO_INLINE

This series introduces a new kernel configuration option NO_AUTO_INLINE, which can be used to disable the automatic inlining of functions.

This will allow the function tracer to trace more functions because it only traces functions that the compiler has not inlined.

Previous discussions can be found at

This patch depends on

[PATCH] drm/i915/pxp: fix undefined reference to
`intel_pxp_gsccs_is_ready_for_sessions'

which can be found at

https://lore.kernel.org/all/[email protected]/

as well as

[RFC PATCH 5/7] RDMA/hns: initialize db in update_srq_db()

which can be found at

https://lore.kernel.org/all/FF922C77946229B6+20250411105459.90782-5-chenlinxuan@uniontech.com/

---
Changes in v3:
- Fix some modpost and objtool warnings
- Try support clang as Bart Van Assche suggested.
- Remove architecture depends as Bart Van Assche suggested.
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Resend via b4 to correct Message-ID and recipients.
- Update commit message following suggestions from Jarkko Sakkinen
- Link to v1: https://lore.kernel.org/r/31F42D8141CDD2D0+20250411105142.89296-1-chenlinxuan@uniontech.com

---
Chen Linxuan (4):
rseq: add __always_inline for rseq_kernel_fields
kcov: add __always_inline for canonicalize_ip x86/xen: add __init for xen_pgd_walk lib/Kconfig.debug: introduce CONFIG_NO_AUTO_INLINE

Winston Wen (4):
nvme: add __always_inline for nvme_pci_npages_prp
mm: add __always_inline for page_contains_unaccepted vfio/virtio: add __always_inline for virtiovf_get_device_config_size
tpm: add __always_inline for tpm_is_hwrng_enabled

 Makefile                            | 16 ++++++++++++++++
 arch/x86/xen/mmu_pv.c               |  2 +-
 drivers/char/tpm/tpm-chip.c         |  2 +-
 drivers/nvme/host/pci.c             |  2 +-
 drivers/vfio/pci/virtio/legacy_io.c |  2 +-
 kernel/kcov.c                       |  2 +-
 kernel/rseq.c                       |  2 +-
 lib/Kconfig.debug                   | 21 +++++++++++++++++++++
 lib/Makefile                        |  3 +++
 mm/page_alloc.c                     |  2 +-
 10 files changed, 47 insertions(+), 7 deletions(-)

---
base-commit: ca91b9500108d4cf083a635c2e11c884d5dd20ea
change-id: 20250416-noautoinline-8e9b9e535452

Best regards,

Signature · 1 line
Chen Linxuan <[email protected]>