Re: [PATCH RFC v2 5/5] lib/Kconfig.debug: introduce CONFIG_NO_AUTO_INLINE

2025-04-16 Thread Bart Van Assche
On 4/16/25 2:44 AM, Chen Linxuan via B4 Relay wrote: 2. Make it depends on X86 and LOONGARCH, as I haven't test other architectures That sounds weird to me. Shouldn't this option be made architecture- independent? +config NO_AUTO_INLINE + bool "Disable compiler auto-inline optimizat

[PATCH RFC v2 4/5] tpm: add __always_inline for tpm_is_hwrng_enabled

2025-04-16 Thread Chen Linxuan via B4 Relay
From: Winston Wen Presume that kernel is compiled for x86_64 with gcc version 13.3.0: make defconfig ./scripts/kconfig/merge_config.sh .config <( echo CONFIG_TCG_TPM=y echo CONFIG_HW_RANDOM=m ) make KCFLAGS="-fno-inline-small-functions -fno-inline-functions-called-once" This res

[PATCH RFC v2 3/5] vfio/virtio: add __always_inline for virtiovf_get_device_config_size

2025-04-16 Thread Chen Linxuan via B4 Relay
From: Winston Wen Presume that kernel is compiled for x86_64 with gcc version 13.3.0: make defconfig ./scripts/kconfig/merge_config.sh .config <( echo CONFIG_VFIO=m echo CONFIG_VIRTIO_PCI=y echo CONFIG_VIRTIO_PCI_LIB_LEGACY=y echo CONFIG_VIRTIO_VFIO_PCI=m echo CONFIG_VIRT

[PATCH RFC v2 2/5] mm: add __always_inline for page_contains_unaccepted

2025-04-16 Thread Chen Linxuan via B4 Relay
From: Winston Wen On x86_64 with gcc version 13.3.0, I compile mm/page_alloc.c with: make defconfig make KCFLAGS="-fno-inline-small-functions -fno-inline-functions-called-once" \ mm/page_alloc.o Then I get a compile error: CALLscripts/checksyscalls.sh DESCEND objtool IN

[PATCH RFC v2 0/5] kernel-hacking: introduce CONFIG_NO_AUTO_INLINE

2025-04-16 Thread Chen Linxuan via B4 Relay
lib/Kconfig.debug | 15 +++ mm/page_alloc.c | 2 +- 6 files changed, 25 insertions(+), 4 deletions(-) --- base-commit: 1a1d569a75f3ab2923cb62daf356d102e4df2b86 change-id: 20250416-noautoinline-8e9b9e535452 Best regards, -- Chen Linxuan

[PATCH RFC v2 1/5] nvme: add __always_inline for nvme_pci_npages_prp

2025-04-16 Thread Chen Linxuan via B4 Relay
From: Winston Wen On x86_64 with gcc version 13.3.0, I build drivers/nvme/host/pci.c with: make defconfig ./scripts/kconfig/merge_config.sh .config <( echo CONFIG_BLK_DEV_NVME=m ) make KCFLAGS="-fno-inline-small-functions -fno-inline-functions-called-once" \ drivers/nvme/host/pci

[PATCH RFC v2 5/5] lib/Kconfig.debug: introduce CONFIG_NO_AUTO_INLINE

2025-04-16 Thread Chen Linxuan via B4 Relay
From: Winston Wen Add a new kernel hacking option CONFIG_NO_AUTO_INLINE that prevents the compiler from auto-inlining functions not explicitly marked with the 'inline' keyword. This enhancement improves function tracer capabilities as it can only trace functions that haven't been inlined by the

Re: [PATCH v5 2/2] tpm_crb_ffa: use dev_xx() macro to print log

2025-04-16 Thread Stefano Garzarella
On Tue, Apr 15, 2025 at 07:50:13PM +0100, Yeoreum Yun wrote: Instead of pr_xxx() macro, use dev_xxx() to print log. This patch changes some error log level to warn log level when the tpm_crb_ffa secure partition doesn't support properly but system can run without it. (i.e) unsupport of direct mes

Re: [PATCH RFC v2 4/5] tpm: add __always_inline for tpm_is_hwrng_enabled

2025-04-16 Thread Jarkko Sakkinen
On Wed, Apr 16, 2025 at 05:44:50PM +0800, Chen Linxuan via B4 Relay wrote: > From: Winston Wen > > Presume that kernel is compiled for x86_64 with gcc version 13.3.0: > > make defconfig > ./scripts/kconfig/merge_config.sh .config <( > echo CONFIG_TCG_TPM=y > echo CONFIG_HW_RANDOM=m >