# Re: \[PATCH\] kprobes: Enable tracing for mololithic kernel images

- From: Russell King (Oracle) \<linux@armlinux.org.uk\>
- Date: 2022-06-09 07:48:57 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2022/06/1813077
- Thread: https://ratatoskr.run/linux-mips/2022/06/1811301/t.md

```text
Masahiro Yamada [ref], Sami Tolvanen [ref], "Naveen N. Rao" [ref], Marco Elver [ref], Kees Cook [ref], Steven Rostedt [ref], Nathan Chancellor [ref], Mark Brown [ref], Borislav Petkov [ref], Alexander Egorenkov [ref], Thomas Bogendoerfer [ref], linux-parisc@vger.kernel.org, Nathaniel McCallum [ref], Dmitry Torokhov [ref], "David S. Miller" [ref], "Kirill A. Shutemov" [ref], Tobias Huschle [ref], "Peter Zijlstra \(Intel\)" [ref], "H. Peter Anvin" [ref], sparclinux@vger.kernel.org, Tiezhu Yang [ref], Miroslav Benes [ref], Chen Zhongjin [ref], Ard Biesheuvel [ref], x86@kernel.org, linux-riscv@lists.infradead.org, Ing
 o Molnar [ref], Aaron Tomlin [ref], Albert Ou [ref], Heiko Carstens [ref], Liao Chang [ref], Paul Walmsley [ref], Josh Poimboeuf [ref], Thomas Richter [ref], linux-mips@vger.kernel.org, Changbin Du [ref], Palmer Dabbelt [ref], linuxppc-dev@lists.ozlabs.org, linux-modules@vger.kernel.org
Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org
Sender: "Linuxppc-dev" [ref]

On Wed, Jun 08, 2022 at 02:59:27AM +0300, Jarkko Sakkinen wrote:
> diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile
> index 553866751e1a..d2bb954cd54f 100644
> --- a/arch/arm/kernel/Makefile
> +++ b/arch/arm/kernel/Makefile
> @@ -44,6 +44,11 @@ obj-$(CONFIG_CPU_IDLE)		+= cpuidle.o
>  obj-$(CONFIG_ISA_DMA_API)	+= dma.o
>  obj-$(CONFIG_FIQ)		+= fiq.o fiqasm.o
>  obj-$(CONFIG_MODULES)		+= armksyms.o module.o
> +ifeq ($(CONFIG_MODULES),y)
> +obj-y				+= module_alloc.o
> +else
> +obj-$(CONFIG_KPROBES)		+= module_alloc.o
> +endif

Doesn't:

obj-$(CONFIG_MODULES)		+= module_alloc.o
obj-$(CONFIG_KPROBES)		+= module_alloc.o

work just as well? The kbuild modules.rst documentation says:

        The order of files in $(obj-y) is significant.  Duplicates in
        the lists are allowed: the first instance will be linked into
        built-in.a and succeeding instances will be ignored.

so you should be fine... or the documentation is wrong!

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!
```
